blob: 1981b1d0624343962e6fc339a1d9628db491bcc0 [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
Eric Christophercbd84f72012-08-03 05:18:00 +0000768BUILD_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000800CXX
801CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000802CCC
803CPP'
John Criswell0157f502010-03-19 21:31:39 +0000804ac_subdirs_all='projects/llvm-gcc
805projects/test-suite
806projects/llvm-test
807projects/poolalloc
808projects/llvm-poolalloc
809projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000811projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-java
814projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000815projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000816projects/llvm-kernel
817tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001319\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001385 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001392 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001393 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001406 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001409 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001415 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001416 --enable-timestamps Enable embedding timestamp information in build
1417 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001420 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001421 xcore, msp430, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001430 --with-optimize-option Select the compiler options to use for optimized
1431 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001432 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001433 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1435 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001436 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1439 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001440 --with-c-include-dirs Colon separated list of directories clang will
1441 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001442 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001443 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001444 --with-binutils-include Specify path to binutils/include/ containing
1445 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001446 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001447 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001448 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001449 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001450 --with-oprofile=<prefix>
1451 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001452 --with-intel-jitevents=<vtune-amplifier-dir>
1453 Specify location of run-time support library for
1454 Intel JIT API
1455 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001458 CC C compiler command
1459 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001463 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001466 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
Eric Christopherf33ab862011-12-21 00:52:44 +00001471Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001473ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001480 ac_builddir=.
1481
Reid Spencera773bd52006-08-04 18:18:08 +00001482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001486 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001497
1498case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001499 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001500 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001511esac
Reid Spencera773bd52006-08-04 18:18:08 +00001512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001513
Reid Spencera773bd52006-08-04 18:18:08 +00001514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001522 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001526 done
1527fi
1528
Reid Spencera773bd52006-08-04 18:18:08 +00001529test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001530if $ac_init_version; then
1531 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001532LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001540Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001542 exit
John Criswell7a73b802003-06-30 21:59:07 +00001543fi
Reid Spencera773bd52006-08-04 18:18:08 +00001544cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001545This file contains any messages produced by compilers while
1546running configure, to aid debugging if configure makes a mistake.
1547
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001548It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001550
1551 $ $0 $@
1552
1553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001554exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001555{
1556cat <<_ASUNAME
1557## --------- ##
1558## Platform. ##
1559## --------- ##
1560
1561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569
1570/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001573/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001574/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577
1578_ASUNAME
1579
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001585 echo "PATH: $as_dir"
1586done
Reid Spencera773bd52006-08-04 18:18:08 +00001587IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589} >&5
1590
1591cat >&5 <<_ACEOF
1592
1593
1594## ----------- ##
1595## Core tests. ##
1596## ----------- ##
1597
1598_ACEOF
1599
1600
1601# Keep a trace of the command line.
1602# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001603# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001604# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001606ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001607ac_configure_args0=
1608ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_must_keep_next=false
1610for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001611do
John Criswell0c38eaf2003-09-10 15:17:25 +00001612 for ac_arg
1613 do
1614 case $ac_arg in
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1618 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001619 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 esac
1622 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001627 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 case $ac_arg in
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 esac
1637 ;;
1638 -* ) ac_must_keep_next=true ;;
1639 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001641 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 ;;
1643 esac
1644 done
John Criswell7a73b802003-06-30 21:59:07 +00001645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647$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 +00001648
1649# When interrupted or exit'd, cleanup temporary files, and complete
1650# config.log. We remove comments because anyway the quotes in there
1651# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001652# WARNING: Use '\'' to represent an apostrophe within the trap.
1653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001654trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1656 {
1657 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001658
John Criswell7a73b802003-06-30 21:59:07 +00001659 cat <<\_ASBOX
1660## ---------------- ##
1661## Cache variables. ##
1662## ---------------- ##
1663_ASBOX
1664 echo
1665 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001666(
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1669 case $ac_val in #(
1670 *${as_nl}*)
1671 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001674 esac
1675 case $ac_var in #(
1676 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac ;;
1679 esac
1680 done
John Criswell7a73b802003-06-30 21:59:07 +00001681 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001684 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001688 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac |
1692 sort
1693)
John Criswell7a73b802003-06-30 21:59:07 +00001694 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001695
1696 cat <<\_ASBOX
1697## ----------------- ##
1698## Output variables. ##
1699## ----------------- ##
1700_ASBOX
1701 echo
1702 for ac_var in $ac_subst_vars
1703 do
Reid Spencera773bd52006-08-04 18:18:08 +00001704 eval ac_val=\$$ac_var
1705 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001707 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 done | sort
1710 echo
1711
1712 if test -n "$ac_subst_files"; then
1713 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001714## ------------------- ##
1715## File substitutions. ##
1716## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001717_ASBOX
1718 echo
1719 for ac_var in $ac_subst_files
1720 do
Reid Spencera773bd52006-08-04 18:18:08 +00001721 eval ac_val=\$$ac_var
1722 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001726 done | sort
1727 echo
1728 fi
1729
John Criswell7a73b802003-06-30 21:59:07 +00001730 if test -s confdefs.h; then
1731 cat <<\_ASBOX
1732## ----------- ##
1733## confdefs.h. ##
1734## ----------- ##
1735_ASBOX
1736 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001737 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001738 echo
1739 fi
1740 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001743 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001746 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001747' 0
John Criswell7a73b802003-06-30 21:59:07 +00001748for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001750done
1751ac_signal=0
1752
1753# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001754rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001755
1756# Predefined preprocessor variables.
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_NAME "$PACKAGE_NAME"
1760_ACEOF
1761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762
John Criswell7a73b802003-06-30 21:59:07 +00001763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_STRING "$PACKAGE_STRING"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780_ACEOF
1781
1782
1783# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001785if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001787elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793shift
1794for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001795do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001799 sed 's/^/| /' "$ac_site_file" >&5
1800 . "$ac_site_file"
1801 fi
1802done
1803
1804if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001813 esac
1814 fi
1815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 >$cache_file
1819fi
1820
1821# Check that the precious variables saved in the cache have kept the same
1822# value.
1823ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001824for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $ac_old_set,$ac_new_set in
1830 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001833 ac_cache_corrupted=: ;;
1834 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,);;
1839 *)
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001848 fi;;
1849 esac
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1852 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001854 *) ac_arg=$ac_var=$ac_new_val ;;
1855 esac
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 esac
1860 fi
1861done
1862if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
Reid Spencera773bd52006-08-04 18:18:08 +00001893
John Criswell7a73b802003-06-30 21:59:07 +00001894ac_ext=c
1895ac_cpp='$CPP $CPPFLAGS'
1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001902cat >>confdefs.h <<\_ACEOF
1903#define LLVM_VERSION_MAJOR 3
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001908#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001909_ACEOF
1910
1911
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001912LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001913
1914
1915
1916
1917
1918
1919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001921for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
John Criswell7a73b802003-06-30 21:59:07 +00001935done
1936if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001940fi
Reid Spencera773bd52006-08-04 18:18:08 +00001941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
John Criswell7a73b802003-06-30 21:59:07 +00001950
John Criswell392aaa32003-07-22 19:18:09 +00001951
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001957 fi
John Criswell93e1c722003-09-15 17:04:06 +00001958fi
1959
Nick Lewycky83fc4472009-09-29 05:48:51 +00001960ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001965if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001966 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001967 do
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001974else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001977else
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 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 +00001985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001987 break 2
1988 fi
1989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001990done
Reid Spencera773bd52006-08-04 18:18:08 +00001991IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001992
1993fi
1994fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001995CC=$ac_cv_prog_CC
1996if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 { echo "$as_me:$LINENO: result: $CC" >&5
1998echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 { echo "$as_me:$LINENO: result: no" >&5
2001echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002002fi
2003
Reid Spencera773bd52006-08-04 18:18:08 +00002004
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002005 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002006 done
2007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002008if test -z "$CC"; then
2009 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002010 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002011do
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002018else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019 if test -n "$ac_ct_CC"; then
2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002021else
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 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 +00002029 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002031 break 2
2032 fi
2033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034done
Reid Spencera773bd52006-08-04 18:18:08 +00002035IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002036
2037fi
2038fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044 { echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002046fi
2047
Reid Spencera773bd52006-08-04 18:18:08 +00002048
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002050done
John Criswell7a73b802003-06-30 21:59:07 +00002051
Reid Spencera773bd52006-08-04 18:18:08 +00002052 if test "x$ac_ct_CC" = x; then
2053 CC=""
2054 else
2055 case $cross_compiling:$ac_tool_warned in
2056yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058whose name does not start with the host triplet. If you think this
2059configuration is useful to you, please write to autoconf@gnu.org." >&5
2060echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061whose name does not start with the host triplet. If you think this
2062configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002063ac_tool_warned=yes ;;
2064esac
2065 CC=$ac_ct_CC
2066 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075
John Criswell7a73b802003-06-30 21:59:07 +00002076# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077echo "$as_me:$LINENO: checking for C compiler version" >&5
2078ac_compiler=`set X $ac_compile; echo $2`
2079{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002086 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089{ (ac_try="$ac_compiler -v >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -v >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099{ (ac_try="$ac_compiler -V >&5"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -V >&5") 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h. */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002116
John Criswell7a73b802003-06-30 21:59:07 +00002117int
2118main ()
2119{
2120
2121 ;
2122 return 0;
2123}
2124_ACEOF
2125ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002126ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002127# Try to create an executable without -o first, disregard a.out.
2128# It will help us diagnose broken compilers, and finding out an intuition
2129# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002130{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2132ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133#
2134# List of possible output files, starting from the most likely.
2135# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2136# only as a last resort. b.out is created by i960 compilers.
2137ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138#
2139# The IRIX 6 linker writes into existing files which may not be
2140# executable, retaining their permissions. Remove them first so a
2141# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002142ac_rmfiles=
2143for ac_file in $ac_files
2144do
2145 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2148 esac
2149done
2150rm -f $ac_rmfiles
2151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002153case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002158 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002159 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2164# in a Makefile. We should not override ac_cv_exeext if it was cached,
2165# so that the user can short-circuit this test for compilers unknown to
2166# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002167for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002168do
2169 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002170 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002172 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002173 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002174 # We found the default executable, but exeext='' is most
2175 # certainly right.
2176 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002179 then :; else
2180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 fi
2182 # We set ac_cv_exeext here because the later test for it is not
2183 # safe: cross compilers may not add the suffix if given an `-o'
2184 # argument, so we may need to know it at that point already.
2185 # Even if this section looks crufty: it has the advantage of
2186 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002190 esac
2191done
Reid Spencera773bd52006-08-04 18:18:08 +00002192test "$ac_cv_exeext" = no && ac_cv_exeext=
2193
John Criswell7a73b802003-06-30 21:59:07 +00002194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002196sed 's/^/| /' conftest.$ac_ext >&5
2197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002198{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: C compiler cannot create executables
2201See \`config.log' for more details." >&2;}
2202 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002203fi
John Criswell7a73b802003-06-30 21:59:07 +00002204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002205ac_exeext=$ac_cv_exeext
2206{ echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6; }
2208
2209# Check that the compiler produces executables we can run. If not, either
2210# the compiler is broken, or we cross compile.
2211{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2213# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214# If not cross compiling, check that we can run a simple program.
2215if test "$cross_compiling" != yes; then
2216 if { ac_try='./$ac_file'
2217 { (case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220esac
2221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_try") 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 cross_compiling=no
2227 else
2228 if test "$cross_compiling" = maybe; then
2229 cross_compiling=yes
2230 else
2231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239 fi
2240fi
2241{ echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6; }
2243
2244rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002245ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002246# Check that the compiler produces executables we can run. If not, either
2247# the compiler is broken, or we cross compile.
2248{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2250{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6; }
2252
2253{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2255if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002256case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002261 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002262 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2267# work properly (i.e., refer to `conftest.exe'), while it won't with
2268# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002269for ac_file in conftest.exe conftest conftest.*; do
2270 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002271 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002274 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 * ) break;;
2276 esac
2277done
2278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002285
2286rm -f conftest$ac_cv_exeext
2287{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002289
2290rm -f conftest.$ac_ext
2291EXEEXT=$ac_cv_exeext
2292ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2295if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298 cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002304
John Criswell7a73b802003-06-30 21:59:07 +00002305int
2306main ()
2307{
2308
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002314if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002315case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002320 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002321 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002324 for ac_file in conftest.o conftest.obj conftest.*; do
2325 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002326 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002328 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329 break;;
2330 esac
2331done
2332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002334sed 's/^/| /' conftest.$ac_ext >&5
2335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002342
John Criswell7a73b802003-06-30 21:59:07 +00002343rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002347OBJEXT=$ac_cv_objext
2348ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2351if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354 cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h. */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002360
John Criswell7a73b802003-06-30 21:59:07 +00002361int
2362main ()
2363{
2364#ifndef __GNUC__
2365 choke me
2366#endif
2367
2368 ;
2369 return 0;
2370}
2371_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372rm -f conftest.$ac_objext
2373if { (ac_try="$ac_compile"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002406 ac_compiler_gnu=yes
2407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413
Reid Spencera773bd52006-08-04 18:18:08 +00002414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002416
2417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2420GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421ac_test_CFLAGS=${CFLAGS+set}
2422ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2425if test "${ac_cv_prog_cc_g+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002427else
Reid Spencera773bd52006-08-04 18:18:08 +00002428 ac_save_c_werror_flag=$ac_c_werror_flag
2429 ac_c_werror_flag=yes
2430 ac_cv_prog_cc_g=no
2431 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432 cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h. */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002438
John Criswell7a73b802003-06-30 21:59:07 +00002439int
2440main ()
2441{
2442
2443 ;
2444 return 0;
2445}
2446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447rm -f conftest.$ac_objext
2448if { (ac_try="$ac_compile"
2449case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452esac
2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compile") 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002483 echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 CFLAGS=""
2487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002492/* end confdefs.h. */
2493
2494int
2495main ()
2496{
2497
2498 ;
2499 return 0;
2500}
2501_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502rm -f conftest.$ac_objext
2503if { (ac_try="$ac_compile"
2504case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 :
Torok Edwin871384f2010-01-26 08:50:50 +00002537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002542 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002543 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002548/* end confdefs.h. */
2549
2550int
2551main ()
2552{
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002558rm -f conftest.$ac_objext
2559if { (ac_try="$ac_compile"
2560case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563esac
2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compile") 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597
John Criswell7a73b802003-06-30 21:59:07 +00002598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599
Reid Spencera773bd52006-08-04 18:18:08 +00002600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602
Reid Spencera773bd52006-08-04 18:18:08 +00002603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605
Reid Spencera773bd52006-08-04 18:18:08 +00002606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_c_werror_flag=$ac_save_c_werror_flag
2608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2615 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002616 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002618 fi
2619else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620 if test "$GCC" = yes; then
2621 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002622 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002624 fi
2625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2628if test "${ac_cv_prog_cc_c89+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630else
Reid Spencera773bd52006-08-04 18:18:08 +00002631 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638/* end confdefs.h. */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647 char **p;
2648 int i;
2649{
2650 return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654 char *s;
2655 va_list v;
2656 va_start (v,p);
2657 s = g (p, va_arg (v,int));
2658 va_end (v);
2659 return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002665 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002668 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
Reid Spencera773bd52006-08-04 18:18:08 +00002671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672 inside strings and character constants. */
2673#define FOO(x) 'x'
2674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676int test (int i, double x);
2677struct s1 {int (*f) (int a);};
2678struct s2 {int (*f) (double a);};
2679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2680int argc;
2681char **argv;
2682int
2683main ()
2684{
2685return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 ;
2687 return 0;
2688}
2689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692do
2693 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002694 rm -f conftest.$ac_objext
2695if { (ac_try="$ac_compile"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002728 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729else
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735
Reid Spencera773bd52006-08-04 18:18:08 +00002736rm -f core conftest.err conftest.$ac_objext
2737 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738done
Reid Spencera773bd52006-08-04 18:18:08 +00002739rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740CC=$ac_save_CC
2741
2742fi
Reid Spencera773bd52006-08-04 18:18:08 +00002743# AC_CACHE_VAL
2744case "x$ac_cv_prog_cc_c89" in
2745 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002746 { echo "$as_me:$LINENO: result: none needed" >&5
2747echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002748 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749 { echo "$as_me:$LINENO: result: unsupported" >&5
2750echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002751 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002752 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2754echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002755esac
2756
John Criswell0c38eaf2003-09-10 15:17:25 +00002757
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
Eric Christopherffee5722011-09-16 20:36:25 +00002764ac_ext=cpp
2765ac_cpp='$CXXCPP $CPPFLAGS'
2766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2769if test -z "$CXX"; then
2770 if test -n "$CCC"; then
2771 CXX=$CCC
2772 else
2773 if test -n "$ac_tool_prefix"; then
2774 for ac_prog in clang++ llvm-g++ g++
2775 do
2776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780if test "${ac_cv_prog_CXX+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783 if test -n "$CXX"; then
2784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CXX=$ac_cv_prog_CXX
2804if test -n "$CXX"; then
2805 { echo "$as_me:$LINENO: result: $CXX" >&5
2806echo "${ECHO_T}$CXX" >&6; }
2807else
2808 { echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6; }
2810fi
2811
2812
2813 test -n "$CXX" && break
2814 done
2815fi
2816if test -z "$CXX"; then
2817 ac_ct_CXX=$CXX
2818 for ac_prog in clang++ llvm-g++ g++
2819do
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821set dummy $ac_prog; ac_word=$2
2822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$ac_ct_CXX"; then
2828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CXX="$ac_prog"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2848if test -n "$ac_ct_CXX"; then
2849 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2850echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851else
2852 { echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6; }
2854fi
2855
2856
2857 test -n "$ac_ct_CXX" && break
2858done
2859
2860 if test "x$ac_ct_CXX" = x; then
2861 CXX="g++"
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864yes:)
2865{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2866whose name does not start with the host triplet. If you think this
2867configuration is useful to you, please write to autoconf@gnu.org." >&5
2868echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2869whose name does not start with the host triplet. If you think this
2870configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873 CXX=$ac_ct_CXX
2874 fi
2875fi
2876
2877 fi
2878fi
2879# Provide some information about the compiler.
2880echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2881ac_compiler=`set X $ac_compile; echo $2`
2882{ (ac_try="$ac_compiler --version >&5"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler --version >&5") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892{ (ac_try="$ac_compiler -v >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -v >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (ac_try="$ac_compiler -V >&5"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -V >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912
2913{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2915if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924
2925int
2926main ()
2927{
2928#ifndef __GNUC__
2929 choke me
2930#endif
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.$ac_objext
2937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_compiler_gnu=yes
2971else
2972 echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ac_compiler_gnu=no
2976fi
2977
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2980
2981fi
2982{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2983echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2984GXX=`test $ac_compiler_gnu = yes && echo yes`
2985ac_test_CXXFLAGS=${CXXFLAGS+set}
2986ac_save_CXXFLAGS=$CXXFLAGS
2987{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2988echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2989if test "${ac_cv_prog_cxx_g+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2993 ac_cxx_werror_flag=yes
2994 ac_cv_prog_cxx_g=no
2995 CXXFLAGS="-g"
2996 cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002
3003int
3004main ()
3005{
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_prog_cxx_g=yes
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 CXXFLAGS=""
3051 cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 :
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106 CXXFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_prog_cxx_g=yes
3157else
3158 echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165fi
3166
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172fi
3173{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3174echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3175if test "$ac_test_CXXFLAGS" = set; then
3176 CXXFLAGS=$ac_save_CXXFLAGS
3177elif test $ac_cv_prog_cxx_g = yes; then
3178 if test "$GXX" = yes; then
3179 CXXFLAGS="-g -O2"
3180 else
3181 CXXFLAGS="-g"
3182 fi
3183else
3184 if test "$GXX" = yes; then
3185 CXXFLAGS="-O2"
3186 else
3187 CXXFLAGS=
3188 fi
3189fi
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003201{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3202echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203# On Suns, sometimes $CPP names a directory.
3204if test -n "$CPP" && test -d "$CPP"; then
3205 CPP=
3206fi
3207if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003208 if test "${ac_cv_prog_CPP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210else
3211 # Double quotes because CPP needs to be expanded
3212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3213 do
3214 ac_preproc_ok=false
3215for ac_c_preproc_warn_flag in '' yes
3216do
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228/* end confdefs.h. */
3229#ifdef __STDC__
3230# include <limits.h>
3231#else
3232# include <assert.h>
3233#endif
3234 Syntax error
3235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003236if { (ac_try="$ac_cpp conftest.$ac_ext"
3237case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240esac
3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 else
3253 ac_cpp_err=
3254 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256 ac_cpp_err=yes
3257fi
3258if test -z "$ac_cpp_err"; then
3259 :
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264 # Broken: fails on valid input.
3265continue
3266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003267
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268rm -f conftest.err conftest.$ac_ext
3269
Reid Spencera773bd52006-08-04 18:18:08 +00003270 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272 cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277/* end confdefs.h. */
3278#include <ac_nonexistent.h>
3279_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003280if { (ac_try="$ac_cpp conftest.$ac_ext"
3281case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 else
3297 ac_cpp_err=
3298 fi
3299else
3300 ac_cpp_err=yes
3301fi
3302if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 # Broken: success on invalid input.
3304continue
3305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003306 echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 # Passes both tests.
3310ac_preproc_ok=:
3311break
3312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314rm -f conftest.err conftest.$ac_ext
3315
3316done
3317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003319if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320 break
3321fi
3322
3323 done
3324 ac_cv_prog_CPP=$CPP
3325
3326fi
3327 CPP=$ac_cv_prog_CPP
3328else
3329 ac_cv_prog_CPP=$CPP
3330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003331{ echo "$as_me:$LINENO: result: $CPP" >&5
3332echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333ac_preproc_ok=false
3334for ac_c_preproc_warn_flag in '' yes
3335do
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003342 cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h. */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347/* end confdefs.h. */
3348#ifdef __STDC__
3349# include <limits.h>
3350#else
3351# include <assert.h>
3352#endif
3353 Syntax error
3354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003355if { (ac_try="$ac_cpp conftest.$ac_ext"
3356case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 else
3372 ac_cpp_err=
3373 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375 ac_cpp_err=yes
3376fi
3377if test -z "$ac_cpp_err"; then
3378 :
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383 # Broken: fails on valid input.
3384continue
3385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387rm -f conftest.err conftest.$ac_ext
3388
Reid Spencera773bd52006-08-04 18:18:08 +00003389 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396/* end confdefs.h. */
3397#include <ac_nonexistent.h>
3398_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399if { (ac_try="$ac_cpp conftest.$ac_ext"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 else
3416 ac_cpp_err=
3417 fi
3418else
3419 ac_cpp_err=yes
3420fi
3421if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 # Broken: success on invalid input.
3423continue
3424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003425 echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438if $ac_preproc_ok; then
3439 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&5
3443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446fi
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
John Criswell7a73b802003-06-30 21:59:07 +00003454
Eric Christopherffee5722011-09-16 20:36:25 +00003455
3456
3457if test -d ${srcdir}/projects/llvm-gcc ; then
3458 subdirs="$subdirs projects/llvm-gcc"
3459
3460fi
3461
3462if test -d ${srcdir}/projects/test-suite ; then
3463 subdirs="$subdirs projects/test-suite"
3464
3465fi
3466
3467if test -d ${srcdir}/projects/llvm-test ; then
3468 subdirs="$subdirs projects/llvm-test"
3469
3470fi
3471
3472if test -d ${srcdir}/projects/poolalloc ; then
3473 subdirs="$subdirs projects/poolalloc"
3474
3475fi
3476
3477if test -d ${srcdir}/projects/llvm-poolalloc ; then
3478 subdirs="$subdirs projects/llvm-poolalloc"
3479
3480fi
3481
3482for i in `ls ${srcdir}/projects`
3483do
3484 if test -d ${srcdir}/projects/${i} ; then
3485 case ${i} in
3486 sample) subdirs="$subdirs projects/sample"
3487 ;;
3488 privbracket) subdirs="$subdirs projects/privbracket"
3489 ;;
3490 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491 ;;
3492 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3493;;
3494 llvm-java) subdirs="$subdirs projects/llvm-java"
3495 ;;
3496 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3497 ;;
3498 safecode) subdirs="$subdirs projects/safecode"
3499 ;;
3500 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3501 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003502 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003503 llvm-gcc) ;;
3504 test-suite) ;;
3505 llvm-test) ;;
3506 poolalloc) ;;
3507 llvm-poolalloc) ;;
3508 *)
3509 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3510echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3511 ;;
3512 esac
3513 fi
3514done
3515
3516# Check whether --enable-polly was given.
3517if test "${enable_polly+set}" = set; then
3518 enableval=$enable_polly;
3519else
3520 enableval=default
3521fi
3522
3523case "$enableval" in
3524 yes) ENABLE_POLLY=1
3525 ;;
3526 no) ENABLE_POLLY=0
3527 ;;
3528 default) ENABLE_POLLY=1
3529 ;;
3530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3531echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3532 { (exit 1); exit 1; }; } ;;
3533esac
3534
3535
3536if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3537 LLVM_HAS_POLLY=1
3538
3539 subdirs="$subdirs tools/polly"
3540
3541fi
3542
3543
3544# Make sure we can run config.sub.
3545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3547echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3548 { (exit 1); exit 1; }; }
3549
3550{ echo "$as_me:$LINENO: checking build system type" >&5
3551echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3552if test "${ac_cv_build+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 ac_build_alias=$build_alias
3556test "x$ac_build_alias" = x &&
3557 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3558test "x$ac_build_alias" = x &&
3559 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3560echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3561 { (exit 1); exit 1; }; }
3562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3563 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3564echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3565 { (exit 1); exit 1; }; }
3566
3567fi
3568{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3569echo "${ECHO_T}$ac_cv_build" >&6; }
3570case $ac_cv_build in
3571*-*-*) ;;
3572*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3573echo "$as_me: error: invalid value of canonical build" >&2;}
3574 { (exit 1); exit 1; }; };;
3575esac
3576build=$ac_cv_build
3577ac_save_IFS=$IFS; IFS='-'
3578set x $ac_cv_build
3579shift
3580build_cpu=$1
3581build_vendor=$2
3582shift; shift
3583# Remember, the first character of IFS is used to create $*,
3584# except with old shells:
3585build_os=$*
3586IFS=$ac_save_IFS
3587case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588
3589
3590{ echo "$as_me:$LINENO: checking host system type" >&5
3591echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3592if test "${ac_cv_host+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 if test "x$host_alias" = x; then
3596 ac_cv_host=$ac_cv_build
3597else
3598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3600echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3601 { (exit 1); exit 1; }; }
3602fi
3603
3604fi
3605{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3606echo "${ECHO_T}$ac_cv_host" >&6; }
3607case $ac_cv_host in
3608*-*-*) ;;
3609*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3610echo "$as_me: error: invalid value of canonical host" >&2;}
3611 { (exit 1); exit 1; }; };;
3612esac
3613host=$ac_cv_host
3614ac_save_IFS=$IFS; IFS='-'
3615set x $ac_cv_host
3616shift
3617host_cpu=$1
3618host_vendor=$2
3619shift; shift
3620# Remember, the first character of IFS is used to create $*,
3621# except with old shells:
3622host_os=$*
3623IFS=$ac_save_IFS
3624case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625
3626
3627{ echo "$as_me:$LINENO: checking target system type" >&5
3628echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3629if test "${ac_cv_target+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 if test "x$target_alias" = x; then
3633 ac_cv_target=$ac_cv_host
3634else
3635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3636 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3637echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3638 { (exit 1); exit 1; }; }
3639fi
3640
3641fi
3642{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3643echo "${ECHO_T}$ac_cv_target" >&6; }
3644case $ac_cv_target in
3645*-*-*) ;;
3646*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3647echo "$as_me: error: invalid value of canonical target" >&2;}
3648 { (exit 1); exit 1; }; };;
3649esac
3650target=$ac_cv_target
3651ac_save_IFS=$IFS; IFS='-'
3652set x $ac_cv_target
3653shift
3654target_cpu=$1
3655target_vendor=$2
3656shift; shift
3657# Remember, the first character of IFS is used to create $*,
3658# except with old shells:
3659target_os=$*
3660IFS=$ac_save_IFS
3661case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3662
3663
3664# The aliases save the names the user supplied, while $host etc.
3665# will get canonicalized.
3666test -n "$target_alias" &&
3667 test "$program_prefix$program_suffix$program_transform_name" = \
3668 NONENONEs,x,x, &&
3669 program_prefix=${target_alias}-
3670
3671{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3672echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3673if test "${llvm_cv_os_type+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676 case $host in
3677 *-*-aix*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="AIX"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-irix*)
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="IRIX"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-cygwin*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Cygwin"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-darwin*)
3693 llvm_cv_link_all_option="-Wl,-all_load"
3694 llvm_cv_no_link_all_option="-Wl,-noall_load"
3695 llvm_cv_os_type="Darwin"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-minix*)
3698 llvm_cv_link_all_option="-Wl,-all_load"
3699 llvm_cv_no_link_all_option="-Wl,-noall_load"
3700 llvm_cv_os_type="Minix"
3701 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003702 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="FreeBSD"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-openbsd*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="OpenBSD"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-netbsd*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="NetBSD"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-dragonfly*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="DragonFly"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-hpux*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="HP-UX"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-interix*)
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="Interix"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-linux*)
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="Linux"
3736 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003737 *-*-gnu*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="GNU"
3741 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003742 *-*-solaris*)
3743 llvm_cv_link_all_option="-Wl,-z,allextract"
3744 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3745 llvm_cv_os_type="SunOS"
3746 llvm_cv_platform_type="Unix" ;;
3747 *-*-auroraux*)
3748 llvm_cv_link_all_option="-Wl,-z,allextract"
3749 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3750 llvm_cv_os_type="AuroraUX"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-*-win32*)
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Win32"
3756 llvm_cv_platform_type="Win32" ;;
3757 *-*-mingw*)
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="MingW"
3761 llvm_cv_platform_type="Win32" ;;
3762 *-*-haiku*)
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Haiku"
3766 llvm_cv_platform_type="Unix" ;;
3767 *-unknown-eabi*)
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="Freestanding"
3771 llvm_cv_platform_type="Unix" ;;
3772 *-unknown-elf*)
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Freestanding"
3776 llvm_cv_platform_type="Unix" ;;
3777 *)
3778 llvm_cv_link_all_option=""
3779 llvm_cv_no_link_all_option=""
3780 llvm_cv_os_type="Unknown"
3781 llvm_cv_platform_type="Unknown" ;;
3782esac
3783fi
3784{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3785echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3786
3787{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3788echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3789if test "${llvm_cv_target_os_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792 case $target in
3793 *-*-aix*)
3794 llvm_cv_target_os_type="AIX" ;;
3795 *-*-irix*)
3796 llvm_cv_target_os_type="IRIX" ;;
3797 *-*-cygwin*)
3798 llvm_cv_target_os_type="Cygwin" ;;
3799 *-*-darwin*)
3800 llvm_cv_target_os_type="Darwin" ;;
3801 *-*-minix*)
3802 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003803 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003804 llvm_cv_target_os_type="FreeBSD" ;;
3805 *-*-openbsd*)
3806 llvm_cv_target_os_type="OpenBSD" ;;
3807 *-*-netbsd*)
3808 llvm_cv_target_os_type="NetBSD" ;;
3809 *-*-dragonfly*)
3810 llvm_cv_target_os_type="DragonFly" ;;
3811 *-*-hpux*)
3812 llvm_cv_target_os_type="HP-UX" ;;
3813 *-*-interix*)
3814 llvm_cv_target_os_type="Interix" ;;
3815 *-*-linux*)
3816 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003817 *-*-gnu*)
3818 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003819 *-*-solaris*)
3820 llvm_cv_target_os_type="SunOS" ;;
3821 *-*-auroraux*)
3822 llvm_cv_target_os_type="AuroraUX" ;;
3823 *-*-win32*)
3824 llvm_cv_target_os_type="Win32" ;;
3825 *-*-mingw*)
3826 llvm_cv_target_os_type="MingW" ;;
3827 *-*-haiku*)
3828 llvm_cv_target_os_type="Haiku" ;;
3829 *-*-rtems*)
3830 llvm_cv_target_os_type="RTEMS" ;;
3831 *-*-nacl*)
3832 llvm_cv_target_os_type="NativeClient" ;;
3833 *-unknown-eabi*)
3834 llvm_cv_target_os_type="Freestanding" ;;
3835 *)
3836 llvm_cv_target_os_type="Unknown" ;;
3837esac
3838fi
3839{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3840echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3841
3842if test "$llvm_cv_os_type" = "Unknown" ; then
3843 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3844echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3845 { (exit 1); exit 1; }; }
3846fi
3847
3848OS=$llvm_cv_os_type
3849
3850HOST_OS=$llvm_cv_os_type
3851
3852TARGET_OS=$llvm_cv_target_os_type
3853
3854
3855LINKALL=$llvm_cv_link_all_option
3856
3857NOLINKALL=$llvm_cv_no_link_all_option
3858
3859
3860case $llvm_cv_platform_type in
3861 Unix)
3862
3863cat >>confdefs.h <<\_ACEOF
3864#define LLVM_ON_UNIX 1
3865_ACEOF
3866
3867 LLVM_ON_UNIX=1
3868
3869 LLVM_ON_WIN32=0
3870
3871 ;;
3872 Win32)
3873
3874cat >>confdefs.h <<\_ACEOF
3875#define LLVM_ON_WIN32 1
3876_ACEOF
3877
3878 LLVM_ON_UNIX=0
3879
3880 LLVM_ON_WIN32=1
3881
3882 ;;
3883esac
3884
3885{ echo "$as_me:$LINENO: checking target architecture" >&5
3886echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3887if test "${llvm_cv_target_arch+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890 case $target in
3891 i?86-*) llvm_cv_target_arch="x86" ;;
3892 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3893 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3894 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003895 arm*-*) llvm_cv_target_arch="ARM" ;;
3896 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003897 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003898 xcore-*) llvm_cv_target_arch="XCore" ;;
3899 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003900 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003901 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003902 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003903 *) llvm_cv_target_arch="Unknown" ;;
3904esac
3905fi
3906{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3907echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3908
3909if test "$llvm_cv_target_arch" = "Unknown" ; then
3910 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3911echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3912fi
3913
Eric Christopherffee5722011-09-16 20:36:25 +00003914case "$llvm_cv_target_arch" in
3915 x86) LLVM_NATIVE_ARCH="X86" ;;
3916 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3917 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3918esac
3919
3920ARCH=$llvm_cv_target_arch
3921
3922
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003923case $host in
3924 i?86-*) host_arch="x86" ;;
3925 amd64-* | x86_64-*) host_arch="x86_64" ;;
3926 sparc*-*) host_arch="Sparc" ;;
3927 powerpc*-*) host_arch="PowerPC" ;;
3928 arm*-*) host_arch="ARM" ;;
3929 mips-*) host_arch="Mips" ;;
3930 mipsel-*) host_arch="Mips" ;;
3931 xcore-*) host_arch="XCore" ;;
3932 msp430-*) host_arch="MSP430" ;;
3933 hexagon-*) host_arch="Hexagon" ;;
3934 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003935 *) host_arch="Unknown" ;;
3936esac
3937
3938if test "$host_arch" = "Unknown" ; then
3939 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3940echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3941fi
3942
3943HOST_ARCH=$host_arch
3944
3945
Eric Christopherffee5722011-09-16 20:36:25 +00003946
3947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003948{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3949echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3950if test "${ac_cv_path_GREP+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 # Extract the first word of "grep ggrep" to use in msg output
3954if test -z "$GREP"; then
3955set dummy grep ggrep; ac_prog_name=$2
3956if test "${ac_cv_path_GREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
Reid Spencera773bd52006-08-04 18:18:08 +00003959 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960# Loop through the user's path and test for each of PROGNAME-LIST
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966 for ac_prog in grep ggrep; do
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3969 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3970 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003971 # Check for GNU $ac_path_GREP
3972case `"$ac_path_GREP" --version 2>&1` in
3973*GNU*)
3974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3975*)
3976 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003978 while :
3979 do
3980 cat "conftest.in" "conftest.in" >"conftest.tmp"
3981 mv "conftest.tmp" "conftest.in"
3982 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003987 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3988 # Best one so far, save it but keep looking for a better one
3989 ac_cv_path_GREP="$ac_path_GREP"
3990 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003991 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003992 # 10*(2^10) chars as input seems more than enough
3993 test $ac_count -gt 10 && break
3994 done
3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996esac
3997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003998
3999 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004000 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001done
4002
4003done
Reid Spencera773bd52006-08-04 18:18:08 +00004004IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005
4006
4007fi
4008
4009GREP="$ac_cv_path_GREP"
4010if test -z "$GREP"; then
4011 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4012echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4013 { (exit 1); exit 1; }; }
4014fi
4015
Reid Spencera773bd52006-08-04 18:18:08 +00004016else
4017 ac_cv_path_GREP=$GREP
4018fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020
Reid Spencera773bd52006-08-04 18:18:08 +00004021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4023echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004024 GREP="$ac_cv_path_GREP"
4025
4026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027{ echo "$as_me:$LINENO: checking for egrep" >&5
4028echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4029if test "${ac_cv_path_EGREP+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004031else
4032 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4033 then ac_cv_path_EGREP="$GREP -E"
4034 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035 # Extract the first word of "egrep" to use in msg output
4036if test -z "$EGREP"; then
4037set dummy egrep; ac_prog_name=$2
4038if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
Reid Spencera773bd52006-08-04 18:18:08 +00004041 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004042# Loop through the user's path and test for each of PROGNAME-LIST
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048 for ac_prog in egrep; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4051 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4052 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004053 # Check for GNU $ac_path_EGREP
4054case `"$ac_path_EGREP" --version 2>&1` in
4055*GNU*)
4056 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4057*)
4058 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004060 while :
4061 do
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004066 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004069 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_EGREP="$ac_path_EGREP"
4072 ac_path_EGREP_max=$ac_count
4073 fi
4074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4076 done
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078esac
4079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080
4081 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004082 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004083done
4084
4085done
Reid Spencera773bd52006-08-04 18:18:08 +00004086IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087
4088
4089fi
4090
4091EGREP="$ac_cv_path_EGREP"
4092if test -z "$EGREP"; then
4093 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4094echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4095 { (exit 1); exit 1; }; }
4096fi
4097
Reid Spencera773bd52006-08-04 18:18:08 +00004098else
4099 ac_cv_path_EGREP=$EGREP
4100fi
4101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102
Reid Spencera773bd52006-08-04 18:18:08 +00004103 fi
4104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004105{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4106echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004107 EGREP="$ac_cv_path_EGREP"
4108
4109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004110{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4112if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004115 cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004121#include <stdlib.h>
4122#include <stdarg.h>
4123#include <string.h>
4124#include <float.h>
4125
John Criswell0c38eaf2003-09-10 15:17:25 +00004126int
4127main ()
4128{
4129
4130 ;
4131 return 0;
4132}
John Criswell7a73b802003-06-30 21:59:07 +00004133_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134rm -f conftest.$ac_objext
4135if { (ac_try="$ac_compile"
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004168 ac_cv_header_stdc=yes
4169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004170 echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004175
Reid Spencera773bd52006-08-04 18:18:08 +00004176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004177
4178if test $ac_cv_header_stdc = yes; then
4179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004186#include <string.h>
4187
4188_ACEOF
4189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190 $EGREP "memchr" >/dev/null 2>&1; then
4191 :
John Criswell7a73b802003-06-30 21:59:07 +00004192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f conftest*
4196
4197fi
4198
4199if test $ac_cv_header_stdc = yes; then
4200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004207#include <stdlib.h>
4208
4209_ACEOF
4210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004211 $EGREP "free" >/dev/null 2>&1; then
4212 :
John Criswell7a73b802003-06-30 21:59:07 +00004213else
4214 ac_cv_header_stdc=no
4215fi
4216rm -f conftest*
4217
4218fi
4219
4220if test $ac_cv_header_stdc = yes; then
4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004222 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004223 :
4224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225 cat >conftest.$ac_ext <<_ACEOF
4226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004230/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004231#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004232#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004233#if ((' ' & 0x0FF) == 0x020)
4234# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4235# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4236#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004237# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004238 (('a' <= (c) && (c) <= 'i') \
4239 || ('j' <= (c) && (c) <= 'r') \
4240 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004241# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4242#endif
4243
4244#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245int
4246main ()
4247{
4248 int i;
4249 for (i = 0; i < 256; i++)
4250 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004251 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004252 return 2;
4253 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004254}
4255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004256rm -f conftest$ac_exeext
4257if { (ac_try="$ac_link"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_link") 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 :
John Criswell7a73b802003-06-30 21:59:07 +00004277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004278 echo "$as_me: program exited with status $ac_status" >&5
4279echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282( exit $ac_status )
4283ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285rm -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 +00004286fi
4287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288
John Criswell7a73b802003-06-30 21:59:07 +00004289fi
4290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004293if test $ac_cv_header_stdc = yes; then
4294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004295cat >>confdefs.h <<\_ACEOF
4296#define STDC_HEADERS 1
4297_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004298
4299fi
4300
Reid Spencera773bd52006-08-04 18:18:08 +00004301# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302
4303
4304
4305
4306
4307
4308
4309
4310
Reid Spencera773bd52006-08-04 18:18:08 +00004311for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004313do
4314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320 cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h. */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h. */
4326$ac_includes_default
4327
4328#include <$ac_header>
4329_ACEOF
4330rm -f conftest.$ac_objext
4331if { (ac_try="$ac_compile"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4365else
4366 echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 eval "$as_ac_Header=no"
4370fi
4371
4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373fi
4374ac_res=`eval echo '${'$as_ac_Header'}'`
4375 { echo "$as_me:$LINENO: result: $ac_res" >&5
4376echo "${ECHO_T}$ac_res" >&6; }
4377if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004378 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004380_ACEOF
4381
4382fi
4383
4384done
4385
4386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4388echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4389if test "${ac_cv_c_bigendian+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392 # See if sys/param.h defines the BYTE_ORDER macro.
4393cat >conftest.$ac_ext <<_ACEOF
4394/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004395_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004398/* end confdefs.h. */
4399#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004401
4402int
4403main ()
4404{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4406 bogus endian macros
4407#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004408
4409 ;
4410 return 0;
4411}
4412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413rm -f conftest.$ac_objext
4414if { (ac_try="$ac_compile"
4415case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418esac
4419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4428 { (case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_try") 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_try") 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004447 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004448cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004453/* end confdefs.h. */
4454#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004456
4457int
4458main ()
4459{
4460#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461 not big endian
4462#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004463
4464 ;
4465 return 0;
4466}
4467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468rm -f conftest.$ac_objext
4469if { (ac_try="$ac_compile"
4470case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004502 ac_cv_c_bigendian=yes
4503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507 ac_cv_c_bigendian=no
4508fi
4509
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511else
4512 echo "$as_me: failed program was:" >&5
4513sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 # It does not; compile a test program.
4516if test "$cross_compiling" = yes; then
4517 # try to guess the endianness by grepping values into an object file
4518 ac_cv_c_bigendian=unknown
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004531int
4532main ()
4533{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004535 ;
4536 return 0;
4537}
4538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539rm -f conftest.$ac_objext
4540if { (ac_try="$ac_compile"
4541case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_compile") 2>conftest.er1
4547 ac_status=$?
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004574 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004575fi
4576if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4577 if test "$ac_cv_c_bigendian" = unknown; then
4578 ac_cv_c_bigendian=no
4579 else
4580 # finding both strings is unlikely to happen, but who knows?
4581 ac_cv_c_bigendian=unknown
4582 fi
4583fi
Reid Spencera773bd52006-08-04 18:18:08 +00004584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585 echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004588
Torok Edwin871384f2010-01-26 08:50:50 +00004589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590
Reid Spencera773bd52006-08-04 18:18:08 +00004591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004593 cat >conftest.$ac_ext <<_ACEOF
4594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004598/* end confdefs.h. */
4599$ac_includes_default
4600int
4601main ()
4602{
4603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 /* Are we little or big endian? From Harbison&Steele. */
4605 union
4606 {
4607 long int l;
4608 char c[sizeof (long int)];
4609 } u;
4610 u.l = 1;
4611 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004612
4613 ;
4614 return 0;
4615}
4616_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617rm -f conftest$ac_exeext
4618if { (ac_try="$ac_link"
4619case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622esac
4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_link") 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4628 { (case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_try") 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004637 ac_cv_c_bigendian=no
4638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004639 echo "$as_me: program exited with status $ac_status" >&5
4640echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643( exit $ac_status )
4644ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646rm -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 +00004647fi
4648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649
Reid Spencera773bd52006-08-04 18:18:08 +00004650fi
4651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4655echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4656case $ac_cv_c_bigendian in
4657 yes)
4658 ENDIAN=big
4659 ;;
4660 no)
4661 ENDIAN=little
4662 ;;
4663 *)
4664 { { echo "$as_me:$LINENO: error: unknown endianness
4665presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4666echo "$as_me: error: unknown endianness
4667presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4668 { (exit 1); exit 1; }; } ;;
4669esac
Reid Spencera773bd52006-08-04 18:18:08 +00004670
4671
4672if test "$cross_compiling" = yes; then
4673 LLVM_CROSS_COMPILING=1
4674
4675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4677echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4678if test "${ac_cv_build_exeext+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004680else
4681 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4682 ac_cv_build_exeext=.exe
4683else
4684 ac_build_prefix=${build_alias}-
4685
4686 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4687set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004692else
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 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 +00004703 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004705 break 2
4706 fi
4707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708done
Reid Spencera773bd52006-08-04 18:18:08 +00004709IFS=$as_save_IFS
4710
4711fi
4712fi
4713BUILD_CC=$ac_cv_prog_BUILD_CC
4714if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 { echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004720fi
4721
4722
4723 if test -z "$BUILD_CC"; then
4724 # Extract the first word of "gcc", so it can be a program name with args.
4725set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004730else
4731 if test -n "$BUILD_CC"; then
4732 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733else
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 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 +00004741 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004743 break 2
4744 fi
4745done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746done
Reid Spencera773bd52006-08-04 18:18:08 +00004747IFS=$as_save_IFS
4748
4749fi
4750fi
4751BUILD_CC=$ac_cv_prog_BUILD_CC
4752if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4754echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004756 { echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004758fi
4759
4760
4761 if test -z "$BUILD_CC"; then
4762 # Extract the first word of "cc", so it can be a program name with args.
4763set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004768else
4769 if test -n "$BUILD_CC"; then
4770 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4771else
4772 ac_prog_rejected=no
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 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 +00004780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4781 ac_prog_rejected=yes
4782 continue
4783 fi
4784 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004786 break 2
4787 fi
4788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789done
Reid Spencera773bd52006-08-04 18:18:08 +00004790IFS=$as_save_IFS
4791
4792if test $ac_prog_rejected = yes; then
4793 # We found a bogon in the path, so make sure we never use it.
4794 set dummy $ac_cv_prog_BUILD_CC
4795 shift
4796 if test $# != 0; then
4797 # We chose a different compiler from the bogus one.
4798 # However, it has the same basename, so the bogon will be chosen
4799 # first if we set BUILD_CC to just the basename; use the full file name.
4800 shift
4801 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4802 fi
4803fi
4804fi
4805fi
4806BUILD_CC=$ac_cv_prog_BUILD_CC
4807if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4809echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004811 { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004813fi
4814
4815
4816 fi
4817 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4819echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4820 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004821 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4822 rm -f conftest*
4823 echo 'int main () { return 0; }' > conftest.$ac_ext
4824 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004826 (eval $ac_build_link) 2>&5
4827 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004830 for file in conftest.*; do
4831 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004832 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004833 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4834 esac
4835 done
4836 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4838echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4839 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004840 fi
4841 rm -f conftest*
4842 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4843fi
4844fi
4845
4846BUILD_EXEEXT=""
4847test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4849echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004850ac_build_exeext=$BUILD_EXEEXT
4851
Jim Grosbach673612e2008-10-02 22:56:44 +00004852 ac_build_prefix=${build_alias}-
4853 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4854set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004859else
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 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 +00004870 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004872 break 2
4873 fi
4874done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875done
Jim Grosbach673612e2008-10-02 22:56:44 +00004876IFS=$as_save_IFS
4877
4878fi
4879fi
4880BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 { echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004887fi
4888
4889
4890 if test -z "$BUILD_CXX"; then
4891 # Extract the first word of "g++", so it can be a program name with args.
4892set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004897else
4898 if test -n "$BUILD_CXX"; then
4899 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 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 +00004908 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004910 break 2
4911 fi
4912done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004913done
Jim Grosbach673612e2008-10-02 22:56:44 +00004914IFS=$as_save_IFS
4915
4916fi
4917fi
4918BUILD_CXX=$ac_cv_prog_BUILD_CXX
4919if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4921echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004923 { echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004925fi
4926
4927
4928 if test -z "$BUILD_CXX"; then
4929 # Extract the first word of "c++", so it can be a program name with args.
4930set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4933if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004935else
4936 if test -n "$BUILD_CXX"; then
4937 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4938else
4939 ac_prog_rejected=no
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 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 +00004947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4948 ac_prog_rejected=yes
4949 continue
4950 fi
4951 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004953 break 2
4954 fi
4955done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956done
Jim Grosbach673612e2008-10-02 22:56:44 +00004957IFS=$as_save_IFS
4958
4959if test $ac_prog_rejected = yes; then
4960 # We found a bogon in the path, so make sure we never use it.
4961 set dummy $ac_cv_prog_BUILD_CXX
4962 shift
4963 if test $# != 0; then
4964 # We chose a different compiler from the bogus one.
4965 # However, it has the same basename, so the bogon will be chosen
4966 # first if we set BUILD_CXX to just the basename; use the full file name.
4967 shift
4968 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4969 fi
4970fi
4971fi
4972fi
4973BUILD_CXX=$ac_cv_prog_BUILD_CXX
4974if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004975 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4976echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004978 { echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004980fi
4981
4982
4983 fi
4984 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004985else
4986 LLVM_CROSS_COMPILING=0
4987
4988fi
4989
Dan Gohman56fb5f92010-08-04 16:25:01 +00004990if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004991 cvsbuild="yes"
4992 optimize="no"
4993 CVSBUILD=CVSBUILD=1
4994
4995else
4996 cvsbuild="no"
4997 optimize="yes"
4998fi
4999
5000
Eric Christopherbee515f2011-11-11 22:51:42 +00005001# Check whether --enable-libcpp was given.
5002if test "${enable_libcpp+set}" = set; then
5003 enableval=$enable_libcpp;
5004else
5005 enableval=default
5006fi
5007
5008case "$enableval" in
5009 yes) ENABLE_LIBCPP=1
5010 ;;
5011 no) ENABLE_LIBCPP=0
5012 ;;
5013 default) ENABLE_LIBCPP=0
5014;;
5015 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5016echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5017 { (exit 1); exit 1; }; } ;;
5018esac
5019
Reid Spencera773bd52006-08-04 18:18:08 +00005020# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005021if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005022 enableval=$enable_optimized;
5023else
5024 enableval=$optimize
5025fi
5026
5027if test ${enableval} = "no" ; then
5028 ENABLE_OPTIMIZED=
5029
5030else
5031 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5032
5033fi
5034
David Greene2a5a12c2009-04-17 14:50:39 +00005035# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005036if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005037 enableval=$enable_profiling;
5038else
5039 enableval="no"
5040fi
5041
5042if test ${enableval} = "no" ; then
5043 ENABLE_PROFILING=
5044
5045else
5046 ENABLE_PROFILING=ENABLE_PROFILING=1
5047
5048fi
5049
Reid Spencera773bd52006-08-04 18:18:08 +00005050# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005052 enableval=$enable_assertions;
5053else
5054 enableval="yes"
5055fi
5056
5057if test ${enableval} = "yes" ; then
5058 DISABLE_ASSERTIONS=
5059
5060else
5061 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5062
5063fi
5064
David Greenea696d242007-06-28 19:36:08 +00005065# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005067 enableval=$enable_expensive_checks;
5068else
5069 enableval="no"
5070fi
5071
5072if test ${enableval} = "yes" ; then
5073 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5074
5075 EXPENSIVE_CHECKS=yes
5076
5077else
5078 ENABLE_EXPENSIVE_CHECKS=
5079
5080 EXPENSIVE_CHECKS=no
5081
5082fi
5083
Reid Spencer8b2e1412006-11-17 03:32:33 +00005084# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005085if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005086 enableval=$enable_debug_runtime;
5087else
5088 enableval=no
5089fi
5090
5091if test ${enableval} = "no" ; then
5092 DEBUG_RUNTIME=
5093
5094else
5095 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5096
5097fi
5098
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005099# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005101 enableval=$enable_debug_symbols;
5102else
5103 enableval=no
5104fi
5105
5106if test ${enableval} = "no" ; then
5107 DEBUG_SYMBOLS=
5108
5109else
5110 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5111
5112fi
5113
Reid Spencera773bd52006-08-04 18:18:08 +00005114# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005116 enableval=$enable_jit;
5117else
5118 enableval=default
5119fi
5120
5121if test ${enableval} = "no"
5122then
5123 JIT=
5124
5125else
5126 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005127 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005128 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005129 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005130 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005131 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005132 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005133 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005134 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005135 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005136 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005137 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005138 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005139 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005140 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005141 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005142 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005143 Hexagon) TARGET_HAS_JIT=0
5144 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005145 MBlaze) TARGET_HAS_JIT=0
5146 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005147 NVPTX) TARGET_HAS_JIT=0
5148 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005149 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005150 ;;
5151 esac
5152fi
5153
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005154# Check whether --enable-docs was given.
5155if test "${enable_docs+set}" = set; then
5156 enableval=$enable_docs;
5157else
5158 enableval=default
5159fi
5160
5161case "$enableval" in
5162 yes) ENABLE_DOCS=1
5163 ;;
5164 no) ENABLE_DOCS=0
5165 ;;
5166 default) ENABLE_DOCS=1
5167 ;;
5168 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5169echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5170 { (exit 1); exit 1; }; } ;;
5171esac
5172
Reid Spencera773bd52006-08-04 18:18:08 +00005173# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005174if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005175 enableval=$enable_doxygen;
5176else
5177 enableval=default
5178fi
5179
5180case "$enableval" in
5181 yes) ENABLE_DOXYGEN=1
5182 ;;
5183 no) ENABLE_DOXYGEN=0
5184 ;;
5185 default) ENABLE_DOXYGEN=0
5186 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5188echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005190esac
5191
5192# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005193if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005194 enableval=$enable_threads;
5195else
Reid Spencer65c5d752006-11-05 17:08:18 +00005196 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005197fi
5198
5199case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005200 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005201 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005202 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005203 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005204 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005205 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5207echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005209esac
5210
Owen Andersona8603702009-05-19 22:18:56 +00005211cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005212#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005213_ACEOF
5214
5215
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005216# Check whether --enable-pthreads was given.
5217if test "${enable_pthreads+set}" = set; then
5218 enableval=$enable_pthreads;
5219else
5220 enableval=default
5221fi
5222
5223case "$enableval" in
5224 yes) ENABLE_PTHREADS=1
5225 ;;
5226 no) ENABLE_PTHREADS=0
5227 ;;
5228 default) ENABLE_PTHREADS=1
5229 ;;
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5231echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5233esac
5234
Reid Spencer89b0d992006-12-16 22:07:52 +00005235# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005236if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005237 enableval=$enable_pic;
5238else
5239 enableval=default
5240fi
5241
5242case "$enableval" in
5243 yes) ENABLE_PIC=1
5244 ;;
5245 no) ENABLE_PIC=0
5246 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005247 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005248 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5250echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5251 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005252esac
5253
5254cat >>confdefs.h <<_ACEOF
5255#define ENABLE_PIC $ENABLE_PIC
5256_ACEOF
5257
5258
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005259# Check whether --enable-shared was given.
5260if test "${enable_shared+set}" = set; then
5261 enableval=$enable_shared;
5262else
5263 enableval=default
5264fi
5265
5266case "$enableval" in
5267 yes) ENABLE_SHARED=1
5268 ;;
5269 no) ENABLE_SHARED=0
5270 ;;
5271 default) ENABLE_SHARED=0
5272 ;;
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5274echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5276esac
5277
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005278# Check whether --enable-embed-stdcxx was given.
5279if test "${enable_embed_stdcxx+set}" = set; then
5280 enableval=$enable_embed_stdcxx;
5281else
5282 enableval=default
5283fi
5284
5285case "$enableval" in
5286 yes) ENABLE_EMBED_STDCXX=1
5287 ;;
5288 no) ENABLE_EMBED_STDCXX=0
5289 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005290 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005291 ;;
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5293echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5295esac
5296
Daniel Dunbardd464df2010-05-10 20:11:56 +00005297# Check whether --enable-timestamps was given.
5298if test "${enable_timestamps+set}" = set; then
5299 enableval=$enable_timestamps;
5300else
5301 enableval=default
5302fi
5303
5304case "$enableval" in
5305 yes) ENABLE_TIMESTAMPS=1
5306 ;;
5307 no) ENABLE_TIMESTAMPS=0
5308 ;;
5309 default) ENABLE_TIMESTAMPS=1
5310 ;;
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5312echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5314esac
5315
5316cat >>confdefs.h <<_ACEOF
5317#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5318_ACEOF
5319
5320
Reid Spencera773bd52006-08-04 18:18:08 +00005321TARGETS_TO_BUILD=""
5322# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005323if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005324 enableval=$enable_targets;
5325else
5326 enableval=all
5327fi
5328
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005329if test "$enableval" = host-only ; then
5330 enableval=host
5331fi
Reid Spencera773bd52006-08-04 18:18:08 +00005332case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005333 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005334 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005336 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005340 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5341 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005342 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005343 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005344 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5345 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005346 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005347 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005348 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005349 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005350 host) case "$llvm_cv_target_arch" in
5351 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5354 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005355 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005357 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005358 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005359 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005361 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005362 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005363 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5364echo "$as_me: error: Can not set target to build" >&2;}
5365 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005366 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005367 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5368echo "$as_me: error: Unrecognized target $a_target" >&2;}
5369 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005370 esac
5371 done
5372 ;;
5373esac
Reid Spencera773bd52006-08-04 18:18:08 +00005374TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5375
5376
Douglas Gregor0711c302009-06-17 00:43:20 +00005377for a_target in $TARGETS_TO_BUILD; do
5378 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5379
5380cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005381#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5382_ACEOF
5383
5384 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5385 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005386 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005387 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005388 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5389 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5390 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005391 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5392 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5393 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005394
5395cat >>confdefs.h <<_ACEOF
5396#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005397_ACEOF
5398
5399
5400cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005401#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5402_ACEOF
5403
5404
5405cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005406#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005407_ACEOF
5408
5409
5410cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005411#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005412_ACEOF
5413
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005414 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005415
5416cat >>confdefs.h <<_ACEOF
5417#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5418_ACEOF
5419
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005420 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005421 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5422
5423cat >>confdefs.h <<_ACEOF
5424#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5425_ACEOF
5426
5427 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005428 fi
5429done
5430
Douglas Gregor1555a232009-06-16 20:12:29 +00005431LLVM_ENUM_TARGETS=""
5432LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005433LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005434LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005435for target_to_build in $TARGETS_TO_BUILD; do
5436 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005437 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005438 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5439 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005440 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5442 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005443 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5445 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005446done
5447
5448
5449
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005450
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005451
Reid Spencera773bd52006-08-04 18:18:08 +00005452
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005453# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005454if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005455 withval=$with_optimize_option;
5456else
5457 withval=default
5458fi
5459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460{ echo "$as_me:$LINENO: checking optimization flags" >&5
5461echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005462case "$withval" in
5463 default)
5464 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005465 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005466 MingW) optimize_option=-O2 ;;
5467 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005468 esac ;;
5469 *) optimize_option="$withval" ;;
5470esac
5471OPTIMIZE_OPTION=$optimize_option
5472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5474echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005475
5476
Reid Spencera773bd52006-08-04 18:18:08 +00005477# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005478if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005479 withval=$with_extra_options;
5480else
5481 withval=default
5482fi
5483
5484case "$withval" in
5485 default) EXTRA_OPTIONS= ;;
5486 *) EXTRA_OPTIONS=$withval ;;
5487esac
5488EXTRA_OPTIONS=$EXTRA_OPTIONS
5489
5490
Daniel Dunbared344d22011-06-16 22:30:41 +00005491
5492# Check whether --with-extra-ld-options was given.
5493if test "${with_extra_ld_options+set}" = set; then
5494 withval=$with_extra_ld_options;
5495else
5496 withval=default
5497fi
5498
5499case "$withval" in
5500 default) EXTRA_LD_OPTIONS= ;;
5501 *) EXTRA_LD_OPTIONS=$withval ;;
5502esac
5503EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5504
5505
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005506# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005507if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005508 enableval=$enable_bindings;
5509else
5510 enableval=default
5511fi
5512
5513BINDINGS_TO_BUILD=""
5514case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005515 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005516 all ) BINDINGS_TO_BUILD="ocaml" ;;
5517 none | no) BINDINGS_TO_BUILD="" ;;
5518 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519 case "$a_binding" in
5520 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005524 esac
5525 done
5526 ;;
5527esac
5528
Reid Spencera773bd52006-08-04 18:18:08 +00005529
Gordon Henriksenf0915682007-10-02 16:42:22 +00005530# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005531if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005532 withval=$with_ocaml_libdir;
5533else
5534 withval=auto
5535fi
5536
5537case "$withval" in
5538 auto) with_ocaml_libdir="$withval" ;;
5539 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005540 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005543esac
5544
5545
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005546# Check whether --with-clang-srcdir was given.
5547if test "${with_clang_srcdir+set}" = set; then
5548 withval=$with_clang_srcdir;
5549else
5550 withval="-"
5551fi
5552
5553case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005554 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005555 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5556 *) clang_src_root="$ac_pwd/$withval" ;;
5557esac
5558CLANG_SRC_ROOT=$clang_src_root
5559
5560
5561
Chandler Carruth6b241162010-10-19 08:21:25 +00005562# Check whether --with-clang-resource-dir was given.
5563if test "${with_clang_resource_dir+set}" = set; then
5564 withval=$with_clang_resource_dir;
5565else
5566 withval=""
5567fi
5568
5569
5570cat >>confdefs.h <<_ACEOF
5571#define CLANG_RESOURCE_DIR "$withval"
5572_ACEOF
5573
5574
5575
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005576# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005578 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005579else
5580 withval=""
5581fi
5582
5583
5584cat >>confdefs.h <<_ACEOF
5585#define C_INCLUDE_DIRS "$withval"
5586_ACEOF
5587
5588
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005589# Clang normally uses the system c++ headers and libraries. With this option,
5590# clang will use the ones provided by a gcc installation instead. This option should
5591# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005592
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005593# Check whether --with-gcc-toolchain was given.
5594if test "${with_gcc_toolchain+set}" = set; then
5595 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005596else
5597 withval=""
5598fi
5599
5600
5601cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005602#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005603_ACEOF
5604
5605
5606
Sebastian Pope4f1b372012-04-30 20:06:58 +00005607# Check whether --with-default-sysroot was given.
5608if test "${with_default_sysroot+set}" = set; then
5609 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005610else
5611 withval=""
5612fi
5613
5614
5615cat >>confdefs.h <<_ACEOF
5616#define DEFAULT_SYSROOT "$withval"
5617_ACEOF
5618
5619
5620
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005621# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005622if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005623 withval=$with_binutils_include;
5624else
5625 withval=default
5626fi
5627
5628case "$withval" in
5629 default) WITH_BINUTILS_INCDIR=default ;;
5630 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005631 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5632echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5633 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005634esac
5635if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5636 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5637
5638 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5639 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5641echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5642 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005643 fi
5644fi
5645
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005646
5647# Check whether --with-bug-report-url was given.
5648if test "${with_bug_report_url+set}" = set; then
5649 withval=$with_bug_report_url;
5650else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005651 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005652fi
5653
5654
5655cat >>confdefs.h <<_ACEOF
5656#define BUG_REPORT_URL "$withval"
5657_ACEOF
5658
5659
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005660# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005661if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005662 enableval=$enable_libffi; case "$enableval" in
5663 yes) llvm_cv_enable_libffi="yes" ;;
5664 no) llvm_cv_enable_libffi="no" ;;
5665 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005666echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5667 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005668 esac
5669else
5670 llvm_cv_enable_libffi=no
5671fi
5672
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005673
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005674
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005675# Check whether --with-internal-prefix was given.
5676if test "${with_internal_prefix+set}" = set; then
5677 withval=$with_internal_prefix;
5678else
5679 withval=""
5680fi
5681
5682INTERNAL_PREFIX=$withval
5683
5684
5685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005686{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5687echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5688if test "${lt_cv_path_NM+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005690else
5691 if test -n "$NM"; then
5692 # Let the user override the test.
5693 lt_cv_path_NM="$NM"
5694else
5695 lt_nm_to_check="${ac_tool_prefix}nm"
5696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5697 lt_nm_to_check="$lt_nm_to_check nm"
5698 fi
5699 for lt_tmp_nm in $lt_nm_to_check; do
5700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5702 IFS="$lt_save_ifs"
5703 test -z "$ac_dir" && ac_dir=.
5704 tmp_nm="$ac_dir/$lt_tmp_nm"
5705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5706 # Check to see if the nm accepts a BSD-compat flag.
5707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5708 # nm: unknown option "B" ignored
5709 # Tru64's nm complains that /dev/null is an invalid object file
5710 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5711 */dev/null* | *'Invalid file or object type'*)
5712 lt_cv_path_NM="$tmp_nm -B"
5713 break
5714 ;;
5715 *)
5716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5717 */dev/null*)
5718 lt_cv_path_NM="$tmp_nm -p"
5719 break
5720 ;;
5721 *)
5722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723 continue # so that we can try to find one that supports BSD flags
5724 ;;
5725 esac
5726 ;;
5727 esac
5728 fi
5729 done
5730 IFS="$lt_save_ifs"
5731 done
5732 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5733fi
5734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5736echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005737NM="$lt_cv_path_NM"
5738
5739
5740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741{ echo "$as_me:$LINENO: checking for GNU make" >&5
5742echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5743if test "${llvm_cv_gnu_make_command+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005745else
5746 llvm_cv_gnu_make_command=''
5747 for a in "$MAKE" make gmake gnumake ; do
5748 if test -z "$a" ; then continue ; fi ;
5749 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5750 then
5751 llvm_cv_gnu_make_command=$a ;
5752 break;
5753 fi
5754 done
5755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005756{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5757echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005758 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5759 ifGNUmake='' ;
5760 else
5761 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5763echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005764 fi
5765
5766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5768echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005769LN_S=$as_ln_s
5770if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 { echo "$as_me:$LINENO: result: yes" >&5
5772echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5775echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005776fi
5777
5778# Extract the first word of "cmp", so it can be a program name with args.
5779set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782if test "${ac_cv_path_CMP+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005784else
5785 case $CMP in
5786 [\\/]* | ?:[\\/]*)
5787 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5788 ;;
5789 *)
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 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 +00005797 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005799 break 2
5800 fi
5801done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802done
Reid Spencera773bd52006-08-04 18:18:08 +00005803IFS=$as_save_IFS
5804
5805 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5806 ;;
5807esac
5808fi
5809CMP=$ac_cv_path_CMP
5810if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811 { echo "$as_me:$LINENO: result: $CMP" >&5
5812echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814 { echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005816fi
5817
5818
5819# Extract the first word of "cp", so it can be a program name with args.
5820set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823if test "${ac_cv_path_CP+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005825else
5826 case $CP in
5827 [\\/]* | ?:[\\/]*)
5828 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5829 ;;
5830 *)
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 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 +00005838 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005840 break 2
5841 fi
5842done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843done
Reid Spencera773bd52006-08-04 18:18:08 +00005844IFS=$as_save_IFS
5845
5846 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5847 ;;
5848esac
5849fi
5850CP=$ac_cv_path_CP
5851if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 { echo "$as_me:$LINENO: result: $CP" >&5
5853echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 { echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005857fi
5858
5859
5860# Extract the first word of "date", so it can be a program name with args.
5861set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864if test "${ac_cv_path_DATE+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005866else
5867 case $DATE in
5868 [\\/]* | ?:[\\/]*)
5869 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5870 ;;
5871 *)
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 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 +00005879 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005881 break 2
5882 fi
5883done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884done
Reid Spencera773bd52006-08-04 18:18:08 +00005885IFS=$as_save_IFS
5886
5887 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5888 ;;
5889esac
5890fi
5891DATE=$ac_cv_path_DATE
5892if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893 { echo "$as_me:$LINENO: result: $DATE" >&5
5894echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896 { echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005898fi
5899
5900
5901# Extract the first word of "find", so it can be a program name with args.
5902set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905if test "${ac_cv_path_FIND+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005907else
5908 case $FIND in
5909 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5911 ;;
5912 *)
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 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 +00005920 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005922 break 2
5923 fi
5924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925done
Reid Spencera773bd52006-08-04 18:18:08 +00005926IFS=$as_save_IFS
5927
5928 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5929 ;;
5930esac
5931fi
5932FIND=$ac_cv_path_FIND
5933if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 { echo "$as_me:$LINENO: result: $FIND" >&5
5935echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937 { echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005939fi
5940
5941
5942# Extract the first word of "grep", so it can be a program name with args.
5943set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946if test "${ac_cv_path_GREP+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005948else
5949 case $GREP in
5950 [\\/]* | ?:[\\/]*)
5951 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5952 ;;
5953 *)
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 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 +00005961 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005963 break 2
5964 fi
5965done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005966done
Reid Spencera773bd52006-08-04 18:18:08 +00005967IFS=$as_save_IFS
5968
5969 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5970 ;;
5971esac
5972fi
5973GREP=$ac_cv_path_GREP
5974if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975 { echo "$as_me:$LINENO: result: $GREP" >&5
5976echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 { echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005980fi
5981
5982
5983# Extract the first word of "mkdir", so it can be a program name with args.
5984set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987if test "${ac_cv_path_MKDIR+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005989else
5990 case $MKDIR in
5991 [\\/]* | ?:[\\/]*)
5992 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5993 ;;
5994 *)
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 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 +00006002 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006004 break 2
6005 fi
6006done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006007done
Reid Spencera773bd52006-08-04 18:18:08 +00006008IFS=$as_save_IFS
6009
6010 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6011 ;;
6012esac
6013fi
6014MKDIR=$ac_cv_path_MKDIR
6015if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6017echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019 { echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006021fi
6022
6023
6024# Extract the first word of "mv", so it can be a program name with args.
6025set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028if test "${ac_cv_path_MV+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006030else
6031 case $MV in
6032 [\\/]* | ?:[\\/]*)
6033 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6034 ;;
6035 *)
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 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 +00006043 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006045 break 2
6046 fi
6047done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048done
Reid Spencera773bd52006-08-04 18:18:08 +00006049IFS=$as_save_IFS
6050
6051 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6052 ;;
6053esac
6054fi
6055MV=$ac_cv_path_MV
6056if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 { echo "$as_me:$LINENO: result: $MV" >&5
6058echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 { echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006062fi
6063
6064
6065if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070if test "${ac_cv_prog_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006072else
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 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 +00006083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006085 break 2
6086 fi
6087done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088done
Reid Spencera773bd52006-08-04 18:18:08 +00006089IFS=$as_save_IFS
6090
6091fi
6092fi
6093RANLIB=$ac_cv_prog_RANLIB
6094if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6096echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098 { echo "$as_me:$LINENO: result: no" >&5
6099echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006100fi
6101
6102
6103fi
6104if test -z "$ac_cv_prog_RANLIB"; then
6105 ac_ct_RANLIB=$RANLIB
6106 # Extract the first word of "ranlib", so it can be a program name with args.
6107set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006112else
6113 if test -n "$ac_ct_RANLIB"; then
6114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 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 +00006123 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006125 break 2
6126 fi
6127done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128done
Reid Spencera773bd52006-08-04 18:18:08 +00006129IFS=$as_save_IFS
6130
6131fi
6132fi
6133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6134if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6136echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138 { echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006140fi
6141
6142 if test "x$ac_ct_RANLIB" = x; then
6143 RANLIB=":"
6144 else
6145 case $cross_compiling:$ac_tool_warned in
6146yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148whose name does not start with the host triplet. If you think this
6149configuration is useful to you, please write to autoconf@gnu.org." >&5
6150echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151whose name does not start with the host triplet. If you think this
6152configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006153ac_tool_warned=yes ;;
6154esac
6155 RANLIB=$ac_ct_RANLIB
6156 fi
6157else
6158 RANLIB="$ac_cv_prog_RANLIB"
6159fi
6160
Torok Edwin871384f2010-01-26 08:50:50 +00006161if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6166if test "${ac_cv_prog_AR+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006168else
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 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 +00006179 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006181 break 2
6182 fi
6183done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184done
Torok Edwin871384f2010-01-26 08:50:50 +00006185IFS=$as_save_IFS
6186
6187fi
6188fi
6189AR=$ac_cv_prog_AR
6190if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191 { echo "$as_me:$LINENO: result: $AR" >&5
6192echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194 { echo "$as_me:$LINENO: result: no" >&5
6195echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006196fi
6197
6198
6199fi
6200if test -z "$ac_cv_prog_AR"; then
6201 ac_ct_AR=$AR
6202 # Extract the first word of "ar", so it can be a program name with args.
6203set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6206if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006208else
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 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 +00006219 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006221 break 2
6222 fi
6223done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224done
Torok Edwin871384f2010-01-26 08:50:50 +00006225IFS=$as_save_IFS
6226
6227fi
6228fi
6229ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234 { echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006236fi
6237
6238 if test "x$ac_ct_AR" = x; then
6239 AR="false"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6244whose name does not start with the host triplet. If you think this
6245configuration is useful to you, please write to autoconf@gnu.org." >&5
6246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6247whose name does not start with the host triplet. If you think this
6248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006249ac_tool_warned=yes ;;
6250esac
6251 AR=$ac_ct_AR
6252 fi
6253else
6254 AR="$ac_cv_prog_AR"
6255fi
6256
Reid Spencera773bd52006-08-04 18:18:08 +00006257# Extract the first word of "rm", so it can be a program name with args.
6258set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261if test "${ac_cv_path_RM+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006263else
6264 case $RM in
6265 [\\/]* | ?:[\\/]*)
6266 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6267 ;;
6268 *)
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 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 +00006276 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006278 break 2
6279 fi
6280done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281done
Reid Spencera773bd52006-08-04 18:18:08 +00006282IFS=$as_save_IFS
6283
6284 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6285 ;;
6286esac
6287fi
6288RM=$ac_cv_path_RM
6289if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 { echo "$as_me:$LINENO: result: $RM" >&5
6291echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 { echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006295fi
6296
6297
6298# Extract the first word of "sed", so it can be a program name with args.
6299set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302if test "${ac_cv_path_SED+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006304else
6305 case $SED in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6308 ;;
6309 *)
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 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 +00006317 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006319 break 2
6320 fi
6321done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322done
Reid Spencera773bd52006-08-04 18:18:08 +00006323IFS=$as_save_IFS
6324
6325 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6326 ;;
6327esac
6328fi
6329SED=$ac_cv_path_SED
6330if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 { echo "$as_me:$LINENO: result: $SED" >&5
6332echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 { echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006336fi
6337
6338
6339# Extract the first word of "tar", so it can be a program name with args.
6340set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343if test "${ac_cv_path_TAR+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006345else
6346 case $TAR in
6347 [\\/]* | ?:[\\/]*)
6348 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6349 ;;
6350 *)
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 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 +00006358 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006360 break 2
6361 fi
6362done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363done
Reid Spencera773bd52006-08-04 18:18:08 +00006364IFS=$as_save_IFS
6365
6366 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6367 ;;
6368esac
6369fi
6370TAR=$ac_cv_path_TAR
6371if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 { echo "$as_me:$LINENO: result: $TAR" >&5
6373echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 { echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006377fi
6378
6379
6380# Extract the first word of "pwd", so it can be a program name with args.
6381set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384if test "${ac_cv_path_BINPWD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006386else
6387 case $BINPWD in
6388 [\\/]* | ?:[\\/]*)
6389 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6390 ;;
6391 *)
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 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 +00006399 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006401 break 2
6402 fi
6403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404done
Reid Spencera773bd52006-08-04 18:18:08 +00006405IFS=$as_save_IFS
6406
6407 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6408 ;;
6409esac
6410fi
6411BINPWD=$ac_cv_path_BINPWD
6412if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6414echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006418fi
6419
6420
6421
6422# Extract the first word of "Graphviz", so it can be a program name with args.
6423set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006428else
6429 case $GRAPHVIZ in
6430 [\\/]* | ?:[\\/]*)
6431 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6432 ;;
6433 *)
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 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 +00006441 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006443 break 2
6444 fi
6445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446done
Reid Spencera773bd52006-08-04 18:18:08 +00006447IFS=$as_save_IFS
6448
6449 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6450 ;;
6451esac
6452fi
6453GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6454if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6456echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458 { echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006460fi
6461
6462
6463if test "$GRAPHVIZ" != "echo Graphviz" ; then
6464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465cat >>confdefs.h <<\_ACEOF
6466#define HAVE_GRAPHVIZ 1
6467_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006468
Jeff Cohen28783c32007-01-12 18:22:38 +00006469 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006470 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6471 fi
6472
6473cat >>confdefs.h <<_ACEOF
6474#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6475_ACEOF
6476
6477fi
6478# Extract the first word of "dot", so it can be a program name with args.
6479set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482if test "${ac_cv_path_DOT+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006484else
6485 case $DOT in
6486 [\\/]* | ?:[\\/]*)
6487 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6488 ;;
6489 *)
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 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 +00006497 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006499 break 2
6500 fi
6501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502done
Reid Spencera773bd52006-08-04 18:18:08 +00006503IFS=$as_save_IFS
6504
6505 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6506 ;;
6507esac
6508fi
6509DOT=$ac_cv_path_DOT
6510if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511 { echo "$as_me:$LINENO: result: $DOT" >&5
6512echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006514 { echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006516fi
6517
6518
6519if test "$DOT" != "echo dot" ; then
6520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521cat >>confdefs.h <<\_ACEOF
6522#define HAVE_DOT 1
6523_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006524
Jeff Cohen28783c32007-01-12 18:22:38 +00006525 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006526 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6527 fi
6528
6529cat >>confdefs.h <<_ACEOF
6530#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6531_ACEOF
6532
6533fi
David Greenef0b9eff2009-07-09 17:16:26 +00006534# Extract the first word of "fdp", so it can be a program name with args.
6535set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538if test "${ac_cv_path_FDP+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006540else
6541 case $FDP in
6542 [\\/]* | ?:[\\/]*)
6543 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6544 ;;
6545 *)
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 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 +00006553 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006555 break 2
6556 fi
6557done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558done
David Greenef0b9eff2009-07-09 17:16:26 +00006559IFS=$as_save_IFS
6560
6561 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6562 ;;
6563esac
6564fi
6565FDP=$ac_cv_path_FDP
6566if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006567 { echo "$as_me:$LINENO: result: $FDP" >&5
6568echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006570 { echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006572fi
6573
6574
6575if test "$FDP" != "echo fdp" ; then
6576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577cat >>confdefs.h <<\_ACEOF
6578#define HAVE_FDP 1
6579_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006580
6581 if test "$llvm_cv_os_type" = "MingW" ; then
6582 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6583 fi
6584
6585cat >>confdefs.h <<_ACEOF
6586#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6587_ACEOF
6588
6589fi
6590# Extract the first word of "neato", so it can be a program name with args.
6591set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594if test "${ac_cv_path_NEATO+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006596else
6597 case $NEATO in
6598 [\\/]* | ?:[\\/]*)
6599 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6600 ;;
6601 *)
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 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 +00006609 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006611 break 2
6612 fi
6613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614done
David Greenef0b9eff2009-07-09 17:16:26 +00006615IFS=$as_save_IFS
6616
6617 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6618 ;;
6619esac
6620fi
6621NEATO=$ac_cv_path_NEATO
6622if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623 { echo "$as_me:$LINENO: result: $NEATO" >&5
6624echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626 { echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006628fi
6629
6630
6631if test "$NEATO" != "echo neato" ; then
6632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633cat >>confdefs.h <<\_ACEOF
6634#define HAVE_NEATO 1
6635_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006636
6637 if test "$llvm_cv_os_type" = "MingW" ; then
6638 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6639 fi
6640
6641cat >>confdefs.h <<_ACEOF
6642#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6643_ACEOF
6644
6645fi
6646# Extract the first word of "twopi", so it can be a program name with args.
6647set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650if test "${ac_cv_path_TWOPI+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006652else
6653 case $TWOPI in
6654 [\\/]* | ?:[\\/]*)
6655 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6656 ;;
6657 *)
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 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 +00006665 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006667 break 2
6668 fi
6669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670done
David Greenef0b9eff2009-07-09 17:16:26 +00006671IFS=$as_save_IFS
6672
6673 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6674 ;;
6675esac
6676fi
6677TWOPI=$ac_cv_path_TWOPI
6678if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6680echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682 { echo "$as_me:$LINENO: result: no" >&5
6683echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006684fi
6685
6686
6687if test "$TWOPI" != "echo twopi" ; then
6688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689cat >>confdefs.h <<\_ACEOF
6690#define HAVE_TWOPI 1
6691_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006692
6693 if test "$llvm_cv_os_type" = "MingW" ; then
6694 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6695 fi
6696
6697cat >>confdefs.h <<_ACEOF
6698#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6699_ACEOF
6700
6701fi
6702# Extract the first word of "circo", so it can be a program name with args.
6703set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706if test "${ac_cv_path_CIRCO+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006708else
6709 case $CIRCO in
6710 [\\/]* | ?:[\\/]*)
6711 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6712 ;;
6713 *)
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 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 +00006721 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006723 break 2
6724 fi
6725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726done
David Greenef0b9eff2009-07-09 17:16:26 +00006727IFS=$as_save_IFS
6728
6729 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6730 ;;
6731esac
6732fi
6733CIRCO=$ac_cv_path_CIRCO
6734if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6736echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006738 { echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006740fi
6741
6742
6743if test "$CIRCO" != "echo circo" ; then
6744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745cat >>confdefs.h <<\_ACEOF
6746#define HAVE_CIRCO 1
6747_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006748
6749 if test "$llvm_cv_os_type" = "MingW" ; then
6750 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6751 fi
6752
6753cat >>confdefs.h <<_ACEOF
6754#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6755_ACEOF
6756
6757fi
Reid Spencera773bd52006-08-04 18:18:08 +00006758for ac_prog in gv gsview32
6759do
6760 # Extract the first word of "$ac_prog", so it can be a program name with args.
6761set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764if test "${ac_cv_path_GV+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006766else
6767 case $GV in
6768 [\\/]* | ?:[\\/]*)
6769 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6770 ;;
6771 *)
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 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 +00006779 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006781 break 2
6782 fi
6783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784done
Reid Spencera773bd52006-08-04 18:18:08 +00006785IFS=$as_save_IFS
6786
6787 ;;
6788esac
6789fi
6790GV=$ac_cv_path_GV
6791if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792 { echo "$as_me:$LINENO: result: $GV" >&5
6793echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006795 { echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006797fi
6798
6799
6800 test -n "$GV" && break
6801done
6802test -n "$GV" || GV="echo gv"
6803
6804if test "$GV" != "echo gv" ; then
6805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806cat >>confdefs.h <<\_ACEOF
6807#define HAVE_GV 1
6808_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006809
Jeff Cohen28783c32007-01-12 18:22:38 +00006810 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006811 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6812 fi
6813
6814cat >>confdefs.h <<_ACEOF
6815#define LLVM_PATH_GV "$GV${EXEEXT}"
6816_ACEOF
6817
6818fi
6819# Extract the first word of "dotty", so it can be a program name with args.
6820set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823if test "${ac_cv_path_DOTTY+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006825else
6826 case $DOTTY in
6827 [\\/]* | ?:[\\/]*)
6828 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6829 ;;
6830 *)
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 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 +00006838 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006840 break 2
6841 fi
6842done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843done
Reid Spencera773bd52006-08-04 18:18:08 +00006844IFS=$as_save_IFS
6845
6846 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6847 ;;
6848esac
6849fi
6850DOTTY=$ac_cv_path_DOTTY
6851if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006852 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6853echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855 { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006857fi
6858
6859
6860if test "$DOTTY" != "echo dotty" ; then
6861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862cat >>confdefs.h <<\_ACEOF
6863#define HAVE_DOTTY 1
6864_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006865
Jeff Cohen28783c32007-01-12 18:22:38 +00006866 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006867 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6868 fi
6869
6870cat >>confdefs.h <<_ACEOF
6871#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6872_ACEOF
6873
6874fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006875# Extract the first word of "xdot.py", so it can be a program name with args.
6876set dummy xdot.py; ac_word=$2
6877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879if test "${ac_cv_path_XDOT_PY+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
6882 case $XDOT_PY in
6883 [\\/]* | ?:[\\/]*)
6884 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6885 ;;
6886 *)
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898done
6899done
6900IFS=$as_save_IFS
6901
6902 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6903 ;;
6904esac
6905fi
6906XDOT_PY=$ac_cv_path_XDOT_PY
6907if test -n "$XDOT_PY"; then
6908 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6909echo "${ECHO_T}$XDOT_PY" >&6; }
6910else
6911 { echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6; }
6913fi
6914
6915
6916if test "$XDOT_PY" != "echo xdot.py" ; then
6917
6918cat >>confdefs.h <<\_ACEOF
6919#define HAVE_XDOT_PY 1
6920_ACEOF
6921
6922 if test "$llvm_cv_os_type" = "MingW" ; then
6923 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6924 fi
6925
6926cat >>confdefs.h <<_ACEOF
6927#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6928_ACEOF
6929
6930fi
Reid Spencera773bd52006-08-04 18:18:08 +00006931
Reid Spencera773bd52006-08-04 18:18:08 +00006932# Find a good install program. We prefer a C program (faster),
6933# so one script is as good as another. But avoid the broken or
6934# incompatible versions:
6935# SysV /etc/install, /usr/sbin/install
6936# SunOS /usr/etc/install
6937# IRIX /sbin/install
6938# AIX /bin/install
6939# AmigaOS /C/install, which installs bootblocks on floppy discs
6940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6941# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6943# OS/2's system install, which has a completely different semantic
6944# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6946echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006947if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948if test "${ac_cv_path_install+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006950else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 # Account for people who put trailing slashes in PATH elements.
6957case $as_dir/ in
6958 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006961 /usr/ucb/* ) ;;
6962 *)
6963 # OSF1 and SCO ODT 3.0 have their own names for install.
6964 # Don't use installbsd from OSF since it installs stuff as root
6965 # by default.
6966 for ac_prog in ginstall scoinst install; do
6967 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968 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 +00006969 if test $ac_prog = install &&
6970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6971 # AIX install. It has an incompatible calling convention.
6972 :
6973 elif test $ac_prog = install &&
6974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975 # program-specific install script used by HP pwplus--don't use.
6976 :
6977 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6979 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006980 fi
6981 fi
6982 done
6983 done
6984 ;;
6985esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986done
Reid Spencera773bd52006-08-04 18:18:08 +00006987IFS=$as_save_IFS
6988
6989
6990fi
6991 if test "${ac_cv_path_install+set}" = set; then
6992 INSTALL=$ac_cv_path_install
6993 else
6994 # As a last resort, use the slow shell script. Don't cache a
6995 # value for INSTALL within a source directory, because that will
6996 # break other packages using the cache if that directory is
6997 # removed, or if the value is a relative name.
6998 INSTALL=$ac_install_sh
6999 fi
7000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7002echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007003
7004# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7005# It thinks the first close brace ends the variable substitution.
7006test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7007
7008test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7009
7010test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7011
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007012case "$INSTALL" in
7013 [\\/$]* | ?:[\\/]* ) ;;
7014 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7015esac
Reid Spencera773bd52006-08-04 18:18:08 +00007016
7017# Extract the first word of "bzip2", so it can be a program name with args.
7018set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_BZIP2+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007023else
7024 case $BZIP2 in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 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 +00007036 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007038 break 2
7039 fi
7040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041done
Reid Spencera773bd52006-08-04 18:18:08 +00007042IFS=$as_save_IFS
7043
Reid Spencera773bd52006-08-04 18:18:08 +00007044 ;;
7045esac
7046fi
7047BZIP2=$ac_cv_path_BZIP2
7048if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052 { echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007054fi
7055
7056
mike-m68cb3192010-05-06 23:45:43 +00007057# Extract the first word of "cat", so it can be a program name with args.
7058set dummy cat; ac_word=$2
7059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_path_CAT+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 case $CAT in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082IFS=$as_save_IFS
7083
7084 ;;
7085esac
7086fi
7087CAT=$ac_cv_path_CAT
7088if test -n "$CAT"; then
7089 { echo "$as_me:$LINENO: result: $CAT" >&5
7090echo "${ECHO_T}$CAT" >&6; }
7091else
7092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
7094fi
7095
7096
Reid Spencera773bd52006-08-04 18:18:08 +00007097# Extract the first word of "doxygen", so it can be a program name with args.
7098set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_path_DOXYGEN+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007103else
7104 case $DOXYGEN in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 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 +00007116 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007118 break 2
7119 fi
7120done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121done
Reid Spencera773bd52006-08-04 18:18:08 +00007122IFS=$as_save_IFS
7123
Reid Spencera773bd52006-08-04 18:18:08 +00007124 ;;
7125esac
7126fi
7127DOXYGEN=$ac_cv_path_DOXYGEN
7128if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007129 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7130echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007134fi
7135
7136
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007137# Extract the first word of "groff", so it can be a program name with args.
7138set dummy groff; ac_word=$2
7139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_path_GROFF+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144 case $GROFF in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7147 ;;
7148 *)
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160done
7161done
7162IFS=$as_save_IFS
7163
7164 ;;
7165esac
7166fi
7167GROFF=$ac_cv_path_GROFF
7168if test -n "$GROFF"; then
7169 { echo "$as_me:$LINENO: result: $GROFF" >&5
7170echo "${ECHO_T}$GROFF" >&6; }
7171else
7172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
7174fi
7175
7176
Reid Spencera773bd52006-08-04 18:18:08 +00007177# Extract the first word of "gzip", so it can be a program name with args.
7178set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007181if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007183else
Eric Christopher031d3072010-12-10 01:31:51 +00007184 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007185 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007186 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007187 ;;
7188 *)
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 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 +00007196 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007198 break 2
7199 fi
7200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201done
Reid Spencera773bd52006-08-04 18:18:08 +00007202IFS=$as_save_IFS
7203
Reid Spencera773bd52006-08-04 18:18:08 +00007204 ;;
7205esac
7206fi
Eric Christopher031d3072010-12-10 01:31:51 +00007207GZIPBIN=$ac_cv_path_GZIPBIN
7208if test -n "$GZIPBIN"; then
7209 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7210echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 { echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007214fi
7215
7216
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007217# Extract the first word of "pdfroff", so it can be a program name with args.
7218set dummy pdfroff; ac_word=$2
7219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221if test "${ac_cv_path_PDFROFF+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224 case $PDFROFF in
7225 [\\/]* | ?:[\\/]*)
7226 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7227 ;;
7228 *)
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240done
7241done
7242IFS=$as_save_IFS
7243
7244 ;;
7245esac
7246fi
7247PDFROFF=$ac_cv_path_PDFROFF
7248if test -n "$PDFROFF"; then
7249 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7250echo "${ECHO_T}$PDFROFF" >&6; }
7251else
7252 { echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6; }
7254fi
7255
7256
Reid Spencera773bd52006-08-04 18:18:08 +00007257# Extract the first word of "zip", so it can be a program name with args.
7258set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261if test "${ac_cv_path_ZIP+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007263else
7264 case $ZIP in
7265 [\\/]* | ?:[\\/]*)
7266 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7267 ;;
7268 *)
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 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 +00007276 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007278 break 2
7279 fi
7280done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281done
Reid Spencera773bd52006-08-04 18:18:08 +00007282IFS=$as_save_IFS
7283
Reid Spencera773bd52006-08-04 18:18:08 +00007284 ;;
7285esac
7286fi
7287ZIP=$ac_cv_path_ZIP
7288if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289 { echo "$as_me:$LINENO: result: $ZIP" >&5
7290echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292 { echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007294fi
7295
7296
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007297for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007298do
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303if test "${ac_cv_path_OCAMLC+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007305else
7306 case $OCAMLC in
7307 [\\/]* | ?:[\\/]*)
7308 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7309 ;;
7310 *)
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 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 +00007318 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007320 break 2
7321 fi
7322done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007324IFS=$as_save_IFS
7325
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007326 ;;
7327esac
7328fi
7329OCAMLC=$ac_cv_path_OCAMLC
7330if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7332echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007336fi
7337
7338
Gordon Henriksene7072162008-03-07 18:20:01 +00007339 test -n "$OCAMLC" && break
7340done
7341
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007342for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007343do
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007350else
7351 case $OCAMLOPT in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007363 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007365 break 2
7366 fi
7367done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007369IFS=$as_save_IFS
7370
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007371 ;;
7372esac
7373fi
7374OCAMLOPT=$ac_cv_path_OCAMLOPT
7375if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7377echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007381fi
7382
7383
Gordon Henriksene7072162008-03-07 18:20:01 +00007384 test -n "$OCAMLOPT" && break
7385done
7386
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007387for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007388do
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007395else
7396 case $OCAMLDEP in
7397 [\\/]* | ?:[\\/]*)
7398 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7399 ;;
7400 *)
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 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 +00007408 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007410 break 2
7411 fi
7412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007414IFS=$as_save_IFS
7415
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007416 ;;
7417esac
7418fi
7419OCAMLDEP=$ac_cv_path_OCAMLDEP
7420if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7422echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424 { echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007426fi
7427
7428
Gordon Henriksene7072162008-03-07 18:20:01 +00007429 test -n "$OCAMLDEP" && break
7430done
7431
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007432for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007433do
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007440else
7441 case $OCAMLDOC in
7442 [\\/]* | ?:[\\/]*)
7443 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7444 ;;
7445 *)
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 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 +00007453 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007455 break 2
7456 fi
7457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007459IFS=$as_save_IFS
7460
7461 ;;
7462esac
7463fi
7464OCAMLDOC=$ac_cv_path_OCAMLDOC
7465if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7467echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 { echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007471fi
7472
7473
7474 test -n "$OCAMLDOC" && break
7475done
7476
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007477for ac_prog in gas as
7478do
7479 # Extract the first word of "$ac_prog", so it can be a program name with args.
7480set dummy $ac_prog; ac_word=$2
7481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483if test "${ac_cv_path_GAS+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485else
7486 case $GAS in
7487 [\\/]* | ?:[\\/]*)
7488 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7489 ;;
7490 *)
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503done
7504IFS=$as_save_IFS
7505
7506 ;;
7507esac
7508fi
7509GAS=$ac_cv_path_GAS
7510if test -n "$GAS"; then
7511 { echo "$as_me:$LINENO: result: $GAS" >&5
7512echo "${ECHO_T}$GAS" >&6; }
7513else
7514 { echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6; }
7516fi
7517
7518
7519 test -n "$GAS" && break
7520done
7521
Reid Spencera773bd52006-08-04 18:18:08 +00007522
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007523{ echo "$as_me:$LINENO: checking for linker version" >&5
7524echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7525if test "${llvm_cv_link_version+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528
7529 version_string="$(ld -v 2>&1 | head -1)"
7530
7531 # Check for ld64.
7532 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007533 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007534 else
7535 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7536 fi
7537
7538fi
7539{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7540echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7541
7542cat >>confdefs.h <<_ACEOF
7543#define HOST_LINK_VERSION "$llvm_cv_link_version"
7544_ACEOF
7545
7546
7547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7549echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7550if test "${llvm_cv_link_use_r+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007552else
7553 ac_ext=c
7554ac_cpp='$CPP $CPPFLAGS'
7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559 oldcflags="$CFLAGS"
7560 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h. */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007566/* end confdefs.h. */
7567
7568int
7569main ()
7570{
Dan Gohman39ed6782010-04-25 00:12:20 +00007571
Reid Spencera773bd52006-08-04 18:18:08 +00007572 ;
7573 return 0;
7574}
7575_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576rm -f conftest.$ac_objext conftest$ac_exeext
7577if { (ac_try="$ac_link"
7578case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581esac
7582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_link") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594esac
7595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604esac
7605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_try") 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007610 llvm_cv_link_use_r=yes
7611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617
Bill Wendlingebcceee2009-04-18 11:20:33 +00007618rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007620 CFLAGS="$oldcflags"
7621 ac_ext=c
7622ac_cpp='$CPP $CPPFLAGS'
7623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627
7628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7630echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007631if test "$llvm_cv_link_use_r" = yes ; then
7632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633cat >>confdefs.h <<\_ACEOF
7634#define HAVE_LINK_R 1
7635_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007636
7637 fi
7638
7639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7641echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7642if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007644else
7645 ac_ext=c
7646ac_cpp='$CPP $CPPFLAGS'
7647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651 oldcflags="$CFLAGS"
7652 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 cat >conftest.$ac_ext <<_ACEOF
7654/* confdefs.h. */
7655_ACEOF
7656cat confdefs.h >>conftest.$ac_ext
7657cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007658/* end confdefs.h. */
7659
7660int
7661main ()
7662{
Dan Gohman39ed6782010-04-25 00:12:20 +00007663
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007664 ;
7665 return 0;
7666}
7667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668rm -f conftest.$ac_objext conftest$ac_exeext
7669if { (ac_try="$ac_link"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_link") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7683 { (case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_try") 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007702 llvm_cv_link_use_export_dynamic=yes
7703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704 echo "$as_me: failed program was:" >&5
7705sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709
Bill Wendlingebcceee2009-04-18 11:20:33 +00007710rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007712 CFLAGS="$oldcflags"
7713 ac_ext=c
7714ac_cpp='$CPP $CPPFLAGS'
7715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719
7720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7722echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007723if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725cat >>confdefs.h <<\_ACEOF
7726#define HAVE_LINK_EXPORT_DYNAMIC 1
7727_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007728
7729 fi
7730
7731
Dan Gohmanda612d62010-06-01 14:56:56 +00007732{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7733echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7734if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737 ac_ext=c
7738ac_cpp='$CPP $CPPFLAGS'
7739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743 oldcflags="$CFLAGS"
7744
7745 # The following code is from the autoconf manual,
7746 # "11.13: Limitations of Usual Tools".
7747 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7748 # Use mktemp if possible; otherwise fall back on mkdir,
7749 # with $RANDOM to make collisions less likely.
7750 : ${TMPDIR=/tmp}
7751 {
7752 tmp=`
7753 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7754 ` &&
7755 test -n "$tmp" && test -d "$tmp"
7756 } || {
7757 tmp=$TMPDIR/foo$$-$RANDOM
7758 (umask 077 && mkdir "$tmp")
7759 } || exit $?
7760
Dan Gohmanda612d62010-06-01 14:56:56 +00007761 echo "{" > "$tmp/export.map"
7762 echo " global: main;" >> "$tmp/export.map"
7763 echo " local: *;" >> "$tmp/export.map"
7764 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007765
Dan Gohmanda612d62010-06-01 14:56:56 +00007766 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007767 cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h. */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h. */
7773
7774int
7775main ()
7776{
Dan Gohman39ed6782010-04-25 00:12:20 +00007777
Dan Gohman391569c2010-04-16 22:59:06 +00007778 ;
7779 return 0;
7780}
7781_ACEOF
7782rm -f conftest.$ac_objext conftest$ac_exeext
7783if { (ac_try="$ac_link"
7784case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787esac
7788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_link") 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7797 { (case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800esac
7801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_try") 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest$ac_exeext'
7807 { (case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810esac
7811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_try") 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007816 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007817else
7818 echo "$as_me: failed program was:" >&5
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
Dan Gohman943005e2010-06-01 16:22:27 +00007821 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007822fi
7823
7824rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007826 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007827 rmdir "$tmp"
7828 CFLAGS="$oldcflags"
7829 ac_ext=c
7830ac_cpp='$CPP $CPPFLAGS'
7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007837{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7838echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7839if test "$llvm_cv_link_use_version_script" = yes ; then
7840 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007841
7842 fi
7843
7844
Reid Spencera773bd52006-08-04 18:18:08 +00007845
7846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7848echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7849if test "${ac_cv_c_const+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007857/* end confdefs.h. */
7858
7859int
7860main ()
7861{
7862/* FIXME: Include the comments suggested by Paul. */
7863#ifndef __cplusplus
7864 /* Ultrix mips cc rejects this. */
7865 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007867 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 char const *const *ccp;
7869 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007870 /* NEC SVR4.0.2 mips cc rejects this. */
7871 struct point {int x, y;};
7872 static struct point const zero = {0,0};
7873 /* AIX XL C 1.02.0.0 rejects this.
7874 It does not let you subtract one const X* pointer from another in
7875 an arm of an if-expression whose if-part is not a constant
7876 expression */
7877 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007878 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007879 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007880 ++ccp;
7881 p = (char**) ccp;
7882 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007883 { /* SCO 3.2v4 cc rejects this. */
7884 char *t;
7885 char const *s = 0 ? (char *) 0 : (char const *) 0;
7886
7887 *t++ = 0;
7888 if (s) return 0;
7889 }
7890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7891 int x[] = {25, 17};
7892 const int *foo = &x[0];
7893 ++foo;
7894 }
7895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7896 typedef const int *iptr;
7897 iptr p = 0;
7898 ++p;
7899 }
7900 { /* AIX XL C 1.02.0.0 rejects this saying
7901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7902 struct s { int j; const int *ap[3]; };
7903 struct s *b; b->j = 5;
7904 }
7905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7906 const int foo = 10;
7907 if (!foo) return 0;
7908 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007910#endif
7911
7912 ;
7913 return 0;
7914}
7915_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916rm -f conftest.$ac_objext
7917if { (ac_try="$ac_compile"
7918case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921esac
7922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934esac
7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944esac
7945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_try") 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007950 ac_cv_c_const=yes
7951else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007952 echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00007956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957
Reid Spencera773bd52006-08-04 18:18:08 +00007958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7961echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007962if test $ac_cv_c_const = no; then
7963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964cat >>confdefs.h <<\_ACEOF
7965#define const
7966_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007967
7968fi
7969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970
7971
7972
7973
7974
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007975ac_header_dirent=no
7976for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7978{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7979echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 cat >conftest.$ac_ext <<_ACEOF
7984/* confdefs.h. */
7985_ACEOF
7986cat confdefs.h >>conftest.$ac_ext
7987cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007988/* end confdefs.h. */
7989#include <sys/types.h>
7990#include <$ac_hdr>
7991
7992int
7993main ()
7994{
7995if ((DIR *) 0)
7996return 0;
7997 ;
7998 return 0;
7999}
8000_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001rm -f conftest.$ac_objext
8002if { (ac_try="$ac_compile"
8003case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006esac
8007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8016 { (case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019esac
8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_try") 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest.$ac_objext'
8026 { (case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029esac
8030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_try") 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008035 eval "$as_ac_Header=yes"
8036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008037 echo "$as_me: failed program was:" >&5
8038sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008041fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042
Reid Spencera773bd52006-08-04 18:18:08 +00008043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045ac_res=`eval echo '${'$as_ac_Header'}'`
8046 { echo "$as_me:$LINENO: result: $ac_res" >&5
8047echo "${ECHO_T}$ac_res" >&6; }
8048if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008051_ACEOF
8052
8053ac_header_dirent=$ac_hdr; break
8054fi
8055
8056done
8057# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8058if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8060echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8061if test "${ac_cv_search_opendir+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008063else
8064 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065cat >conftest.$ac_ext <<_ACEOF
8066/* confdefs.h. */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008070/* end confdefs.h. */
8071
Reid Spencera773bd52006-08-04 18:18:08 +00008072/* Override any GCC internal prototype to avoid an error.
8073 Use char because int might match the return type of a GCC
8074 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008075#ifdef __cplusplus
8076extern "C"
8077#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008078char opendir ();
8079int
8080main ()
8081{
Reid Spencera773bd52006-08-04 18:18:08 +00008082return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008083 ;
8084 return 0;
8085}
8086_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008087for ac_lib in '' dir; do
8088 if test -z "$ac_lib"; then
8089 ac_res="none required"
8090 else
8091 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008093 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094 rm -f conftest.$ac_objext conftest$ac_exeext
8095if { (ac_try="$ac_link"
8096case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112esac
8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122esac
8123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008128 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135
Bill Wendlingebcceee2009-04-18 11:20:33 +00008136rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008137 conftest$ac_exeext
8138 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008139 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008140fi
John Criswell7a73b802003-06-30 21:59:07 +00008141done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142if test "${ac_cv_search_opendir+set}" = set; then
8143 :
Reid Spencera773bd52006-08-04 18:18:08 +00008144else
8145 ac_cv_search_opendir=no
8146fi
8147rm conftest.$ac_ext
8148LIBS=$ac_func_search_save_LIBS
8149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8151echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008152ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008155
Reid Spencera773bd52006-08-04 18:18:08 +00008156fi
8157
8158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8160echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8161if test "${ac_cv_search_opendir+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008163else
8164 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008170/* end confdefs.h. */
8171
8172/* Override any GCC internal prototype to avoid an error.
8173 Use char because int might match the return type of a GCC
8174 builtin and then its argument prototype would still apply. */
8175#ifdef __cplusplus
8176extern "C"
8177#endif
8178char opendir ();
8179int
8180main ()
8181{
8182return opendir ();
8183 ;
8184 return 0;
8185}
8186_ACEOF
8187for ac_lib in '' x; do
8188 if test -z "$ac_lib"; then
8189 ac_res="none required"
8190 else
8191 ac_res=-l$ac_lib
8192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8193 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 rm -f conftest.$ac_objext conftest$ac_exeext
8195if { (ac_try="$ac_link"
8196case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_link") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008228 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229else
8230 echo "$as_me: failed program was:" >&5
8231sed 's/^/| /' conftest.$ac_ext >&5
8232
8233
Reid Spencera773bd52006-08-04 18:18:08 +00008234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235
Bill Wendlingebcceee2009-04-18 11:20:33 +00008236rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 conftest$ac_exeext
8238 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008239 break
8240fi
8241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242if test "${ac_cv_search_opendir+set}" = set; then
8243 :
Reid Spencera773bd52006-08-04 18:18:08 +00008244else
8245 ac_cv_search_opendir=no
8246fi
8247rm conftest.$ac_ext
8248LIBS=$ac_func_search_save_LIBS
8249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8251echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008252ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8255
8256fi
8257
8258fi
John Criswell7a73b802003-06-30 21:59:07 +00008259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260
John Criswell7a73b802003-06-30 21:59:07 +00008261for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262do
8263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269fi
8270ac_res=`eval echo '${'$as_ac_Header'}'`
8271 { echo "$as_me:$LINENO: result: $ac_res" >&5
8272echo "${ECHO_T}$ac_res" >&6; }
8273else
8274 # Is the header compilable?
8275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8277cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h. */
8283$ac_includes_default
8284#include <$ac_header>
8285_ACEOF
8286rm -f conftest.$ac_objext
8287if { (ac_try="$ac_compile"
8288case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291esac
8292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_header_compiler=yes
8321else
8322 echo "$as_me: failed program was:" >&5
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ac_header_compiler=no
8326fi
8327
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8330echo "${ECHO_T}$ac_header_compiler" >&6; }
8331
8332# Is the header present?
8333{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8335cat >conftest.$ac_ext <<_ACEOF
8336/* confdefs.h. */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h. */
8341#include <$ac_header>
8342_ACEOF
8343if { (ac_try="$ac_cpp conftest.$ac_ext"
8344case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347esac
8348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } >/dev/null; then
8356 if test -s conftest.err; then
8357 ac_cpp_err=$ac_c_preproc_warn_flag
8358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8359 else
8360 ac_cpp_err=
8361 fi
8362else
8363 ac_cpp_err=yes
8364fi
8365if test -z "$ac_cpp_err"; then
8366 ac_header_preproc=yes
8367else
8368 echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 ac_header_preproc=no
8372fi
8373
8374rm -f conftest.err conftest.$ac_ext
8375{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8376echo "${ECHO_T}$ac_header_preproc" >&6; }
8377
8378# So? What about this header?
8379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8380 yes:no: )
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8385 ac_header_preproc=yes
8386 ;;
8387 no:yes:* )
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8400 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008401## ------------------------------------ ##
8402## Report this to http://llvm.org/bugs/ ##
8403## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404_ASBOX
8405 ) | sed "s/^/$as_me: WARNING: /" >&2
8406 ;;
8407esac
8408{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413 eval "$as_ac_Header=\$ac_header_preproc"
8414fi
8415ac_res=`eval echo '${'$as_ac_Header'}'`
8416 { echo "$as_me:$LINENO: result: $ac_res" >&5
8417echo "${ECHO_T}$ac_res" >&6; }
8418
8419fi
8420if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008421 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008423_ACEOF
8424
8425fi
8426
8427done
8428
Reid Spencera773bd52006-08-04 18:18:08 +00008429# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008430if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008431 enableval=$enable_ltdl_install;
8432fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008433
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435
8436
8437if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008438 INSTALL_LTDL_TRUE=
8439 INSTALL_LTDL_FALSE='#'
8440else
8441 INSTALL_LTDL_TRUE='#'
8442 INSTALL_LTDL_FALSE=
8443fi
8444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008445
8446
8447if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008448 CONVENIENCE_LTDL_TRUE=
8449 CONVENIENCE_LTDL_FALSE='#'
8450else
8451 CONVENIENCE_LTDL_TRUE='#'
8452 CONVENIENCE_LTDL_FALSE=
8453fi
8454
8455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8457echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008458library_names_spec=
8459libname_spec='lib$name'
8460soname_spec=
8461shrext_cmds=".so"
8462postinstall_cmds=
8463postuninstall_cmds=
8464finish_cmds=
8465finish_eval=
8466shlibpath_var=
8467shlibpath_overrides_runpath=unknown
8468version_type=none
8469dynamic_linker="$host_os ld.so"
8470sys_lib_dlsearch_path_spec="/lib /usr/lib"
8471if test "$GCC" = yes; then
8472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8473 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8474 # if the path contains ";" then we assume it to be the separator
8475 # otherwise default to the standard path separator (i.e. ":") - it is
8476 # assumed that no part of a normal pathname contains ";" but that should
8477 # okay in the real world where ";" in dirpaths is itself problematic.
8478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8479 else
8480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8481 fi
8482else
8483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8484fi
8485need_lib_prefix=unknown
8486hardcode_into_libs=no
8487
8488# when you set need_version to no, make sure it does not cause -set_version
8489# flags to be left without arguments
8490need_version=unknown
8491
8492case $host_os in
8493aix3*)
8494 version_type=linux
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8496 shlibpath_var=LIBPATH
8497
8498 # AIX 3 has no versioning support, so we append a major version to the name.
8499 soname_spec='${libname}${release}${shared_ext}$major'
8500 ;;
8501
8502aix4* | aix5*)
8503 version_type=linux
8504 need_lib_prefix=no
8505 need_version=no
8506 hardcode_into_libs=yes
8507 if test "$host_cpu" = ia64; then
8508 # AIX 5 supports IA64
8509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8510 shlibpath_var=LD_LIBRARY_PATH
8511 else
8512 # With GCC up to 2.95.x, collect2 would create an import file
8513 # for dependence libraries. The import file would start with
8514 # the line `#! .'. This would cause the generated library to
8515 # depend on `.', always an invalid library. This was fixed in
8516 # development snapshots of GCC prior to 3.0.
8517 case $host_os in
8518 aix4 | aix4.[01] | aix4.[01].*)
8519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8520 echo ' yes '
8521 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8522 :
8523 else
8524 can_build_shared=no
8525 fi
8526 ;;
8527 esac
8528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8529 # soname into executable. Probably we can add versioning support to
8530 # collect2, so additional links can be useful in future.
8531 if test "$aix_use_runtimelinking" = yes; then
8532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8533 # instead of lib<name>.a to let people know that these are not
8534 # typical AIX shared libraries.
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536 else
8537 # We preserve .a as extension for shared libraries through AIX4.2
8538 # and later when we are not doing run time linking.
8539 library_names_spec='${libname}${release}.a $libname.a'
8540 soname_spec='${libname}${release}${shared_ext}$major'
8541 fi
8542 shlibpath_var=LIBPATH
8543 fi
8544 ;;
8545
8546amigaos*)
8547 library_names_spec='$libname.ixlibrary $libname.a'
8548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8549 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'
8550 ;;
8551
8552beos*)
8553 library_names_spec='${libname}${shared_ext}'
8554 dynamic_linker="$host_os ld.so"
8555 shlibpath_var=LIBRARY_PATH
8556 ;;
8557
8558bsdi[45]*)
8559 version_type=linux
8560 need_version=no
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 soname_spec='${libname}${release}${shared_ext}$major'
8563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8564 shlibpath_var=LD_LIBRARY_PATH
8565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8567 # the default ld.so.conf also contains /usr/contrib/lib and
8568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8569 # libtool to hard-code these into programs
8570 ;;
8571
8572cygwin* | mingw* | pw32*)
8573 version_type=windows
8574 shrext_cmds=".dll"
8575 need_version=no
8576 need_lib_prefix=no
8577
8578 case $GCC,$host_os in
8579 yes,cygwin* | yes,mingw* | yes,pw32*)
8580 library_names_spec='$libname.dll.a'
8581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8582 postinstall_cmds='base_file=`basename \${file}`~
8583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8584 dldir=$destdir/`dirname \$dlpath`~
8585 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008586 $install_prog $dir/$dlname \$dldir/$dlname~
8587 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8589 dlpath=$dir/\$dldll~
8590 $rm \$dlpath'
8591 shlibpath_overrides_runpath=yes
8592
8593 case $host_os in
8594 cygwin*)
8595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8598 ;;
8599 mingw*)
8600 # MinGW DLLs use traditional 'lib' prefix
8601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8604 # It is most probably a Windows format PATH printed by
8605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8606 # path with ; separators, and with drive letters. We can handle the
8607 # drive letters (cygwin fileutils understands them), so leave them,
8608 # especially as we might pass files found there to a mingw objdump,
8609 # which wouldn't understand a cygwinified path. Ahh.
8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611 else
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8613 fi
8614 ;;
8615 pw32*)
8616 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008617 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 +00008618 ;;
8619 esac
8620 ;;
8621
8622 *)
8623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8624 ;;
8625 esac
8626 dynamic_linker='Win32 ld.exe'
8627 # FIXME: first we should search . and the directory the executable is in
8628 shlibpath_var=PATH
8629 ;;
8630
8631darwin* | rhapsody*)
8632 dynamic_linker="$host_os dyld"
8633 version_type=darwin
8634 need_lib_prefix=no
8635 need_version=no
8636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8637 soname_spec='${libname}${release}${major}$shared_ext'
8638 shlibpath_overrides_runpath=yes
8639 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008640 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8642 if test "$GCC" = yes; then
8643 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"`
8644 else
8645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8646 fi
8647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8648 ;;
8649
8650dgux*)
8651 version_type=linux
8652 need_lib_prefix=no
8653 need_version=no
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 shlibpath_var=LD_LIBRARY_PATH
8657 ;;
8658
Eric Christopher360fa9a2011-10-26 00:42:12 +00008659freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008660 dynamic_linker=no
8661 ;;
8662
8663kfreebsd*-gnu)
8664 version_type=linux
8665 need_lib_prefix=no
8666 need_version=no
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 shlibpath_overrides_runpath=no
8671 hardcode_into_libs=yes
8672 dynamic_linker='GNU ld.so'
8673 ;;
8674
Reid Spencera773bd52006-08-04 18:18:08 +00008675freebsd* | dragonfly*)
8676 # DragonFly does not have aout. When/if they implement a new
8677 # versioning mechanism, adjust this.
8678 if test -x /usr/bin/objformat; then
8679 objformat=`/usr/bin/objformat`
8680 else
8681 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008682 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008683 *) objformat=elf ;;
8684 esac
8685 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008686 version_type=freebsd-$objformat
8687 case $version_type in
8688 freebsd-elf*)
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8690 need_version=no
8691 need_lib_prefix=no
8692 ;;
8693 freebsd-*)
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8695 need_version=yes
8696 ;;
8697 esac
8698 shlibpath_var=LD_LIBRARY_PATH
8699 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008700 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008701 shlibpath_overrides_runpath=yes
8702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008703 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008704 shlibpath_overrides_runpath=yes
8705 hardcode_into_libs=yes
8706 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008709 shlibpath_overrides_runpath=no
8710 hardcode_into_libs=yes
8711 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008712 freebsd*) # from 4.6 on
8713 shlibpath_overrides_runpath=yes
8714 hardcode_into_libs=yes
8715 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008716 esac
8717 ;;
8718
8719gnu*)
8720 version_type=linux
8721 need_lib_prefix=no
8722 need_version=no
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 hardcode_into_libs=yes
8727 ;;
8728
8729hpux9* | hpux10* | hpux11*)
8730 # Give a soname corresponding to the major version so that dld.sl refuses to
8731 # link against other versions.
8732 version_type=sunos
8733 need_lib_prefix=no
8734 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008735 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008736 ia64*)
8737 shrext_cmds='.so'
8738 hardcode_into_libs=yes
8739 dynamic_linker="$host_os dld.so"
8740 shlibpath_var=LD_LIBRARY_PATH
8741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 if test "X$HPUX_IA64_MODE" = X32; then
8745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8746 else
8747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8748 fi
8749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8750 ;;
8751 hppa*64*)
8752 shrext_cmds='.sl'
8753 hardcode_into_libs=yes
8754 dynamic_linker="$host_os dld.sl"
8755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8761 ;;
8762 *)
8763 shrext_cmds='.sl'
8764 dynamic_linker="$host_os dld.sl"
8765 shlibpath_var=SHLIB_PATH
8766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 ;;
8770 esac
8771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8772 postinstall_cmds='chmod 555 $lib'
8773 ;;
8774
Reid Spencera773bd52006-08-04 18:18:08 +00008775interix3*)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 shlibpath_overrides_runpath=no
8784 hardcode_into_libs=yes
8785 ;;
8786
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008787irix5* | irix6* | nonstopux*)
8788 case $host_os in
8789 nonstopux*) version_type=nonstopux ;;
8790 *)
8791 if test "$lt_cv_prog_gnu_ld" = yes; then
8792 version_type=linux
8793 else
8794 version_type=irix
8795 fi ;;
8796 esac
8797 need_lib_prefix=no
8798 need_version=no
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8801 case $host_os in
8802 irix5* | nonstopux*)
8803 libsuff= shlibsuff=
8804 ;;
8805 *)
8806 case $LD in # libtool.m4 will add one of these switches to LD
8807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8808 libsuff= shlibsuff= libmagic=32-bit;;
8809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8810 libsuff=32 shlibsuff=N32 libmagic=N32;;
8811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8813 *) libsuff= shlibsuff= libmagic=never-match;;
8814 esac
8815 ;;
8816 esac
8817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8818 shlibpath_overrides_runpath=no
8819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8821 hardcode_into_libs=yes
8822 ;;
8823
8824# No shared lib support for Linux oldld, aout, or coff.
8825linux*oldld* | linux*aout* | linux*coff*)
8826 dynamic_linker=no
8827 ;;
8828
8829# This must be Linux ELF.
8830linux*)
8831 version_type=linux
8832 need_lib_prefix=no
8833 need_version=no
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835 soname_spec='${libname}${release}${shared_ext}$major'
8836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 shlibpath_overrides_runpath=no
8839 # This implies no fast_install, which is unacceptable.
8840 # Some rework will be needed to allow for fast_install
8841 # before this can be enabled.
8842 hardcode_into_libs=yes
8843
8844 # Append ld.so.conf contents to the search path
8845 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008846 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 +00008847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8848 fi
8849
8850 # We used to test for /lib/ld.so.1 and disable shared libraries on
8851 # powerpc, because MkLinux only supported shared libraries with the
8852 # GNU dynamic linker. Since this was broken with cross compilers,
8853 # most powerpc-linux boxes support dynamic linking these days and
8854 # people can always --disable-shared, the test was removed, and we
8855 # assume the GNU/Linux dynamic linker is in use.
8856 dynamic_linker='GNU/Linux ld.so'
8857 ;;
8858
8859knetbsd*-gnu)
8860 version_type=linux
8861 need_lib_prefix=no
8862 need_version=no
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=no
8867 hardcode_into_libs=yes
8868 dynamic_linker='GNU ld.so'
8869 ;;
8870
8871netbsd*)
8872 version_type=sunos
8873 need_lib_prefix=no
8874 need_version=no
8875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8878 dynamic_linker='NetBSD (a.out) ld.so'
8879 else
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 dynamic_linker='NetBSD ld.elf_so'
8883 fi
8884 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=yes
8886 hardcode_into_libs=yes
8887 ;;
8888
8889newsos6)
8890 version_type=linux
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes
8894 ;;
8895
8896nto-qnx*)
8897 version_type=linux
8898 need_lib_prefix=no
8899 need_version=no
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=yes
8904 ;;
8905
8906openbsd*)
8907 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008908 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008909 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8911 case $host_os in
8912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8913 *) need_version=no ;;
8914 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917 shlibpath_var=LD_LIBRARY_PATH
8918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8919 case $host_os in
8920 openbsd2.[89] | openbsd2.[89].*)
8921 shlibpath_overrides_runpath=no
8922 ;;
8923 *)
8924 shlibpath_overrides_runpath=yes
8925 ;;
8926 esac
8927 else
8928 shlibpath_overrides_runpath=yes
8929 fi
8930 ;;
8931
8932os2*)
8933 libname_spec='$name'
8934 shrext_cmds=".dll"
8935 need_lib_prefix=no
8936 library_names_spec='$libname${shared_ext} $libname.a'
8937 dynamic_linker='OS/2 ld.exe'
8938 shlibpath_var=LIBPATH
8939 ;;
8940
8941osf3* | osf4* | osf5*)
8942 version_type=osf
8943 need_lib_prefix=no
8944 need_version=no
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8950 ;;
8951
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008952solaris*)
8953 version_type=linux
8954 need_lib_prefix=no
8955 need_version=no
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8961 # ldd complains unless libraries are executable
8962 postinstall_cmds='chmod +x $lib'
8963 ;;
8964
8965sunos4*)
8966 version_type=sunos
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8971 if test "$with_gnu_ld" = yes; then
8972 need_lib_prefix=no
8973 fi
8974 need_version=yes
8975 ;;
8976
Reid Spencera773bd52006-08-04 18:18:08 +00008977sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008978 version_type=linux
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 case $host_vendor in
8983 sni)
8984 shlibpath_overrides_runpath=no
8985 need_lib_prefix=no
8986 export_dynamic_flag_spec='${wl}-Blargedynsym'
8987 runpath_var=LD_RUN_PATH
8988 ;;
8989 siemens)
8990 need_lib_prefix=no
8991 ;;
8992 motorola)
8993 need_lib_prefix=no
8994 need_version=no
8995 shlibpath_overrides_runpath=no
8996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8997 ;;
8998 esac
8999 ;;
9000
9001sysv4*MP*)
9002 if test -d /usr/nec ;then
9003 version_type=linux
9004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9005 soname_spec='$libname${shared_ext}.$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 fi
9008 ;;
9009
Reid Spencera773bd52006-08-04 18:18:08 +00009010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9011 version_type=freebsd-elf
9012 need_lib_prefix=no
9013 need_version=no
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 hardcode_into_libs=yes
9018 if test "$with_gnu_ld" = yes; then
9019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9020 shlibpath_overrides_runpath=no
9021 else
9022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9023 shlibpath_overrides_runpath=yes
9024 case $host_os in
9025 sco3.2v5*)
9026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9027 ;;
9028 esac
9029 fi
9030 sys_lib_dlsearch_path_spec='/usr/lib'
9031 ;;
9032
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009033uts4*)
9034 version_type=linux
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 ;;
9039
9040*)
9041 dynamic_linker=no
9042 ;;
9043esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009044{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9045echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009046test "$dynamic_linker" = no && can_build_shared=no
9047
Reid Spencera773bd52006-08-04 18:18:08 +00009048variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9049if test "$GCC" = yes; then
9050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9051fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009052
Reid Spencera773bd52006-08-04 18:18:08 +00009053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009054{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9055echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9056if test "${libltdl_cv_shlibext+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009058else
9059
9060module=yes
9061eval libltdl_cv_shlibext=$shrext_cmds
9062
9063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009064{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9065echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009066if test -n "$libltdl_cv_shlibext"; then
9067
9068cat >>confdefs.h <<_ACEOF
9069#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9070_ACEOF
9071
9072fi
9073
9074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9076echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9077if test "${libltdl_cv_shlibpath_var+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009079else
9080 libltdl_cv_shlibpath_var="$shlibpath_var"
9081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009082{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9083echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084if test -n "$libltdl_cv_shlibpath_var"; then
9085
9086cat >>confdefs.h <<_ACEOF
9087#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9088_ACEOF
9089
9090fi
9091
9092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009093{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9094echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9095if test "${libltdl_cv_sys_search_path+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009097else
9098 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009100{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9101echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102if test -n "$libltdl_cv_sys_search_path"; then
9103 sys_search_path=
9104 for dir in $libltdl_cv_sys_search_path; do
9105 if test -z "$sys_search_path"; then
9106 sys_search_path="$dir"
9107 else
9108 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9109 fi
9110 done
9111
9112cat >>confdefs.h <<_ACEOF
9113#define LTDL_SYSSEARCHPATH "$sys_search_path"
9114_ACEOF
9115
9116fi
9117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009118{ echo "$as_me:$LINENO: checking for objdir" >&5
9119echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9120if test "${libltdl_cv_objdir+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009122else
9123 libltdl_cv_objdir="$objdir"
9124 if test -n "$objdir"; then
9125 :
9126 else
9127 rm -f .libs 2>/dev/null
9128 mkdir .libs 2>/dev/null
9129 if test -d .libs; then
9130 libltdl_cv_objdir=.libs
9131 else
9132 # MS-DOS does not allow filenames that begin with a dot.
9133 libltdl_cv_objdir=_libs
9134 fi
9135 rmdir .libs 2>/dev/null
9136 fi
9137
9138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009139{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9140echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141
9142cat >>confdefs.h <<_ACEOF
9143#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9144_ACEOF
9145
9146
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147
9148
9149
9150
9151# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009152{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9153echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9154if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009156else
9157
9158# These are sane defaults that work on at least a few old systems.
9159# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9160
9161# Character class describing NM global symbol codes.
9162symcode='[BCDEGRST]'
9163
9164# Regexp to match symbols that can be accessed directly from C.
9165sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9166
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009167# Transform an extracted symbol line into a proper C declaration
9168lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9169
9170# Transform an extracted symbol line into symbol name and symbol address
9171lt_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'"
9172
9173# Define system-specific variables.
9174case $host_os in
9175aix*)
9176 symcode='[BCDT]'
9177 ;;
9178cygwin* | mingw* | pw32*)
9179 symcode='[ABCDGISTW]'
9180 ;;
9181hpux*) # Its linker distinguishes data from code symbols
9182 if test "$host_cpu" = ia64; then
9183 symcode='[ABCDEGRST]'
9184 fi
9185 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9186 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'"
9187 ;;
9188linux*)
9189 if test "$host_cpu" = ia64; then
9190 symcode='[ABCDGIRSTW]'
9191 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9192 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'"
9193 fi
9194 ;;
9195irix* | nonstopux*)
9196 symcode='[BCDEGRST]'
9197 ;;
9198osf*)
9199 symcode='[BCDEGQRST]'
9200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009201solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202 symcode='[BDRT]'
9203 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009204sco3.2v5*)
9205 symcode='[DT]'
9206 ;;
9207sysv4.2uw2*)
9208 symcode='[DT]'
9209 ;;
9210sysv5* | sco5v6* | unixware* | OpenUNIX*)
9211 symcode='[ABDT]'
9212 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213sysv4)
9214 symcode='[DFNSTU]'
9215 ;;
9216esac
9217
9218# Handle CRLF in mingw tool chain
9219opt_cr=
9220case $build_os in
9221mingw*)
9222 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9223 ;;
9224esac
9225
9226# If we're using GNU nm, then use its standard symbol codes.
9227case `$NM -V 2>&1` in
9228*GNU* | *'with BFD'*)
9229 symcode='[ABCDGIRSTW]' ;;
9230esac
9231
9232# Try without a prefix undercore, then with it.
9233for ac_symprfx in "" "_"; do
9234
Reid Spencera773bd52006-08-04 18:18:08 +00009235 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9236 symxfrm="\\1 $ac_symprfx\\2 \\2"
9237
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009239 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 +00009240
9241 # Check to see that the pipe works correctly.
9242 pipe_works=no
9243
9244 rm -f conftest*
9245 cat > conftest.$ac_ext <<EOF
9246#ifdef __cplusplus
9247extern "C" {
9248#endif
9249char nm_test_var;
9250void nm_test_func(){}
9251#ifdef __cplusplus
9252}
9253#endif
9254int main(){nm_test_var='a';nm_test_func();return(0);}
9255EOF
9256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258 (eval $ac_compile) 2>&5
9259 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262 # Now try to grab the symbols.
9263 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009264 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 +00009265 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9266 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269 # Try sorting and uniquifying the output.
9270 if sort "$nlist" | uniq > "$nlist"T; then
9271 mv -f "$nlist"T "$nlist"
9272 else
9273 rm -f "$nlist"T
9274 fi
9275
9276 # Make sure that we snagged all the symbols we need.
9277 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9278 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9279 cat <<EOF > conftest.$ac_ext
9280#ifdef __cplusplus
9281extern "C" {
9282#endif
9283
9284EOF
9285 # Now generate the symbol file.
9286 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9287
9288 cat <<EOF >> conftest.$ac_ext
9289#if defined (__STDC__) && __STDC__
9290# define lt_ptr_t void *
9291#else
9292# define lt_ptr_t char *
9293# define const
9294#endif
9295
9296/* The mapping between symbol names and symbols. */
9297const struct {
9298 const char *name;
9299 lt_ptr_t address;
9300}
9301lt_preloaded_symbols[] =
9302{
9303EOF
9304 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9305 cat <<\EOF >> conftest.$ac_ext
9306 {0, (lt_ptr_t) 0}
9307};
9308
9309#ifdef __cplusplus
9310}
9311#endif
9312EOF
9313 # Now try linking the two files.
9314 mv conftest.$ac_objext conftstm.$ac_objext
9315 lt_save_LIBS="$LIBS"
9316 lt_save_CFLAGS="$CFLAGS"
9317 LIBS="conftstm.$ac_objext"
9318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320 (eval $ac_link) 2>&5
9321 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009324 pipe_works=yes
9325 fi
9326 LIBS="$lt_save_LIBS"
9327 CFLAGS="$lt_save_CFLAGS"
9328 else
9329 echo "cannot find nm_test_func in $nlist" >&5
9330 fi
9331 else
9332 echo "cannot find nm_test_var in $nlist" >&5
9333 fi
9334 else
9335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9336 fi
9337 else
9338 echo "$progname: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9340 fi
9341 rm -f conftest* conftst*
9342
9343 # Do not use the global_symbol_pipe unless it works.
9344 if test "$pipe_works" = yes; then
9345 break
9346 else
9347 lt_cv_sys_global_symbol_pipe=
9348 fi
9349done
9350
9351fi
9352
9353if test -z "$lt_cv_sys_global_symbol_pipe"; then
9354 lt_cv_sys_global_symbol_to_cdecl=
9355fi
9356if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009357 { echo "$as_me:$LINENO: result: failed" >&5
9358echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360 { echo "$as_me:$LINENO: result: ok" >&5
9361echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362fi
9363
9364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9366echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9367if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009369else
9370 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9371 libltdl_cv_preloaded_symbols=yes
9372 else
9373 libltdl_cv_preloaded_symbols=no
9374 fi
9375
9376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9378echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009381cat >>confdefs.h <<\_ACEOF
9382#define HAVE_PRELOADED_SYMBOLS 1
9383_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009384
9385fi
9386
9387LIBADD_DL=
9388
9389ac_ext=c
9390ac_cpp='$CPP $CPPFLAGS'
9391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393ac_compiler_gnu=$ac_cv_c_compiler_gnu
9394
9395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396{ echo "$as_me:$LINENO: checking for shl_load" >&5
9397echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398if test "${ac_cv_func_shl_load+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401 cat >conftest.$ac_ext <<_ACEOF
9402/* confdefs.h. */
9403_ACEOF
9404cat confdefs.h >>conftest.$ac_ext
9405cat >>conftest.$ac_ext <<_ACEOF
9406/* end confdefs.h. */
9407/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009411/* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char shl_load (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9415
9416#ifdef __STDC__
9417# include <limits.h>
9418#else
9419# include <assert.h>
9420#endif
9421
9422#undef shl_load
9423
9424/* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9427#ifdef __cplusplus
9428extern "C"
9429#endif
9430char shl_load ();
9431/* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434#if defined __stub_shl_load || defined __stub___shl_load
9435choke me
9436#endif
9437
9438int
9439main ()
9440{
9441return shl_load ();
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446rm -f conftest.$ac_objext conftest$ac_exeext
9447if { (ac_try="$ac_link"
9448case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9451esac
9452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461 { (case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464esac
9465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_try") 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474esac
9475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_func_shl_load=yes
9481else
9482 echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_func_shl_load=no
9486fi
9487
9488rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490fi
9491{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9492echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9493if test $ac_cv_func_shl_load = yes; then
9494
9495cat >>confdefs.h <<\_ACEOF
9496#define HAVE_SHL_LOAD 1
9497_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009498
9499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009500 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9501echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9502if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009504else
9505 ac_check_lib_save_LIBS=$LIBS
9506LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009507cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512/* end confdefs.h. */
9513
Reid Spencera773bd52006-08-04 18:18:08 +00009514/* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517#ifdef __cplusplus
9518extern "C"
9519#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520char shl_load ();
9521int
9522main ()
9523{
Reid Spencera773bd52006-08-04 18:18:08 +00009524return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525 ;
9526 return 0;
9527}
9528_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009529rm -f conftest.$ac_objext conftest$ac_exeext
9530if { (ac_try="$ac_link"
9531case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534esac
9535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547esac
9548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557esac
9558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_try") 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563 ac_cv_lib_dld_shl_load=yes
9564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009565 echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009570
Bill Wendlingebcceee2009-04-18 11:20:33 +00009571rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573LIBS=$ac_check_lib_save_LIBS
9574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009575{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009579cat >>confdefs.h <<\_ACEOF
9580#define HAVE_SHL_LOAD 1
9581_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582
9583 LIBADD_DL="$LIBADD_DL -ldld"
9584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589else
9590 ac_check_lib_save_LIBS=$LIBS
9591LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009592cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h. */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009597/* end confdefs.h. */
9598
Reid Spencera773bd52006-08-04 18:18:08 +00009599/* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602#ifdef __cplusplus
9603extern "C"
9604#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605char dlopen ();
9606int
9607main ()
9608{
Reid Spencera773bd52006-08-04 18:18:08 +00009609return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009610 ;
9611 return 0;
9612}
9613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009614rm -f conftest.$ac_objext conftest$ac_exeext
9615if { (ac_try="$ac_link"
9616case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629 { (case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632esac
9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_try") 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest$ac_exeext'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648 ac_cv_lib_dl_dlopen=yes
9649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009650 echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009655
Bill Wendlingebcceee2009-04-18 11:20:33 +00009656rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009657 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658LIBS=$ac_check_lib_save_LIBS
9659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009660{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9661echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9662if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009664cat >>confdefs.h <<\_ACEOF
9665#define HAVE_LIBDL 1
9666_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667
9668 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670 cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675/* end confdefs.h. */
9676#if HAVE_DLFCN_H
9677# include <dlfcn.h>
9678#endif
9679
9680int
9681main ()
9682{
9683dlopen(0, 0);
9684 ;
9685 return 0;
9686}
9687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (ac_try="$ac_link"
9690case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706esac
9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_try") 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009723cat >>confdefs.h <<\_ACEOF
9724#define HAVE_LIBDL 1
9725_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726 libltdl_cv_func_dlopen="yes"
9727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9732echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9733if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735else
9736 ac_check_lib_save_LIBS=$LIBS
9737LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h. */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743/* end confdefs.h. */
9744
Reid Spencera773bd52006-08-04 18:18:08 +00009745/* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748#ifdef __cplusplus
9749extern "C"
9750#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751char dlopen ();
9752int
9753main ()
9754{
Reid Spencera773bd52006-08-04 18:18:08 +00009755return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756 ;
9757 return 0;
9758}
9759_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760rm -f conftest.$ac_objext conftest$ac_exeext
9761if { (ac_try="$ac_link"
9762case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765esac
9766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9775 { (case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778esac
9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_try") 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try='test -s conftest$ac_exeext'
9785 { (case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788esac
9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_try") 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794 ac_cv_lib_svld_dlopen=yes
9795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009801
Bill Wendlingebcceee2009-04-18 11:20:33 +00009802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009803 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804LIBS=$ac_check_lib_save_LIBS
9805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009806{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9807echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9808if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009810cat >>confdefs.h <<\_ACEOF
9811#define HAVE_LIBDL 1
9812_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813
9814 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009816 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9817echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9818if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820else
9821 ac_check_lib_save_LIBS=$LIBS
9822LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823cat >conftest.$ac_ext <<_ACEOF
9824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828/* end confdefs.h. */
9829
Reid Spencera773bd52006-08-04 18:18:08 +00009830/* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833#ifdef __cplusplus
9834extern "C"
9835#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836char dld_link ();
9837int
9838main ()
9839{
Reid Spencera773bd52006-08-04 18:18:08 +00009840return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841 ;
9842 return 0;
9843}
9844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845rm -f conftest.$ac_objext conftest$ac_exeext
9846if { (ac_try="$ac_link"
9847case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850esac
9851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_link") 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863esac
9864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_try") 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879 ac_cv_lib_dld_dld_link=yes
9880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009881 echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009886
Bill Wendlingebcceee2009-04-18 11:20:33 +00009887rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009888 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889LIBS=$ac_check_lib_save_LIBS
9890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009891{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9892echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9893if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009895cat >>confdefs.h <<\_ACEOF
9896#define HAVE_DLD 1
9897_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898
9899 LIBADD_DL="$LIBADD_DL -ldld"
9900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009901 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9902echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9903if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 cat >conftest.$ac_ext <<_ACEOF
9907/* confdefs.h. */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h. */
9912/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009916/* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char _dyld_func_lookup (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009921#ifdef __STDC__
9922# include <limits.h>
9923#else
9924# include <assert.h>
9925#endif
9926
9927#undef _dyld_func_lookup
9928
9929/* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9932#ifdef __cplusplus
9933extern "C"
9934#endif
9935char _dyld_func_lookup ();
9936/* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9940choke me
9941#endif
9942
9943int
9944main ()
9945{
9946return _dyld_func_lookup ();
9947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_func__dyld_func_lookup=yes
9986else
9987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991fi
Reid Spencera773bd52006-08-04 18:18:08 +00009992
Bill Wendlingebcceee2009-04-18 11:20:33 +00009993rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994 conftest$ac_exeext conftest.$ac_ext
9995fi
9996{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9997echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9998if test $ac_cv_func__dyld_func_lookup = yes; then
9999
10000cat >>confdefs.h <<\_ACEOF
10001#define HAVE_DYLD 1
10002_ACEOF
10003
10004fi
10005
10006
10007fi
10008
10009
10010fi
10011
10012
10013fi
10014
10015rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017
10018fi
10019
10020
10021fi
10022
10023
10024fi
10025
10026
10027if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10028then
10029 lt_save_LIBS="$LIBS"
10030 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010031
10032for ac_func in dlerror
10033do
10034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040 cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h. */
10046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048#define $ac_func innocuous_$ac_func
10049
10050/* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10054
10055#ifdef __STDC__
10056# include <limits.h>
10057#else
10058# include <assert.h>
10059#endif
10060
10061#undef $ac_func
10062
10063/* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10066#ifdef __cplusplus
10067extern "C"
10068#endif
10069char $ac_func ();
10070/* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073#if defined __stub_$ac_func || defined __stub___$ac_func
10074choke me
10075#endif
10076
10077int
10078main ()
10079{
10080return $ac_func ();
10081 ;
10082 return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
10086if { (ac_try="$ac_link"
10087case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 eval "$as_ac_var=yes"
10120else
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 eval "$as_ac_var=no"
10125fi
10126
10127rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129fi
10130ac_res=`eval echo '${'$as_ac_var'}'`
10131 { echo "$as_me:$LINENO: result: $ac_res" >&5
10132echo "${ECHO_T}$ac_res" >&6; }
10133if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136_ACEOF
10137
10138fi
10139done
10140
10141 LIBS="$lt_save_LIBS"
10142fi
10143ac_ext=c
10144ac_cpp='$CPP $CPPFLAGS'
10145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147ac_compiler_gnu=$ac_cv_c_compiler_gnu
10148
10149
10150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010151{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10152echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10153if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155else
10156 ac_cv_sys_symbol_underscore=no
10157 cat > conftest.$ac_ext <<EOF
10158void nm_test_func(){}
10159int main(){nm_test_func;return 0;}
10160EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162 (eval $ac_compile) 2>&5
10163 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166 # Now try to grab the symbols.
10167 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010168 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 +000010169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10170 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173 # See whether the symbols have a leading underscore.
10174 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10175 ac_cv_sys_symbol_underscore=yes
10176 else
10177 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10178 :
10179 else
10180 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10181 fi
10182 fi
10183 else
10184 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10185 fi
10186 else
10187 echo "configure: failed program was:" >&5
10188 cat conftest.c >&5
10189 fi
10190 rm -rf conftest*
10191
10192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010193{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10194echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195
10196
10197if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10198 if test x"$libltdl_cv_func_dlopen" = xyes ||
10199 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010200 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10201echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10202if test "${libltdl_cv_need_uscore+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204else
10205 libltdl_cv_need_uscore=unknown
10206 save_LIBS="$LIBS"
10207 LIBS="$LIBS $LIBADD_DL"
10208 if test "$cross_compiling" = yes; then :
10209 libltdl_cv_need_uscore=cross
10210else
10211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212 lt_status=$lt_dlunknown
10213 cat > conftest.$ac_ext <<EOF
Eric Christophercbd84f72012-08-03 05:18:00 +000010214#line 10214 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215#include "confdefs.h"
10216
10217#if HAVE_DLFCN_H
10218#include <dlfcn.h>
10219#endif
10220
10221#include <stdio.h>
10222
10223#ifdef RTLD_GLOBAL
10224# define LT_DLGLOBAL RTLD_GLOBAL
10225#else
10226# ifdef DL_GLOBAL
10227# define LT_DLGLOBAL DL_GLOBAL
10228# else
10229# define LT_DLGLOBAL 0
10230# endif
10231#endif
10232
10233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10234 find out it does not work in some platform. */
10235#ifndef LT_DLLAZY_OR_NOW
10236# ifdef RTLD_LAZY
10237# define LT_DLLAZY_OR_NOW RTLD_LAZY
10238# else
10239# ifdef DL_LAZY
10240# define LT_DLLAZY_OR_NOW DL_LAZY
10241# else
10242# ifdef RTLD_NOW
10243# define LT_DLLAZY_OR_NOW RTLD_NOW
10244# else
10245# ifdef DL_NOW
10246# define LT_DLLAZY_OR_NOW DL_NOW
10247# else
10248# define LT_DLLAZY_OR_NOW 0
10249# endif
10250# endif
10251# endif
10252# endif
10253#endif
10254
10255#ifdef __cplusplus
10256extern "C" void exit (int);
10257#endif
10258
10259void fnord() { int i=42;}
10260int main ()
10261{
10262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10263 int status = $lt_dlunknown;
10264
10265 if (self)
10266 {
10267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10269 /* dlclose (self); */
10270 }
Reid Spencera773bd52006-08-04 18:18:08 +000010271 else
10272 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273
10274 exit (status);
10275}
10276EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278 (eval $ac_link) 2>&5
10279 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010282 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283 lt_status=$?
10284 case x$lt_status in
10285 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10286 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010287 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288 esac
10289 else :
10290 # compilation failed
10291
10292 fi
10293fi
10294rm -fr conftest*
10295
10296 LIBS="$save_LIBS"
10297
10298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010299{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10300echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301 fi
10302fi
10303
10304if test x"$libltdl_cv_need_uscore" = xyes; then
10305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306cat >>confdefs.h <<\_ACEOF
10307#define NEED_USCORE 1
10308_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309
10310fi
10311
10312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010313{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10314echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10315if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317else
10318 # PORTME does your system automatically load deplibs for dlopen?
10319 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10320 # For now, we just catch OSes we know something about -- in the
10321 # future, we'll try test this programmatically.
10322 libltdl_cv_sys_dlopen_deplibs=unknown
10323 case "$host_os" in
10324 aix3*|aix4.1.*|aix4.2.*)
10325 # Unknown whether this is true for these versions of AIX, but
10326 # we want this `case' here to explicitly catch those versions.
10327 libltdl_cv_sys_dlopen_deplibs=unknown
10328 ;;
10329 aix[45]*)
10330 libltdl_cv_sys_dlopen_deplibs=yes
10331 ;;
10332 darwin*)
10333 # Assuming the user has installed a libdl from somewhere, this is true
10334 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10335 libltdl_cv_sys_dlopen_deplibs=yes
10336 ;;
10337 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10338 # GNU and its variants, using gnu ld.so (Glibc)
10339 libltdl_cv_sys_dlopen_deplibs=yes
10340 ;;
10341 hpux10*|hpux11*)
10342 libltdl_cv_sys_dlopen_deplibs=yes
10343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010344 interix*)
10345 libltdl_cv_sys_dlopen_deplibs=yes
10346 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347 irix[12345]*|irix6.[01]*)
10348 # Catch all versions of IRIX before 6.2, and indicate that we don't
10349 # know how it worked for any of those versions.
10350 libltdl_cv_sys_dlopen_deplibs=unknown
10351 ;;
10352 irix*)
10353 # The case above catches anything before 6.2, and it's known that
10354 # at 6.2 and later dlopen does load deplibs.
10355 libltdl_cv_sys_dlopen_deplibs=yes
10356 ;;
10357 netbsd*)
10358 libltdl_cv_sys_dlopen_deplibs=yes
10359 ;;
10360 openbsd*)
10361 libltdl_cv_sys_dlopen_deplibs=yes
10362 ;;
10363 osf[1234]*)
10364 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10365 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010366 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367 libltdl_cv_sys_dlopen_deplibs=no
10368 ;;
10369 osf5.0|osf5.0a|osf5.1)
10370 # dlopen *does* load deplibs and with the right loader patch applied
10371 # it even uses RPATH in a shared library to search for shared objects
10372 # that the library depends on, but there's no easy way to know if that
10373 # patch is installed. Since this is the case, all we can really
10374 # say is unknown -- it depends on the patch being installed. If
10375 # it is, this changes to `yes'. Without it, it would be `no'.
10376 libltdl_cv_sys_dlopen_deplibs=unknown
10377 ;;
10378 osf*)
10379 # the two cases above should catch all versions of osf <= 5.1. Read
10380 # the comments above for what we know about them.
10381 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10382 # is used to find them so we can finally say `yes'.
10383 libltdl_cv_sys_dlopen_deplibs=yes
10384 ;;
10385 solaris*)
10386 libltdl_cv_sys_dlopen_deplibs=yes
10387 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10389 libltdl_cv_sys_dlopen_deplibs=yes
10390 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391 esac
10392
10393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010394{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10395echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010398cat >>confdefs.h <<\_ACEOF
10399#define LTDL_DLOPEN_DEPLIBS 1
10400_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401
10402fi
10403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010406do
10407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413fi
10414ac_res=`eval echo '${'$as_ac_Header'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416echo "${ECHO_T}$ac_res" >&6; }
10417else
10418 # Is the header compilable?
10419{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10421cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427$ac_includes_default
10428#include <$ac_header>
10429_ACEOF
10430rm -f conftest.$ac_objext
10431if { (ac_try="$ac_compile"
10432case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435esac
10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448esac
10449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest.$ac_objext'
10455 { (case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458esac
10459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_try") 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10465else
10466 echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_header_compiler=no
10470fi
10471
10472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10474echo "${ECHO_T}$ac_header_compiler" >&6; }
10475
10476# Is the header present?
10477{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h. */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h. */
10485#include <$ac_header>
10486_ACEOF
10487if { (ac_try="$ac_cpp conftest.$ac_ext"
10488case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491esac
10492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } >/dev/null; then
10500 if test -s conftest.err; then
10501 ac_cpp_err=$ac_c_preproc_warn_flag
10502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10503 else
10504 ac_cpp_err=
10505 fi
10506else
10507 ac_cpp_err=yes
10508fi
10509if test -z "$ac_cpp_err"; then
10510 ac_header_preproc=yes
10511else
10512 echo "$as_me: failed program was:" >&5
10513sed 's/^/| /' conftest.$ac_ext >&5
10514
10515 ac_header_preproc=no
10516fi
10517
10518rm -f conftest.err conftest.$ac_ext
10519{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520echo "${ECHO_T}$ac_header_preproc" >&6; }
10521
10522# So? What about this header?
10523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10524 yes:no: )
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529 ac_header_preproc=yes
10530 ;;
10531 no:yes:* )
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010545## ------------------------------------ ##
10546## Report this to http://llvm.org/bugs/ ##
10547## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548_ASBOX
10549 ) | sed "s/^/$as_me: WARNING: /" >&2
10550 ;;
10551esac
10552{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557 eval "$as_ac_Header=\$ac_header_preproc"
10558fi
10559ac_res=`eval echo '${'$as_ac_Header'}'`
10560 { echo "$as_me:$LINENO: result: $ac_res" >&5
10561echo "${ECHO_T}$ac_res" >&6; }
10562
10563fi
10564if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567_ACEOF
10568
10569fi
10570
10571done
10572
10573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010574{ echo "$as_me:$LINENO: checking for error_t" >&5
10575echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10576if test "${ac_cv_type_error_t+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579 cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586# include <argz.h>
10587#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010588
10589typedef error_t ac__type_new_;
10590int
10591main ()
10592{
10593if ((ac__type_new_ *) 0)
10594 return 0;
10595if (sizeof (ac__type_new_))
10596 return 0;
10597 ;
10598 return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext
10602if { (ac_try="$ac_compile"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_type_error_t=yes
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 ac_cv_type_error_t=no
10641fi
10642
10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644fi
10645{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10646echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10647if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648
10649cat >>confdefs.h <<_ACEOF
10650#define HAVE_ERROR_T 1
10651_ACEOF
10652
10653
10654else
10655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010656cat >>confdefs.h <<\_ACEOF
10657#define error_t int
10658_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659
10660fi
10661
10662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010663
10664
10665
10666
10667
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669do
10670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
10676 cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h. */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h. */
10682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10684#define $ac_func innocuous_$ac_func
10685
10686/* System header to define __stub macros and hopefully few prototypes,
10687 which can conflict with char $ac_func (); below.
10688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689 <limits.h> exists even on freestanding compilers. */
10690
10691#ifdef __STDC__
10692# include <limits.h>
10693#else
10694# include <assert.h>
10695#endif
10696
10697#undef $ac_func
10698
10699/* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702#ifdef __cplusplus
10703extern "C"
10704#endif
10705char $ac_func ();
10706/* The GNU C library defines this for functions which it implements
10707 to always fail with ENOSYS. Some functions are actually named
10708 something starting with __ and the normal name is an alias. */
10709#if defined __stub_$ac_func || defined __stub___$ac_func
10710choke me
10711#endif
10712
10713int
10714main ()
10715{
10716return $ac_func ();
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721rm -f conftest.$ac_objext conftest$ac_exeext
10722if { (ac_try="$ac_link"
10723case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726esac
10727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_link") 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10739esac
10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_try") 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 eval "$as_ac_var=yes"
10756else
10757 echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 eval "$as_ac_var=no"
10761fi
10762
10763rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765fi
10766ac_res=`eval echo '${'$as_ac_var'}'`
10767 { echo "$as_me:$LINENO: result: $ac_res" >&5
10768echo "${ECHO_T}$ac_res" >&6; }
10769if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772_ACEOF
10773
10774fi
10775done
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010796
10797
10798
10799
10800
10801
10802
10803
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10805 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010806do
10807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813fi
10814ac_res=`eval echo '${'$as_ac_Header'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816echo "${ECHO_T}$ac_res" >&6; }
10817else
10818 # Is the header compilable?
10819{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10821cat >conftest.$ac_ext <<_ACEOF
10822/* confdefs.h. */
10823_ACEOF
10824cat confdefs.h >>conftest.$ac_ext
10825cat >>conftest.$ac_ext <<_ACEOF
10826/* end confdefs.h. */
10827$ac_includes_default
10828#include <$ac_header>
10829_ACEOF
10830rm -f conftest.$ac_objext
10831if { (ac_try="$ac_compile"
10832case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835esac
10836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845 { (case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848esac
10849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_try") 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_header_compiler=yes
10865else
10866 echo "$as_me: failed program was:" >&5
10867sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_header_compiler=no
10870fi
10871
10872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874echo "${ECHO_T}$ac_header_compiler" >&6; }
10875
10876# Is the header present?
10877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885#include <$ac_header>
10886_ACEOF
10887if { (ac_try="$ac_cpp conftest.$ac_ext"
10888case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null; then
10900 if test -s conftest.err; then
10901 ac_cpp_err=$ac_c_preproc_warn_flag
10902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10903 else
10904 ac_cpp_err=
10905 fi
10906else
10907 ac_cpp_err=yes
10908fi
10909if test -z "$ac_cpp_err"; then
10910 ac_header_preproc=yes
10911else
10912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ac_header_preproc=no
10916fi
10917
10918rm -f conftest.err conftest.$ac_ext
10919{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920echo "${ECHO_T}$ac_header_preproc" >&6; }
10921
10922# So? What about this header?
10923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10924 yes:no: )
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929 ac_header_preproc=yes
10930 ;;
10931 no:yes:* )
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10944 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010945## ------------------------------------ ##
10946## Report this to http://llvm.org/bugs/ ##
10947## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010948_ASBOX
10949 ) | sed "s/^/$as_me: WARNING: /" >&2
10950 ;;
10951esac
10952{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10956else
10957 eval "$as_ac_Header=\$ac_header_preproc"
10958fi
10959ac_res=`eval echo '${'$as_ac_Header'}'`
10960 { echo "$as_me:$LINENO: result: $ac_res" >&5
10961echo "${ECHO_T}$ac_res" >&6; }
10962
10963fi
10964if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967_ACEOF
10968
10969fi
10970
10971done
10972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973
10974
10975
10976
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978do
10979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985fi
10986ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988echo "${ECHO_T}$ac_res" >&6; }
10989else
10990 # Is the header compilable?
10991{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h. */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h. */
10999$ac_includes_default
11000#include <$ac_header>
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (ac_try="$ac_compile"
11004case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007esac
11008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_header_compiler=yes
11037else
11038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 ac_header_compiler=no
11042fi
11043
11044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046echo "${ECHO_T}$ac_header_compiler" >&6; }
11047
11048# Is the header present?
11049{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057#include <$ac_header>
11058_ACEOF
11059if { (ac_try="$ac_cpp conftest.$ac_ext"
11060case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063esac
11064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } >/dev/null; then
11072 if test -s conftest.err; then
11073 ac_cpp_err=$ac_c_preproc_warn_flag
11074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11075 else
11076 ac_cpp_err=
11077 fi
11078else
11079 ac_cpp_err=yes
11080fi
11081if test -z "$ac_cpp_err"; then
11082 ac_header_preproc=yes
11083else
11084 echo "$as_me: failed program was:" >&5
11085sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 ac_header_preproc=no
11088fi
11089
11090rm -f conftest.err conftest.$ac_ext
11091{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092echo "${ECHO_T}$ac_header_preproc" >&6; }
11093
11094# So? What about this header?
11095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096 yes:no: )
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101 ac_header_preproc=yes
11102 ;;
11103 no:yes:* )
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11107echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11111echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011117## ------------------------------------ ##
11118## Report this to http://llvm.org/bugs/ ##
11119## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011120_ASBOX
11121 ) | sed "s/^/$as_me: WARNING: /" >&2
11122 ;;
11123esac
11124{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128else
11129 eval "$as_ac_Header=\$ac_header_preproc"
11130fi
11131ac_res=`eval echo '${'$as_ac_Header'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133echo "${ECHO_T}$ac_res" >&6; }
11134
11135fi
11136if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139_ACEOF
11140
11141fi
11142
11143done
11144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011145
11146
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011148do
11149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155fi
11156ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158echo "${ECHO_T}$ac_res" >&6; }
11159else
11160 # Is the header compilable?
11161{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163cat >conftest.$ac_ext <<_ACEOF
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
11169$ac_includes_default
11170#include <$ac_header>
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (ac_try="$ac_compile"
11174case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190esac
11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_try") 2>&5
11203 ac_status=$?
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_header_compiler=yes
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 ac_header_compiler=no
11212fi
11213
11214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216echo "${ECHO_T}$ac_header_compiler" >&6; }
11217
11218# Is the header present?
11219{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227#include <$ac_header>
11228_ACEOF
11229if { (ac_try="$ac_cpp conftest.$ac_ext"
11230case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } >/dev/null; then
11242 if test -s conftest.err; then
11243 ac_cpp_err=$ac_c_preproc_warn_flag
11244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11245 else
11246 ac_cpp_err=
11247 fi
11248else
11249 ac_cpp_err=yes
11250fi
11251if test -z "$ac_cpp_err"; then
11252 ac_header_preproc=yes
11253else
11254 echo "$as_me: failed program was:" >&5
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257 ac_header_preproc=no
11258fi
11259
11260rm -f conftest.err conftest.$ac_ext
11261{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262echo "${ECHO_T}$ac_header_preproc" >&6; }
11263
11264# So? What about this header?
11265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266 yes:no: )
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11272 ;;
11273 no:yes:* )
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011287## ------------------------------------ ##
11288## Report this to http://llvm.org/bugs/ ##
11289## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011290_ASBOX
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11292 ;;
11293esac
11294{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 eval "$as_ac_Header=\$ac_header_preproc"
11300fi
11301ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303echo "${ECHO_T}$ac_res" >&6; }
11304
11305fi
11306if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011307 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309_ACEOF
11310 break
11311fi
11312
11313done
11314
11315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011316
11317
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011319do
11320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326 cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334#define $ac_func innocuous_$ac_func
11335
11336/* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11340
11341#ifdef __STDC__
11342# include <limits.h>
11343#else
11344# include <assert.h>
11345#endif
11346
11347#undef $ac_func
11348
11349/* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352#ifdef __cplusplus
11353extern "C"
11354#endif
11355char $ac_func ();
11356/* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359#if defined __stub_$ac_func || defined __stub___$ac_func
11360choke me
11361#endif
11362
11363int
11364main ()
11365{
11366return $ac_func ();
11367 ;
11368 return 0;
11369}
11370_ACEOF
11371rm -f conftest.$ac_objext conftest$ac_exeext
11372if { (ac_try="$ac_link"
11373case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376esac
11377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 eval "$as_ac_var=yes"
11406else
11407 echo "$as_me: failed program was:" >&5
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 eval "$as_ac_var=no"
11411fi
11412
11413rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415fi
11416ac_res=`eval echo '${'$as_ac_var'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418echo "${ECHO_T}$ac_res" >&6; }
11419if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422_ACEOF
11423 break
11424fi
11425done
11426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011427
11428
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011430do
11431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437 cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445#define $ac_func innocuous_$ac_func
11446
11447/* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11451
11452#ifdef __STDC__
11453# include <limits.h>
11454#else
11455# include <assert.h>
11456#endif
11457
11458#undef $ac_func
11459
11460/* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463#ifdef __cplusplus
11464extern "C"
11465#endif
11466char $ac_func ();
11467/* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
11470#if defined __stub_$ac_func || defined __stub___$ac_func
11471choke me
11472#endif
11473
11474int
11475main ()
11476{
11477return $ac_func ();
11478 ;
11479 return 0;
11480}
11481_ACEOF
11482rm -f conftest.$ac_objext conftest$ac_exeext
11483if { (ac_try="$ac_link"
11484case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487esac
11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11517else
11518 echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 eval "$as_ac_var=no"
11522fi
11523
11524rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526fi
11527ac_res=`eval echo '${'$as_ac_var'}'`
11528 { echo "$as_me:$LINENO: result: $ac_res" >&5
11529echo "${ECHO_T}$ac_res" >&6; }
11530if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011531 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533_ACEOF
11534 break
11535fi
11536done
11537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011538
11539
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011540for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011541do
11542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h. */
11554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11556#define $ac_func innocuous_$ac_func
11557
11558/* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below.
11560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 <limits.h> exists even on freestanding compilers. */
11562
11563#ifdef __STDC__
11564# include <limits.h>
11565#else
11566# include <assert.h>
11567#endif
11568
11569#undef $ac_func
11570
11571/* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574#ifdef __cplusplus
11575extern "C"
11576#endif
11577char $ac_func ();
11578/* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581#if defined __stub_$ac_func || defined __stub___$ac_func
11582choke me
11583#endif
11584
11585int
11586main ()
11587{
11588return $ac_func ();
11589 ;
11590 return 0;
11591}
11592_ACEOF
11593rm -f conftest.$ac_objext conftest$ac_exeext
11594if { (ac_try="$ac_link"
11595case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
11599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611esac
11612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 eval "$as_ac_var=yes"
11628else
11629 echo "$as_me: failed program was:" >&5
11630sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 eval "$as_ac_var=no"
11633fi
11634
11635rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637fi
11638ac_res=`eval echo '${'$as_ac_var'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640echo "${ECHO_T}$ac_res" >&6; }
11641if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011642 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644_ACEOF
11645 break
11646fi
11647done
11648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011649
11650
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011652do
11653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
11665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667#define $ac_func innocuous_$ac_func
11668
11669/* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11673
11674#ifdef __STDC__
11675# include <limits.h>
11676#else
11677# include <assert.h>
11678#endif
11679
11680#undef $ac_func
11681
11682/* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11685#ifdef __cplusplus
11686extern "C"
11687#endif
11688char $ac_func ();
11689/* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692#if defined __stub_$ac_func || defined __stub___$ac_func
11693choke me
11694#endif
11695
11696int
11697main ()
11698{
11699return $ac_func ();
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext conftest$ac_exeext
11705if { (ac_try="$ac_link"
11706case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 eval "$as_ac_var=yes"
11739else
11740 echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
11743 eval "$as_ac_var=no"
11744fi
11745
11746rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748fi
11749ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751echo "${ECHO_T}$ac_res" >&6; }
11752if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755_ACEOF
11756
11757fi
11758done
11759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011760
11761
11762
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011763for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011764do
11765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779#define $ac_func innocuous_$ac_func
11780
11781/* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11785
11786#ifdef __STDC__
11787# include <limits.h>
11788#else
11789# include <assert.h>
11790#endif
11791
11792#undef $ac_func
11793
11794/* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char $ac_func ();
11801/* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804#if defined __stub_$ac_func || defined __stub___$ac_func
11805choke me
11806#endif
11807
11808int
11809main ()
11810{
11811return $ac_func ();
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext conftest$ac_exeext
11817if { (ac_try="$ac_link"
11818case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 eval "$as_ac_var=no"
11856fi
11857
11858rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860fi
11861ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863echo "${ECHO_T}$ac_res" >&6; }
11864if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867_ACEOF
11868
11869fi
11870done
11871
11872
Douglas Gregor01746742009-05-11 18:05:52 +000011873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011874{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11875echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011876
Reid Spencer86901802004-12-08 23:07:27 +000011877ICC=no
11878IXX=no
11879case $CC in
11880 icc*|icpc*)
11881 ICC=yes
11882 IXX=yes
11883 ;;
11884 *)
11885 ;;
11886esac
11887
Duraid Madina937c60a2006-02-15 07:57:42 +000011888if test "$GCC" != "yes" && test "$ICC" != "yes"
11889then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011890 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11891echo "$as_me: error: gcc|icc required but not found" >&2;}
11892 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011893fi
11894
11895if test "$GXX" != "yes" && test "$IXX" != "yes"
11896then
Eric Christopher73e36da2010-12-08 02:02:14 +000011897 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11898echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011899 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011900fi
11901
Reid Spencer86901802004-12-08 23:07:27 +000011902if test "$GCC" = "yes"
11903then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011904 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011905#if !defined(__GNUC__) || __GNUC__ < 3
11906#error Unsupported GCC version
11907#endif
11908
11909_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011910rm -f conftest.$ac_objext
11911if { (ac_try="$ac_compile"
11912case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 :
Chris Lattner399c7c72008-02-05 19:43:53 +000011945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011946 echo "$as_me: failed program was:" >&5
11947sed 's/^/| /' conftest.$ac_ext >&5
11948
11949 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11950echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11951 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000011952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011953
Chris Lattner399c7c72008-02-05 19:43:53 +000011954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011955fi
11956
11957if test -z "$llvm_cv_gnu_make_command"
11958then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011959 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11960echo "$as_me: error: GNU Make required but not found" >&2;}
11961 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011962fi
11963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011964{ echo "$as_me:$LINENO: result: ok" >&5
11965echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011967{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11968echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011969NO_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 +000011970
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011971NO_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 +000011972
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011973COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11974
11975{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11976echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000011977
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000011978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011979
11980{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11981echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11982if test "${ac_cv_lib_m_sin+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000011984else
11985 ac_check_lib_save_LIBS=$LIBS
11986LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011987cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000011992/* end confdefs.h. */
11993
Reid Spencera773bd52006-08-04 18:18:08 +000011994/* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000011997#ifdef __cplusplus
11998extern "C"
11999#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012000char sin ();
12001int
12002main ()
12003{
Reid Spencera773bd52006-08-04 18:18:08 +000012004return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012005 ;
12006 return 0;
12007}
12008_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012009rm -f conftest.$ac_objext conftest$ac_exeext
12010if { (ac_try="$ac_link"
12011case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_link") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024 { (case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_try") 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012043 ac_cv_lib_m_sin=yes
12044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012045 echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012050
Bill Wendlingebcceee2009-04-18 11:20:33 +000012051rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012052 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012053LIBS=$ac_check_lib_save_LIBS
12054fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012055{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12056echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12057if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012058 cat >>confdefs.h <<_ACEOF
12059#define HAVE_LIBM 1
12060_ACEOF
12061
12062 LIBS="-lm $LIBS"
12063
12064fi
12065
Jeff Cohen28783c32007-01-12 18:22:38 +000012066if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012067
12068{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12069echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12070if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012072else
12073 ac_check_lib_save_LIBS=$LIBS
12074LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012075cat >conftest.$ac_ext <<_ACEOF
12076/* confdefs.h. */
12077_ACEOF
12078cat confdefs.h >>conftest.$ac_ext
12079cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012080/* end confdefs.h. */
12081
Reid Spencer48fdf912006-06-01 19:03:21 +000012082
Reid Spencer484fc8e2006-06-01 16:55:59 +000012083int
12084main ()
12085{
Reid Spencera773bd52006-08-04 18:18:08 +000012086return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012087 ;
12088 return 0;
12089}
12090_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012091rm -f conftest.$ac_objext conftest$ac_exeext
12092if { (ac_try="$ac_link"
12093case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096esac
12097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_try") 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012125 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012127 echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012132
Bill Wendlingebcceee2009-04-18 11:20:33 +000012133rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012134 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012135LIBS=$ac_check_lib_save_LIBS
12136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012137{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12138echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12139if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012140 cat >>confdefs.h <<_ACEOF
12141#define HAVE_LIBIMAGEHLP 1
12142_ACEOF
12143
12144 LIBS="-limagehlp $LIBS"
12145
12146fi
12147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148
12149{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12150echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12151if test "${ac_cv_lib_psapi_main+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012153else
12154 ac_check_lib_save_LIBS=$LIBS
12155LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012161/* end confdefs.h. */
12162
Reid Spencer48fdf912006-06-01 19:03:21 +000012163
Reid Spencer484fc8e2006-06-01 16:55:59 +000012164int
12165main ()
12166{
Reid Spencera773bd52006-08-04 18:18:08 +000012167return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012168 ;
12169 return 0;
12170}
12171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012172rm -f conftest.$ac_objext conftest$ac_exeext
12173if { (ac_try="$ac_link"
12174case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012206 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012208 echo "$as_me: failed program was:" >&5
12209sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213
Bill Wendlingebcceee2009-04-18 11:20:33 +000012214rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012215 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012216LIBS=$ac_check_lib_save_LIBS
12217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12219echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12220if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012221 cat >>confdefs.h <<_ACEOF
12222#define HAVE_LIBPSAPI 1
12223_ACEOF
12224
12225 LIBS="-lpsapi $LIBS"
12226
12227fi
12228
12229fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012231{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12232echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12233if test "${ac_cv_search_dlopen+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012235else
12236 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012243
Reid Spencera773bd52006-08-04 18:18:08 +000012244/* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012247#ifdef __cplusplus
12248extern "C"
12249#endif
John Criswell7a73b802003-06-30 21:59:07 +000012250char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012251int
12252main ()
12253{
Reid Spencera773bd52006-08-04 18:18:08 +000012254return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012255 ;
12256 return 0;
12257}
12258_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012259for ac_lib in '' dl; do
12260 if test -z "$ac_lib"; then
12261 ac_res="none required"
12262 else
12263 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012265 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012266 rm -f conftest.$ac_objext conftest$ac_exeext
12267if { (ac_try="$ac_link"
12268case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012300 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012301else
12302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
12305
John Criswell7a73b802003-06-30 21:59:07 +000012306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012307
Bill Wendlingebcceee2009-04-18 11:20:33 +000012308rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309 conftest$ac_exeext
12310 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012311 break
John Criswell7a73b802003-06-30 21:59:07 +000012312fi
Reid Spencera773bd52006-08-04 18:18:08 +000012313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314if test "${ac_cv_search_dlopen+set}" = set; then
12315 :
Reid Spencera773bd52006-08-04 18:18:08 +000012316else
12317 ac_cv_search_dlopen=no
12318fi
12319rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012320LIBS=$ac_func_search_save_LIBS
12321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012322{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12323echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012324ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012325if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328cat >>confdefs.h <<\_ACEOF
12329#define HAVE_DLOPEN 1
12330_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012331
12332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012333 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12334echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012335fi
12336
12337
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012338if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12340echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12341if test "${ac_cv_search_ffi_call+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012343else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012344 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012345cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012350/* end confdefs.h. */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char ffi_call ();
12359int
12360main ()
12361{
12362return ffi_call ();
12363 ;
12364 return 0;
12365}
12366_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012367for ac_lib in '' ffi; do
12368 if test -z "$ac_lib"; then
12369 ac_res="none required"
12370 else
12371 ac_res=-l$ac_lib
12372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12373 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012374 rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (ac_try="$ac_link"
12376case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012408 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409else
12410 echo "$as_me: failed program was:" >&5
12411sed 's/^/| /' conftest.$ac_ext >&5
12412
12413
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012415
Bill Wendlingebcceee2009-04-18 11:20:33 +000012416rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012417 conftest$ac_exeext
12418 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012419 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012420fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012422if test "${ac_cv_search_ffi_call+set}" = set; then
12423 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012424else
12425 ac_cv_search_ffi_call=no
12426fi
12427rm conftest.$ac_ext
12428LIBS=$ac_func_search_save_LIBS
12429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012430{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12431echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012432ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012433if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012436cat >>confdefs.h <<\_ACEOF
12437#define HAVE_FFI_CALL 1
12438_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012439
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012440else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012441 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12442echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12443 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012444fi
12445
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012446fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012448{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12449echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12450if test "${ac_cv_search_mallinfo+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012452else
12453 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012454cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012460
Reid Spencera773bd52006-08-04 18:18:08 +000012461/* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012464#ifdef __cplusplus
12465extern "C"
12466#endif
John Criswell7a73b802003-06-30 21:59:07 +000012467char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012468int
12469main ()
12470{
Reid Spencera773bd52006-08-04 18:18:08 +000012471return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012472 ;
12473 return 0;
12474}
12475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012476for ac_lib in '' malloc; do
12477 if test -z "$ac_lib"; then
12478 ac_res="none required"
12479 else
12480 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012482 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483 rm -f conftest.$ac_objext conftest$ac_exeext
12484if { (ac_try="$ac_link"
12485case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488esac
12489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_link") 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012517 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522
John Criswell7a73b802003-06-30 21:59:07 +000012523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012524
Bill Wendlingebcceee2009-04-18 11:20:33 +000012525rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012526 conftest$ac_exeext
12527 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012528 break
John Criswell7a73b802003-06-30 21:59:07 +000012529fi
Reid Spencera773bd52006-08-04 18:18:08 +000012530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012531if test "${ac_cv_search_mallinfo+set}" = set; then
12532 :
Reid Spencera773bd52006-08-04 18:18:08 +000012533else
12534 ac_cv_search_mallinfo=no
12535fi
12536rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012537LIBS=$ac_func_search_save_LIBS
12538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012539{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12540echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012541ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012542if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012545cat >>confdefs.h <<\_ACEOF
12546#define HAVE_MALLINFO 1
12547_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012548
12549fi
12550
12551
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012552if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012553
12554{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12555echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12556if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012558else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012559 ac_check_lib_save_LIBS=$LIBS
12560LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012561cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h. */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012566/* end confdefs.h. */
12567
Reid Spencera773bd52006-08-04 18:18:08 +000012568/* Override any GCC internal prototype to avoid an error.
12569 Use char because int might match the return type of a GCC
12570 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012571#ifdef __cplusplus
12572extern "C"
12573#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012574char pthread_mutex_init ();
12575int
12576main ()
12577{
Reid Spencera773bd52006-08-04 18:18:08 +000012578return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012579 ;
12580 return 0;
12581}
12582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583rm -f conftest.$ac_objext conftest$ac_exeext
12584if { (ac_try="$ac_link"
12585case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588esac
12589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_link") 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest$ac_exeext'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012617 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012624
Bill Wendlingebcceee2009-04-18 11:20:33 +000012625rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012626 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012627LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012629{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12630echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12631if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012632 cat >>confdefs.h <<_ACEOF
12633#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012634_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012635
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012636 LIBS="-lpthread $LIBS"
12637
Reid Spencer22177fe2005-07-12 15:24:20 +000012638fi
12639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012640 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12641echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12642if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012644else
12645 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012646cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012651/* end confdefs.h. */
12652
Reid Spencera773bd52006-08-04 18:18:08 +000012653/* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012656#ifdef __cplusplus
12657extern "C"
12658#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012659char pthread_mutex_lock ();
12660int
12661main ()
12662{
Reid Spencera773bd52006-08-04 18:18:08 +000012663return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012664 ;
12665 return 0;
12666}
12667_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012668for ac_lib in '' pthread; do
12669 if test -z "$ac_lib"; then
12670 ac_res="none required"
12671 else
12672 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012674 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675 rm -f conftest.$ac_objext conftest$ac_exeext
12676if { (ac_try="$ac_link"
12677case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680esac
12681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest$ac_exeext'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012709 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012710else
12711 echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714
Brian Gaeke5f268f72003-12-05 19:29:01 +000012715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716
Bill Wendlingebcceee2009-04-18 11:20:33 +000012717rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012718 conftest$ac_exeext
12719 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012720 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012721fi
Reid Spencera773bd52006-08-04 18:18:08 +000012722done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012723if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12724 :
Reid Spencera773bd52006-08-04 18:18:08 +000012725else
12726 ac_cv_search_pthread_mutex_lock=no
12727fi
12728rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012729LIBS=$ac_func_search_save_LIBS
12730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12732echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012733ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012734if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737cat >>confdefs.h <<\_ACEOF
12738#define HAVE_PTHREAD_MUTEX_LOCK 1
12739_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012740
12741fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012743 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12744echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12745if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012747else
12748 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012754/* end confdefs.h. */
12755
12756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759#ifdef __cplusplus
12760extern "C"
12761#endif
12762char pthread_rwlock_init ();
12763int
12764main ()
12765{
12766return pthread_rwlock_init ();
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771for ac_lib in '' pthread; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12774 else
12775 ac_res=-l$ac_lib
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778 rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012812 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
Owen Andersonde8aed22009-06-16 18:20:20 +000012818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819
Owen Andersonde8aed22009-06-16 18:20:20 +000012820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 conftest$ac_exeext
12822 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012823 break
12824fi
12825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012826if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12827 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012828else
12829 ac_cv_search_pthread_rwlock_init=no
12830fi
12831rm conftest.$ac_ext
12832LIBS=$ac_func_search_save_LIBS
12833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012834{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12835echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012836ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840cat >>confdefs.h <<\_ACEOF
12841#define HAVE_PTHREAD_RWLOCK_INIT 1
12842_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012843
12844fi
12845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12847echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12848if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012850else
12851 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012857/* end confdefs.h. */
12858
12859/* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862#ifdef __cplusplus
12863extern "C"
12864#endif
12865char pthread_getspecific ();
12866int
12867main ()
12868{
12869return pthread_getspecific ();
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874for ac_lib in '' pthread; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12877 else
12878 ac_res=-l$ac_lib
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12880 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881 rm -f conftest.$ac_objext conftest$ac_exeext
12882if { (ac_try="$ac_link"
12883case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886esac
12887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_link") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
12900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012915 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920
Owen Anderson27fcfe12009-06-25 23:10:26 +000012921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922
Owen Anderson27fcfe12009-06-25 23:10:26 +000012923rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012924 conftest$ac_exeext
12925 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012926 break
12927fi
12928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12930 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000012931else
12932 ac_cv_search_pthread_getspecific=no
12933fi
12934rm conftest.$ac_ext
12935LIBS=$ac_func_search_save_LIBS
12936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012937{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12938echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000012939ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012943cat >>confdefs.h <<\_ACEOF
12944#define HAVE_PTHREAD_GETSPECIFIC 1
12945_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012946
12947fi
12948
Reid Spencer0a262ba2005-08-24 10:07:20 +000012949fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000012950
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012951
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012952# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012954 withval=$with_udis86;
12955 USE_UDIS86=1
12956
12957 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000012958 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012959 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12960 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012961
12962{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12963echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12964if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012966else
12967 ac_check_lib_save_LIBS=$LIBS
12968LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969cat >conftest.$ac_ext <<_ACEOF
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012974/* end confdefs.h. */
12975
12976/* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12979#ifdef __cplusplus
12980extern "C"
12981#endif
12982char ud_init ();
12983int
12984main ()
12985{
12986return ud_init ();
12987 ;
12988 return 0;
12989}
12990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012991rm -f conftest.$ac_objext conftest$ac_exeext
12992if { (ac_try="$ac_link"
12993case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_link") 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009esac
13010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13019esac
13020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_try") 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013025 ac_cv_lib_udis86_ud_init=yes
13026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013032
Bill Wendlingebcceee2009-04-18 11:20:33 +000013033rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013034 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013035LIBS=$ac_check_lib_save_LIBS
13036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013037{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13038echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13039if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013040 cat >>confdefs.h <<_ACEOF
13041#define HAVE_LIBUDIS86 1
13042_ACEOF
13043
13044 LIBS="-ludis86 $LIBS"
13045
13046else
13047
13048 echo "Error! You need to have libudis86 around."
13049 exit -1
13050
13051fi
13052
13053
13054else
13055 USE_UDIS86=0
13056
13057fi
13058
13059
13060cat >>confdefs.h <<_ACEOF
13061#define USE_UDIS86 $USE_UDIS86
13062_ACEOF
13063
13064
13065
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013066# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013068 withval=$with_oprofile;
13069 USE_OPROFILE=1
13070
13071 case "$withval" in
13072 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013073 no) llvm_cv_oppath=
13074 USE_OPROFILE=0
13075 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013076 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christophercbd84f72012-08-03 05:18:00 +000013077 BUILD_FLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013078 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013079 case $llvm_cv_os_type in
13080 Linux)
13081 if test -n "$llvm_cv_oppath" ; then
13082 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13083 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13085if test "${ac_cv_search_bfd_init+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013087else
13088 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013089cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h. */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013094/* end confdefs.h. */
13095
13096/* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13099#ifdef __cplusplus
13100extern "C"
13101#endif
13102char bfd_init ();
13103int
13104main ()
13105{
13106return bfd_init ();
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111for ac_lib in '' bfd; do
13112 if test -z "$ac_lib"; then
13113 ac_res="none required"
13114 else
13115 ac_res=-l$ac_lib
13116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13117 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013118 rm -f conftest.$ac_objext conftest$ac_exeext
13119if { (ac_try="$ac_link"
13120case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_link") 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13133 { (case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_try") 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146esac
13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013152 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013153else
13154 echo "$as_me: failed program was:" >&5
13155sed 's/^/| /' conftest.$ac_ext >&5
13156
13157
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013159
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013160rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013161 conftest$ac_exeext
13162 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013163 break
13164fi
13165done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013166if test "${ac_cv_search_bfd_init+set}" = set; then
13167 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013168else
13169 ac_cv_search_bfd_init=no
13170fi
13171rm conftest.$ac_ext
13172LIBS=$ac_func_search_save_LIBS
13173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013174{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13175echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013176ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013177if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13179
13180fi
13181
Eli Bendersky61b18512012-03-13 08:33:15 +000013182 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013183echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13184if test "${ac_cv_search_op_open_agent+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013186else
13187 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013193/* end confdefs.h. */
13194
13195/* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198#ifdef __cplusplus
13199extern "C"
13200#endif
13201char op_open_agent ();
13202int
13203main ()
13204{
13205return op_open_agent ();
13206 ;
13207 return 0;
13208}
13209_ACEOF
13210for ac_lib in '' opagent; do
13211 if test -z "$ac_lib"; then
13212 ac_res="none required"
13213 else
13214 ac_res=-l$ac_lib
13215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13216 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217 rm -f conftest.$ac_objext conftest$ac_exeext
13218if { (ac_try="$ac_link"
13219case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013251 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013252else
13253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013259rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260 conftest$ac_exeext
13261 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013262 break
13263fi
13264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265if test "${ac_cv_search_op_open_agent+set}" = set; then
13266 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013267else
13268 ac_cv_search_op_open_agent=no
13269fi
13270rm conftest.$ac_ext
13271LIBS=$ac_func_search_save_LIBS
13272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13274echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013275ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13278
13279else
13280
Eli Bendersky61b18512012-03-13 08:33:15 +000013281 echo "Error! You need to have libopagent around."
13282 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013283
13284fi
13285
Eli Bendersky61b18512012-03-13 08:33:15 +000013286 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13288echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13289if test "${ac_cv_header_opagent_h+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291fi
13292{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13293echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13294else
13295 # Is the header compilable?
13296{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13297echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13298cat >conftest.$ac_ext <<_ACEOF
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
13304$ac_includes_default
13305#include <opagent.h>
13306_ACEOF
13307rm -f conftest.$ac_objext
13308if { (ac_try="$ac_compile"
13309case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13312esac
13313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_compile") 2>conftest.er1
13315 ac_status=$?
13316 grep -v '^ *+' conftest.er1 >conftest.err
13317 rm -f conftest.er1
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13322 { (case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325esac
13326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_try") 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_header_compiler=yes
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346 ac_header_compiler=no
13347fi
13348
13349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351echo "${ECHO_T}$ac_header_compiler" >&6; }
13352
13353# Is the header present?
13354{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13355echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13356cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362#include <opagent.h>
13363_ACEOF
13364if { (ac_try="$ac_cpp conftest.$ac_ext"
13365case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null; then
13377 if test -s conftest.err; then
13378 ac_cpp_err=$ac_c_preproc_warn_flag
13379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13380 else
13381 ac_cpp_err=
13382 fi
13383else
13384 ac_cpp_err=yes
13385fi
13386if test -z "$ac_cpp_err"; then
13387 ac_header_preproc=yes
13388else
13389 echo "$as_me: failed program was:" >&5
13390sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_header_preproc=no
13393fi
13394
13395rm -f conftest.err conftest.$ac_ext
13396{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397echo "${ECHO_T}$ac_header_preproc" >&6; }
13398
13399# So? What about this header?
13400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401 yes:no: )
13402 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13405echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13407 ;;
13408 no:yes:* )
13409 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13410echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13412echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13414echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13416echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13418echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13420echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13421 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013422## ------------------------------------ ##
13423## Report this to http://llvm.org/bugs/ ##
13424## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013425_ASBOX
13426 ) | sed "s/^/$as_me: WARNING: /" >&2
13427 ;;
13428esac
13429{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13430echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13431if test "${ac_cv_header_opagent_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433else
13434 ac_cv_header_opagent_h=$ac_header_preproc
13435fi
13436{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13437echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13438
13439fi
13440if test $ac_cv_header_opagent_h = yes; then
13441 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013442else
13443
Eli Bendersky61b18512012-03-13 08:33:15 +000013444 echo "Error! You need to have opagent.h around."
13445 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013446
13447fi
13448
13449
Eli Bendersky61b18512012-03-13 08:33:15 +000013450 fi ;;
13451 *)
13452 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13453echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13454 { (exit 1); exit 1; }; } ;;
13455 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013456
13457else
13458
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013459 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013460
13461
13462fi
13463
13464
13465cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013466#define LLVM_USE_OPROFILE $USE_OPROFILE
13467_ACEOF
13468
13469
13470
13471# Check whether --with-intel-jitevents was given.
13472if test "${with_intel_jitevents+set}" = set; then
13473 withval=$with_intel_jitevents;
13474 case $llvm_cv_os_type in
13475 Linux|Win32|Cygwin|MingW) ;;
13476 *)
13477 { { echo "$as_me:$LINENO: error:
13478 Intel JIT API support is available on Linux and Windows only.\"" >&5
13479echo "$as_me: error:
13480 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13481 { (exit 1); exit 1; }; } ;;
13482 esac
13483
13484 USE_INTEL_JITEVENTS=1
13485
13486 case "$llvm_cv_target_arch" in
13487 x86) llvm_intel_jitevents_archdir="lib32";;
13488 x86_64) llvm_intel_jitevents_archdir="lib64";;
13489 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13490 exit -1;;
13491 esac
13492 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13493 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13494 case "$withval" in
13495 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13496 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13497 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013498 esac
13499
13500
13501
13502
13503 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christophercbd84f72012-08-03 05:18:00 +000013504 BUILD_FLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013505
13506 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13507echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13508if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510else
13511 ac_func_search_save_LIBS=$LIBS
13512cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518
13519/* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13522#ifdef __cplusplus
13523extern "C"
13524#endif
13525char iJIT_IsProfilingActive ();
13526int
13527main ()
13528{
13529return iJIT_IsProfilingActive ();
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534for ac_lib in '' jitprofiling; do
13535 if test -z "$ac_lib"; then
13536 ac_res="none required"
13537 else
13538 ac_res=-l$ac_lib
13539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13540 fi
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542if { (ac_try="$ac_link"
13543case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13546esac
13547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556 { (case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559esac
13560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_try") 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest$ac_exeext'
13566 { (case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13569esac
13570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_try") 2>&5
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13576else
13577 echo "$as_me: failed program was:" >&5
13578sed 's/^/| /' conftest.$ac_ext >&5
13579
13580
13581fi
13582
13583rm -f core conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext
13585 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13586 break
13587fi
13588done
13589if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13590 :
13591else
13592 ac_cv_search_iJIT_IsProfilingActive=no
13593fi
13594rm conftest.$ac_ext
13595LIBS=$ac_func_search_save_LIBS
13596fi
13597{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13598echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13599ac_res=$ac_cv_search_iJIT_IsProfilingActive
13600if test "$ac_res" != no; then
13601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13602
13603else
13604
13605 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13606 exit -1
13607
13608fi
13609
13610 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13611 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13612echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13613if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615fi
13616{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13617echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13618else
13619 # Is the header compilable?
13620{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13621echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13622cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628$ac_includes_default
13629#include <jitprofiling.h>
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (ac_try="$ac_compile"
13633case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636esac
13637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13639 ac_status=$?
13640 grep -v '^ *+' conftest.er1 >conftest.err
13641 rm -f conftest.er1
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_header_compiler=yes
13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 ac_header_compiler=no
13671fi
13672
13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13675echo "${ECHO_T}$ac_header_compiler" >&6; }
13676
13677# Is the header present?
13678{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13679echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13680cat >conftest.$ac_ext <<_ACEOF
13681/* confdefs.h. */
13682_ACEOF
13683cat confdefs.h >>conftest.$ac_ext
13684cat >>conftest.$ac_ext <<_ACEOF
13685/* end confdefs.h. */
13686#include <jitprofiling.h>
13687_ACEOF
13688if { (ac_try="$ac_cpp conftest.$ac_ext"
13689case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } >/dev/null; then
13701 if test -s conftest.err; then
13702 ac_cpp_err=$ac_c_preproc_warn_flag
13703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13704 else
13705 ac_cpp_err=
13706 fi
13707else
13708 ac_cpp_err=yes
13709fi
13710if test -z "$ac_cpp_err"; then
13711 ac_header_preproc=yes
13712else
13713 echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 ac_header_preproc=no
13717fi
13718
13719rm -f conftest.err conftest.$ac_ext
13720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721echo "${ECHO_T}$ac_header_preproc" >&6; }
13722
13723# So? What about this header?
13724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13725 yes:no: )
13726 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13729echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13730 ac_header_preproc=yes
13731 ;;
13732 no:yes:* )
13733 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13734echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13736echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13738echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13740echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13742echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13744echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13745 ( cat <<\_ASBOX
13746## ------------------------------------ ##
13747## Report this to http://llvm.org/bugs/ ##
13748## ------------------------------------ ##
13749_ASBOX
13750 ) | sed "s/^/$as_me: WARNING: /" >&2
13751 ;;
13752esac
13753{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13754echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13755if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757else
13758 ac_cv_header_jitprofiling_h=$ac_header_preproc
13759fi
13760{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13761echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13762
13763fi
13764if test $ac_cv_header_jitprofiling_h = yes; then
13765 :
13766else
13767
13768 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13769 exit -1
13770
13771fi
13772
13773
13774
13775
13776else
13777
13778 USE_INTEL_JITEVENTS=0
13779
13780
13781fi
13782
13783
13784cat >>confdefs.h <<_ACEOF
13785#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013786_ACEOF
13787
13788
13789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013790
13791
13792
13793
13794
Eric Christophercbd84f72012-08-03 05:18:00 +000013795
13796
Reid Spencer59473af2004-12-25 07:31:29 +000013797ac_header_dirent=no
13798for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13800{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13801echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013805 cat >conftest.$ac_ext <<_ACEOF
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013810/* end confdefs.h. */
13811#include <sys/types.h>
13812#include <$ac_hdr>
13813
13814int
13815main ()
13816{
13817if ((DIR *) 0)
13818return 0;
13819 ;
13820 return 0;
13821}
13822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823rm -f conftest.$ac_objext
13824if { (ac_try="$ac_compile"
13825case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013857 eval "$as_ac_Header=yes"
13858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013864
Reid Spencera773bd52006-08-04 18:18:08 +000013865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013866fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867ac_res=`eval echo '${'$as_ac_Header'}'`
13868 { echo "$as_me:$LINENO: result: $ac_res" >&5
13869echo "${ECHO_T}$ac_res" >&6; }
13870if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013871 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013873_ACEOF
13874
13875ac_header_dirent=$ac_hdr; break
13876fi
13877
13878done
13879# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13880if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13882echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13883if test "${ac_cv_search_opendir+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013885else
13886 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013887cat >conftest.$ac_ext <<_ACEOF
13888/* confdefs.h. */
13889_ACEOF
13890cat confdefs.h >>conftest.$ac_ext
13891cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013892/* end confdefs.h. */
13893
Reid Spencera773bd52006-08-04 18:18:08 +000013894/* Override any GCC internal prototype to avoid an error.
13895 Use char because int might match the return type of a GCC
13896 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013897#ifdef __cplusplus
13898extern "C"
13899#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013900char opendir ();
13901int
13902main ()
13903{
Reid Spencera773bd52006-08-04 18:18:08 +000013904return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013905 ;
13906 return 0;
13907}
13908_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013909for ac_lib in '' dir; do
13910 if test -z "$ac_lib"; then
13911 ac_res="none required"
13912 else
13913 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013915 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916 rm -f conftest.$ac_objext conftest$ac_exeext
13917if { (ac_try="$ac_link"
13918case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921esac
13922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_link") 2>conftest.er1
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13931 { (case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934esac
13935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_try") 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest$ac_exeext'
13941 { (case "(($ac_try" in
13942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943 *) ac_try_echo=$ac_try;;
13944esac
13945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13946 (eval "$ac_try") 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013950 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951else
13952 echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955
Reid Spencer59473af2004-12-25 07:31:29 +000013956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013957
Bill Wendlingebcceee2009-04-18 11:20:33 +000013958rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959 conftest$ac_exeext
13960 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013961 break
Reid Spencer59473af2004-12-25 07:31:29 +000013962fi
Reid Spencera773bd52006-08-04 18:18:08 +000013963done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013964if test "${ac_cv_search_opendir+set}" = set; then
13965 :
Reid Spencera773bd52006-08-04 18:18:08 +000013966else
13967 ac_cv_search_opendir=no
13968fi
13969rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013970LIBS=$ac_func_search_save_LIBS
13971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013972{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13973echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013974ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013977
13978fi
13979
13980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13983if test "${ac_cv_search_opendir+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013985else
13986 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013992/* end confdefs.h. */
13993
Reid Spencera773bd52006-08-04 18:18:08 +000013994/* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013997#ifdef __cplusplus
13998extern "C"
13999#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014000char opendir ();
14001int
14002main ()
14003{
Reid Spencera773bd52006-08-04 18:18:08 +000014004return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014005 ;
14006 return 0;
14007}
14008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014009for ac_lib in '' x; do
14010 if test -z "$ac_lib"; then
14011 ac_res="none required"
14012 else
14013 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014015 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016 rm -f conftest.$ac_objext conftest$ac_exeext
14017if { (ac_try="$ac_link"
14018case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021esac
14022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_link") 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034esac
14035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest$ac_exeext'
14041 { (case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14044esac
14045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_try") 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014050 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051else
14052 echo "$as_me: failed program was:" >&5
14053sed 's/^/| /' conftest.$ac_ext >&5
14054
14055
Reid Spencer59473af2004-12-25 07:31:29 +000014056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057
Bill Wendlingebcceee2009-04-18 11:20:33 +000014058rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059 conftest$ac_exeext
14060 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014061 break
Reid Spencer59473af2004-12-25 07:31:29 +000014062fi
Reid Spencera773bd52006-08-04 18:18:08 +000014063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014064if test "${ac_cv_search_opendir+set}" = set; then
14065 :
Reid Spencera773bd52006-08-04 18:18:08 +000014066else
14067 ac_cv_search_opendir=no
14068fi
14069rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014070LIBS=$ac_func_search_save_LIBS
14071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014072{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14073echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014074ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014077
14078fi
14079
14080fi
14081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14083echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14084if test "${ac_cv_header_mmap_anon+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014086else
14087 ac_ext=c
14088ac_cpp='$CPP $CPPFLAGS'
14089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091ac_compiler_gnu=$ac_cv_c_compiler_gnu
14092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093 cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014098/* end confdefs.h. */
14099#include <sys/mman.h>
14100#include <unistd.h>
14101#include <fcntl.h>
14102int
14103main ()
14104{
14105mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14106 ;
14107 return 0;
14108}
14109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110rm -f conftest.$ac_objext
14111if { (ac_try="$ac_compile"
14112case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115esac
14116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_compile") 2>conftest.er1
14118 ac_status=$?
14119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest.$ac_objext'
14135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
14139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014144 ac_cv_header_mmap_anon=yes
14145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146 echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151
Reid Spencera773bd52006-08-04 18:18:08 +000014152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014153 ac_ext=c
14154ac_cpp='$CPP $CPPFLAGS'
14155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14157ac_compiler_gnu=$ac_cv_c_compiler_gnu
14158
14159
14160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14162echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014163if test "$ac_cv_header_mmap_anon" = yes; then
14164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165cat >>confdefs.h <<\_ACEOF
14166#define HAVE_MMAP_ANONYMOUS 1
14167_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014168
14169fi
14170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14172echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14173if test "${ac_cv_header_stat_broken+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176 cat >conftest.$ac_ext <<_ACEOF
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014181/* end confdefs.h. */
14182#include <sys/types.h>
14183#include <sys/stat.h>
14184
Reid Spencera773bd52006-08-04 18:18:08 +000014185#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014186# if S_ISBLK (S_IFDIR)
14187You lose.
14188# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014189#endif
14190
Reid Spencera773bd52006-08-04 18:18:08 +000014191#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192# if S_ISBLK (S_IFCHR)
14193You lose.
14194# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014195#endif
14196
Reid Spencera773bd52006-08-04 18:18:08 +000014197#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014198# if S_ISLNK (S_IFREG)
14199You lose.
14200# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014201#endif
14202
Reid Spencera773bd52006-08-04 18:18:08 +000014203#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204# if S_ISSOCK (S_IFREG)
14205You lose.
14206# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014207#endif
14208
14209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014212 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014213else
14214 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216rm -f conftest*
14217
Reid Spencer59473af2004-12-25 07:31:29 +000014218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014219{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14220echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014221if test $ac_cv_header_stat_broken = yes; then
14222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223cat >>confdefs.h <<\_ACEOF
14224#define STAT_MACROS_BROKEN 1
14225_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014226
14227fi
14228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14230echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14231if test "${ac_cv_header_sys_wait_h+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234 cat >conftest.$ac_ext <<_ACEOF
14235/* confdefs.h. */
14236_ACEOF
14237cat confdefs.h >>conftest.$ac_ext
14238cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014240#include <sys/types.h>
14241#include <sys/wait.h>
14242#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014243# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014244#endif
14245#ifndef WIFEXITED
14246# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14247#endif
14248
John Criswell7a73b802003-06-30 21:59:07 +000014249int
14250main ()
14251{
14252 int s;
14253 wait (&s);
14254 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14255 ;
14256 return 0;
14257}
14258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259rm -f conftest.$ac_objext
14260if { (ac_try="$ac_compile"
14261case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014293 ac_cv_header_sys_wait_h=yes
14294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300
Reid Spencera773bd52006-08-04 18:18:08 +000014301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14304echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014305if test $ac_cv_header_sys_wait_h = yes; then
14306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307cat >>confdefs.h <<\_ACEOF
14308#define HAVE_SYS_WAIT_H 1
14309_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014310
14311fi
14312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14314echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14315if test "${ac_cv_header_time+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318 cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014323/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014324#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014325#include <sys/time.h>
14326#include <time.h>
14327
14328int
14329main ()
14330{
14331if ((struct tm *) 0)
14332return 0;
14333 ;
14334 return 0;
14335}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014336_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337rm -f conftest.$ac_objext
14338if { (ac_try="$ac_compile"
14339case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342esac
14343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355esac
14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365esac
14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014371 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014378
Reid Spencera773bd52006-08-04 18:18:08 +000014379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14382echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014383if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385cat >>confdefs.h <<\_ACEOF
14386#define TIME_WITH_SYS_TIME 1
14387_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014388
14389fi
14390
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392
14393
14394
14395
14396
14397
Reid Spencer59473af2004-12-25 07:31:29 +000014398for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014399do
14400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406fi
14407ac_res=`eval echo '${'$as_ac_Header'}'`
14408 { echo "$as_me:$LINENO: result: $ac_res" >&5
14409echo "${ECHO_T}$ac_res" >&6; }
14410else
14411 # Is the header compilable?
14412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14414cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
14420$ac_includes_default
14421#include <$ac_header>
14422_ACEOF
14423rm -f conftest.$ac_objext
14424if { (ac_try="$ac_compile"
14425case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428esac
14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_compile") 2>conftest.er1
14431 ac_status=$?
14432 grep -v '^ *+' conftest.er1 >conftest.err
14433 rm -f conftest.er1
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14438 { (case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14441esac
14442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_try") 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14451esac
14452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_try") 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_header_compiler=yes
14458else
14459 echo "$as_me: failed program was:" >&5
14460sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_header_compiler=no
14463fi
14464
14465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467echo "${ECHO_T}$ac_header_compiler" >&6; }
14468
14469# Is the header present?
14470{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14472cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478#include <$ac_header>
14479_ACEOF
14480if { (ac_try="$ac_cpp conftest.$ac_ext"
14481case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484esac
14485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } >/dev/null; then
14493 if test -s conftest.err; then
14494 ac_cpp_err=$ac_c_preproc_warn_flag
14495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14496 else
14497 ac_cpp_err=
14498 fi
14499else
14500 ac_cpp_err=yes
14501fi
14502if test -z "$ac_cpp_err"; then
14503 ac_header_preproc=yes
14504else
14505 echo "$as_me: failed program was:" >&5
14506sed 's/^/| /' conftest.$ac_ext >&5
14507
14508 ac_header_preproc=no
14509fi
14510
14511rm -f conftest.err conftest.$ac_ext
14512{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513echo "${ECHO_T}$ac_header_preproc" >&6; }
14514
14515# So? What about this header?
14516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517 yes:no: )
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14523 ;;
14524 no:yes:* )
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14537 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014538## ------------------------------------ ##
14539## Report this to http://llvm.org/bugs/ ##
14540## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014541_ASBOX
14542 ) | sed "s/^/$as_me: WARNING: /" >&2
14543 ;;
14544esac
14545{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549else
14550 eval "$as_ac_Header=\$ac_header_preproc"
14551fi
14552ac_res=`eval echo '${'$as_ac_Header'}'`
14553 { echo "$as_me:$LINENO: result: $ac_res" >&5
14554echo "${ECHO_T}$ac_res" >&6; }
14555
14556fi
14557if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014558 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014560_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014561
14562fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014563
Reid Spencer59473af2004-12-25 07:31:29 +000014564done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566
14567
14568
14569
14570
14571
Douglas Gregor071d73d2009-05-18 17:21:34 +000014572for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573do
14574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580fi
14581ac_res=`eval echo '${'$as_ac_Header'}'`
14582 { echo "$as_me:$LINENO: result: $ac_res" >&5
14583echo "${ECHO_T}$ac_res" >&6; }
14584else
14585 # Is the header compilable?
14586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14588cat >conftest.$ac_ext <<_ACEOF
14589/* confdefs.h. */
14590_ACEOF
14591cat confdefs.h >>conftest.$ac_ext
14592cat >>conftest.$ac_ext <<_ACEOF
14593/* end confdefs.h. */
14594$ac_includes_default
14595#include <$ac_header>
14596_ACEOF
14597rm -f conftest.$ac_objext
14598if { (ac_try="$ac_compile"
14599case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602esac
14603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_compile") 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14612 { (case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615esac
14616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_try") 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625esac
14626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_header_compiler=yes
14632else
14633 echo "$as_me: failed program was:" >&5
14634sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_header_compiler=no
14637fi
14638
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14641echo "${ECHO_T}$ac_header_compiler" >&6; }
14642
14643# Is the header present?
14644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14646cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */
14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
14652#include <$ac_header>
14653_ACEOF
14654if { (ac_try="$ac_cpp conftest.$ac_ext"
14655case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14658esac
14659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } >/dev/null; then
14667 if test -s conftest.err; then
14668 ac_cpp_err=$ac_c_preproc_warn_flag
14669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14670 else
14671 ac_cpp_err=
14672 fi
14673else
14674 ac_cpp_err=yes
14675fi
14676if test -z "$ac_cpp_err"; then
14677 ac_header_preproc=yes
14678else
14679 echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_header_preproc=no
14683fi
14684
14685rm -f conftest.err conftest.$ac_ext
14686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687echo "${ECHO_T}$ac_header_preproc" >&6; }
14688
14689# So? What about this header?
14690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14691 yes:no: )
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14696 ac_header_preproc=yes
14697 ;;
14698 no:yes:* )
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14711 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014712## ------------------------------------ ##
14713## Report this to http://llvm.org/bugs/ ##
14714## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014715_ASBOX
14716 ) | sed "s/^/$as_me: WARNING: /" >&2
14717 ;;
14718esac
14719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723else
14724 eval "$as_ac_Header=\$ac_header_preproc"
14725fi
14726ac_res=`eval echo '${'$as_ac_Header'}'`
14727 { echo "$as_me:$LINENO: result: $ac_res" >&5
14728echo "${ECHO_T}$ac_res" >&6; }
14729
14730fi
14731if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014734_ACEOF
14735
14736fi
14737
14738done
14739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014740
14741
Douglas Gregor071d73d2009-05-18 17:21:34 +000014742for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014743do
14744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750fi
14751ac_res=`eval echo '${'$as_ac_Header'}'`
14752 { echo "$as_me:$LINENO: result: $ac_res" >&5
14753echo "${ECHO_T}$ac_res" >&6; }
14754else
14755 # Is the header compilable?
14756{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14758cat >conftest.$ac_ext <<_ACEOF
14759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
14764$ac_includes_default
14765#include <$ac_header>
14766_ACEOF
14767rm -f conftest.$ac_objext
14768if { (ac_try="$ac_compile"
14769case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14782 { (case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785esac
14786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_try") 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_try") 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 ac_header_compiler=yes
14802else
14803 echo "$as_me: failed program was:" >&5
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ac_header_compiler=no
14807fi
14808
14809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811echo "${ECHO_T}$ac_header_compiler" >&6; }
14812
14813# Is the header present?
14814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14816cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
14822#include <$ac_header>
14823_ACEOF
14824if { (ac_try="$ac_cpp conftest.$ac_ext"
14825case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828esac
14829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } >/dev/null; then
14837 if test -s conftest.err; then
14838 ac_cpp_err=$ac_c_preproc_warn_flag
14839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14840 else
14841 ac_cpp_err=
14842 fi
14843else
14844 ac_cpp_err=yes
14845fi
14846if test -z "$ac_cpp_err"; then
14847 ac_header_preproc=yes
14848else
14849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ac_header_preproc=no
14853fi
14854
14855rm -f conftest.err conftest.$ac_ext
14856{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857echo "${ECHO_T}$ac_header_preproc" >&6; }
14858
14859# So? What about this header?
14860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14861 yes:no: )
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866 ac_header_preproc=yes
14867 ;;
14868 no:yes:* )
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14881 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014882## ------------------------------------ ##
14883## Report this to http://llvm.org/bugs/ ##
14884## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014885_ASBOX
14886 ) | sed "s/^/$as_me: WARNING: /" >&2
14887 ;;
14888esac
14889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14893else
14894 eval "$as_ac_Header=\$ac_header_preproc"
14895fi
14896ac_res=`eval echo '${'$as_ac_Header'}'`
14897 { echo "$as_me:$LINENO: result: $ac_res" >&5
14898echo "${ECHO_T}$ac_res" >&6; }
14899
14900fi
14901if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014902 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014904_ACEOF
14905
14906fi
14907
14908done
Reid Spencer59473af2004-12-25 07:31:29 +000014909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014910
14911
14912
14913
Daniel Dunbar3e462932011-02-03 02:40:02 +000014914
14915for 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 +000014916do
14917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14923fi
14924ac_res=`eval echo '${'$as_ac_Header'}'`
14925 { echo "$as_me:$LINENO: result: $ac_res" >&5
14926echo "${ECHO_T}$ac_res" >&6; }
14927else
14928 # Is the header compilable?
14929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14931cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h. */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
14936/* end confdefs.h. */
14937$ac_includes_default
14938#include <$ac_header>
14939_ACEOF
14940rm -f conftest.$ac_objext
14941if { (ac_try="$ac_compile"
14942case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945esac
14946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14968esac
14969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 ac_header_compiler=yes
14975else
14976 echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979 ac_header_compiler=no
14980fi
14981
14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14984echo "${ECHO_T}$ac_header_compiler" >&6; }
14985
14986# Is the header present?
14987{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14989cat >conftest.$ac_ext <<_ACEOF
14990/* confdefs.h. */
14991_ACEOF
14992cat confdefs.h >>conftest.$ac_ext
14993cat >>conftest.$ac_ext <<_ACEOF
14994/* end confdefs.h. */
14995#include <$ac_header>
14996_ACEOF
14997if { (ac_try="$ac_cpp conftest.$ac_ext"
14998case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } >/dev/null; then
15010 if test -s conftest.err; then
15011 ac_cpp_err=$ac_c_preproc_warn_flag
15012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15013 else
15014 ac_cpp_err=
15015 fi
15016else
15017 ac_cpp_err=yes
15018fi
15019if test -z "$ac_cpp_err"; then
15020 ac_header_preproc=yes
15021else
15022 echo "$as_me: failed program was:" >&5
15023sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_header_preproc=no
15026fi
15027
15028rm -f conftest.err conftest.$ac_ext
15029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15030echo "${ECHO_T}$ac_header_preproc" >&6; }
15031
15032# So? What about this header?
15033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15034 yes:no: )
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15039 ac_header_preproc=yes
15040 ;;
15041 no:yes:* )
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15054 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015055## ------------------------------------ ##
15056## Report this to http://llvm.org/bugs/ ##
15057## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015058_ASBOX
15059 ) | sed "s/^/$as_me: WARNING: /" >&2
15060 ;;
15061esac
15062{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15066else
15067 eval "$as_ac_Header=\$ac_header_preproc"
15068fi
15069ac_res=`eval echo '${'$as_ac_Header'}'`
15070 { echo "$as_me:$LINENO: result: $ac_res" >&5
15071echo "${ECHO_T}$ac_res" >&6; }
15072
15073fi
15074if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015077_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015078
15079fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015080
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015081done
15082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015083
15084
15085
15086
Douglas Gregor01746742009-05-11 18:05:52 +000015087for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015088do
15089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095fi
15096ac_res=`eval echo '${'$as_ac_Header'}'`
15097 { echo "$as_me:$LINENO: result: $ac_res" >&5
15098echo "${ECHO_T}$ac_res" >&6; }
15099else
15100 # Is the header compilable?
15101{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15103cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
15109$ac_includes_default
15110#include <$ac_header>
15111_ACEOF
15112rm -f conftest.$ac_objext
15113if { (ac_try="$ac_compile"
15114case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_compile") 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } &&
15126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15127 { (case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130esac
15131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_try") 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140esac
15141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_try") 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 ac_header_compiler=yes
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ac_header_compiler=no
15152fi
15153
15154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15156echo "${ECHO_T}$ac_header_compiler" >&6; }
15157
15158# Is the header present?
15159{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15161cat >conftest.$ac_ext <<_ACEOF
15162/* confdefs.h. */
15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
15167#include <$ac_header>
15168_ACEOF
15169if { (ac_try="$ac_cpp conftest.$ac_ext"
15170case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } >/dev/null; then
15182 if test -s conftest.err; then
15183 ac_cpp_err=$ac_c_preproc_warn_flag
15184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15185 else
15186 ac_cpp_err=
15187 fi
15188else
15189 ac_cpp_err=yes
15190fi
15191if test -z "$ac_cpp_err"; then
15192 ac_header_preproc=yes
15193else
15194 echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_header_preproc=no
15198fi
15199
15200rm -f conftest.err conftest.$ac_ext
15201{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15202echo "${ECHO_T}$ac_header_preproc" >&6; }
15203
15204# So? What about this header?
15205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15206 yes:no: )
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15211 ac_header_preproc=yes
15212 ;;
15213 no:yes:* )
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15226 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015227## ------------------------------------ ##
15228## Report this to http://llvm.org/bugs/ ##
15229## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015230_ASBOX
15231 ) | sed "s/^/$as_me: WARNING: /" >&2
15232 ;;
15233esac
15234{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15238else
15239 eval "$as_ac_Header=\$ac_header_preproc"
15240fi
15241ac_res=`eval echo '${'$as_ac_Header'}'`
15242 { echo "$as_me:$LINENO: result: $ac_res" >&5
15243echo "${ECHO_T}$ac_res" >&6; }
15244
15245fi
15246if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015247 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015249_ACEOF
15250
15251fi
15252
15253done
15254
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015255
15256for ac_header in valgrind/valgrind.h
15257do
15258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264fi
15265ac_res=`eval echo '${'$as_ac_Header'}'`
15266 { echo "$as_me:$LINENO: result: $ac_res" >&5
15267echo "${ECHO_T}$ac_res" >&6; }
15268else
15269 # Is the header compilable?
15270{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15272cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278$ac_includes_default
15279#include <$ac_header>
15280_ACEOF
15281rm -f conftest.$ac_objext
15282if { (ac_try="$ac_compile"
15283case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15286esac
15287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_compile") 2>conftest.er1
15289 ac_status=$?
15290 grep -v '^ *+' conftest.er1 >conftest.err
15291 rm -f conftest.er1
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15296 { (case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15299esac
15300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_try") 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest.$ac_objext'
15306 { (case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309esac
15310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_try") 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_header_compiler=yes
15316else
15317 echo "$as_me: failed program was:" >&5
15318sed 's/^/| /' conftest.$ac_ext >&5
15319
15320 ac_header_compiler=no
15321fi
15322
15323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15325echo "${ECHO_T}$ac_header_compiler" >&6; }
15326
15327# Is the header present?
15328{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15330cat >conftest.$ac_ext <<_ACEOF
15331/* confdefs.h. */
15332_ACEOF
15333cat confdefs.h >>conftest.$ac_ext
15334cat >>conftest.$ac_ext <<_ACEOF
15335/* end confdefs.h. */
15336#include <$ac_header>
15337_ACEOF
15338if { (ac_try="$ac_cpp conftest.$ac_ext"
15339case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } >/dev/null; then
15351 if test -s conftest.err; then
15352 ac_cpp_err=$ac_c_preproc_warn_flag
15353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15354 else
15355 ac_cpp_err=
15356 fi
15357else
15358 ac_cpp_err=yes
15359fi
15360if test -z "$ac_cpp_err"; then
15361 ac_header_preproc=yes
15362else
15363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_header_preproc=no
15367fi
15368
15369rm -f conftest.err conftest.$ac_ext
15370{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15371echo "${ECHO_T}$ac_header_preproc" >&6; }
15372
15373# So? What about this header?
15374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15375 yes:no: )
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15379echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15380 ac_header_preproc=yes
15381 ;;
15382 no:yes:* )
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15388echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15390echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15394echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15395 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015396## ------------------------------------ ##
15397## Report this to http://llvm.org/bugs/ ##
15398## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015399_ASBOX
15400 ) | sed "s/^/$as_me: WARNING: /" >&2
15401 ;;
15402esac
15403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407else
15408 eval "$as_ac_Header=\$ac_header_preproc"
15409fi
15410ac_res=`eval echo '${'$as_ac_Header'}'`
15411 { echo "$as_me:$LINENO: result: $ac_res" >&5
15412echo "${ECHO_T}$ac_res" >&6; }
15413
15414fi
15415if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416 cat >>confdefs.h <<_ACEOF
15417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418_ACEOF
15419
15420fi
15421
15422done
15423
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015424
15425for ac_header in fenv.h
15426do
15427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433fi
15434ac_res=`eval echo '${'$as_ac_Header'}'`
15435 { echo "$as_me:$LINENO: result: $ac_res" >&5
15436echo "${ECHO_T}$ac_res" >&6; }
15437else
15438 # Is the header compilable?
15439{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15441cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
15447$ac_includes_default
15448#include <$ac_header>
15449_ACEOF
15450rm -f conftest.$ac_objext
15451if { (ac_try="$ac_compile"
15452case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_compile") 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468esac
15469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest.$ac_objext'
15475 { (case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478esac
15479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_try") 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 ac_header_compiler=yes
15485else
15486 echo "$as_me: failed program was:" >&5
15487sed 's/^/| /' conftest.$ac_ext >&5
15488
15489 ac_header_compiler=no
15490fi
15491
15492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15494echo "${ECHO_T}$ac_header_compiler" >&6; }
15495
15496# Is the header present?
15497{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15499cat >conftest.$ac_ext <<_ACEOF
15500/* confdefs.h. */
15501_ACEOF
15502cat confdefs.h >>conftest.$ac_ext
15503cat >>conftest.$ac_ext <<_ACEOF
15504/* end confdefs.h. */
15505#include <$ac_header>
15506_ACEOF
15507if { (ac_try="$ac_cpp conftest.$ac_ext"
15508case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511esac
15512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } >/dev/null; then
15520 if test -s conftest.err; then
15521 ac_cpp_err=$ac_c_preproc_warn_flag
15522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15523 else
15524 ac_cpp_err=
15525 fi
15526else
15527 ac_cpp_err=yes
15528fi
15529if test -z "$ac_cpp_err"; then
15530 ac_header_preproc=yes
15531else
15532 echo "$as_me: failed program was:" >&5
15533sed 's/^/| /' conftest.$ac_ext >&5
15534
15535 ac_header_preproc=no
15536fi
15537
15538rm -f conftest.err conftest.$ac_ext
15539{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540echo "${ECHO_T}$ac_header_preproc" >&6; }
15541
15542# So? What about this header?
15543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15544 yes:no: )
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15549 ac_header_preproc=yes
15550 ;;
15551 no:yes:* )
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15555echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15559echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15564 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015565## ------------------------------------ ##
15566## Report this to http://llvm.org/bugs/ ##
15567## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015568_ASBOX
15569 ) | sed "s/^/$as_me: WARNING: /" >&2
15570 ;;
15571esac
15572{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576else
15577 eval "$as_ac_Header=\$ac_header_preproc"
15578fi
15579ac_res=`eval echo '${'$as_ac_Header'}'`
15580 { echo "$as_me:$LINENO: result: $ac_res" >&5
15581echo "${ECHO_T}$ac_res" >&6; }
15582
15583fi
15584if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587_ACEOF
15588
15589fi
15590
15591done
15592
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015593if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015594
15595for ac_header in pthread.h
15596do
15597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603fi
15604ac_res=`eval echo '${'$as_ac_Header'}'`
15605 { echo "$as_me:$LINENO: result: $ac_res" >&5
15606echo "${ECHO_T}$ac_res" >&6; }
15607else
15608 # Is the header compilable?
15609{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15611cat >conftest.$ac_ext <<_ACEOF
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
15617$ac_includes_default
15618#include <$ac_header>
15619_ACEOF
15620rm -f conftest.$ac_objext
15621if { (ac_try="$ac_compile"
15622case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625esac
15626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_compile") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638esac
15639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648esac
15649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_try") 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_header_compiler=yes
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 ac_header_compiler=no
15660fi
15661
15662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15664echo "${ECHO_T}$ac_header_compiler" >&6; }
15665
15666# Is the header present?
15667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15669cat >conftest.$ac_ext <<_ACEOF
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
15675#include <$ac_header>
15676_ACEOF
15677if { (ac_try="$ac_cpp conftest.$ac_ext"
15678case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681esac
15682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev/null; then
15690 if test -s conftest.err; then
15691 ac_cpp_err=$ac_c_preproc_warn_flag
15692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15693 else
15694 ac_cpp_err=
15695 fi
15696else
15697 ac_cpp_err=yes
15698fi
15699if test -z "$ac_cpp_err"; then
15700 ac_header_preproc=yes
15701else
15702 echo "$as_me: failed program was:" >&5
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 ac_header_preproc=no
15706fi
15707
15708rm -f conftest.err conftest.$ac_ext
15709{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15710echo "${ECHO_T}$ac_header_preproc" >&6; }
15711
15712# So? What about this header?
15713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714 yes:no: )
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15719 ac_header_preproc=yes
15720 ;;
15721 no:yes:* )
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15734 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015735## ------------------------------------ ##
15736## Report this to http://llvm.org/bugs/ ##
15737## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015738_ASBOX
15739 ) | sed "s/^/$as_me: WARNING: /" >&2
15740 ;;
15741esac
15742{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746else
15747 eval "$as_ac_Header=\$ac_header_preproc"
15748fi
15749ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751echo "${ECHO_T}$ac_res" >&6; }
15752
15753fi
15754if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015755 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015757_ACEOF
15758 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015759
15760else
15761 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015762
15763fi
15764
Reid Spencerbe3e4192007-08-17 05:45:26 +000015765done
Reid Spencer1000b732006-12-01 00:37:14 +000015766
15767else
15768 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015769
15770fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015771
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015772if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015773
15774
15775for ac_header in ffi.h ffi/ffi.h
15776do
15777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783fi
15784ac_res=`eval echo '${'$as_ac_Header'}'`
15785 { echo "$as_me:$LINENO: result: $ac_res" >&5
15786echo "${ECHO_T}$ac_res" >&6; }
15787else
15788 # Is the header compilable?
15789{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15791cat >conftest.$ac_ext <<_ACEOF
15792/* confdefs.h. */
15793_ACEOF
15794cat confdefs.h >>conftest.$ac_ext
15795cat >>conftest.$ac_ext <<_ACEOF
15796/* end confdefs.h. */
15797$ac_includes_default
15798#include <$ac_header>
15799_ACEOF
15800rm -f conftest.$ac_objext
15801if { (ac_try="$ac_compile"
15802case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805esac
15806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_compile") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15815 { (case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15818esac
15819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_try") 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest.$ac_objext'
15825 { (case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828esac
15829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_try") 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_header_compiler=yes
15835else
15836 echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 ac_header_compiler=no
15840fi
15841
15842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15844echo "${ECHO_T}$ac_header_compiler" >&6; }
15845
15846# Is the header present?
15847{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15849cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
15855#include <$ac_header>
15856_ACEOF
15857if { (ac_try="$ac_cpp conftest.$ac_ext"
15858case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15864 ac_status=$?
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } >/dev/null; then
15870 if test -s conftest.err; then
15871 ac_cpp_err=$ac_c_preproc_warn_flag
15872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15873 else
15874 ac_cpp_err=
15875 fi
15876else
15877 ac_cpp_err=yes
15878fi
15879if test -z "$ac_cpp_err"; then
15880 ac_header_preproc=yes
15881else
15882 echo "$as_me: failed program was:" >&5
15883sed 's/^/| /' conftest.$ac_ext >&5
15884
15885 ac_header_preproc=no
15886fi
15887
15888rm -f conftest.err conftest.$ac_ext
15889{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15890echo "${ECHO_T}$ac_header_preproc" >&6; }
15891
15892# So? What about this header?
15893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15894 yes:no: )
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15899 ac_header_preproc=yes
15900 ;;
15901 no:yes:* )
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15905echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15909echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15914 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015915## ------------------------------------ ##
15916## Report this to http://llvm.org/bugs/ ##
15917## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015918_ASBOX
15919 ) | sed "s/^/$as_me: WARNING: /" >&2
15920 ;;
15921esac
15922{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926else
15927 eval "$as_ac_Header=\$ac_header_preproc"
15928fi
15929ac_res=`eval echo '${'$as_ac_Header'}'`
15930 { echo "$as_me:$LINENO: result: $ac_res" >&5
15931echo "${ECHO_T}$ac_res" >&6; }
15932
15933fi
15934if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015935 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015937_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015938
15939fi
15940
15941done
15942
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015943fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015944
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015945
Eric Christopher654dee42010-06-22 21:01:04 +000015946for ac_header in CrashReporterClient.h
15947do
15948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954fi
15955ac_res=`eval echo '${'$as_ac_Header'}'`
15956 { echo "$as_me:$LINENO: result: $ac_res" >&5
15957echo "${ECHO_T}$ac_res" >&6; }
15958else
15959 # Is the header compilable?
15960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15962cat >conftest.$ac_ext <<_ACEOF
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968$ac_includes_default
15969#include <$ac_header>
15970_ACEOF
15971rm -f conftest.$ac_objext
15972if { (ac_try="$ac_compile"
15973case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_compile") 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15986 { (case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989esac
15990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_try") 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999esac
16000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_try") 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_header_compiler=yes
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ac_header_compiler=no
16011fi
16012
16013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16015echo "${ECHO_T}$ac_header_compiler" >&6; }
16016
16017# Is the header present?
16018{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16020cat >conftest.$ac_ext <<_ACEOF
16021/* confdefs.h. */
16022_ACEOF
16023cat confdefs.h >>conftest.$ac_ext
16024cat >>conftest.$ac_ext <<_ACEOF
16025/* end confdefs.h. */
16026#include <$ac_header>
16027_ACEOF
16028if { (ac_try="$ac_cpp conftest.$ac_ext"
16029case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032esac
16033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } >/dev/null; then
16041 if test -s conftest.err; then
16042 ac_cpp_err=$ac_c_preproc_warn_flag
16043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16044 else
16045 ac_cpp_err=
16046 fi
16047else
16048 ac_cpp_err=yes
16049fi
16050if test -z "$ac_cpp_err"; then
16051 ac_header_preproc=yes
16052else
16053 echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_header_preproc=no
16057fi
16058
16059rm -f conftest.err conftest.$ac_ext
16060{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16061echo "${ECHO_T}$ac_header_preproc" >&6; }
16062
16063# So? What about this header?
16064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16065 yes:no: )
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16070 ac_header_preproc=yes
16071 ;;
16072 no:yes:* )
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16085 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016086## ------------------------------------ ##
16087## Report this to http://llvm.org/bugs/ ##
16088## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016089_ASBOX
16090 ) | sed "s/^/$as_me: WARNING: /" >&2
16091 ;;
16092esac
16093{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16097else
16098 eval "$as_ac_Header=\$ac_header_preproc"
16099fi
16100ac_res=`eval echo '${'$as_ac_Header'}'`
16101 { echo "$as_me:$LINENO: result: $ac_res" >&5
16102echo "${ECHO_T}$ac_res" >&6; }
16103
16104fi
16105if test `eval echo '${'$as_ac_Header'}'` = yes; then
16106 cat >>confdefs.h <<_ACEOF
16107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16108_ACEOF
16109
16110fi
16111
16112done
16113
16114
Eric Christopher51e57132010-12-07 02:05:42 +000016115{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16116echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016117cat >conftest.$ac_ext <<_ACEOF
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016123extern const char *__crashreporter_info__;
16124 int main() {
16125 __crashreporter_info__ = "test";
16126 return 0;
16127 }
Eric Christopher481d4022010-12-03 07:45:22 +000016128
Eric Christopher481d4022010-12-03 07:45:22 +000016129_ACEOF
16130rm -f conftest.$ac_objext conftest$ac_exeext
16131if { (ac_try="$ac_link"
16132case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_link") 2>conftest.er1
16138 ac_status=$?
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148esac
16149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158esac
16159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016164 { echo "$as_me:$LINENO: result: yes" >&5
16165echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016166
16167cat >>confdefs.h <<\_ACEOF
16168#define HAVE_CRASHREPORTER_INFO 1
16169_ACEOF
16170
Eric Christopher51e57132010-12-07 02:05:42 +000016171else
16172 echo "$as_me: failed program was:" >&5
16173sed 's/^/| /' conftest.$ac_ext >&5
16174
16175 { echo "$as_me:$LINENO: result: no" >&5
16176echo "${ECHO_T}no" >&6; }
16177
16178cat >>confdefs.h <<\_ACEOF
16179#define HAVE_CRASHREPORTER_INFO 0
16180_ACEOF
16181
Eric Christopher481d4022010-12-03 07:45:22 +000016182fi
Eric Christopher654dee42010-06-22 21:01:04 +000016183
Eric Christopher51e57132010-12-07 02:05:42 +000016184rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186
16187
Reid Spencer8085cff2005-01-16 02:58:39 +000016188
Torok Edwin871384f2010-01-26 08:50:50 +000016189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016190 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16191echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16192if test "${ac_cv_huge_val_sanity+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016194else
16195
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016196 ac_ext=cpp
16197ac_cpp='$CXXCPP $CPPFLAGS'
16198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016201
Eric Christopherc7718502010-03-02 05:06:54 +000016202 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016203 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016204 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016205 ac_cv_huge_val_sanity=yes
16206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016207 cat >conftest.$ac_ext <<_ACEOF
16208/* confdefs.h. */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016212/* end confdefs.h. */
16213#include <math.h>
16214int
16215main ()
16216{
16217double x = HUGE_VAL; return x != x;
16218 ;
16219 return 0;
16220}
16221_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016222rm -f conftest$ac_exeext
16223if { (ac_try="$ac_link"
16224case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16227esac
16228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_link") 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016242 ac_cv_huge_val_sanity=yes
16243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016244 echo "$as_me: program exited with status $ac_status" >&5
16245echo "$as_me: failed program was:" >&5
16246sed 's/^/| /' conftest.$ac_ext >&5
16247
16248( exit $ac_status )
16249ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016251rm -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 +000016252fi
16253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016254
Eric Christopherc7718502010-03-02 05:06:54 +000016255 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016256 ac_ext=c
16257ac_cpp='$CPP $CPPFLAGS'
16258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261
16262
16263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016264{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16265echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016266 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16267
16268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016269{ echo "$as_me:$LINENO: checking for pid_t" >&5
16270echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16271if test "${ac_cv_type_pid_t+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273else
16274 cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280$ac_includes_default
16281typedef pid_t ac__type_new_;
16282int
16283main ()
16284{
16285if ((ac__type_new_ *) 0)
16286 return 0;
16287if (sizeof (ac__type_new_))
16288 return 0;
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext
16294if { (ac_try="$ac_compile"
16295case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16311esac
16312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_type_pid_t=yes
16328else
16329 echo "$as_me: failed program was:" >&5
16330sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016332 ac_cv_type_pid_t=no
16333fi
16334
16335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336fi
16337{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16338echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16339if test $ac_cv_type_pid_t = yes; then
16340 :
John Criswell7a73b802003-06-30 21:59:07 +000016341else
16342
16343cat >>confdefs.h <<_ACEOF
16344#define pid_t int
16345_ACEOF
16346
16347fi
16348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016349{ echo "$as_me:$LINENO: checking for size_t" >&5
16350echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16351if test "${ac_cv_type_size_t+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353else
16354 cat >conftest.$ac_ext <<_ACEOF
16355/* confdefs.h. */
16356_ACEOF
16357cat confdefs.h >>conftest.$ac_ext
16358cat >>conftest.$ac_ext <<_ACEOF
16359/* end confdefs.h. */
16360$ac_includes_default
16361typedef size_t ac__type_new_;
16362int
16363main ()
16364{
16365if ((ac__type_new_ *) 0)
16366 return 0;
16367if (sizeof (ac__type_new_))
16368 return 0;
16369 ;
16370 return 0;
16371}
16372_ACEOF
16373rm -f conftest.$ac_objext
16374if { (ac_try="$ac_compile"
16375case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16378esac
16379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16381 ac_status=$?
16382 grep -v '^ *+' conftest.er1 >conftest.err
16383 rm -f conftest.er1
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
16387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388 { (case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16391esac
16392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_try") 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_cv_type_size_t=yes
16408else
16409 echo "$as_me: failed program was:" >&5
16410sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412 ac_cv_type_size_t=no
16413fi
16414
16415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416fi
16417{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16418echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16419if test $ac_cv_type_size_t = yes; then
16420 :
John Criswell7a73b802003-06-30 21:59:07 +000016421else
16422
16423cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016424#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016425_ACEOF
16426
16427fi
16428
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016429
16430cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016431#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016432_ACEOF
16433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016434{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16435echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16436if test "${ac_cv_struct_tm+set}" = set; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016439 cat >conftest.$ac_ext <<_ACEOF
16440/* confdefs.h. */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016444/* end confdefs.h. */
16445#include <sys/types.h>
16446#include <time.h>
16447
16448int
16449main ()
16450{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016451struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016452 ;
16453 return 0;
16454}
16455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016456rm -f conftest.$ac_objext
16457if { (ac_try="$ac_compile"
16458case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461esac
16462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016490 ac_cv_struct_tm=time.h
16491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016497
Reid Spencera773bd52006-08-04 18:18:08 +000016498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016500{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16501echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016502if test $ac_cv_struct_tm = sys/time.h; then
16503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016504cat >>confdefs.h <<\_ACEOF
16505#define TM_IN_SYS_TIME 1
16506_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016507
16508fi
16509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016510{ echo "$as_me:$LINENO: checking for int64_t" >&5
16511echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16512if test "${ac_cv_type_int64_t+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514else
16515 cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521$ac_includes_default
16522typedef int64_t ac__type_new_;
16523int
16524main ()
16525{
16526if ((ac__type_new_ *) 0)
16527 return 0;
16528if (sizeof (ac__type_new_))
16529 return 0;
16530 ;
16531 return 0;
16532}
16533_ACEOF
16534rm -f conftest.$ac_objext
16535if { (ac_try="$ac_compile"
16536case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552esac
16553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562esac
16563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 ac_cv_type_int64_t=yes
16569else
16570 echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573 ac_cv_type_int64_t=no
16574fi
16575
16576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577fi
16578{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16579echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16580if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016581
16582cat >>confdefs.h <<_ACEOF
16583#define HAVE_INT64_T 1
16584_ACEOF
16585
16586
16587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016588 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16589echo "$as_me: error: Type int64_t required but not found" >&2;}
16590 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016591fi
16592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016593{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16594echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16595if test "${ac_cv_type_uint64_t+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597else
16598 cat >conftest.$ac_ext <<_ACEOF
16599/* confdefs.h. */
16600_ACEOF
16601cat confdefs.h >>conftest.$ac_ext
16602cat >>conftest.$ac_ext <<_ACEOF
16603/* end confdefs.h. */
16604$ac_includes_default
16605typedef uint64_t ac__type_new_;
16606int
16607main ()
16608{
16609if ((ac__type_new_ *) 0)
16610 return 0;
16611if (sizeof (ac__type_new_))
16612 return 0;
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617rm -f conftest.$ac_objext
16618if { (ac_try="$ac_compile"
16619case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_type_uint64_t=yes
16652else
16653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_cv_type_uint64_t=no
16657fi
16658
16659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660fi
16661{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16662echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16663if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016664
16665cat >>confdefs.h <<_ACEOF
16666#define HAVE_UINT64_T 1
16667_ACEOF
16668
16669
16670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016671 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16672echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16673if test "${ac_cv_type_u_int64_t+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
16676 cat >conftest.$ac_ext <<_ACEOF
16677/* confdefs.h. */
16678_ACEOF
16679cat confdefs.h >>conftest.$ac_ext
16680cat >>conftest.$ac_ext <<_ACEOF
16681/* end confdefs.h. */
16682$ac_includes_default
16683typedef u_int64_t ac__type_new_;
16684int
16685main ()
16686{
16687if ((ac__type_new_ *) 0)
16688 return 0;
16689if (sizeof (ac__type_new_))
16690 return 0;
16691 ;
16692 return 0;
16693}
16694_ACEOF
16695rm -f conftest.$ac_objext
16696if { (ac_try="$ac_compile"
16697case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_type_u_int64_t=yes
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ac_cv_type_u_int64_t=no
16735fi
16736
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738fi
16739{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16740echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16741if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016742
16743cat >>confdefs.h <<_ACEOF
16744#define HAVE_U_INT64_T 1
16745_ACEOF
16746
16747
Misha Brukmanceca9042004-09-02 23:02:30 +000016748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016749 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16750echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16751 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016752fi
16753
John Criswell679ff312004-09-02 18:44:44 +000016754fi
16755
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016756
16757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016758
16759
16760
16761
16762
16763
16764
Reid Spencerdf3be822006-01-23 08:15:53 +000016765for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016766do
16767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772else
16773 cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
16779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781#define $ac_func innocuous_$ac_func
16782
16783/* System header to define __stub macros and hopefully few prototypes,
16784 which can conflict with char $ac_func (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
16787
16788#ifdef __STDC__
16789# include <limits.h>
16790#else
16791# include <assert.h>
16792#endif
16793
16794#undef $ac_func
16795
16796/* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16799#ifdef __cplusplus
16800extern "C"
16801#endif
16802char $ac_func ();
16803/* The GNU C library defines this for functions which it implements
16804 to always fail with ENOSYS. Some functions are actually named
16805 something starting with __ and the normal name is an alias. */
16806#if defined __stub_$ac_func || defined __stub___$ac_func
16807choke me
16808#endif
16809
16810int
16811main ()
16812{
16813return $ac_func ();
16814 ;
16815 return 0;
16816}
16817_ACEOF
16818rm -f conftest.$ac_objext conftest$ac_exeext
16819if { (ac_try="$ac_link"
16820case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
16826 ac_status=$?
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836esac
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 eval "$as_ac_var=yes"
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 eval "$as_ac_var=no"
16858fi
16859
16860rm -f core conftest.err conftest.$ac_objext \
16861 conftest$ac_exeext conftest.$ac_ext
16862fi
16863ac_res=`eval echo '${'$as_ac_var'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865echo "${ECHO_T}$ac_res" >&6; }
16866if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016867 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016869_ACEOF
16870
16871fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016872done
John Criswell7a73b802003-06-30 21:59:07 +000016873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016874
16875
16876
16877
Reid Spencer96cf5872007-07-13 10:05:30 +000016878for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016879do
16880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894#define $ac_func innocuous_$ac_func
16895
16896/* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16900
16901#ifdef __STDC__
16902# include <limits.h>
16903#else
16904# include <assert.h>
16905#endif
16906
16907#undef $ac_func
16908
16909/* Override any GCC internal prototype to avoid an error.
16910 Use char because int might match the return type of a GCC
16911 builtin and then its argument prototype would still apply. */
16912#ifdef __cplusplus
16913extern "C"
16914#endif
16915char $ac_func ();
16916/* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919#if defined __stub_$ac_func || defined __stub___$ac_func
16920choke me
16921#endif
16922
16923int
16924main ()
16925{
16926return $ac_func ();
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
16932if { (ac_try="$ac_link"
16933case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 eval "$as_ac_var=yes"
16966else
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 eval "$as_ac_var=no"
16971fi
16972
16973rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975fi
16976ac_res=`eval echo '${'$as_ac_var'}'`
16977 { echo "$as_me:$LINENO: result: $ac_res" >&5
16978echo "${ECHO_T}$ac_res" >&6; }
16979if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016980 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016982_ACEOF
16983
16984fi
16985done
16986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016987
16988
16989
16990
16991
Reid Spencerb90645c2007-02-16 19:17:20 +000016992for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016993do
16994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999else
17000 cat >conftest.$ac_ext <<_ACEOF
17001/* confdefs.h. */
17002_ACEOF
17003cat confdefs.h >>conftest.$ac_ext
17004cat >>conftest.$ac_ext <<_ACEOF
17005/* end confdefs.h. */
17006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17008#define $ac_func innocuous_$ac_func
17009
17010/* System header to define __stub macros and hopefully few prototypes,
17011 which can conflict with char $ac_func (); below.
17012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17013 <limits.h> exists even on freestanding compilers. */
17014
17015#ifdef __STDC__
17016# include <limits.h>
17017#else
17018# include <assert.h>
17019#endif
17020
17021#undef $ac_func
17022
17023/* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17026#ifdef __cplusplus
17027extern "C"
17028#endif
17029char $ac_func ();
17030/* The GNU C library defines this for functions which it implements
17031 to always fail with ENOSYS. Some functions are actually named
17032 something starting with __ and the normal name is an alias. */
17033#if defined __stub_$ac_func || defined __stub___$ac_func
17034choke me
17035#endif
17036
17037int
17038main ()
17039{
17040return $ac_func ();
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext conftest$ac_exeext
17046if { (ac_try="$ac_link"
17047case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050esac
17051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_link") 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063esac
17064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest$ac_exeext'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 eval "$as_ac_var=yes"
17080else
17081 echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084 eval "$as_ac_var=no"
17085fi
17086
17087rm -f core conftest.err conftest.$ac_objext \
17088 conftest$ac_exeext conftest.$ac_ext
17089fi
17090ac_res=`eval echo '${'$as_ac_var'}'`
17091 { echo "$as_me:$LINENO: result: $ac_res" >&5
17092echo "${ECHO_T}$ac_res" >&6; }
17093if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017094 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017096_ACEOF
17097
17098fi
17099done
17100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017101
17102
17103
Reid Spencerb90645c2007-02-16 19:17:20 +000017104for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017105do
17106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17120#define $ac_func innocuous_$ac_func
17121
17122/* System header to define __stub macros and hopefully few prototypes,
17123 which can conflict with char $ac_func (); below.
17124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125 <limits.h> exists even on freestanding compilers. */
17126
17127#ifdef __STDC__
17128# include <limits.h>
17129#else
17130# include <assert.h>
17131#endif
17132
17133#undef $ac_func
17134
17135/* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17138#ifdef __cplusplus
17139extern "C"
17140#endif
17141char $ac_func ();
17142/* The GNU C library defines this for functions which it implements
17143 to always fail with ENOSYS. Some functions are actually named
17144 something starting with __ and the normal name is an alias. */
17145#if defined __stub_$ac_func || defined __stub___$ac_func
17146choke me
17147#endif
17148
17149int
17150main ()
17151{
17152return $ac_func ();
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext conftest$ac_exeext
17158if { (ac_try="$ac_link"
17159case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175esac
17176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 eval "$as_ac_var=yes"
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 eval "$as_ac_var=no"
17197fi
17198
17199rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201fi
17202ac_res=`eval echo '${'$as_ac_var'}'`
17203 { echo "$as_me:$LINENO: result: $ac_res" >&5
17204echo "${ECHO_T}$ac_res" >&6; }
17205if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017206 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017208_ACEOF
17209
17210fi
17211done
17212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017213
17214
17215
17216
17217
Eric Christophere4291822010-04-16 05:14:21 +000017218
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017219
17220for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017221do
17222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17223{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236#define $ac_func innocuous_$ac_func
17237
17238/* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char $ac_func (); below.
17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241 <limits.h> exists even on freestanding compilers. */
17242
17243#ifdef __STDC__
17244# include <limits.h>
17245#else
17246# include <assert.h>
17247#endif
17248
17249#undef $ac_func
17250
17251/* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254#ifdef __cplusplus
17255extern "C"
17256#endif
17257char $ac_func ();
17258/* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261#if defined __stub_$ac_func || defined __stub___$ac_func
17262choke me
17263#endif
17264
17265int
17266main ()
17267{
17268return $ac_func ();
17269 ;
17270 return 0;
17271}
17272_ACEOF
17273rm -f conftest.$ac_objext conftest$ac_exeext
17274if { (ac_try="$ac_link"
17275case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278esac
17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_link") 2>conftest.er1
17281 ac_status=$?
17282 grep -v '^ *+' conftest.er1 >conftest.err
17283 rm -f conftest.er1
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest$ac_exeext'
17298 { (case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17301esac
17302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_try") 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 eval "$as_ac_var=yes"
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 eval "$as_ac_var=no"
17313fi
17314
17315rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17317fi
17318ac_res=`eval echo '${'$as_ac_var'}'`
17319 { echo "$as_me:$LINENO: result: $ac_res" >&5
17320echo "${ECHO_T}$ac_res" >&6; }
17321if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017322 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017324_ACEOF
17325
17326fi
17327done
Reid Spencerdf3be822006-01-23 08:15:53 +000017328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017329
17330
17331
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017332
17333for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017334do
17335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17336{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340else
17341 cat >conftest.$ac_ext <<_ACEOF
17342/* confdefs.h. */
17343_ACEOF
17344cat confdefs.h >>conftest.$ac_ext
17345cat >>conftest.$ac_ext <<_ACEOF
17346/* end confdefs.h. */
17347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17349#define $ac_func innocuous_$ac_func
17350
17351/* System header to define __stub macros and hopefully few prototypes,
17352 which can conflict with char $ac_func (); below.
17353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17354 <limits.h> exists even on freestanding compilers. */
17355
17356#ifdef __STDC__
17357# include <limits.h>
17358#else
17359# include <assert.h>
17360#endif
17361
17362#undef $ac_func
17363
17364/* Override any GCC internal prototype to avoid an error.
17365 Use char because int might match the return type of a GCC
17366 builtin and then its argument prototype would still apply. */
17367#ifdef __cplusplus
17368extern "C"
17369#endif
17370char $ac_func ();
17371/* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374#if defined __stub_$ac_func || defined __stub___$ac_func
17375choke me
17376#endif
17377
17378int
17379main ()
17380{
17381return $ac_func ();
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386rm -f conftest.$ac_objext conftest$ac_exeext
17387if { (ac_try="$ac_link"
17388case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_link") 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404esac
17405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414esac
17415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 eval "$as_ac_var=yes"
17421else
17422 echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 eval "$as_ac_var=no"
17426fi
17427
17428rm -f core conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17430fi
17431ac_res=`eval echo '${'$as_ac_var'}'`
17432 { echo "$as_me:$LINENO: result: $ac_res" >&5
17433echo "${ECHO_T}$ac_res" >&6; }
17434if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017435 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017437_ACEOF
17438
17439fi
17440done
17441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017442
17443
17444
17445
Chris Lattner511f11d2005-11-14 07:25:50 +000017446for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017447do
17448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17449{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17451if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453else
17454 cat >conftest.$ac_ext <<_ACEOF
17455/* confdefs.h. */
17456_ACEOF
17457cat confdefs.h >>conftest.$ac_ext
17458cat >>conftest.$ac_ext <<_ACEOF
17459/* end confdefs.h. */
17460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17462#define $ac_func innocuous_$ac_func
17463
17464/* System header to define __stub macros and hopefully few prototypes,
17465 which can conflict with char $ac_func (); below.
17466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17467 <limits.h> exists even on freestanding compilers. */
17468
17469#ifdef __STDC__
17470# include <limits.h>
17471#else
17472# include <assert.h>
17473#endif
17474
17475#undef $ac_func
17476
17477/* Override any GCC internal prototype to avoid an error.
17478 Use char because int might match the return type of a GCC
17479 builtin and then its argument prototype would still apply. */
17480#ifdef __cplusplus
17481extern "C"
17482#endif
17483char $ac_func ();
17484/* The GNU C library defines this for functions which it implements
17485 to always fail with ENOSYS. Some functions are actually named
17486 something starting with __ and the normal name is an alias. */
17487#if defined __stub_$ac_func || defined __stub___$ac_func
17488choke me
17489#endif
17490
17491int
17492main ()
17493{
17494return $ac_func ();
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext conftest$ac_exeext
17500if { (ac_try="$ac_link"
17501case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517esac
17518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 eval "$as_ac_var=yes"
17534else
17535 echo "$as_me: failed program was:" >&5
17536sed 's/^/| /' conftest.$ac_ext >&5
17537
17538 eval "$as_ac_var=no"
17539fi
17540
17541rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543fi
17544ac_res=`eval echo '${'$as_ac_var'}'`
17545 { echo "$as_me:$LINENO: result: $ac_res" >&5
17546echo "${ECHO_T}$ac_res" >&6; }
17547if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017548 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017550_ACEOF
17551
17552fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017553done
John Criswell7a73b802003-06-30 21:59:07 +000017554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017555
17556
17557
17558
Daniel Dunbar3e462932011-02-03 02:40:02 +000017559
17560for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017561do
17562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567else
17568 cat >conftest.$ac_ext <<_ACEOF
17569/* confdefs.h. */
17570_ACEOF
17571cat confdefs.h >>conftest.$ac_ext
17572cat >>conftest.$ac_ext <<_ACEOF
17573/* end confdefs.h. */
17574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17576#define $ac_func innocuous_$ac_func
17577
17578/* System header to define __stub macros and hopefully few prototypes,
17579 which can conflict with char $ac_func (); below.
17580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17581 <limits.h> exists even on freestanding compilers. */
17582
17583#ifdef __STDC__
17584# include <limits.h>
17585#else
17586# include <assert.h>
17587#endif
17588
17589#undef $ac_func
17590
17591/* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17594#ifdef __cplusplus
17595extern "C"
17596#endif
17597char $ac_func ();
17598/* The GNU C library defines this for functions which it implements
17599 to always fail with ENOSYS. Some functions are actually named
17600 something starting with __ and the normal name is an alias. */
17601#if defined __stub_$ac_func || defined __stub___$ac_func
17602choke me
17603#endif
17604
17605int
17606main ()
17607{
17608return $ac_func ();
17609 ;
17610 return 0;
17611}
17612_ACEOF
17613rm -f conftest.$ac_objext conftest$ac_exeext
17614if { (ac_try="$ac_link"
17615case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17618esac
17619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_link") 2>conftest.er1
17621 ac_status=$?
17622 grep -v '^ *+' conftest.er1 >conftest.err
17623 rm -f conftest.er1
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628 { (case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631esac
17632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_try") 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } &&
17637 { ac_try='test -s conftest$ac_exeext'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641esac
17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 eval "$as_ac_var=yes"
17648else
17649 echo "$as_me: failed program was:" >&5
17650sed 's/^/| /' conftest.$ac_ext >&5
17651
17652 eval "$as_ac_var=no"
17653fi
17654
17655rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657fi
17658ac_res=`eval echo '${'$as_ac_var'}'`
17659 { echo "$as_me:$LINENO: result: $ac_res" >&5
17660echo "${ECHO_T}$ac_res" >&6; }
17661if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017662 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017664_ACEOF
17665
17666fi
17667done
17668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017669{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17670echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17671if test "${llvm_cv_c_printf_a+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017673else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017674 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017675ac_cpp='$CPP $CPPFLAGS'
17676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678ac_compiler_gnu=$ac_cv_c_compiler_gnu
17679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017680 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017681 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017683 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017685 /* confdefs.h. */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017690
John Criswella0137d32003-10-13 16:22:01 +000017691#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017692#include <stdlib.h>
17693
John Criswella0137d32003-10-13 16:22:01 +000017694int
17695main ()
17696{
17697
Reid Spencer2706f8c2004-09-19 23:53:36 +000017698volatile double A, B;
17699char Buffer[100];
17700A = 1;
17701A /= 10.0;
17702sprintf(Buffer, "%a", A);
17703B = atof(Buffer);
17704if (A != B)
17705 return (1);
17706if (A != 0x1.999999999999ap-4)
17707 return (1);
17708return (0);
John Criswella0137d32003-10-13 16:22:01 +000017709 ;
17710 return 0;
17711}
17712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017713rm -f conftest$ac_exeext
17714if { (ac_try="$ac_link"
17715case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718esac
17719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_link") 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17727esac
17728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017733 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017735 echo "$as_me: program exited with status $ac_status" >&5
17736echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739( exit $ac_status )
17740llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017742rm -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 +000017743fi
Reid Spencera773bd52006-08-04 18:18:08 +000017744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017745
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017747ac_cpp='$CPP $CPPFLAGS'
17748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17750ac_compiler_gnu=$ac_cv_c_compiler_gnu
17751
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017753{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17754echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017755 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017757cat >>confdefs.h <<\_ACEOF
17758#define HAVE_PRINTF_A 1
17759_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017760
Reid Spencer2706f8c2004-09-19 23:53:36 +000017761 fi
John Criswella0137d32003-10-13 16:22:01 +000017762
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017764{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17765echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17766if test "${ac_cv_func_rand48+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017768else
Reid Spencera773bd52006-08-04 18:18:08 +000017769 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017770ac_cpp='$CXXCPP $CPPFLAGS'
17771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017775 cat >conftest.$ac_ext <<_ACEOF
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017780/* end confdefs.h. */
17781#include <stdlib.h>
17782int
17783main ()
17784{
17785srand48(0);lrand48();drand48();
17786 ;
17787 return 0;
17788}
17789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017790rm -f conftest.$ac_objext
17791if { (ac_try="$ac_compile"
17792case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795esac
17796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808esac
17809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017824 ac_cv_func_rand48=yes
17825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017831
Reid Spencera773bd52006-08-04 18:18:08 +000017832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017833 ac_ext=c
17834ac_cpp='$CPP $CPPFLAGS'
17835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17837ac_compiler_gnu=$ac_cv_c_compiler_gnu
17838
17839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017840{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17841echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017842
17843if test "$ac_cv_func_rand48" = "yes" ; then
17844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017845cat >>confdefs.h <<\_ACEOF
17846#define HAVE_RAND48 1
17847_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017848
17849fi
John Criswell0021c312004-02-13 21:57:29 +000017850
17851
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017852{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17853echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17854if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856else
17857 cat >conftest.$ac_ext <<_ACEOF
17858/* confdefs.h. */
17859_ACEOF
17860cat confdefs.h >>conftest.$ac_ext
17861cat >>conftest.$ac_ext <<_ACEOF
17862/* end confdefs.h. */
17863$ac_includes_default
17864int
17865main ()
17866{
17867#ifndef strerror_s
17868 char *p = (char *) strerror_s;
17869 return !p;
17870#endif
17871
17872 ;
17873 return 0;
17874}
17875_ACEOF
17876rm -f conftest.$ac_objext
17877if { (ac_try="$ac_compile"
17878case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_compile") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894esac
17895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17904esac
17905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_have_decl_strerror_s=yes
17911else
17912 echo "$as_me: failed program was:" >&5
17913sed 's/^/| /' conftest.$ac_ext >&5
17914
17915 ac_cv_have_decl_strerror_s=no
17916fi
17917
17918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919fi
17920{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17921echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17922if test $ac_cv_have_decl_strerror_s = yes; then
17923
17924cat >>confdefs.h <<_ACEOF
17925#define HAVE_DECL_STRERROR_S 1
17926_ACEOF
17927
17928
17929else
17930 cat >>confdefs.h <<_ACEOF
17931#define HAVE_DECL_STRERROR_S 0
17932_ACEOF
17933
17934
17935fi
17936
17937
17938
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017939if test "$llvm_cv_os_type" = "MingW" ; then
17940 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17941echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17942if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17944else
17945 ac_check_lib_save_LIBS=$LIBS
17946LIBS="-lgcc $LIBS"
17947cat >conftest.$ac_ext <<_ACEOF
17948/* confdefs.h. */
17949_ACEOF
17950cat confdefs.h >>conftest.$ac_ext
17951cat >>conftest.$ac_ext <<_ACEOF
17952/* end confdefs.h. */
17953
17954/* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17957#ifdef __cplusplus
17958extern "C"
17959#endif
17960char _alloca ();
17961int
17962main ()
17963{
17964return _alloca ();
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext conftest$ac_exeext
17970if { (ac_try="$ac_link"
17971case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974esac
17975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_link") 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984 { (case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987esac
17988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_try") 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997esac
17998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_cv_lib_gcc__alloca=yes
18004else
18005 echo "$as_me: failed program was:" >&5
18006sed 's/^/| /' conftest.$ac_ext >&5
18007
18008 ac_cv_lib_gcc__alloca=no
18009fi
18010
18011rm -f core conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18013LIBS=$ac_check_lib_save_LIBS
18014fi
18015{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18016echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18017if test $ac_cv_lib_gcc__alloca = yes; then
18018
18019cat >>confdefs.h <<\_ACEOF
18020#define HAVE__ALLOCA 1
18021_ACEOF
18022
18023fi
18024
18025 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18026echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18027if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029else
18030 ac_check_lib_save_LIBS=$LIBS
18031LIBS="-lgcc $LIBS"
18032cat >conftest.$ac_ext <<_ACEOF
18033/* confdefs.h. */
18034_ACEOF
18035cat confdefs.h >>conftest.$ac_ext
18036cat >>conftest.$ac_ext <<_ACEOF
18037/* end confdefs.h. */
18038
18039/* Override any GCC internal prototype to avoid an error.
18040 Use char because int might match the return type of a GCC
18041 builtin and then its argument prototype would still apply. */
18042#ifdef __cplusplus
18043extern "C"
18044#endif
18045char __alloca ();
18046int
18047main ()
18048{
18049return __alloca ();
18050 ;
18051 return 0;
18052}
18053_ACEOF
18054rm -f conftest.$ac_objext conftest$ac_exeext
18055if { (ac_try="$ac_link"
18056case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18059esac
18060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_link") 2>conftest.er1
18062 ac_status=$?
18063 grep -v '^ *+' conftest.er1 >conftest.err
18064 rm -f conftest.er1
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072esac
18073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest$ac_exeext'
18079 { (case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18082esac
18083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_try") 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 ac_cv_lib_gcc___alloca=yes
18089else
18090 echo "$as_me: failed program was:" >&5
18091sed 's/^/| /' conftest.$ac_ext >&5
18092
18093 ac_cv_lib_gcc___alloca=no
18094fi
18095
18096rm -f core conftest.err conftest.$ac_objext \
18097 conftest$ac_exeext conftest.$ac_ext
18098LIBS=$ac_check_lib_save_LIBS
18099fi
18100{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18101echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18102if test $ac_cv_lib_gcc___alloca = yes; then
18103
18104cat >>confdefs.h <<\_ACEOF
18105#define HAVE___ALLOCA 1
18106_ACEOF
18107
18108fi
18109
18110 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18111echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18112if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114else
18115 ac_check_lib_save_LIBS=$LIBS
18116LIBS="-lgcc $LIBS"
18117cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
18123
18124/* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18127#ifdef __cplusplus
18128extern "C"
18129#endif
18130char __chkstk ();
18131int
18132main ()
18133{
18134return __chkstk ();
18135 ;
18136 return 0;
18137}
18138_ACEOF
18139rm -f conftest.$ac_objext conftest$ac_exeext
18140if { (ac_try="$ac_link"
18141case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144esac
18145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_lib_gcc___chkstk=yes
18174else
18175 echo "$as_me: failed program was:" >&5
18176sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 ac_cv_lib_gcc___chkstk=no
18179fi
18180
18181rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18183LIBS=$ac_check_lib_save_LIBS
18184fi
18185{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18186echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18187if test $ac_cv_lib_gcc___chkstk = yes; then
18188
18189cat >>confdefs.h <<\_ACEOF
18190#define HAVE___CHKSTK 1
18191_ACEOF
18192
18193fi
18194
18195 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18196echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18197if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18199else
18200 ac_check_lib_save_LIBS=$LIBS
18201LIBS="-lgcc $LIBS"
18202cat >conftest.$ac_ext <<_ACEOF
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
18208
18209/* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18212#ifdef __cplusplus
18213extern "C"
18214#endif
18215char ___chkstk ();
18216int
18217main ()
18218{
18219return ___chkstk ();
18220 ;
18221 return 0;
18222}
18223_ACEOF
18224rm -f conftest.$ac_objext conftest$ac_exeext
18225if { (ac_try="$ac_link"
18226case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18229esac
18230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231 (eval "$ac_link") 2>conftest.er1
18232 ac_status=$?
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242esac
18243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest$ac_exeext'
18249 { (case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_try") 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 ac_cv_lib_gcc____chkstk=yes
18259else
18260 echo "$as_me: failed program was:" >&5
18261sed 's/^/| /' conftest.$ac_ext >&5
18262
18263 ac_cv_lib_gcc____chkstk=no
18264fi
18265
18266rm -f core conftest.err conftest.$ac_objext \
18267 conftest$ac_exeext conftest.$ac_ext
18268LIBS=$ac_check_lib_save_LIBS
18269fi
18270{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18271echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18272if test $ac_cv_lib_gcc____chkstk = yes; then
18273
18274cat >>confdefs.h <<\_ACEOF
18275#define HAVE____CHKSTK 1
18276_ACEOF
18277
18278fi
18279
18280
18281 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18282echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18283if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18285else
18286 ac_check_lib_save_LIBS=$LIBS
18287LIBS="-lgcc $LIBS"
18288cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
18294
18295/* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18298#ifdef __cplusplus
18299extern "C"
18300#endif
18301char __ashldi3 ();
18302int
18303main ()
18304{
18305return __ashldi3 ();
18306 ;
18307 return 0;
18308}
18309_ACEOF
18310rm -f conftest.$ac_objext conftest$ac_exeext
18311if { (ac_try="$ac_link"
18312case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315esac
18316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>conftest.er1
18318 ac_status=$?
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18325 { (case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_try") 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338esac
18339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_try") 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_gcc___ashldi3=yes
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 ac_cv_lib_gcc___ashldi3=no
18350fi
18351
18352rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354LIBS=$ac_check_lib_save_LIBS
18355fi
18356{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18357echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18358if test $ac_cv_lib_gcc___ashldi3 = yes; then
18359
18360cat >>confdefs.h <<\_ACEOF
18361#define HAVE___ASHLDI3 1
18362_ACEOF
18363
18364fi
18365
18366 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18367echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18368if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370else
18371 ac_check_lib_save_LIBS=$LIBS
18372LIBS="-lgcc $LIBS"
18373cat >conftest.$ac_ext <<_ACEOF
18374/* confdefs.h. */
18375_ACEOF
18376cat confdefs.h >>conftest.$ac_ext
18377cat >>conftest.$ac_ext <<_ACEOF
18378/* end confdefs.h. */
18379
18380/* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char __ashrdi3 ();
18387int
18388main ()
18389{
18390return __ashrdi3 ();
18391 ;
18392 return 0;
18393}
18394_ACEOF
18395rm -f conftest.$ac_objext conftest$ac_exeext
18396if { (ac_try="$ac_link"
18397case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400esac
18401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_link") 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423esac
18424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_lib_gcc___ashrdi3=yes
18430else
18431 echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
18434 ac_cv_lib_gcc___ashrdi3=no
18435fi
18436
18437rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439LIBS=$ac_check_lib_save_LIBS
18440fi
18441{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18442echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18443if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18444
18445cat >>confdefs.h <<\_ACEOF
18446#define HAVE___ASHRDI3 1
18447_ACEOF
18448
18449fi
18450
18451 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18452echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18453if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18455else
18456 ac_check_lib_save_LIBS=$LIBS
18457LIBS="-lgcc $LIBS"
18458cat >conftest.$ac_ext <<_ACEOF
18459/* confdefs.h. */
18460_ACEOF
18461cat confdefs.h >>conftest.$ac_ext
18462cat >>conftest.$ac_ext <<_ACEOF
18463/* end confdefs.h. */
18464
18465/* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18468#ifdef __cplusplus
18469extern "C"
18470#endif
18471char __divdi3 ();
18472int
18473main ()
18474{
18475return __divdi3 ();
18476 ;
18477 return 0;
18478}
18479_ACEOF
18480rm -f conftest.$ac_objext conftest$ac_exeext
18481if { (ac_try="$ac_link"
18482case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_link") 2>conftest.er1
18488 ac_status=$?
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest$ac_exeext'
18505 { (case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18508esac
18509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_try") 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_lib_gcc___divdi3=yes
18515else
18516 echo "$as_me: failed program was:" >&5
18517sed 's/^/| /' conftest.$ac_ext >&5
18518
18519 ac_cv_lib_gcc___divdi3=no
18520fi
18521
18522rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
18524LIBS=$ac_check_lib_save_LIBS
18525fi
18526{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18527echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18528if test $ac_cv_lib_gcc___divdi3 = yes; then
18529
18530cat >>confdefs.h <<\_ACEOF
18531#define HAVE___DIVDI3 1
18532_ACEOF
18533
18534fi
18535
18536 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18537echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18538if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18540else
18541 ac_check_lib_save_LIBS=$LIBS
18542LIBS="-lgcc $LIBS"
18543cat >conftest.$ac_ext <<_ACEOF
18544/* confdefs.h. */
18545_ACEOF
18546cat confdefs.h >>conftest.$ac_ext
18547cat >>conftest.$ac_ext <<_ACEOF
18548/* end confdefs.h. */
18549
18550/* Override any GCC internal prototype to avoid an error.
18551 Use char because int might match the return type of a GCC
18552 builtin and then its argument prototype would still apply. */
18553#ifdef __cplusplus
18554extern "C"
18555#endif
18556char __fixdfdi ();
18557int
18558main ()
18559{
18560return __fixdfdi ();
18561 ;
18562 return 0;
18563}
18564_ACEOF
18565rm -f conftest.$ac_objext conftest$ac_exeext
18566if { (ac_try="$ac_link"
18567case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_link") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest$ac_exeext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_cv_lib_gcc___fixdfdi=yes
18600else
18601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 ac_cv_lib_gcc___fixdfdi=no
18605fi
18606
18607rm -f core conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18609LIBS=$ac_check_lib_save_LIBS
18610fi
18611{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18612echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18613if test $ac_cv_lib_gcc___fixdfdi = yes; then
18614
18615cat >>confdefs.h <<\_ACEOF
18616#define HAVE___FIXDFDI 1
18617_ACEOF
18618
18619fi
18620
18621 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18622echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18623if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625else
18626 ac_check_lib_save_LIBS=$LIBS
18627LIBS="-lgcc $LIBS"
18628cat >conftest.$ac_ext <<_ACEOF
18629/* confdefs.h. */
18630_ACEOF
18631cat confdefs.h >>conftest.$ac_ext
18632cat >>conftest.$ac_ext <<_ACEOF
18633/* end confdefs.h. */
18634
18635/* Override any GCC internal prototype to avoid an error.
18636 Use char because int might match the return type of a GCC
18637 builtin and then its argument prototype would still apply. */
18638#ifdef __cplusplus
18639extern "C"
18640#endif
18641char __fixsfdi ();
18642int
18643main ()
18644{
18645return __fixsfdi ();
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650rm -f conftest.$ac_objext conftest$ac_exeext
18651if { (ac_try="$ac_link"
18652case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655esac
18656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_link") 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678esac
18679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_lib_gcc___fixsfdi=yes
18685else
18686 echo "$as_me: failed program was:" >&5
18687sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 ac_cv_lib_gcc___fixsfdi=no
18690fi
18691
18692rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694LIBS=$ac_check_lib_save_LIBS
18695fi
18696{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18697echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18698if test $ac_cv_lib_gcc___fixsfdi = yes; then
18699
18700cat >>confdefs.h <<\_ACEOF
18701#define HAVE___FIXSFDI 1
18702_ACEOF
18703
18704fi
18705
18706 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18707echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18708if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18710else
18711 ac_check_lib_save_LIBS=$LIBS
18712LIBS="-lgcc $LIBS"
18713cat >conftest.$ac_ext <<_ACEOF
18714/* confdefs.h. */
18715_ACEOF
18716cat confdefs.h >>conftest.$ac_ext
18717cat >>conftest.$ac_ext <<_ACEOF
18718/* end confdefs.h. */
18719
18720/* Override any GCC internal prototype to avoid an error.
18721 Use char because int might match the return type of a GCC
18722 builtin and then its argument prototype would still apply. */
18723#ifdef __cplusplus
18724extern "C"
18725#endif
18726char __floatdidf ();
18727int
18728main ()
18729{
18730return __floatdidf ();
18731 ;
18732 return 0;
18733}
18734_ACEOF
18735rm -f conftest.$ac_objext conftest$ac_exeext
18736if { (ac_try="$ac_link"
18737case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740esac
18741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_lib_gcc___floatdidf=yes
18770else
18771 echo "$as_me: failed program was:" >&5
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
18774 ac_cv_lib_gcc___floatdidf=no
18775fi
18776
18777rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779LIBS=$ac_check_lib_save_LIBS
18780fi
18781{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18782echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18783if test $ac_cv_lib_gcc___floatdidf = yes; then
18784
18785cat >>confdefs.h <<\_ACEOF
18786#define HAVE___FLOATDIDF 1
18787_ACEOF
18788
18789fi
18790
18791 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18792echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18793if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 ac_check_lib_save_LIBS=$LIBS
18797LIBS="-lgcc $LIBS"
18798cat >conftest.$ac_ext <<_ACEOF
18799/* confdefs.h. */
18800_ACEOF
18801cat confdefs.h >>conftest.$ac_ext
18802cat >>conftest.$ac_ext <<_ACEOF
18803/* end confdefs.h. */
18804
18805/* Override any GCC internal prototype to avoid an error.
18806 Use char because int might match the return type of a GCC
18807 builtin and then its argument prototype would still apply. */
18808#ifdef __cplusplus
18809extern "C"
18810#endif
18811char __lshrdi3 ();
18812int
18813main ()
18814{
18815return __lshrdi3 ();
18816 ;
18817 return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext conftest$ac_exeext
18821if { (ac_try="$ac_link"
18822case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18825esac
18826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_link") 2>conftest.er1
18828 ac_status=$?
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
18834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } &&
18844 { ac_try='test -s conftest$ac_exeext'
18845 { (case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848esac
18849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_try") 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; }; then
18854 ac_cv_lib_gcc___lshrdi3=yes
18855else
18856 echo "$as_me: failed program was:" >&5
18857sed 's/^/| /' conftest.$ac_ext >&5
18858
18859 ac_cv_lib_gcc___lshrdi3=no
18860fi
18861
18862rm -f core conftest.err conftest.$ac_objext \
18863 conftest$ac_exeext conftest.$ac_ext
18864LIBS=$ac_check_lib_save_LIBS
18865fi
18866{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18867echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18868if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18869
18870cat >>confdefs.h <<\_ACEOF
18871#define HAVE___LSHRDI3 1
18872_ACEOF
18873
18874fi
18875
18876 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18877echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18878if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880else
18881 ac_check_lib_save_LIBS=$LIBS
18882LIBS="-lgcc $LIBS"
18883cat >conftest.$ac_ext <<_ACEOF
18884/* confdefs.h. */
18885_ACEOF
18886cat confdefs.h >>conftest.$ac_ext
18887cat >>conftest.$ac_ext <<_ACEOF
18888/* end confdefs.h. */
18889
18890/* Override any GCC internal prototype to avoid an error.
18891 Use char because int might match the return type of a GCC
18892 builtin and then its argument prototype would still apply. */
18893#ifdef __cplusplus
18894extern "C"
18895#endif
18896char __moddi3 ();
18897int
18898main ()
18899{
18900return __moddi3 ();
18901 ;
18902 return 0;
18903}
18904_ACEOF
18905rm -f conftest.$ac_objext conftest$ac_exeext
18906if { (ac_try="$ac_link"
18907case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910esac
18911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_gcc___moddi3=yes
18940else
18941 echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ac_cv_lib_gcc___moddi3=no
18945fi
18946
18947rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949LIBS=$ac_check_lib_save_LIBS
18950fi
18951{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18952echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18953if test $ac_cv_lib_gcc___moddi3 = yes; then
18954
18955cat >>confdefs.h <<\_ACEOF
18956#define HAVE___MODDI3 1
18957_ACEOF
18958
18959fi
18960
18961 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18962echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18963if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965else
18966 ac_check_lib_save_LIBS=$LIBS
18967LIBS="-lgcc $LIBS"
18968cat >conftest.$ac_ext <<_ACEOF
18969/* confdefs.h. */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h. */
18974
18975/* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978#ifdef __cplusplus
18979extern "C"
18980#endif
18981char __udivdi3 ();
18982int
18983main ()
18984{
18985return __udivdi3 ();
18986 ;
18987 return 0;
18988}
18989_ACEOF
18990rm -f conftest.$ac_objext conftest$ac_exeext
18991if { (ac_try="$ac_link"
18992case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_link") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest$ac_exeext'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_lib_gcc___udivdi3=yes
19025else
19026 echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 ac_cv_lib_gcc___udivdi3=no
19030fi
19031
19032rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19034LIBS=$ac_check_lib_save_LIBS
19035fi
19036{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19037echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19038if test $ac_cv_lib_gcc___udivdi3 = yes; then
19039
19040cat >>confdefs.h <<\_ACEOF
19041#define HAVE___UDIVDI3 1
19042_ACEOF
19043
19044fi
19045
19046 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19047echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19048if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051 ac_check_lib_save_LIBS=$LIBS
19052LIBS="-lgcc $LIBS"
19053cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059
19060/* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19063#ifdef __cplusplus
19064extern "C"
19065#endif
19066char __umoddi3 ();
19067int
19068main ()
19069{
19070return __umoddi3 ();
19071 ;
19072 return 0;
19073}
19074_ACEOF
19075rm -f conftest.$ac_objext conftest$ac_exeext
19076if { (ac_try="$ac_link"
19077case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080esac
19081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19083 ac_status=$?
19084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093esac
19094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_lib_gcc___umoddi3=yes
19110else
19111 echo "$as_me: failed program was:" >&5
19112sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ac_cv_lib_gcc___umoddi3=no
19115fi
19116
19117rm -f core conftest.err conftest.$ac_objext \
19118 conftest$ac_exeext conftest.$ac_ext
19119LIBS=$ac_check_lib_save_LIBS
19120fi
19121{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19122echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19123if test $ac_cv_lib_gcc___umoddi3 = yes; then
19124
19125cat >>confdefs.h <<\_ACEOF
19126#define HAVE___UMODDI3 1
19127_ACEOF
19128
19129fi
19130
19131
19132 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19133echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19134if test "${ac_cv_lib_gcc___main+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136else
19137 ac_check_lib_save_LIBS=$LIBS
19138LIBS="-lgcc $LIBS"
19139cat >conftest.$ac_ext <<_ACEOF
19140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
19145
19146/* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19149#ifdef __cplusplus
19150extern "C"
19151#endif
19152char __main ();
19153int
19154main ()
19155{
19156return __main ();
19157 ;
19158 return 0;
19159}
19160_ACEOF
19161rm -f conftest.$ac_objext conftest$ac_exeext
19162if { (ac_try="$ac_link"
19163case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_link") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189esac
19190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_lib_gcc___main=yes
19196else
19197 echo "$as_me: failed program was:" >&5
19198sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_cv_lib_gcc___main=no
19201fi
19202
19203rm -f core conftest.err conftest.$ac_objext \
19204 conftest$ac_exeext conftest.$ac_ext
19205LIBS=$ac_check_lib_save_LIBS
19206fi
19207{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19208echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19209if test $ac_cv_lib_gcc___main = yes; then
19210
19211cat >>confdefs.h <<\_ACEOF
19212#define HAVE___MAIN 1
19213_ACEOF
19214
19215fi
19216
19217 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19218echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19219if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19221else
19222 ac_check_lib_save_LIBS=$LIBS
19223LIBS="-lgcc $LIBS"
19224cat >conftest.$ac_ext <<_ACEOF
19225/* confdefs.h. */
19226_ACEOF
19227cat confdefs.h >>conftest.$ac_ext
19228cat >>conftest.$ac_ext <<_ACEOF
19229/* end confdefs.h. */
19230
19231/* Override any GCC internal prototype to avoid an error.
19232 Use char because int might match the return type of a GCC
19233 builtin and then its argument prototype would still apply. */
19234#ifdef __cplusplus
19235extern "C"
19236#endif
19237char __cmpdi2 ();
19238int
19239main ()
19240{
19241return __cmpdi2 ();
19242 ;
19243 return 0;
19244}
19245_ACEOF
19246rm -f conftest.$ac_objext conftest$ac_exeext
19247if { (ac_try="$ac_link"
19248case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_link") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest$ac_exeext'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274esac
19275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 ac_cv_lib_gcc___cmpdi2=yes
19281else
19282 echo "$as_me: failed program was:" >&5
19283sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 ac_cv_lib_gcc___cmpdi2=no
19286fi
19287
19288rm -f core conftest.err conftest.$ac_objext \
19289 conftest$ac_exeext conftest.$ac_ext
19290LIBS=$ac_check_lib_save_LIBS
19291fi
19292{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19293echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19294if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19295
19296cat >>confdefs.h <<\_ACEOF
19297#define HAVE___CMPDI2 1
19298_ACEOF
19299
19300fi
19301
19302fi
19303
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019304if test "$llvm_cv_os_type" = "MingW" ; then
19305 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19306echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19307 cat >conftest.$ac_ext <<_ACEOF
19308#include <windows.h>
19309#include <imagehlp.h>
19310extern void foo(PENUMLOADED_MODULES_CALLBACK);
19311extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (ac_try="$ac_compile"
19315case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19318esac
19319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_compile") 2>conftest.er1
19321 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331esac
19332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341esac
19342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347
19348 { echo "$as_me:$LINENO: result: yes" >&5
19349echo "${ECHO_T}yes" >&6; }
19350 llvm_cv_win32_elmcb_pcstr="PCSTR"
19351
19352else
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356
19357 { echo "$as_me:$LINENO: result: no" >&5
19358echo "${ECHO_T}no" >&6; }
19359 llvm_cv_win32_elmcb_pcstr="PSTR"
19360
19361fi
19362
19363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364
19365cat >>confdefs.h <<_ACEOF
19366#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19367_ACEOF
19368
19369fi
19370
Torok Edwin871384f2010-01-26 08:50:50 +000019371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019372{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19373echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19374if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019376else
Reid Spencera773bd52006-08-04 18:18:08 +000019377 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019378ac_cpp='$CXXCPP $CPPFLAGS'
19379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019383 cat >conftest.$ac_ext <<_ACEOF
19384/* confdefs.h. */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019388/* end confdefs.h. */
19389#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019390int
19391main ()
19392{
19393float f; isnan(f);
19394 ;
19395 return 0;
19396}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019398rm -f conftest.$ac_objext
19399if { (ac_try="$ac_compile"
19400case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416esac
19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426esac
19427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019432 ac_cv_func_isnan_in_math_h=yes
19433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019434 echo "$as_me: failed program was:" >&5
19435sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019439
Reid Spencera773bd52006-08-04 18:18:08 +000019440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019441 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019442ac_cpp='$CPP $CPPFLAGS'
19443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19449echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019450
19451
19452if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019454cat >>confdefs.h <<\_ACEOF
19455#define HAVE_ISNAN_IN_MATH_H 1
19456_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019457
Reid Spencerabec8f92004-10-27 23:03:44 +000019458fi
19459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019460{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19461echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19462if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019464else
Reid Spencera773bd52006-08-04 18:18:08 +000019465 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019466ac_cpp='$CXXCPP $CPPFLAGS'
19467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019471 cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019476/* end confdefs.h. */
19477#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019478int
19479main ()
19480{
19481float f; isnan(f);
19482 ;
19483 return 0;
19484}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019485_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486rm -f conftest.$ac_objext
19487if { (ac_try="$ac_compile"
19488case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491esac
19492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_compile") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest.$ac_objext'
19511 { (case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514esac
19515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_try") 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019520 ac_cv_func_isnan_in_cmath=yes
19521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019522 echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019527
Reid Spencera773bd52006-08-04 18:18:08 +000019528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019529 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019530ac_cpp='$CPP $CPPFLAGS'
19531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019536{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19537echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019538
19539if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019541cat >>confdefs.h <<\_ACEOF
19542#define HAVE_ISNAN_IN_CMATH 1
19543_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019544
Reid Spencerabec8f92004-10-27 23:03:44 +000019545fi
19546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019547{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19548echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19549if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019551else
Reid Spencera773bd52006-08-04 18:18:08 +000019552 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019553ac_cpp='$CXXCPP $CPPFLAGS'
19554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019558 cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019563/* end confdefs.h. */
19564#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019565int
19566main ()
19567{
19568float f; std::isnan(f);
19569 ;
19570 return 0;
19571}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019573rm -f conftest.$ac_objext
19574if { (ac_try="$ac_compile"
19575case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19578esac
19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019607 ac_cv_func_std_isnan_in_cmath=yes
19608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019609 echo "$as_me: failed program was:" >&5
19610sed 's/^/| /' conftest.$ac_ext >&5
19611
19612 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019614
Reid Spencera773bd52006-08-04 18:18:08 +000019615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019616 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019617ac_cpp='$CPP $CPPFLAGS'
19618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19624echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019625
19626if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628cat >>confdefs.h <<\_ACEOF
19629#define HAVE_STD_ISNAN_IN_CMATH 1
19630_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631
Reid Spencerabec8f92004-10-27 23:03:44 +000019632fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019633
19634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019635{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19636echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19637if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019639else
Reid Spencera773bd52006-08-04 18:18:08 +000019640 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019641ac_cpp='$CXXCPP $CPPFLAGS'
19642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019646 cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019651/* end confdefs.h. */
19652#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019653int
19654main ()
19655{
19656float f; isinf(f);
19657 ;
19658 return 0;
19659}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019661rm -f conftest.$ac_objext
19662if { (ac_try="$ac_compile"
19663case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666esac
19667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_compile") 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19676 { (case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679esac
19680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_try") 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689esac
19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019695 ac_cv_func_isinf_in_math_h=yes
19696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019697 echo "$as_me: failed program was:" >&5
19698sed 's/^/| /' conftest.$ac_ext >&5
19699
19700 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019702
Reid Spencera773bd52006-08-04 18:18:08 +000019703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019704 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019705ac_cpp='$CPP $CPPFLAGS'
19706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19708ac_compiler_gnu=$ac_cv_c_compiler_gnu
19709
19710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019711{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19712echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019713
19714if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019716cat >>confdefs.h <<\_ACEOF
19717#define HAVE_ISINF_IN_MATH_H 1
19718_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019719
Reid Spencerabec8f92004-10-27 23:03:44 +000019720fi
19721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019722{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19723echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19724if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019726else
Reid Spencera773bd52006-08-04 18:18:08 +000019727 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019728ac_cpp='$CXXCPP $CPPFLAGS'
19729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019733 cat >conftest.$ac_ext <<_ACEOF
19734/* confdefs.h. */
19735_ACEOF
19736cat confdefs.h >>conftest.$ac_ext
19737cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019738/* end confdefs.h. */
19739#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019740int
19741main ()
19742{
19743float f; isinf(f);
19744 ;
19745 return 0;
19746}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019747_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019748rm -f conftest.$ac_objext
19749if { (ac_try="$ac_compile"
19750case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19753esac
19754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_compile") 2>conftest.er1
19756 ac_status=$?
19757 grep -v '^ *+' conftest.er1 >conftest.err
19758 rm -f conftest.er1
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19763 { (case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19766esac
19767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_try") 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try='test -s conftest.$ac_objext'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776esac
19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019782 ac_cv_func_isinf_in_cmath=yes
19783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019784 echo "$as_me: failed program was:" >&5
19785sed 's/^/| /' conftest.$ac_ext >&5
19786
19787 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019789
Reid Spencera773bd52006-08-04 18:18:08 +000019790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019791 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019792ac_cpp='$CPP $CPPFLAGS'
19793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19795ac_compiler_gnu=$ac_cv_c_compiler_gnu
19796
19797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19799echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019800
19801if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803cat >>confdefs.h <<\_ACEOF
19804#define HAVE_ISINF_IN_CMATH 1
19805_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019806
Reid Spencerabec8f92004-10-27 23:03:44 +000019807fi
19808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019809{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19810echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19811if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019813else
Reid Spencera773bd52006-08-04 18:18:08 +000019814 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019815ac_cpp='$CXXCPP $CPPFLAGS'
19816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019820 cat >conftest.$ac_ext <<_ACEOF
19821/* confdefs.h. */
19822_ACEOF
19823cat confdefs.h >>conftest.$ac_ext
19824cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019825/* end confdefs.h. */
19826#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019827int
19828main ()
19829{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019830float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019831 ;
19832 return 0;
19833}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019835rm -f conftest.$ac_objext
19836if { (ac_try="$ac_compile"
19837case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840esac
19841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853esac
19854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019869 ac_cv_func_std_isinf_in_cmath=yes
19870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019871 echo "$as_me: failed program was:" >&5
19872sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019876
Reid Spencera773bd52006-08-04 18:18:08 +000019877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019878 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019879ac_cpp='$CPP $CPPFLAGS'
19880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883
19884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19886echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019887
19888if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890cat >>confdefs.h <<\_ACEOF
19891#define HAVE_STD_ISINF_IN_CMATH 1
19892_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019893
Reid Spencerabec8f92004-10-27 23:03:44 +000019894fi
19895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019896{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19897echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19898if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019900else
Reid Spencera773bd52006-08-04 18:18:08 +000019901 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019902ac_cpp='$CXXCPP $CPPFLAGS'
19903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019907 cat >conftest.$ac_ext <<_ACEOF
19908/* confdefs.h. */
19909_ACEOF
19910cat confdefs.h >>conftest.$ac_ext
19911cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019912/* end confdefs.h. */
19913#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019914int
19915main ()
19916{
19917float f; finite(f);
19918 ;
19919 return 0;
19920}
Brian Gaeked59a6472004-07-21 03:33:58 +000019921_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019922rm -f conftest.$ac_objext
19923if { (ac_try="$ac_compile"
19924case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19927esac
19928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929 (eval "$ac_compile") 2>conftest.er1
19930 ac_status=$?
19931 grep -v '^ *+' conftest.er1 >conftest.err
19932 rm -f conftest.er1
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19937 { (case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940esac
19941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_try") 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest.$ac_objext'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19950esac
19951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019956 ac_cv_func_finite_in_ieeefp_h=yes
19957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019958 echo "$as_me: failed program was:" >&5
19959sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019963
Reid Spencera773bd52006-08-04 18:18:08 +000019964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019965 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019966ac_cpp='$CPP $CPPFLAGS'
19967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19969ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970
19971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19973echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019974
Brian Gaeke6802b552004-10-28 05:06:45 +000019975if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977cat >>confdefs.h <<\_ACEOF
19978#define HAVE_FINITE_IN_IEEEFP_H 1
19979_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019980
Reid Spencerabec8f92004-10-27 23:03:44 +000019981fi
19982
19983
19984
Reid Spencer30fe5262007-01-20 07:48:49 +000019985if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019986
19987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019988for ac_header in stdlib.h unistd.h
19989do
19990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996fi
19997ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999echo "${ECHO_T}$ac_res" >&6; }
20000else
20001 # Is the header compilable?
20002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20004cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010$ac_includes_default
20011#include <$ac_header>
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (ac_try="$ac_compile"
20015case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018esac
20019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031esac
20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_header_compiler=yes
20048else
20049 echo "$as_me: failed program was:" >&5
20050sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020052 ac_header_compiler=no
20053fi
20054
20055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20057echo "${ECHO_T}$ac_header_compiler" >&6; }
20058
20059# Is the header present?
20060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20062cat >conftest.$ac_ext <<_ACEOF
20063/* confdefs.h. */
20064_ACEOF
20065cat confdefs.h >>conftest.$ac_ext
20066cat >>conftest.$ac_ext <<_ACEOF
20067/* end confdefs.h. */
20068#include <$ac_header>
20069_ACEOF
20070if { (ac_try="$ac_cpp conftest.$ac_ext"
20071case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20074esac
20075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20077 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } >/dev/null; then
20083 if test -s conftest.err; then
20084 ac_cpp_err=$ac_c_preproc_warn_flag
20085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20086 else
20087 ac_cpp_err=
20088 fi
20089else
20090 ac_cpp_err=yes
20091fi
20092if test -z "$ac_cpp_err"; then
20093 ac_header_preproc=yes
20094else
20095 echo "$as_me: failed program was:" >&5
20096sed 's/^/| /' conftest.$ac_ext >&5
20097
20098 ac_header_preproc=no
20099fi
20100
20101rm -f conftest.err conftest.$ac_ext
20102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20103echo "${ECHO_T}$ac_header_preproc" >&6; }
20104
20105# So? What about this header?
20106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20107 yes:no: )
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20112 ac_header_preproc=yes
20113 ;;
20114 no:yes:* )
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20127 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020128## ------------------------------------ ##
20129## Report this to http://llvm.org/bugs/ ##
20130## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131_ASBOX
20132 ) | sed "s/^/$as_me: WARNING: /" >&2
20133 ;;
20134esac
20135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139else
20140 eval "$as_ac_Header=\$ac_header_preproc"
20141fi
20142ac_res=`eval echo '${'$as_ac_Header'}'`
20143 { echo "$as_me:$LINENO: result: $ac_res" >&5
20144echo "${ECHO_T}$ac_res" >&6; }
20145
20146fi
20147if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020150_ACEOF
20151
20152fi
20153
20154done
20155
20156
20157for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020158do
20159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20160{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20164else
20165 cat >conftest.$ac_ext <<_ACEOF
20166/* confdefs.h. */
20167_ACEOF
20168cat confdefs.h >>conftest.$ac_ext
20169cat >>conftest.$ac_ext <<_ACEOF
20170/* end confdefs.h. */
20171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20173#define $ac_func innocuous_$ac_func
20174
20175/* System header to define __stub macros and hopefully few prototypes,
20176 which can conflict with char $ac_func (); below.
20177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20178 <limits.h> exists even on freestanding compilers. */
20179
20180#ifdef __STDC__
20181# include <limits.h>
20182#else
20183# include <assert.h>
20184#endif
20185
20186#undef $ac_func
20187
20188/* Override any GCC internal prototype to avoid an error.
20189 Use char because int might match the return type of a GCC
20190 builtin and then its argument prototype would still apply. */
20191#ifdef __cplusplus
20192extern "C"
20193#endif
20194char $ac_func ();
20195/* The GNU C library defines this for functions which it implements
20196 to always fail with ENOSYS. Some functions are actually named
20197 something starting with __ and the normal name is an alias. */
20198#if defined __stub_$ac_func || defined __stub___$ac_func
20199choke me
20200#endif
20201
20202int
20203main ()
20204{
20205return $ac_func ();
20206 ;
20207 return 0;
20208}
20209_ACEOF
20210rm -f conftest.$ac_objext conftest$ac_exeext
20211if { (ac_try="$ac_link"
20212case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_link") 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228esac
20229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest$ac_exeext'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238esac
20239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 eval "$as_ac_var=yes"
20245else
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 eval "$as_ac_var=no"
20250fi
20251
20252rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254fi
20255ac_res=`eval echo '${'$as_ac_var'}'`
20256 { echo "$as_me:$LINENO: result: $ac_res" >&5
20257echo "${ECHO_T}$ac_res" >&6; }
20258if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020261_ACEOF
20262
20263fi
20264done
20265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020266{ echo "$as_me:$LINENO: checking for working mmap" >&5
20267echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20268if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020271 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020272 ac_cv_func_mmap_fixed_mapped=no
20273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274 cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020280$ac_includes_default
20281/* malloc might have been renamed as rpl_malloc. */
20282#undef malloc
20283
20284/* Thanks to Mike Haertel and Jim Avera for this test.
20285 Here is a matrix of mmap possibilities:
20286 mmap private not fixed
20287 mmap private fixed at somewhere currently unmapped
20288 mmap private fixed at somewhere already mapped
20289 mmap shared not fixed
20290 mmap shared fixed at somewhere currently unmapped
20291 mmap shared fixed at somewhere already mapped
20292 For private mappings, we should verify that changes cannot be read()
20293 back from the file, nor mmap's back from the file at a different
20294 address. (There have been systems where private was not correctly
20295 implemented like the infamous i386 svr4.0, and systems where the
20296 VM page cache was not coherent with the file system buffer cache
20297 like early versions of FreeBSD and possibly contemporary NetBSD.)
20298 For shared mappings, we should conversely verify that changes get
20299 propagated back to all the places they're supposed to be.
20300
20301 Grep wants private fixed already mapped.
20302 The main things grep needs to know about mmap are:
20303 * does it exist and is it safe to write into the mmap'd area
20304 * how to use it (BSD variants) */
20305
20306#include <fcntl.h>
20307#include <sys/mman.h>
20308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020310char *malloc ();
20311#endif
20312
20313/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020314#if !HAVE_GETPAGESIZE
20315/* Assume that all systems that can run configure have sys/param.h. */
20316# if !HAVE_SYS_PARAM_H
20317# define HAVE_SYS_PARAM_H 1
20318# endif
20319
John Criswell7a73b802003-06-30 21:59:07 +000020320# ifdef _SC_PAGESIZE
20321# define getpagesize() sysconf(_SC_PAGESIZE)
20322# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020324# include <sys/param.h>
20325# ifdef EXEC_PAGESIZE
20326# define getpagesize() EXEC_PAGESIZE
20327# else /* no EXEC_PAGESIZE */
20328# ifdef NBPG
20329# define getpagesize() NBPG * CLSIZE
20330# ifndef CLSIZE
20331# define CLSIZE 1
20332# endif /* no CLSIZE */
20333# else /* no NBPG */
20334# ifdef NBPC
20335# define getpagesize() NBPC
20336# else /* no NBPC */
20337# ifdef PAGESIZE
20338# define getpagesize() PAGESIZE
20339# endif /* PAGESIZE */
20340# endif /* no NBPC */
20341# endif /* no NBPG */
20342# endif /* no EXEC_PAGESIZE */
20343# else /* no HAVE_SYS_PARAM_H */
20344# define getpagesize() 8192 /* punt totally */
20345# endif /* no HAVE_SYS_PARAM_H */
20346# endif /* no _SC_PAGESIZE */
20347
20348#endif /* no HAVE_GETPAGESIZE */
20349
20350int
20351main ()
20352{
20353 char *data, *data2, *data3;
20354 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020355 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020356
20357 pagesize = getpagesize ();
20358
20359 /* First, make a file with some known garbage in it. */
20360 data = (char *) malloc (pagesize);
20361 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020363 for (i = 0; i < pagesize; ++i)
20364 *(data + i) = rand ();
20365 umask (0);
20366 fd = creat ("conftest.mmap", 0600);
20367 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020368 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020369 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020371 close (fd);
20372
20373 /* Next, try to mmap the file at a fixed address which already has
20374 something else allocated at it. If we can, also make sure that
20375 we see the same garbage. */
20376 fd = open ("conftest.mmap", O_RDWR);
20377 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020378 return 1;
20379 data2 = (char *) malloc (2 * pagesize);
20380 if (!data2)
20381 return 1;
20382 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020386 for (i = 0; i < pagesize; ++i)
20387 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020389
20390 /* Finally, make sure that changes to the mapped area do not
20391 percolate back to the file as seen by read(). (This is a bug on
20392 some variants of i386 svr4.0.) */
20393 for (i = 0; i < pagesize; ++i)
20394 *(data2 + i) = *(data2 + i) + 1;
20395 data3 = (char *) malloc (pagesize);
20396 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020398 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020400 for (i = 0; i < pagesize; ++i)
20401 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020403 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020404 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020405}
20406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407rm -f conftest$ac_exeext
20408if { (ac_try="$ac_link"
20409case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412esac
20413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421esac
20422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020427 ac_cv_func_mmap_fixed_mapped=yes
20428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429 echo "$as_me: program exited with status $ac_status" >&5
20430echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433( exit $ac_status )
20434ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436rm -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 +000020437fi
Reid Spencera773bd52006-08-04 18:18:08 +000020438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439
John Criswell7a73b802003-06-30 21:59:07 +000020440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20442echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020443if test $ac_cv_func_mmap_fixed_mapped = yes; then
20444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020445cat >>confdefs.h <<\_ACEOF
20446#define HAVE_MMAP 1
20447_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020448
20449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020452 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20453echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20454if test "${ac_cv_func_mmap_file+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020456else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020457 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020458ac_cpp='$CPP $CPPFLAGS'
20459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461ac_compiler_gnu=$ac_cv_c_compiler_gnu
20462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020464 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468 /* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020473
John Criswell7a73b802003-06-30 21:59:07 +000020474#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020475#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020476#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020477
20478int
20479main ()
20480{
John Criswell7a73b802003-06-30 21:59:07 +000020481
20482 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020483 fd = creat ("foo",0777);
20484 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20485 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020486 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020487 ;
20488 return 0;
20489}
John Criswell7a73b802003-06-30 21:59:07 +000020490_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491rm -f conftest$ac_exeext
20492if { (ac_try="$ac_link"
20493case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496esac
20497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_link") 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505esac
20506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020511 ac_cv_func_mmap_file=yes
20512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020513 echo "$as_me: program exited with status $ac_status" >&5
20514echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517( exit $ac_status )
20518ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520rm -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 +000020521fi
Reid Spencera773bd52006-08-04 18:18:08 +000020522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020523
John Criswell7a73b802003-06-30 21:59:07 +000020524 ac_ext=c
20525ac_cpp='$CPP $CPPFLAGS'
20526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528ac_compiler_gnu=$ac_cv_c_compiler_gnu
20529
20530
20531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20533echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020534if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536cat >>confdefs.h <<\_ACEOF
20537#define HAVE_MMAP_FILE
20538_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020539
20540 MMAP_FILE=yes
20541
20542fi
20543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20545echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20546if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020548else
Reid Spencer582a23c2004-12-29 07:07:57 +000020549 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020550 ac_cv_need_dev_zero_for_mmap=yes
20551 else
20552 ac_cv_need_dev_zero_for_mmap=no
20553 fi
20554
20555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020556{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20557echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020558if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560cat >>confdefs.h <<\_ACEOF
20561#define NEED_DEV_ZERO_FOR_MMAP 1
20562_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020563
20564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020565
Reid Spencer30fe5262007-01-20 07:48:49 +000020566 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20567 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20569echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020570 fi
20571 if test "$ac_cv_func_mmap_file" = "no"
20572 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20574echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020575 fi
John Criswellb13092b2003-07-22 21:00:24 +000020576fi
John Criswell7a73b802003-06-30 21:59:07 +000020577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20579echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020580ac_ext=cpp
20581ac_cpp='$CXXCPP $CPPFLAGS'
20582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586cat >conftest.$ac_ext <<_ACEOF
20587/* confdefs.h. */
20588_ACEOF
20589cat confdefs.h >>conftest.$ac_ext
20590cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020591/* end confdefs.h. */
20592int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020593 volatile unsigned long val = 1;
20594 __sync_synchronize();
20595 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020596 __sync_add_and_fetch(&val, 1);
20597 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020598 return 0;
20599 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020600
20601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602rm -f conftest.$ac_objext conftest$ac_exeext
20603if { (ac_try="$ac_link"
20604case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607esac
20608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20617 { (case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620esac
20621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; } &&
20626 { ac_try='test -s conftest$ac_exeext'
20627 { (case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630esac
20631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_try") 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020636 ac_ext=c
20637ac_cpp='$CPP $CPPFLAGS'
20638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640ac_compiler_gnu=$ac_cv_c_compiler_gnu
20641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020642 { echo "$as_me:$LINENO: result: yes" >&5
20643echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020646#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020647_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020648
Owen Andersond4b272b2009-05-18 23:58:51 +000020649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650 echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653 { echo "$as_me:$LINENO: result: no" >&5
20654echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020657#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658_ACEOF
20659
20660 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20661echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663
Owen Andersond4b272b2009-05-18 23:58:51 +000020664rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020666
John Criswell7a73b802003-06-30 21:59:07 +000020667
Nick Lewycky4372e692009-09-29 06:18:23 +000020668if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20670echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20671if test "${llvm_cv_linux_mixed+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020673else
20674 ac_ext=c
20675ac_cpp='$CPP $CPPFLAGS'
20676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678ac_compiler_gnu=$ac_cv_c_compiler_gnu
20679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680 cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h. */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020685/* end confdefs.h. */
20686#ifndef __x86_64__
20687 error: Not x86-64 even if uname says so!
20688 #endif
20689
20690int
20691main ()
20692{
20693
20694 ;
20695 return 0;
20696}
20697_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698rm -f conftest.$ac_objext
20699if { (ac_try="$ac_compile"
20700case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703esac
20704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20713 { (case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716esac
20717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_try") 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
20723 { (case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726esac
20727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_try") 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020732 llvm_cv_linux_mixed=no
20733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734 echo "$as_me: failed program was:" >&5
20735sed 's/^/| /' conftest.$ac_ext >&5
20736
20737 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020739
Nick Lewycky4372e692009-09-29 06:18:23 +000020740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 ac_ext=c
20742ac_cpp='$CPP $CPPFLAGS'
20743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746
20747
20748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020749{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20750echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020751
20752 if test "$llvm_cv_linux_mixed" = "yes"; then
20753 llvm_cv_target_arch="x86"
20754 ARCH="x86"
20755 fi
20756fi
20757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758
Reid Spencer9372f152007-07-30 20:13:24 +000020759for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020760do
20761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20762{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20764if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766else
20767 cat >conftest.$ac_ext <<_ACEOF
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
20773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20775#define $ac_func innocuous_$ac_func
20776
20777/* System header to define __stub macros and hopefully few prototypes,
20778 which can conflict with char $ac_func (); below.
20779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20780 <limits.h> exists even on freestanding compilers. */
20781
20782#ifdef __STDC__
20783# include <limits.h>
20784#else
20785# include <assert.h>
20786#endif
20787
20788#undef $ac_func
20789
20790/* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20793#ifdef __cplusplus
20794extern "C"
20795#endif
20796char $ac_func ();
20797/* The GNU C library defines this for functions which it implements
20798 to always fail with ENOSYS. Some functions are actually named
20799 something starting with __ and the normal name is an alias. */
20800#if defined __stub_$ac_func || defined __stub___$ac_func
20801choke me
20802#endif
20803
20804int
20805main ()
20806{
20807return $ac_func ();
20808 ;
20809 return 0;
20810}
20811_ACEOF
20812rm -f conftest.$ac_objext conftest$ac_exeext
20813if { (ac_try="$ac_link"
20814case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20817esac
20818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_link") 2>conftest.er1
20820 ac_status=$?
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20827 { (case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830esac
20831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832 (eval "$ac_try") 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; } &&
20836 { ac_try='test -s conftest$ac_exeext'
20837 { (case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20840esac
20841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_try") 2>&5
20843 ac_status=$?
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 eval "$as_ac_var=yes"
20847else
20848 echo "$as_me: failed program was:" >&5
20849sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 eval "$as_ac_var=no"
20852fi
20853
20854rm -f core conftest.err conftest.$ac_objext \
20855 conftest$ac_exeext conftest.$ac_ext
20856fi
20857ac_res=`eval echo '${'$as_ac_var'}'`
20858 { echo "$as_me:$LINENO: result: $ac_res" >&5
20859echo "${ECHO_T}$ac_res" >&6; }
20860if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020861 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020863_ACEOF
20864
20865fi
20866done
20867
20868
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020869SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020870
20871
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020872SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20873
20874
Jeff Cohen28783c32007-01-12 18:22:38 +000020875if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020876 prefix="/usr/local"
20877fi
Reid Spencere9de0912004-08-20 09:03:57 +000020878eval LLVM_PREFIX="${prefix}";
20879eval LLVM_BINDIR="${prefix}/bin";
20880eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020881eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020882eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020883eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020884eval LLVM_INCLUDEDIR="${prefix}/include";
20885eval LLVM_INFODIR="${prefix}/info";
20886eval LLVM_MANDIR="${prefix}/man";
20887LLVM_CONFIGTIME=`date`
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020899if test "${ENABLE_TIMESTAMPS}" = "0"; then
20900 LLVM_CONFIGTIME="(timestamp not enabled)"
20901fi
20902
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020903
Reid Spencere9de0912004-08-20 09:03:57 +000020904cat >>confdefs.h <<_ACEOF
20905#define LLVM_PREFIX "$LLVM_PREFIX"
20906_ACEOF
20907
20908
20909cat >>confdefs.h <<_ACEOF
20910#define LLVM_BINDIR "$LLVM_BINDIR"
20911_ACEOF
20912
20913
20914cat >>confdefs.h <<_ACEOF
20915#define LLVM_LIBDIR "$LLVM_LIBDIR"
20916_ACEOF
20917
20918
20919cat >>confdefs.h <<_ACEOF
20920#define LLVM_DATADIR "$LLVM_DATADIR"
20921_ACEOF
20922
20923
20924cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020925#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020926_ACEOF
20927
20928
20929cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020930#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020931_ACEOF
20932
20933
20934cat >>confdefs.h <<_ACEOF
20935#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20936_ACEOF
20937
20938
20939cat >>confdefs.h <<_ACEOF
20940#define LLVM_INFODIR "$LLVM_INFODIR"
20941_ACEOF
20942
20943
20944cat >>confdefs.h <<_ACEOF
20945#define LLVM_MANDIR "$LLVM_MANDIR"
20946_ACEOF
20947
20948
20949cat >>confdefs.h <<_ACEOF
20950#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20951_ACEOF
20952
20953
Eric Christopher790e11c2007-12-01 00:34:39 +000020954cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000020955#define LLVM_HOSTTRIPLE "$host"
20956_ACEOF
20957
20958
20959cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020960#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020961_ACEOF
20962
20963
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020964if test "$BINDINGS_TO_BUILD" = auto ; then
20965 BINDINGS_TO_BUILD=""
20966 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20967 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20968 fi
20969fi
20970BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20971
20972
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020973ALL_BINDINGS=ocaml
20974
20975
Gordon Henriksenf0915682007-10-02 16:42:22 +000020976binding_prereqs_failed=0
20977for a_binding in $BINDINGS_TO_BUILD ; do
20978 case "$a_binding" in
20979 ocaml)
20980 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020981 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20982echo "$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 +000020983 binding_prereqs_failed=1
20984 fi
20985 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20987echo "$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 +000020988 binding_prereqs_failed=1
20989 fi
20990 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020991 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20992echo "$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 +000020993 fi
20994 if test "x$with_ocaml_libdir" != xauto ; then
20995 OCAML_LIBDIR=$with_ocaml_libdir
20996
20997 else
20998 ocaml_stdlib="`"$OCAMLC" -where`"
20999 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21000 then
21001 # ocaml stdlib is beneath our prefix; use stdlib
21002 OCAML_LIBDIR=$ocaml_stdlib
21003
21004 else
21005 # ocaml stdlib is outside our prefix; use libdir/ocaml
21006 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21007
21008 fi
21009 fi
21010 ;;
21011 esac
21012done
21013if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21015echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21016 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021017fi
21018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021019{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21020echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21021if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021023else
21024 ac_ext=cpp
21025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021031 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021032 cat >conftest.$ac_ext <<_ACEOF
21033/* confdefs.h. */
21034_ACEOF
21035cat confdefs.h >>conftest.$ac_ext
21036cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021037/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021038template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021039int
21040main ()
21041{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021042X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021043 ;
21044 return 0;
21045}
21046_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021047rm -f conftest.$ac_objext
21048if { (ac_try="$ac_compile"
21049case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052esac
21053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065esac
21066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075esac
21076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021081 llvm_cv_cxx_visibility_inlines_hidden=yes
21082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021083 echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
21085
21086 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021088
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 CXXFLAGS="$oldcxxflags"
21091 ac_ext=c
21092ac_cpp='$CPP $CPPFLAGS'
21093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095ac_compiler_gnu=$ac_cv_c_compiler_gnu
21096
21097
21098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21100echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021101if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21102 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21103
21104else
21105 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21106
21107fi
21108
Gordon Henriksenf0915682007-10-02 16:42:22 +000021109
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021110if test "$llvm_cv_link_use_r" = "yes" ; then
21111 RPATH="-Wl,-R"
21112else
21113 RPATH="-Wl,-rpath"
21114fi
21115
21116
21117if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21118 RDYNAMIC="-Wl,-export-dynamic"
21119else
21120 RDYNAMIC=""
21121fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021122
21123
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021124
Eric Christophera1cba682010-08-08 02:44:25 +000021125ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021126
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021127
21128
21129
21130
21131
Douglas Gregor1555a232009-06-16 20:12:29 +000021132ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21133
21134ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21135
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021136ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21137
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021138ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21139
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021140ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021142
Reid Spencera773bd52006-08-04 18:18:08 +000021143ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021144
Eric Christopher360fa9a2011-10-26 00:42:12 +000021145
Reid Spencerea949cf2006-08-16 00:45:38 +000021146ac_config_files="$ac_config_files llvm.spec"
21147
21148
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021149ac_config_files="$ac_config_files docs/doxygen.cfg"
21150
Eric Christopher63c09512012-02-02 00:16:55 +000021151
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021152if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021153 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021154fi
Eric Christopher63c09512012-02-02 00:16:55 +000021155if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021156 configh="include/clang/Config/config.h"
21157 doxy="docs/doxygen.cfg"
21158 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021159
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021160 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021161
21162fi
21163
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021164ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021165
Eric Christopher360fa9a2011-10-26 00:42:12 +000021166
Reid Spencera773bd52006-08-04 18:18:08 +000021167ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021168
Reid Spencera773bd52006-08-04 18:18:08 +000021169ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021170
21171
Reid Spencera773bd52006-08-04 18:18:08 +000021172ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021173
21174
Reid Spencera773bd52006-08-04 18:18:08 +000021175ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021176
21177
Reid Spencera773bd52006-08-04 18:18:08 +000021178ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021179
21180
Reid Spencer8b2e1412006-11-17 03:32:33 +000021181ac_config_commands="$ac_config_commands runtime/Makefile"
21182
21183
Reid Spencera773bd52006-08-04 18:18:08 +000021184ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021185
21186
Reid Spencera773bd52006-08-04 18:18:08 +000021187ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021188
21189
Bill Wendlingf24eb392009-01-04 23:12:30 +000021190ac_config_commands="$ac_config_commands unittests/Makefile"
21191
21192
Reid Spencera773bd52006-08-04 18:18:08 +000021193ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021194
21195
Reid Spencera773bd52006-08-04 18:18:08 +000021196ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021197
21198
Reid Spencera773bd52006-08-04 18:18:08 +000021199ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021200
21201
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021202ac_config_commands="$ac_config_commands bindings/Makefile"
21203
21204
21205ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21206
21207
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021208
John Criswell7a73b802003-06-30 21:59:07 +000021209cat >confcache <<\_ACEOF
21210# This file is a shell script that caches the results of configure
21211# tests run on this system so they can be shared between configure
21212# scripts and configure runs, see configure's option --config-cache.
21213# It is not useful on other systems. If it contains results you don't
21214# want to keep, you may remove or edit it.
21215#
21216# config.status only pays attention to the cache file if you give it
21217# the --recheck option to rerun configure.
21218#
John Criswell0c38eaf2003-09-10 15:17:25 +000021219# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021220# loading this file, other *unset* `ac_cv_foo' will be assigned the
21221# following values.
21222
21223_ACEOF
21224
21225# The following way of writing the cache mishandles newlines in values,
21226# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021227# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021228# Ultrix sh set writes to stderr and can't be redirected directly,
21229# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021230(
21231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21232 eval ac_val=\$$ac_var
21233 case $ac_val in #(
21234 *${as_nl}*)
21235 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21237echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021238 esac
21239 case $ac_var in #(
21240 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021241 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021242 esac ;;
21243 esac
21244 done
21245
John Criswell7a73b802003-06-30 21:59:07 +000021246 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021247 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21248 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249 # `set' does not quote correctly, so add quotes (double-quote
21250 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021251 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021252 "s/'/'\\\\''/g;
21253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021254 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021255 *)
21256 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021258 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021259 esac |
21260 sort
21261) |
John Criswell7a73b802003-06-30 21:59:07 +000021262 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021263 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021264 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021265 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021266 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21267 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021268 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21269 :end' >>confcache
21270if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21271 if test -w "$cache_file"; then
21272 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21274echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021275 cat confcache >$cache_file
21276 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021277 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21278echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021279 fi
21280fi
21281rm -f confcache
21282
21283test "x$prefix" = xNONE && prefix=$ac_default_prefix
21284# Let make expand exec_prefix.
21285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21286
John Criswell7a73b802003-06-30 21:59:07 +000021287DEFS=-DHAVE_CONFIG_H
21288
John Criswell0c38eaf2003-09-10 15:17:25 +000021289ac_libobjs=
21290ac_ltlibobjs=
21291for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21292 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021293 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021294 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021295 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21296 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21298 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021299done
21300LIBOBJS=$ac_libobjs
21301
21302LTLIBOBJS=$ac_ltlibobjs
21303
21304
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021305if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21307Usually this means the macro was only invoked conditionally." >&5
21308echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21309Usually this means the macro was only invoked conditionally." >&2;}
21310 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021311fi
21312if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021313 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21314Usually this means the macro was only invoked conditionally." >&5
21315echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21316Usually this means the macro was only invoked conditionally." >&2;}
21317 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021318fi
John Criswell7a73b802003-06-30 21:59:07 +000021319
21320: ${CONFIG_STATUS=./config.status}
21321ac_clean_files_save=$ac_clean_files
21322ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021323{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21324echo "$as_me: creating $CONFIG_STATUS" >&6;}
21325cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021326#! $SHELL
21327# Generated by $as_me.
21328# Run this file to recreate the current configuration.
21329# Compiler output produced by configure, useful for debugging
21330# configure, is in config.log if it exists.
21331
21332debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021333ac_cs_recheck=false
21334ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021335SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021338cat >>$CONFIG_STATUS <<\_ACEOF
21339## --------------------- ##
21340## M4sh Initialization. ##
21341## --------------------- ##
21342
21343# Be Bourne compatible
21344if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021345 emulate sh
21346 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021348 # is contrary to our usage. Disable this feature.
21349 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021350 setopt NO_GLOB_SUBST
21351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021352 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354BIN_SH=xpg4; export BIN_SH # for Tru64
21355DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021356
John Criswell7a73b802003-06-30 21:59:07 +000021357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021358# PATH needs CR
21359# Avoid depending upon Character Ranges.
21360as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21361as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21362as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21363as_cr_digits='0123456789'
21364as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021365
21366# The user is always right.
21367if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368 echo "#! /bin/sh" >conf$$.sh
21369 echo "exit 0" >>conf$$.sh
21370 chmod +x conf$$.sh
21371 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21372 PATH_SEPARATOR=';'
21373 else
21374 PATH_SEPARATOR=:
21375 fi
21376 rm -f conf$$.sh
21377fi
21378
21379# Support unset when possible.
21380if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21381 as_unset=unset
21382else
21383 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021384fi
John Criswell7a73b802003-06-30 21:59:07 +000021385
Reid Spencera773bd52006-08-04 18:18:08 +000021386
21387# IFS
21388# We need space, tab and new line, in precisely that order. Quoting is
21389# there to prevent editors from complaining about space-tab.
21390# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21391# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392as_nl='
21393'
Reid Spencera773bd52006-08-04 18:18:08 +000021394IFS=" "" $as_nl"
21395
21396# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021397case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021398 *[\\/]* ) as_myself=$0 ;;
21399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021400for as_dir in $PATH
21401do
21402 IFS=$as_save_IFS
21403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21405done
Reid Spencera773bd52006-08-04 18:18:08 +000021406IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021407
Reid Spencera773bd52006-08-04 18:18:08 +000021408 ;;
21409esac
21410# We did not find ourselves, most probably we were run as `sh COMMAND'
21411# in which case we are not to be found in the path.
21412if test "x$as_myself" = x; then
21413 as_myself=$0
21414fi
21415if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21417 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021418fi
21419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420# Work around bugs in pre-3.0 UWIN ksh.
21421for as_var in ENV MAIL MAILPATH
21422do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021423done
21424PS1='$ '
21425PS2='> '
21426PS4='+ '
21427
21428# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429for as_var in \
21430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21432 LC_TELEPHONE LC_TIME
21433do
21434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21435 eval $as_var=C; export $as_var
21436 else
21437 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021438 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439done
Torok Edwin871384f2010-01-26 08:50:50 +000021440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021441# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021442if expr a : '\(a\)' >/dev/null 2>&1 &&
21443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21444 as_expr=expr
21445else
21446 as_expr=false
21447fi
21448
21449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21450 as_basename=basename
21451else
21452 as_basename=false
21453fi
21454
21455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021456# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021457as_me=`$as_basename -- "$0" ||
21458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21459 X"$0" : 'X\(//\)$' \| \
21460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021462 sed '/^.*\/\([^/][^/]*\)\/*$/{
21463 s//\1/
21464 q
21465 }
21466 /^X\/\(\/\/\)$/{
21467 s//\1/
21468 q
21469 }
21470 /^X\/\(\/\).*/{
21471 s//\1/
21472 q
21473 }
21474 s/.*/./; q'`
21475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476# CDPATH.
21477$as_unset CDPATH
21478
21479
21480
21481 as_lineno_1=$LINENO
21482 as_lineno_2=$LINENO
21483 test "x$as_lineno_1" != "x$as_lineno_2" &&
21484 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21485
21486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21487 # uniformly replaced by the line number. The first 'sed' inserts a
21488 # line-number line after each line using $LINENO; the second 'sed'
21489 # does the real work. The second script uses 'N' to pair each
21490 # line-number line with the line containing $LINENO, and appends
21491 # trailing '-' during substitution so that $LINENO is not a special
21492 # case at line end.
21493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21494 # scripts with optimization help from Paolo Bonzini. Blame Lee
21495 # E. McMahon (1931-1989) for sed's syntax. :-)
21496 sed -n '
21497 p
21498 /[$]LINENO/=
21499 ' <$as_myself |
21500 sed '
21501 s/[$]LINENO.*/&-/
21502 t lineno
21503 b
21504 :lineno
21505 N
21506 :loop
21507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21508 t loop
21509 s/-\n.*//
21510 ' >$as_me.lineno &&
21511 chmod +x "$as_me.lineno" ||
21512 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21513 { (exit 1); exit 1; }; }
21514
21515 # Don't try to exec as it changes $[0], causing all sort of problems
21516 # (the dirname of $[0] is not the place where we might find the
21517 # original and so on. Autoconf is especially sensitive to this).
21518 . "./$as_me.lineno"
21519 # Exit status is that of the last command.
21520 exit
21521}
21522
21523
21524if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21525 as_dirname=dirname
21526else
21527 as_dirname=false
21528fi
Reid Spencera773bd52006-08-04 18:18:08 +000021529
21530ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021532-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021536 esac;;
21537*)
21538 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021539esac
21540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541if expr a : '\(a\)' >/dev/null 2>&1 &&
21542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21543 as_expr=expr
21544else
21545 as_expr=false
21546fi
21547
John Criswell7a73b802003-06-30 21:59:07 +000021548rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021549if test -d conf$$.dir; then
21550 rm -f conf$$.dir/conf$$.file
21551else
21552 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021555echo >conf$$.file
21556if ln -s conf$$.file conf$$ 2>/dev/null; then
21557 as_ln_s='ln -s'
21558 # ... but there are two gotchas:
21559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21561 # In both cases, we have to default to `cp -p'.
21562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021563 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564elif ln conf$$.file conf$$ 2>/dev/null; then
21565 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021566else
21567 as_ln_s='cp -p'
21568fi
Reid Spencera773bd52006-08-04 18:18:08 +000021569rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21570rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021571
John Criswell0c38eaf2003-09-10 15:17:25 +000021572if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021574else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021575 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021576 as_mkdir_p=false
21577fi
21578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021579# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21580# systems may use methods other than mode bits to determine executability.
21581cat >conf$$.file <<_ASEOF
21582#! /bin/sh
21583exit 0
21584_ASEOF
21585chmod +x conf$$.file
21586if test -x conf$$.file >/dev/null 2>&1; then
21587 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021589 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021592
21593# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021595
21596# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021598
21599
John Criswell7a73b802003-06-30 21:59:07 +000021600exec 6>&1
21601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021603# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021604# values after options handling.
21605ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021606This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021608
21609 CONFIG_FILES = $CONFIG_FILES
21610 CONFIG_HEADERS = $CONFIG_HEADERS
21611 CONFIG_LINKS = $CONFIG_LINKS
21612 CONFIG_COMMANDS = $CONFIG_COMMANDS
21613 $ $0 $@
21614
Reid Spencera773bd52006-08-04 18:18:08 +000021615on `(hostname || uname -n) 2>/dev/null | sed 1q`
21616"
21617
John Criswell7a73b802003-06-30 21:59:07 +000021618_ACEOF
21619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021621# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021622config_files="$ac_config_files"
21623config_headers="$ac_config_headers"
21624config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021625
Reid Spencera773bd52006-08-04 18:18:08 +000021626_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021629ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630\`$as_me' instantiates files from templates according to the
21631current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021634
21635 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636 -V, --version print version number, then exit
21637 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021638 -d, --debug don't remove temporary files
21639 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021640 --file=FILE[:TEMPLATE]
21641 instantiate the configuration file FILE
21642 --header=FILE[:TEMPLATE]
21643 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021644
21645Configuration files:
21646$config_files
21647
21648Configuration headers:
21649$config_headers
21650
John Criswellc764fbc2003-09-06 15:17:13 +000021651Configuration commands:
21652$config_commands
21653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021654Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021655
Reid Spencera773bd52006-08-04 18:18:08 +000021656_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021658ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021659LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660configured by $0, generated by GNU Autoconf 2.60,
21661 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021664This config.status script is free software; the Free Software Foundation
21665gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021666
21667ac_pwd='$ac_pwd'
21668srcdir='$srcdir'
21669INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021670_ACEOF
21671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672cat >>$CONFIG_STATUS <<\_ACEOF
21673# If no file are specified by the user, then we need to provide default
21674# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021675ac_need_defaults=:
21676while test $# != 0
21677do
21678 case $1 in
21679 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021682 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021684 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021685 ac_option=$1
21686 ac_optarg=$2
21687 ac_shift=shift
21688 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021689 esac
21690
John Criswell0c38eaf2003-09-10 15:17:25 +000021691 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021692 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21694 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021696 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021697 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021698 debug=: ;;
21699 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021700 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021702 ac_need_defaults=false;;
21703 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021704 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021706 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021707 --he | --h)
21708 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 { echo "$as_me: error: ambiguous option: $1
21710Try \`$0 --help' for more information." >&2
21711 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021712 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21716 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021717
21718 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719 -*) { echo "$as_me: error: unrecognized option: $1
21720Try \`$0 --help' for more information." >&2
21721 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021724 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021725
21726 esac
21727 shift
21728done
21729
John Criswell0c38eaf2003-09-10 15:17:25 +000021730ac_configure_extra_args=
21731
21732if $ac_cs_silent; then
21733 exec 6>/dev/null
21734 ac_configure_extra_args="$ac_configure_extra_args --silent"
21735fi
21736
21737_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021738cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021739if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021740 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21741 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021742 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021744fi
21745
John Criswell7a73b802003-06-30 21:59:07 +000021746_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021747cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021748exec 5>>config.log
21749{
21750 echo
21751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21752## Running $as_me. ##
21753_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021755} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021756
Reid Spencera773bd52006-08-04 18:18:08 +000021757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021759#
Reid Spencera773bd52006-08-04 18:18:08 +000021760# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021761#
Reid Spencerc0682832005-02-24 19:05:19 +000021762llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021763
21764_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021766cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021767
21768# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021769for ac_config_target in $ac_config_targets
21770do
Reid Spencera773bd52006-08-04 18:18:08 +000021771 case $ac_config_target in
21772 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021773 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021774 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21775 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021776 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021777 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021778 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021779 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021780 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021781 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021782 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21783 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021784 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021785 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21786 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21787 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21788 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21789 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021790 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021791 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21792 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021793 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021794 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21795 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21796 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021797 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21798 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21801echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21802 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021803 esac
21804done
21805
Reid Spencera773bd52006-08-04 18:18:08 +000021806
John Criswell7a73b802003-06-30 21:59:07 +000021807# If the user did not use the arguments to specify the items to instantiate,
21808# then the envvar interface is used. Set only those that are not.
21809# We use the long form for the default assignment because of an extremely
21810# bizarre bug on SunOS 4.1.3.
21811if $ac_need_defaults; then
21812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021815fi
21816
John Criswell0c38eaf2003-09-10 15:17:25 +000021817# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021818# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021819# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021820# Hook for its removal unless debugging.
21821# Note that there is a small window in which the directory will not be cleaned:
21822# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021823$debug ||
21824{
Reid Spencera773bd52006-08-04 18:18:08 +000021825 tmp=
21826 trap 'exit_status=$?
21827 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21828' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021830}
John Criswell7a73b802003-06-30 21:59:07 +000021831# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021832
John Criswell7a73b802003-06-30 21:59:07 +000021833{
Reid Spencera773bd52006-08-04 18:18:08 +000021834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021835 test -n "$tmp" && test -d "$tmp"
21836} ||
21837{
Reid Spencera773bd52006-08-04 18:18:08 +000021838 tmp=./conf$$-$RANDOM
21839 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021840} ||
21841{
21842 echo "$me: cannot create a temporary directory in ." >&2
21843 { (exit 1); exit 1; }
21844}
John Criswell7a73b802003-06-30 21:59:07 +000021845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846#
21847# Set up the sed scripts for CONFIG_FILES section.
21848#
21849
21850# No need to generate the scripts if there are no CONFIG_FILES.
21851# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021852if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021853
21854_ACEOF
21855
Reid Spencera773bd52006-08-04 18:18:08 +000021856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857
Reid Spencera773bd52006-08-04 18:18:08 +000021858ac_delim='%!_!# '
21859for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860 cat >conf$$subs.sed <<_ACEOF
21861SHELL!$SHELL$ac_delim
21862PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21863PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21864PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21865PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21866PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21867PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21868exec_prefix!$exec_prefix$ac_delim
21869prefix!$prefix$ac_delim
21870program_transform_name!$program_transform_name$ac_delim
21871bindir!$bindir$ac_delim
21872sbindir!$sbindir$ac_delim
21873libexecdir!$libexecdir$ac_delim
21874datarootdir!$datarootdir$ac_delim
21875datadir!$datadir$ac_delim
21876sysconfdir!$sysconfdir$ac_delim
21877sharedstatedir!$sharedstatedir$ac_delim
21878localstatedir!$localstatedir$ac_delim
21879includedir!$includedir$ac_delim
21880oldincludedir!$oldincludedir$ac_delim
21881docdir!$docdir$ac_delim
21882infodir!$infodir$ac_delim
21883htmldir!$htmldir$ac_delim
21884dvidir!$dvidir$ac_delim
21885pdfdir!$pdfdir$ac_delim
21886psdir!$psdir$ac_delim
21887libdir!$libdir$ac_delim
21888localedir!$localedir$ac_delim
21889mandir!$mandir$ac_delim
21890DEFS!$DEFS$ac_delim
21891ECHO_C!$ECHO_C$ac_delim
21892ECHO_N!$ECHO_N$ac_delim
21893ECHO_T!$ECHO_T$ac_delim
21894LIBS!$LIBS$ac_delim
21895build_alias!$build_alias$ac_delim
21896host_alias!$host_alias$ac_delim
21897target_alias!$target_alias$ac_delim
21898LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021899CC!$CC$ac_delim
21900CFLAGS!$CFLAGS$ac_delim
21901LDFLAGS!$LDFLAGS$ac_delim
21902CPPFLAGS!$CPPFLAGS$ac_delim
21903ac_ct_CC!$ac_ct_CC$ac_delim
21904EXEEXT!$EXEEXT$ac_delim
21905OBJEXT!$OBJEXT$ac_delim
21906CXX!$CXX$ac_delim
21907CXXFLAGS!$CXXFLAGS$ac_delim
21908ac_ct_CXX!$ac_ct_CXX$ac_delim
21909CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021911ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21912LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913build!$build$ac_delim
21914build_cpu!$build_cpu$ac_delim
21915build_vendor!$build_vendor$ac_delim
21916build_os!$build_os$ac_delim
21917host!$host$ac_delim
21918host_cpu!$host_cpu$ac_delim
21919host_vendor!$host_vendor$ac_delim
21920host_os!$host_os$ac_delim
21921target!$target$ac_delim
21922target_cpu!$target_cpu$ac_delim
21923target_vendor!$target_vendor$ac_delim
21924target_os!$target_os$ac_delim
21925OS!$OS$ac_delim
21926HOST_OS!$HOST_OS$ac_delim
21927TARGET_OS!$TARGET_OS$ac_delim
21928LINKALL!$LINKALL$ac_delim
21929NOLINKALL!$NOLINKALL$ac_delim
21930LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21931LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21932ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021933HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021934ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935GREP!$GREP$ac_delim
21936EGREP!$EGREP$ac_delim
21937LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21938BUILD_CC!$BUILD_CC$ac_delim
21939BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21940BUILD_CXX!$BUILD_CXX$ac_delim
21941CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021942ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021943ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21944ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21945DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21946ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21947EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21948DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21949DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21950JIT!$JIT$ac_delim
21951TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021952ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021954LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021955ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021957ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021961 break
21962 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021966 else
21967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021968 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021969done
21970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972if test -n "$ac_eof"; then
21973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974 ac_eof=`expr $ac_eof + 1`
21975fi
21976
21977cat >>$CONFIG_STATUS <<_ACEOF
21978cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021980_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021981sed '
21982s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983s/^/s,@/; s/!/@,|#_!!_#|/
21984:n
21985t n
21986s/'"$ac_delim"'$/,g/; t
21987s/$/\\/; p
21988N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989' >>$CONFIG_STATUS <conf$$subs.sed
21990rm -f conf$$subs.sed
21991cat >>$CONFIG_STATUS <<_ACEOF
21992CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021994
21995
21996ac_delim='%!_!# '
21997for ac_last_try in false false false false false :; do
21998 cat >conf$$subs.sed <<_ACEOF
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021999ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022000ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022001TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22002LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22003LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022004LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022005LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022006OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022007EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022008EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022009CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022010BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022011INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012NM!$NM$ac_delim
22013ifGNUmake!$ifGNUmake$ac_delim
22014LN_S!$LN_S$ac_delim
22015CMP!$CMP$ac_delim
22016CP!$CP$ac_delim
22017DATE!$DATE$ac_delim
22018FIND!$FIND$ac_delim
22019MKDIR!$MKDIR$ac_delim
22020MV!$MV$ac_delim
22021RANLIB!$RANLIB$ac_delim
22022AR!$AR$ac_delim
22023RM!$RM$ac_delim
22024SED!$SED$ac_delim
22025TAR!$TAR$ac_delim
22026BINPWD!$BINPWD$ac_delim
22027GRAPHVIZ!$GRAPHVIZ$ac_delim
22028DOT!$DOT$ac_delim
22029FDP!$FDP$ac_delim
22030NEATO!$NEATO$ac_delim
22031TWOPI!$TWOPI$ac_delim
22032CIRCO!$CIRCO$ac_delim
22033GV!$GV$ac_delim
22034DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022035XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022036INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22037INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22038INSTALL_DATA!$INSTALL_DATA$ac_delim
22039BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022040CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022042GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022043GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022044PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045ZIP!$ZIP$ac_delim
22046OCAMLC!$OCAMLC$ac_delim
22047OCAMLOPT!$OCAMLOPT$ac_delim
22048OCAMLDEP!$OCAMLDEP$ac_delim
22049OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022050GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022051HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22053INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22054CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22055CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22056LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22058NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022059COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022060USE_UDIS86!$USE_UDIS86$ac_delim
22061USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022062USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22063INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22064INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christophercbd84f72012-08-03 05:18:00 +000022065BUILD_FLAGS!$BUILD_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22067HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22068MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022070SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022071LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22072LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22073LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22074LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22075LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22076LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22077LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22078LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22079LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22080LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22081BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22082ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022083OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22084ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22085RPATH!$RPATH$ac_delim
22086RDYNAMIC!$RDYNAMIC$ac_delim
22087LIBOBJS!$LIBOBJS$ac_delim
22088LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022089_ACEOF
22090
Eric Christophercbd84f72012-08-03 05:18:00 +000022091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022092 break
22093 elif $ac_last_try; then
22094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096 { (exit 1); exit 1; }; }
22097 else
22098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22099 fi
22100done
22101
22102ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103if test -n "$ac_eof"; then
22104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105 ac_eof=`expr $ac_eof + 1`
22106fi
22107
22108cat >>$CONFIG_STATUS <<_ACEOF
22109cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022110/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22111_ACEOF
22112sed '
22113s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114s/^/s,@/; s/!/@,|#_!!_#|/
22115:n
22116t n
22117s/'"$ac_delim"'$/,g/; t
22118s/$/\\/; p
22119N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120' >>$CONFIG_STATUS <conf$$subs.sed
22121rm -f conf$$subs.sed
22122cat >>$CONFIG_STATUS <<_ACEOF
22123:end
22124s/|#_!!_#|//g
22125CEOF$ac_eof
22126_ACEOF
22127
22128
Reid Spencera773bd52006-08-04 18:18:08 +000022129# VPATH may cause trouble with some makes, so we remove $(srcdir),
22130# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22131# trailing colons and then remove the whole line if VPATH becomes empty
22132# (actually we leave an empty line to preserve line numbers).
22133if test "x$srcdir" = x.; then
22134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22135s/:*\$(srcdir):*/:/
22136s/:*\${srcdir}:*/:/
22137s/:*@srcdir@:*/:/
22138s/^\([^=]*=[ ]*\):*/\1/
22139s/:*$//
22140s/^[^=]*=[ ]*$//
22141}'
22142fi
22143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022145fi # test -n "$CONFIG_FILES"
22146
Reid Spencera773bd52006-08-04 18:18:08 +000022147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022148for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022149do
22150 case $ac_tag in
22151 :[FHLC]) ac_mode=$ac_tag; continue;;
22152 esac
22153 case $ac_mode$ac_tag in
22154 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22156echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22157 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022158 :[FH]-) ac_tag=-:-;;
22159 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22160 esac
22161 ac_save_IFS=$IFS
22162 IFS=:
22163 set x $ac_tag
22164 IFS=$ac_save_IFS
22165 shift
22166 ac_file=$1
22167 shift
22168
22169 case $ac_mode in
22170 :L) ac_source=$1;;
22171 :[FH])
22172 ac_file_inputs=
22173 for ac_f
22174 do
22175 case $ac_f in
22176 -) ac_f="$tmp/stdin";;
22177 *) # Look for the file first in the build tree, then in the source tree
22178 # (if the path is not absolute). The absolute path cannot be DOS-style,
22179 # because $ac_f cannot contain `:'.
22180 test -f "$ac_f" ||
22181 case $ac_f in
22182 [\\/$]*) false;;
22183 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22184 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022185 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22186echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22187 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022188 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022189 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022190 done
22191
22192 # Let's still pretend it is `configure' which instantiates (i.e., don't
22193 # use $as_me), people would be surprised to read:
22194 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195 configure_input="Generated from "`IFS=:
22196 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022197 if test x"$ac_file" != x-; then
22198 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199 { echo "$as_me:$LINENO: creating $ac_file" >&5
22200echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022201 fi
22202
22203 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022205 esac
22206 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022207 esac
22208
Reid Spencera773bd52006-08-04 18:18:08 +000022209 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022210$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022211 X"$ac_file" : 'X\(//\)[^/]' \| \
22212 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022214echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22216 s//\1/
22217 q
22218 }
22219 /^X\(\/\/\)[^/].*/{
22220 s//\1/
22221 q
22222 }
22223 /^X\(\/\/\)$/{
22224 s//\1/
22225 q
22226 }
22227 /^X\(\/\).*/{
22228 s//\1/
22229 q
22230 }
22231 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232 { as_dir="$ac_dir"
22233 case $as_dir in #(
22234 -*) as_dir=./$as_dir;;
22235 esac
22236 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22237 as_dirs=
22238 while :; do
22239 case $as_dir in #(
22240 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22241 *) as_qdir=$as_dir;;
22242 esac
22243 as_dirs="'$as_qdir' $as_dirs"
22244 as_dir=`$as_dirname -- "$as_dir" ||
22245$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22246 X"$as_dir" : 'X\(//\)[^/]' \| \
22247 X"$as_dir" : 'X\(//\)$' \| \
22248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22249echo X"$as_dir" |
22250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22251 s//\1/
22252 q
22253 }
22254 /^X\(\/\/\)[^/].*/{
22255 s//\1/
22256 q
22257 }
22258 /^X\(\/\/\)$/{
22259 s//\1/
22260 q
22261 }
22262 /^X\(\/\).*/{
22263 s//\1/
22264 q
22265 }
22266 s/.*/./; q'`
22267 test -d "$as_dir" && break
22268 done
22269 test -z "$as_dirs" || eval "mkdir $as_dirs"
22270 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22271echo "$as_me: error: cannot create directory $as_dir" >&2;}
22272 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022273 ac_builddir=.
22274
Reid Spencera773bd52006-08-04 18:18:08 +000022275case "$ac_dir" in
22276.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22277*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022279 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022281 case $ac_top_builddir_sub in
22282 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22283 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22284 esac ;;
22285esac
22286ac_abs_top_builddir=$ac_pwd
22287ac_abs_builddir=$ac_pwd$ac_dir_suffix
22288# for backward compatibility:
22289ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022290
22291case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022292 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022293 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022294 ac_top_srcdir=$ac_top_builddir_sub
22295 ac_abs_top_srcdir=$ac_pwd ;;
22296 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022297 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022298 ac_top_srcdir=$srcdir
22299 ac_abs_top_srcdir=$srcdir ;;
22300 *) # Relative name.
22301 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22302 ac_top_srcdir=$ac_top_build_prefix$srcdir
22303 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022304esac
Reid Spencera773bd52006-08-04 18:18:08 +000022305ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022306
John Criswell7a73b802003-06-30 21:59:07 +000022307
Reid Spencera773bd52006-08-04 18:18:08 +000022308 case $ac_mode in
22309 :F)
22310 #
22311 # CONFIG_FILE
22312 #
John Criswell7a73b802003-06-30 21:59:07 +000022313
22314 case $INSTALL in
22315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022316 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022317 esac
John Criswell7a73b802003-06-30 21:59:07 +000022318_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022320cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022321# If the template does not know about datarootdir, expand it.
22322# FIXME: This hack should be removed a few years after 2.60.
22323ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324
22325case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022326 p
22327 q
22328}
22329/@datadir@/p
22330/@docdir@/p
22331/@infodir@/p
22332/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022333/@mandir@/p
22334' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022335*datarootdir*) ac_datarootdir_seen=yes;;
22336*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022337 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22338echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022339_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022340cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022341 ac_datarootdir_hack='
22342 s&@datadir@&$datadir&g
22343 s&@docdir@&$docdir&g
22344 s&@infodir@&$infodir&g
22345 s&@localedir@&$localedir&g
22346 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022347 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022348esac
22349_ACEOF
22350
22351# Neutralize VPATH when `$srcdir' = `.'.
22352# Shell code in configure.ac might set extrasub.
22353# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022354cat >>$CONFIG_STATUS <<_ACEOF
22355 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022356$extrasub
22357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022359:t
22360/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022361s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022362s&@top_builddir@&$ac_top_builddir_sub&;t t
22363s&@srcdir@&$ac_srcdir&;t t
22364s&@abs_srcdir@&$ac_abs_srcdir&;t t
22365s&@top_srcdir@&$ac_top_srcdir&;t t
22366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22367s&@builddir@&$ac_builddir&;t t
22368s&@abs_builddir@&$ac_abs_builddir&;t t
22369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22370s&@INSTALL@&$ac_INSTALL&;t t
22371$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022372" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022373
Reid Spencera773bd52006-08-04 18:18:08 +000022374test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22375 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22376 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022377 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022378which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022380which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022381
Reid Spencera773bd52006-08-04 18:18:08 +000022382 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022383 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022384 -) cat "$tmp/out"; rm -f "$tmp/out";;
22385 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22386 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022387 ;;
22388 :H)
22389 #
22390 # CONFIG_HEADER
22391 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392_ACEOF
22393
22394# Transform confdefs.h into a sed script `conftest.defines', that
22395# substitutes the proper values into config.h.in to produce config.h.
22396rm -f conftest.defines conftest.tail
22397# First, append a space to every undef/define line, to ease matching.
22398echo 's/$/ /' >conftest.defines
22399# Then, protect against being on the right side of a sed subst, or in
22400# an unquoted here document, in config.status. If some macros were
22401# called several times there might be several #defines for the same
22402# symbol, which is useless. But do not sort them, since the last
22403# AC_DEFINE must be honored.
22404ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22405# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22406# NAME is the cpp macro being defined, VALUE is the value it is being given.
22407# PARAMS is the parameter list in the macro definition--in most cases, it's
22408# just an empty string.
22409ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22410ac_dB='\\)[ (].*,\\1define\\2'
22411ac_dC=' '
22412ac_dD=' ,'
22413
22414uniq confdefs.h |
22415 sed -n '
22416 t rset
22417 :rset
22418 s/^[ ]*#[ ]*define[ ][ ]*//
22419 t ok
22420 d
22421 :ok
22422 s/[\\&,]/\\&/g
22423 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22424 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22425 ' >>conftest.defines
22426
22427# Remove the space that was appended to ease matching.
22428# Then replace #undef with comments. This is necessary, for
22429# example, in the case of _POSIX_SOURCE, which is predefined and required
22430# on some systems where configure will not decide to define it.
22431# (The regexp can be short, since the line contains either #define or #undef.)
22432echo 's/ $//
22433s,^[ #]*u.*,/* & */,' >>conftest.defines
22434
22435# Break up conftest.defines:
22436ac_max_sed_lines=50
22437
22438# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22439# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22440# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22441# et cetera.
22442ac_in='$ac_file_inputs'
22443ac_out='"$tmp/out1"'
22444ac_nxt='"$tmp/out2"'
22445
22446while :
22447do
22448 # Write a here document:
22449 cat >>$CONFIG_STATUS <<_ACEOF
22450 # First, check the format of the line:
22451 cat >"\$tmp/defines.sed" <<\\CEOF
22452/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22453/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22454b
22455:def
22456_ACEOF
22457 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22458 echo 'CEOF
22459 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22460 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22461 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22462 grep . conftest.tail >/dev/null || break
22463 rm -f conftest.defines
22464 mv conftest.tail conftest.defines
22465done
22466rm -f conftest.defines conftest.tail
22467
22468echo "ac_result=$ac_in" >>$CONFIG_STATUS
22469cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022470 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022471 echo "/* $configure_input */" >"$tmp/config.h"
22472 cat "$ac_result" >>"$tmp/config.h"
22473 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22474 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22475echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022476 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022477 rm -f $ac_file
22478 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022479 fi
22480 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022481 echo "/* $configure_input */"
22482 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022483 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022484 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022485 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022487 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22488echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022489 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022490 esac
John Criswell7a73b802003-06-30 21:59:07 +000022491
Reid Spencera773bd52006-08-04 18:18:08 +000022492
22493 case $ac_file$ac_mode in
22494 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022496 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022498 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022500 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022502 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022504 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022506 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022507 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022508 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022510 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022512 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022514 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022516 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022518 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022519 ${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 +000022520
22521 esac
22522done # for ac_tag
22523
John Criswell7a73b802003-06-30 21:59:07 +000022524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022525{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022528ac_clean_files=$ac_clean_files_save
22529
22530
22531# configure is writing to config.log, and then calls config.status.
22532# config.status does its own redirection, appending to config.log.
22533# Unfortunately, on DOS this fails, as config.log is still kept open
22534# by configure, so config.status won't be able to write to it; its
22535# output is simply discarded. So we exec the FD to /dev/null,
22536# effectively closing config.log, so it can be properly (re)opened and
22537# appended to by config.status. When coming back to configure, we
22538# need to make the FD available again.
22539if test "$no_create" != yes; then
22540 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022541 ac_config_status_args=
22542 test "$silent" = yes &&
22543 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022544 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022546 exec 5>>config.log
22547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22548 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022549 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022550fi
22551
John Criswell12399a12003-09-30 15:55:44 +000022552#
22553# CONFIG_SUBDIRS section.
22554#
22555if test "$no_recursion" != yes; then
22556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022557 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022558 ac_sub_configure_args=
22559 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022560 eval "set x $ac_configure_args"
22561 shift
22562 for ac_arg
22563 do
John Criswell12399a12003-09-30 15:55:44 +000022564 if test -n "$ac_prev"; then
22565 ac_prev=
22566 continue
22567 fi
22568 case $ac_arg in
22569 -cache-file | --cache-file | --cache-fil | --cache-fi \
22570 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22571 ac_prev=cache_file ;;
22572 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22573 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22574 | --c=*)
22575 ;;
22576 --config-cache | -C)
22577 ;;
22578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22579 ac_prev=srcdir ;;
22580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22581 ;;
22582 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22583 ac_prev=prefix ;;
22584 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22585 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022586 *)
22587 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022588 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022589 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022590 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022591 esac
22592 done
22593
22594 # Always prepend --prefix to ensure using the same prefix
22595 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022596 ac_arg="--prefix=$prefix"
22597 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022598 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022599 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022600 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022601
22602 ac_popdir=`pwd`
22603 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22604
22605 # Do not complain, so a configure script can configure whichever
22606 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022607 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022608
Reid Spencera773bd52006-08-04 18:18:08 +000022609 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 echo "$as_me:$LINENO: $ac_msg" >&5
22611 echo "$ac_msg" >&6
22612 { as_dir="$ac_dir"
22613 case $as_dir in #(
22614 -*) as_dir=./$as_dir;;
22615 esac
22616 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22617 as_dirs=
22618 while :; do
22619 case $as_dir in #(
22620 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22621 *) as_qdir=$as_dir;;
22622 esac
22623 as_dirs="'$as_qdir' $as_dirs"
22624 as_dir=`$as_dirname -- "$as_dir" ||
22625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22626 X"$as_dir" : 'X\(//\)[^/]' \| \
22627 X"$as_dir" : 'X\(//\)$' \| \
22628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22629echo X"$as_dir" |
22630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22631 s//\1/
22632 q
22633 }
22634 /^X\(\/\/\)[^/].*/{
22635 s//\1/
22636 q
22637 }
22638 /^X\(\/\/\)$/{
22639 s//\1/
22640 q
22641 }
22642 /^X\(\/\).*/{
22643 s//\1/
22644 q
22645 }
22646 s/.*/./; q'`
22647 test -d "$as_dir" && break
22648 done
22649 test -z "$as_dirs" || eval "mkdir $as_dirs"
22650 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22651echo "$as_me: error: cannot create directory $as_dir" >&2;}
22652 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022653 ac_builddir=.
22654
Reid Spencera773bd52006-08-04 18:18:08 +000022655case "$ac_dir" in
22656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22657*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022659 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022660 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022661 case $ac_top_builddir_sub in
22662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22664 esac ;;
22665esac
22666ac_abs_top_builddir=$ac_pwd
22667ac_abs_builddir=$ac_pwd$ac_dir_suffix
22668# for backward compatibility:
22669ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022670
22671case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022672 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022673 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022674 ac_top_srcdir=$ac_top_builddir_sub
22675 ac_abs_top_srcdir=$ac_pwd ;;
22676 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022677 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022678 ac_top_srcdir=$srcdir
22679 ac_abs_top_srcdir=$srcdir ;;
22680 *) # Relative name.
22681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22682 ac_top_srcdir=$ac_top_build_prefix$srcdir
22683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022684esac
Reid Spencera773bd52006-08-04 18:18:08 +000022685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022686
22687
Reid Spencera773bd52006-08-04 18:18:08 +000022688 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022689
22690 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022691 if test -f "$ac_srcdir/configure.gnu"; then
22692 ac_sub_configure=$ac_srcdir/configure.gnu
22693 elif test -f "$ac_srcdir/configure"; then
22694 ac_sub_configure=$ac_srcdir/configure
22695 elif test -f "$ac_srcdir/configure.in"; then
22696 # This should be Cygnus configure.
22697 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022698 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022699 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22700echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022701 ac_sub_configure=
22702 fi
22703
22704 # The recursion is here.
22705 if test -n "$ac_sub_configure"; then
22706 # Make the cache file name correct relative to the subdirectory.
22707 case $cache_file in
22708 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022709 *) # Relative name.
22710 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022711 esac
22712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022713 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22714echo "$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 +000022715 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022716 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22717 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022718 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22719echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22720 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022721 fi
22722
Reid Spencera773bd52006-08-04 18:18:08 +000022723 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022724 done
22725fi
22726