blob: 863460b93e52fab165633f825b55a839611e7a68 [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
Sebastian Pop94a935f2012-08-27 23:05:06 +0000643program_prefix
Eric Christopherffee5722011-09-16 20:36:25 +0000644CC
645CFLAGS
646LDFLAGS
647CPPFLAGS
648ac_ct_CC
649EXEEXT
650OBJEXT
651CXX
652CXXFLAGS
653ac_ct_CXX
654CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000655subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000656ENABLE_POLLY
657LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666target
667target_cpu
668target_vendor
669target_os
670OS
671HOST_OS
672TARGET_OS
673LINKALL
674NOLINKALL
675LLVM_ON_UNIX
676LLVM_ON_WIN32
677ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000678HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000680GREP
681EGREP
682LLVM_CROSS_COMPILING
683BUILD_CC
684BUILD_EXEEXT
685BUILD_CXX
686CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000687ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000688ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000689ENABLE_OPTIMIZED
690ENABLE_PROFILING
691DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000692ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000693ENABLE_EXPENSIVE_CHECKS
694EXPENSIVE_CHECKS
695DEBUG_RUNTIME
696DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000697KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698JIT
699TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000700ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000701ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000702LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000703ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000704ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000705ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000706ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000707ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708TARGETS_TO_BUILD
709LLVM_ENUM_TARGETS
710LLVM_ENUM_ASM_PRINTERS
711LLVM_ENUM_ASM_PARSERS
712LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713OPTIMIZE_OPTION
714EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000715EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000716CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000717BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000718INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000719NM
720ifGNUmake
721LN_S
722CMP
723CP
724DATE
725FIND
726MKDIR
727MV
728RANLIB
729AR
730RM
731SED
732TAR
733BINPWD
734GRAPHVIZ
735DOT
736FDP
737NEATO
738TWOPI
739CIRCO
740GV
741DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000742XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743INSTALL_PROGRAM
744INSTALL_SCRIPT
745INSTALL_DATA
746BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000747CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000749GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000750GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000766COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767USE_UDIS86
768USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000769USE_INTEL_JITEVENTS
770INTEL_JITEVENTS_INCDIR
771INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000772XML2CONFIG
773LIBXML2_LIBS
774LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000779SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000780LLVM_PREFIX
781LLVM_BINDIR
782LLVM_LIBDIR
783LLVM_DATADIR
784LLVM_DOCSDIR
785LLVM_ETCDIR
786LLVM_INCLUDEDIR
787LLVM_INFODIR
788LLVM_MANDIR
789LLVM_CONFIGTIME
790BINDINGS_TO_BUILD
791ALL_BINDINGS
792OCAML_LIBDIR
793ENABLE_VISIBILITY_INLINES_HIDDEN
794RPATH
795RDYNAMIC
796LIBOBJS
797LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000798ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000806CXX
807CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000808CCC
809CPP'
John Criswell0157f502010-03-19 21:31:39 +0000810ac_subdirs_all='projects/llvm-gcc
811projects/test-suite
812projects/llvm-test
813projects/poolalloc
814projects/llvm-poolalloc
815projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000817projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-java
820projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000821projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000822projects/llvm-kernel
823tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000850# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000859includedir='${prefix}/include'
860oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000870
871ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000872ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000873for ac_option
874do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000877 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000878 ac_prev=
879 continue
880 fi
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_option in
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *) ac_optarg=yes ;;
885 esac
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000914 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000916 datadir=$ac_optarg ;;
917
Reid Spencera773bd52006-08-04 18:18:08 +0000918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
John Criswell7a73b802003-06-30 21:59:07 +0000925 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000927 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000943
944 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000946 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
Reid Spencera773bd52006-08-04 18:18:08 +0000978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
John Criswell7a73b802003-06-30 21:59:07 +0000984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
Reid Spencera773bd52006-08-04 18:18:08 +00001008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
John Criswell7a73b802003-06-30 21:59:07 +00001013 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
Reid Spencera773bd52006-08-04 18:18:08 +00001082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
John Criswell7a73b802003-06-30 21:59:07 +00001092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001143 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001152 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001188 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 ;;
1198
1199 esac
1200done
1201
1202if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001206fi
1207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001208# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001213do
Reid Spencera773bd52006-08-04 18:18:08 +00001214 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001215 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001218 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
Reid Spencera773bd52006-08-04 18:18:08 +00001247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001255
1256
John Criswell7a73b802003-06-30 21:59:07 +00001257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001260 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001261 ac_confdir=`$as_dirname -- "$0" ||
1262$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001285 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001295fi
Reid Spencera773bd52006-08-04 18:18:08 +00001296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001300 pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
John Criswell7a73b802003-06-30 21:59:07 +00001317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001325\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001349 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001378_ACEOF
1379
1380 cat <<\_ACEOF
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001391 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001398 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001399 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001400 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 --enable-optimized Compile with optimizations enabled (default is NO)
1402 --enable-profiling Compile with profiling enabled (default is NO)
1403 --enable-assertions Compile with assertion checks enabled (default is
1404 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001405 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001406 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001407 Compile with expensive debug checks enabled (default
1408 is NO)
1409 --enable-debug-runtime Build runtime libs with debug symbols (default is
1410 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1412 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001413 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001414 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001415 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001416 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001417 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001418 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001419 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001420 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001421 --enable-shared Build a shared library and link tools against it
1422 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001423 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001424 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001425 --enable-timestamps Enable embedding timestamp information in build
1426 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001427 --enable-targets Build specific host targets: all or
1428 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001429 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001430 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001431 --enable-experimental-targets
1432 Build experimental host targets: disable or
1433 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001434 --enable-bindings Build specific language bindings:
1435 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001436 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001437 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001438
1439Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001442 --with-optimize-option Select the compiler options to use for optimized
1443 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001444 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001445 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001446 --with-ocaml-libdir Specify install location for ocaml bindings (default
1447 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001448 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1451 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001452 --with-c-include-dirs Colon separated list of directories clang will
1453 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001454 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001455 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001458 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001459 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001460 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001461 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001464 --with-intel-jitevents=<vtune-amplifier-dir>
1465 Specify location of run-time support library for
1466 Intel JIT API
1467 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CC C compiler command
1471 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001475 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001478 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
Eric Christopherf33ab862011-12-21 00:52:44 +00001483Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001484_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001485ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001492 ac_builddir=.
1493
Reid Spencera773bd52006-08-04 18:18:08 +00001494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001498 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001509
1510case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001511 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001512 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001516 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001523esac
Reid Spencera773bd52006-08-04 18:18:08 +00001524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001525
Reid Spencera773bd52006-08-04 18:18:08 +00001526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001534 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001538 done
1539fi
1540
Reid Spencera773bd52006-08-04 18:18:08 +00001541test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001542if $ac_init_version; then
1543 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001544LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001549This configure script is free software; the Free Software Foundation
1550gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001551
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001552Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001554 exit
John Criswell7a73b802003-06-30 21:59:07 +00001555fi
Reid Spencera773bd52006-08-04 18:18:08 +00001556cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001557This file contains any messages produced by compilers while
1558running configure, to aid debugging if configure makes a mistake.
1559
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001560It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001562
1563 $ $0 $@
1564
1565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001567{
1568cat <<_ASUNAME
1569## --------- ##
1570## Platform. ##
1571## --------- ##
1572
1573hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577uname -v = `(uname -v) 2>/dev/null || echo unknown`
1578
1579/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1581
1582/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1583/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1584/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001585/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001586/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1587/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1588/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1589
1590_ASUNAME
1591
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
1594do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001597 echo "PATH: $as_dir"
1598done
Reid Spencera773bd52006-08-04 18:18:08 +00001599IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001600
1601} >&5
1602
1603cat >&5 <<_ACEOF
1604
1605
1606## ----------- ##
1607## Core tests. ##
1608## ----------- ##
1609
1610_ACEOF
1611
1612
1613# Keep a trace of the command line.
1614# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001615# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001616# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001617# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001618ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001619ac_configure_args0=
1620ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001621ac_must_keep_next=false
1622for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001623do
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 for ac_arg
1625 do
1626 case $ac_arg in
1627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629 | -silent | --silent | --silen | --sile | --sil)
1630 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001631 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 esac
1634 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001637 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001641 case $ac_arg in
1642 *=* | --config-cache | -C | -disable-* | --disable-* \
1643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645 | -with-* | --with-* | -without-* | --without-* | --x)
1646 case "$ac_configure_args0 " in
1647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648 esac
1649 ;;
1650 -* ) ac_must_keep_next=true ;;
1651 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001653 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 ;;
1655 esac
1656 done
John Criswell7a73b802003-06-30 21:59:07 +00001657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001658$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659$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 +00001660
1661# When interrupted or exit'd, cleanup temporary files, and complete
1662# config.log. We remove comments because anyway the quotes in there
1663# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001664# WARNING: Use '\'' to represent an apostrophe within the trap.
1665# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001666trap 'exit_status=$?
1667 # Save into config.log some information that might help in debugging.
1668 {
1669 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001670
John Criswell7a73b802003-06-30 21:59:07 +00001671 cat <<\_ASBOX
1672## ---------------- ##
1673## Cache variables. ##
1674## ---------------- ##
1675_ASBOX
1676 echo
1677 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001678(
1679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680 eval ac_val=\$$ac_var
1681 case $ac_val in #(
1682 *${as_nl}*)
1683 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001686 esac
1687 case $ac_var in #(
1688 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001689 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001690 esac ;;
1691 esac
1692 done
John Criswell7a73b802003-06-30 21:59:07 +00001693 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001694 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001696 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001697 "s/'\''/'\''\\\\'\'''\''/g;
1698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001700 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001703 esac |
1704 sort
1705)
John Criswell7a73b802003-06-30 21:59:07 +00001706 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001707
1708 cat <<\_ASBOX
1709## ----------------- ##
1710## Output variables. ##
1711## ----------------- ##
1712_ASBOX
1713 echo
1714 for ac_var in $ac_subst_vars
1715 do
Reid Spencera773bd52006-08-04 18:18:08 +00001716 eval ac_val=\$$ac_var
1717 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001719 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001720 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 done | sort
1722 echo
1723
1724 if test -n "$ac_subst_files"; then
1725 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001726## ------------------- ##
1727## File substitutions. ##
1728## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001729_ASBOX
1730 echo
1731 for ac_var in $ac_subst_files
1732 do
Reid Spencera773bd52006-08-04 18:18:08 +00001733 eval ac_val=\$$ac_var
1734 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001735 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001736 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001737 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001738 done | sort
1739 echo
1740 fi
1741
John Criswell7a73b802003-06-30 21:59:07 +00001742 if test -s confdefs.h; then
1743 cat <<\_ASBOX
1744## ----------- ##
1745## confdefs.h. ##
1746## ----------- ##
1747_ASBOX
1748 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001749 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001750 echo
1751 fi
1752 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001755 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001758 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001759' 0
John Criswell7a73b802003-06-30 21:59:07 +00001760for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001762done
1763ac_signal=0
1764
1765# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001766rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001767
1768# Predefined preprocessor variables.
1769
1770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_NAME "$PACKAGE_NAME"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_VERSION "$PACKAGE_VERSION"
1782_ACEOF
1783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_STRING "$PACKAGE_STRING"
1787_ACEOF
1788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792_ACEOF
1793
1794
1795# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001797if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001799elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805shift
1806for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001807do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 sed 's/^/| /' "$ac_site_file" >&5
1812 . "$ac_site_file"
1813 fi
1814done
1815
1816if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001823 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001825 esac
1826 fi
1827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001830 >$cache_file
1831fi
1832
1833# Check that the precious variables saved in the cache have kept the same
1834# value.
1835ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001836for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001841 case $ac_old_set,$ac_new_set in
1842 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001845 ac_cache_corrupted=: ;;
1846 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001849 ac_cache_corrupted=: ;;
1850 ,);;
1851 *)
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001860 fi;;
1861 esac
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1864 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001866 *) ac_arg=$ac_var=$ac_new_val ;;
1867 esac
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001871 esac
1872 fi
1873done
1874if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
Reid Spencera773bd52006-08-04 18:18:08 +00001905
John Criswell7a73b802003-06-30 21:59:07 +00001906ac_ext=c
1907ac_cpp='$CPP $CPPFLAGS'
1908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911
1912
1913
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001914cat >>confdefs.h <<\_ACEOF
1915#define LLVM_VERSION_MAJOR 3
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001920#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001921_ACEOF
1922
1923
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001924LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001925
1926
1927
1928
1929
1930
1931
Sebastian Pop94a935f2012-08-27 23:05:06 +00001932
1933
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
John Criswell7a73b802003-06-30 21:59:07 +00001949done
1950if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001954fi
Reid Spencera773bd52006-08-04 18:18:08 +00001955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964
John Criswell392aaa32003-07-22 19:18:09 +00001965
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971 fi
John Criswell93e1c722003-09-15 17:04:06 +00001972fi
1973
Nick Lewycky83fc4472009-09-29 05:48:51 +00001974ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001979if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001980 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001981 do
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001988else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 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 +00001999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002001 break 2
2002 fi
2003done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004done
Reid Spencera773bd52006-08-04 18:18:08 +00002005IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002006
2007fi
2008fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002014 { echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002016fi
2017
Reid Spencera773bd52006-08-04 18:18:08 +00002018
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002020 done
2021fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002022if test -z "$CC"; then
2023 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002024 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002025do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002032else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 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 +00002043 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002045 break 2
2046 fi
2047done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048done
Reid Spencera773bd52006-08-04 18:18:08 +00002049IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002050
2051fi
2052fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002057else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002058 { echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002060fi
2061
Reid Spencera773bd52006-08-04 18:18:08 +00002062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencera773bd52006-08-04 18:18:08 +00002066 if test "x$ac_ct_CC" = x; then
2067 CC=""
2068 else
2069 case $cross_compiling:$ac_tool_warned in
2070yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&5
2074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002077ac_tool_warned=yes ;;
2078esac
2079 CC=$ac_ct_CC
2080 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081fi
2082
John Criswell7a73b802003-06-30 21:59:07 +00002083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089
John Criswell7a73b802003-06-30 21:59:07 +00002090# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002091echo "$as_me:$LINENO: checking for C compiler version" >&5
2092ac_compiler=`set X $ac_compile; echo $2`
2093{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002100 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -v >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113{ (ac_try="$ac_compiler -V >&5"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002130
John Criswell7a73b802003-06-30 21:59:07 +00002131int
2132main ()
2133{
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002141# Try to create an executable without -o first, disregard a.out.
2142# It will help us diagnose broken compilers, and finding out an intuition
2143# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002144{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147#
2148# List of possible output files, starting from the most likely.
2149# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150# only as a last resort. b.out is created by i960 compilers.
2151ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152#
2153# The IRIX 6 linker writes into existing files which may not be
2154# executable, retaining their permissions. Remove them first so a
2155# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002156ac_rmfiles=
2157for ac_file in $ac_files
2158do
2159 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 esac
2163done
2164rm -f $ac_rmfiles
2165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002172 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002173 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178# in a Makefile. We should not override ac_cv_exeext if it was cached,
2179# so that the user can short-circuit this test for compilers unknown to
2180# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002181for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002182do
2183 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002184 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002193 then :; else
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 fi
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2200 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002202 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002204 esac
2205done
Reid Spencera773bd52006-08-04 18:18:08 +00002206test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
John Criswell7a73b802003-06-30 21:59:07 +00002208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002210sed 's/^/| /' conftest.$ac_ext >&5
2211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002217fi
John Criswell7a73b802003-06-30 21:59:07 +00002218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002219ac_exeext=$ac_cv_exeext
2220{ echo "$as_me:$LINENO: result: $ac_file" >&5
2221echo "${ECHO_T}$ac_file" >&6; }
2222
2223# Check that the compiler produces executables we can run. If not, either
2224# the compiler is broken, or we cross compile.
2225{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228# If not cross compiling, check that we can run a simple program.
2229if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 cross_compiling=no
2241 else
2242 if test "$cross_compiling" = maybe; then
2243 cross_compiling=yes
2244 else
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2252 fi
2253 fi
2254fi
2255{ echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6; }
2257
2258rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002259ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002260# Check that the compiler produces executables we can run. If not, either
2261# the compiler is broken, or we cross compile.
2262{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002275 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002276 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002283for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002285 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002288 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002289 * ) break;;
2290 esac
2291done
2292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299
2300rm -f conftest$ac_cv_exeext
2301{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002307{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002318
John Criswell7a73b802003-06-30 21:59:07 +00002319int
2320main ()
2321{
2322
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002334 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002335 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002340 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 break;;
2344 esac
2345done
2346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002348sed 's/^/| /' conftest.$ac_ext >&5
2349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&5
2352echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356
John Criswell7a73b802003-06-30 21:59:07 +00002357rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002359{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002361OBJEXT=$ac_cv_objext
2362ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002374
John Criswell7a73b802003-06-30 21:59:07 +00002375int
2376main ()
2377{
2378#ifndef __GNUC__
2379 choke me
2380#endif
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002386rm -f conftest.$ac_objext
2387if { (ac_try="$ac_compile"
2388case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002420 ac_compiler_gnu=yes
2421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427
Reid Spencera773bd52006-08-04 18:18:08 +00002428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002430
2431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002441else
Reid Spencera773bd52006-08-04 18:18:08 +00002442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2444 ac_cv_prog_cc_g=no
2445 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002452
John Criswell7a73b802003-06-30 21:59:07 +00002453int
2454main ()
2455{
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461rm -f conftest.$ac_objext
2462if { (ac_try="$ac_compile"
2463case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 CFLAGS=""
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002516rm -f conftest.$ac_objext
2517if { (ac_try="$ac_compile"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544esac
2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 :
Torok Edwin871384f2010-01-26 08:50:50 +00002551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002556 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002572rm -f conftest.$ac_objext
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002606 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
John Criswell7a73b802003-06-30 21:59:07 +00002612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613
Reid Spencera773bd52006-08-04 18:18:08 +00002614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616
Reid Spencera773bd52006-08-04 18:18:08 +00002617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619
Reid Spencera773bd52006-08-04 18:18:08 +00002620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2629 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002630 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002632 fi
2633else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 if test "$GCC" = yes; then
2635 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002636 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002638 fi
2639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644else
Reid Spencera773bd52006-08-04 18:18:08 +00002645 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652/* end confdefs.h. */
2653#include <stdarg.h>
2654#include <stdio.h>
2655#include <sys/types.h>
2656#include <sys/stat.h>
2657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658struct buf { int x; };
2659FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660static char *e (p, i)
2661 char **p;
2662 int i;
2663{
2664 return p[i];
2665}
2666static char *f (char * (*g) (char **, int), char **p, ...)
2667{
2668 char *s;
2669 va_list v;
2670 va_start (v,p);
2671 s = g (p, va_arg (v,int));
2672 va_end (v);
2673 return s;
2674}
2675
2676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002679 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002682 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
Reid Spencera773bd52006-08-04 18:18:08 +00002685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687#define FOO(x) 'x'
2688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690int test (int i, double x);
2691struct s1 {int (*f) (int a);};
2692struct s2 {int (*f) (double a);};
2693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694int argc;
2695char **argv;
2696int
2697main ()
2698{
2699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 ;
2701 return 0;
2702}
2703_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706do
2707 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 rm -f conftest.$ac_objext
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002742 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743else
2744 echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749
Reid Spencera773bd52006-08-04 18:18:08 +00002750rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752done
Reid Spencera773bd52006-08-04 18:18:08 +00002753rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754CC=$ac_save_CC
2755
2756fi
Reid Spencera773bd52006-08-04 18:18:08 +00002757# AC_CACHE_VAL
2758case "x$ac_cv_prog_cc_c89" in
2759 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002760 { echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002762 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002766 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002769esac
2770
John Criswell0c38eaf2003-09-10 15:17:25 +00002771
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
Eric Christopherffee5722011-09-16 20:36:25 +00002778ac_ext=cpp
2779ac_cpp='$CXXCPP $CPPFLAGS'
2780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2785 CXX=$CCC
2786 else
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2789 do
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CXX=$ac_cv_prog_CXX
2818if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820echo "${ECHO_T}$CXX" >&6; }
2821else
2822 { echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6; }
2824fi
2825
2826
2827 test -n "$CXX" && break
2828 done
2829fi
2830if test -z "$CXX"; then
2831 ac_ct_CXX=$CXX
2832 for ac_prog in clang++ llvm-g++ g++
2833do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865else
2866 { echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6; }
2868fi
2869
2870
2871 test -n "$ac_ct_CXX" && break
2872done
2873
2874 if test "x$ac_ct_CXX" = x; then
2875 CXX="g++"
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880whose name does not start with the host triplet. If you think this
2881configuration is useful to you, please write to autoconf@gnu.org." >&5
2882echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 CXX=$ac_ct_CXX
2888 fi
2889fi
2890
2891 fi
2892fi
2893# Provide some information about the compiler.
2894echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895ac_compiler=`set X $ac_compile; echo $2`
2896{ (ac_try="$ac_compiler --version >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -v >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (ac_try="$ac_compiler -V >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926
2927{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_compiler_gnu=yes
2985else
2986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_compiler_gnu=no
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995fi
2996{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998GXX=`test $ac_compiler_gnu = yes && echo yes`
2999ac_test_CXXFLAGS=${CXXFLAGS+set}
3000ac_save_CXXFLAGS=$CXXFLAGS
3001{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3008 ac_cv_prog_cxx_g=no
3009 CXXFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3060else
3061 echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CXXFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 :
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 CXXFLAGS="-g"
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186fi
3187{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3193 CXXFLAGS="-g -O2"
3194 else
3195 CXXFLAGS="-g"
3196 fi
3197else
3198 if test "$GXX" = yes; then
3199 CXXFLAGS="-O2"
3200 else
3201 CXXFLAGS=
3202 fi
3203fi
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250if { (ac_try="$ac_cpp conftest.$ac_ext"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266 else
3267 ac_cpp_err=
3268 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270 ac_cpp_err=yes
3271fi
3272if test -z "$ac_cpp_err"; then
3273 :
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278 # Broken: fails on valid input.
3279continue
3280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282rm -f conftest.err conftest.$ac_ext
3283
Reid Spencera773bd52006-08-04 18:18:08 +00003284 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291/* end confdefs.h. */
3292#include <ac_nonexistent.h>
3293_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003294if { (ac_try="$ac_cpp conftest.$ac_ext"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310 else
3311 ac_cpp_err=
3312 fi
3313else
3314 ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317 # Broken: success on invalid input.
3318continue
3319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323 # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345{ echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367 Syntax error
3368_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369if { (ac_try="$ac_cpp conftest.$ac_ext"
3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 else
3386 ac_cpp_err=
3387 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389 ac_cpp_err=yes
3390fi
3391if test -z "$ac_cpp_err"; then
3392 :
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397 # Broken: fails on valid input.
3398continue
3399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401rm -f conftest.err conftest.$ac_ext
3402
Reid Spencera773bd52006-08-04 18:18:08 +00003403 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 else
3430 ac_cpp_err=
3431 fi
3432else
3433 ac_cpp_err=yes
3434fi
3435if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436 # Broken: success on invalid input.
3437continue
3438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452if $ac_preproc_ok; then
3453 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&5
3457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460fi
3461
John Criswell7a73b802003-06-30 21:59:07 +00003462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
John Criswell7a73b802003-06-30 21:59:07 +00003468
Eric Christopherffee5722011-09-16 20:36:25 +00003469
3470
3471if test -d ${srcdir}/projects/llvm-gcc ; then
3472 subdirs="$subdirs projects/llvm-gcc"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/test-suite ; then
3477 subdirs="$subdirs projects/test-suite"
3478
3479fi
3480
3481if test -d ${srcdir}/projects/llvm-test ; then
3482 subdirs="$subdirs projects/llvm-test"
3483
3484fi
3485
3486if test -d ${srcdir}/projects/poolalloc ; then
3487 subdirs="$subdirs projects/poolalloc"
3488
3489fi
3490
3491if test -d ${srcdir}/projects/llvm-poolalloc ; then
3492 subdirs="$subdirs projects/llvm-poolalloc"
3493
3494fi
3495
3496for i in `ls ${srcdir}/projects`
3497do
3498 if test -d ${srcdir}/projects/${i} ; then
3499 case ${i} in
3500 sample) subdirs="$subdirs projects/sample"
3501 ;;
3502 privbracket) subdirs="$subdirs projects/privbracket"
3503 ;;
3504 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3505 ;;
3506 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3507;;
3508 llvm-java) subdirs="$subdirs projects/llvm-java"
3509 ;;
3510 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3511 ;;
3512 safecode) subdirs="$subdirs projects/safecode"
3513 ;;
3514 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3515 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003516 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003517 llvm-gcc) ;;
3518 test-suite) ;;
3519 llvm-test) ;;
3520 poolalloc) ;;
3521 llvm-poolalloc) ;;
3522 *)
3523 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3524echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3525 ;;
3526 esac
3527 fi
3528done
3529
3530# Check whether --enable-polly was given.
3531if test "${enable_polly+set}" = set; then
3532 enableval=$enable_polly;
3533else
3534 enableval=default
3535fi
3536
3537case "$enableval" in
3538 yes) ENABLE_POLLY=1
3539 ;;
3540 no) ENABLE_POLLY=0
3541 ;;
3542 default) ENABLE_POLLY=1
3543 ;;
3544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3545echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3546 { (exit 1); exit 1; }; } ;;
3547esac
3548
3549
3550if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3551 LLVM_HAS_POLLY=1
3552
3553 subdirs="$subdirs tools/polly"
3554
3555fi
3556
3557
3558# Make sure we can run config.sub.
3559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3561echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3562 { (exit 1); exit 1; }; }
3563
3564{ echo "$as_me:$LINENO: checking build system type" >&5
3565echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3566if test "${ac_cv_build+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 ac_build_alias=$build_alias
3570test "x$ac_build_alias" = x &&
3571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3572test "x$ac_build_alias" = x &&
3573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3574echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3575 { (exit 1); exit 1; }; }
3576ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3577 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3578echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3579 { (exit 1); exit 1; }; }
3580
3581fi
3582{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3583echo "${ECHO_T}$ac_cv_build" >&6; }
3584case $ac_cv_build in
3585*-*-*) ;;
3586*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3587echo "$as_me: error: invalid value of canonical build" >&2;}
3588 { (exit 1); exit 1; }; };;
3589esac
3590build=$ac_cv_build
3591ac_save_IFS=$IFS; IFS='-'
3592set x $ac_cv_build
3593shift
3594build_cpu=$1
3595build_vendor=$2
3596shift; shift
3597# Remember, the first character of IFS is used to create $*,
3598# except with old shells:
3599build_os=$*
3600IFS=$ac_save_IFS
3601case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3602
3603
3604{ echo "$as_me:$LINENO: checking host system type" >&5
3605echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3606if test "${ac_cv_host+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test "x$host_alias" = x; then
3610 ac_cv_host=$ac_cv_build
3611else
3612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3614echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3615 { (exit 1); exit 1; }; }
3616fi
3617
3618fi
3619{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3620echo "${ECHO_T}$ac_cv_host" >&6; }
3621case $ac_cv_host in
3622*-*-*) ;;
3623*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3624echo "$as_me: error: invalid value of canonical host" >&2;}
3625 { (exit 1); exit 1; }; };;
3626esac
3627host=$ac_cv_host
3628ac_save_IFS=$IFS; IFS='-'
3629set x $ac_cv_host
3630shift
3631host_cpu=$1
3632host_vendor=$2
3633shift; shift
3634# Remember, the first character of IFS is used to create $*,
3635# except with old shells:
3636host_os=$*
3637IFS=$ac_save_IFS
3638case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3639
3640
3641{ echo "$as_me:$LINENO: checking target system type" >&5
3642echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3643if test "${ac_cv_target+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646 if test "x$target_alias" = x; then
3647 ac_cv_target=$ac_cv_host
3648else
3649 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3650 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3651echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3652 { (exit 1); exit 1; }; }
3653fi
3654
3655fi
3656{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3657echo "${ECHO_T}$ac_cv_target" >&6; }
3658case $ac_cv_target in
3659*-*-*) ;;
3660*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3661echo "$as_me: error: invalid value of canonical target" >&2;}
3662 { (exit 1); exit 1; }; };;
3663esac
3664target=$ac_cv_target
3665ac_save_IFS=$IFS; IFS='-'
3666set x $ac_cv_target
3667shift
3668target_cpu=$1
3669target_vendor=$2
3670shift; shift
3671# Remember, the first character of IFS is used to create $*,
3672# except with old shells:
3673target_os=$*
3674IFS=$ac_save_IFS
3675case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3676
3677
3678# The aliases save the names the user supplied, while $host etc.
3679# will get canonicalized.
3680test -n "$target_alias" &&
3681 test "$program_prefix$program_suffix$program_transform_name" = \
3682 NONENONEs,x,x, &&
3683 program_prefix=${target_alias}-
3684
3685{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3686echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3687if test "${llvm_cv_os_type+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 case $host in
3691 *-*-aix*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="AIX"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-irix*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="IRIX"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-cygwin*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="Cygwin"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-darwin*)
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Darwin"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-minix*)
3712 llvm_cv_link_all_option="-Wl,-all_load"
3713 llvm_cv_no_link_all_option="-Wl,-noall_load"
3714 llvm_cv_os_type="Minix"
3715 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003716 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="FreeBSD"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-openbsd*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="OpenBSD"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-netbsd*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="NetBSD"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-dragonfly*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="DragonFly"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-hpux*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="HP-UX"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-interix*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Interix"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-linux*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Linux"
3750 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003751 *-*-gnu*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="GNU"
3755 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003756 *-*-solaris*)
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="SunOS"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-*-auroraux*)
3762 llvm_cv_link_all_option="-Wl,-z,allextract"
3763 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3764 llvm_cv_os_type="AuroraUX"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-*-win32*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Win32"
3770 llvm_cv_platform_type="Win32" ;;
3771 *-*-mingw*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="MingW"
3775 llvm_cv_platform_type="Win32" ;;
3776 *-*-haiku*)
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Haiku"
3780 llvm_cv_platform_type="Unix" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3786 *-unknown-elf*)
3787 llvm_cv_link_all_option="-Wl,--whole-archive"
3788 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789 llvm_cv_os_type="Freestanding"
3790 llvm_cv_platform_type="Unix" ;;
3791 *)
3792 llvm_cv_link_all_option=""
3793 llvm_cv_no_link_all_option=""
3794 llvm_cv_os_type="Unknown"
3795 llvm_cv_platform_type="Unknown" ;;
3796esac
3797fi
3798{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3799echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3800
3801{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3802echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3803if test "${llvm_cv_target_os_type+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806 case $target in
3807 *-*-aix*)
3808 llvm_cv_target_os_type="AIX" ;;
3809 *-*-irix*)
3810 llvm_cv_target_os_type="IRIX" ;;
3811 *-*-cygwin*)
3812 llvm_cv_target_os_type="Cygwin" ;;
3813 *-*-darwin*)
3814 llvm_cv_target_os_type="Darwin" ;;
3815 *-*-minix*)
3816 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003817 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003818 llvm_cv_target_os_type="FreeBSD" ;;
3819 *-*-openbsd*)
3820 llvm_cv_target_os_type="OpenBSD" ;;
3821 *-*-netbsd*)
3822 llvm_cv_target_os_type="NetBSD" ;;
3823 *-*-dragonfly*)
3824 llvm_cv_target_os_type="DragonFly" ;;
3825 *-*-hpux*)
3826 llvm_cv_target_os_type="HP-UX" ;;
3827 *-*-interix*)
3828 llvm_cv_target_os_type="Interix" ;;
3829 *-*-linux*)
3830 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003831 *-*-gnu*)
3832 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003833 *-*-solaris*)
3834 llvm_cv_target_os_type="SunOS" ;;
3835 *-*-auroraux*)
3836 llvm_cv_target_os_type="AuroraUX" ;;
3837 *-*-win32*)
3838 llvm_cv_target_os_type="Win32" ;;
3839 *-*-mingw*)
3840 llvm_cv_target_os_type="MingW" ;;
3841 *-*-haiku*)
3842 llvm_cv_target_os_type="Haiku" ;;
3843 *-*-rtems*)
3844 llvm_cv_target_os_type="RTEMS" ;;
3845 *-*-nacl*)
3846 llvm_cv_target_os_type="NativeClient" ;;
3847 *-unknown-eabi*)
3848 llvm_cv_target_os_type="Freestanding" ;;
3849 *)
3850 llvm_cv_target_os_type="Unknown" ;;
3851esac
3852fi
3853{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3854echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3855
3856if test "$llvm_cv_os_type" = "Unknown" ; then
3857 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3858echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3859 { (exit 1); exit 1; }; }
3860fi
3861
3862OS=$llvm_cv_os_type
3863
3864HOST_OS=$llvm_cv_os_type
3865
3866TARGET_OS=$llvm_cv_target_os_type
3867
3868
3869LINKALL=$llvm_cv_link_all_option
3870
3871NOLINKALL=$llvm_cv_no_link_all_option
3872
3873
3874case $llvm_cv_platform_type in
3875 Unix)
3876
3877cat >>confdefs.h <<\_ACEOF
3878#define LLVM_ON_UNIX 1
3879_ACEOF
3880
3881 LLVM_ON_UNIX=1
3882
3883 LLVM_ON_WIN32=0
3884
3885 ;;
3886 Win32)
3887
3888cat >>confdefs.h <<\_ACEOF
3889#define LLVM_ON_WIN32 1
3890_ACEOF
3891
3892 LLVM_ON_UNIX=0
3893
3894 LLVM_ON_WIN32=1
3895
3896 ;;
3897esac
3898
3899{ echo "$as_me:$LINENO: checking target architecture" >&5
3900echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3901if test "${llvm_cv_target_arch+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904 case $target in
3905 i?86-*) llvm_cv_target_arch="x86" ;;
3906 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3907 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3908 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003909 arm*-*) llvm_cv_target_arch="ARM" ;;
3910 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003911 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003912 xcore-*) llvm_cv_target_arch="XCore" ;;
3913 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003914 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003915 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003916 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003917 *) llvm_cv_target_arch="Unknown" ;;
3918esac
3919fi
3920{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3921echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3922
3923if test "$llvm_cv_target_arch" = "Unknown" ; then
3924 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3925echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3926fi
3927
Eric Christopherffee5722011-09-16 20:36:25 +00003928case "$llvm_cv_target_arch" in
3929 x86) LLVM_NATIVE_ARCH="X86" ;;
3930 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3931 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3932esac
3933
3934ARCH=$llvm_cv_target_arch
3935
3936
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003937case $host in
3938 i?86-*) host_arch="x86" ;;
3939 amd64-* | x86_64-*) host_arch="x86_64" ;;
3940 sparc*-*) host_arch="Sparc" ;;
3941 powerpc*-*) host_arch="PowerPC" ;;
3942 arm*-*) host_arch="ARM" ;;
3943 mips-*) host_arch="Mips" ;;
3944 mipsel-*) host_arch="Mips" ;;
3945 xcore-*) host_arch="XCore" ;;
3946 msp430-*) host_arch="MSP430" ;;
3947 hexagon-*) host_arch="Hexagon" ;;
3948 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003949 *) host_arch="Unknown" ;;
3950esac
3951
3952if test "$host_arch" = "Unknown" ; then
3953 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3954echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3955fi
3956
3957HOST_ARCH=$host_arch
3958
3959
Eric Christopherffee5722011-09-16 20:36:25 +00003960
3961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967 # Extract the first word of "grep ggrep" to use in msg output
3968if test -z "$GREP"; then
3969set dummy grep ggrep; ac_prog_name=$2
3970if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
Reid Spencera773bd52006-08-04 18:18:08 +00003973 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003974# Loop through the user's path and test for each of PROGNAME-LIST
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003985 # Check for GNU $ac_path_GREP
3986case `"$ac_path_GREP" --version 2>&1` in
3987*GNU*)
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989*)
3990 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003992 while :
3993 do
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004005 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4008 done
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010esac
4011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012
4013 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004014 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015done
4016
4017done
Reid Spencera773bd52006-08-04 18:18:08 +00004018IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019
4020
4021fi
4022
4023GREP="$ac_cv_path_GREP"
4024if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4028fi
4029
Reid Spencera773bd52006-08-04 18:18:08 +00004030else
4031 ac_cv_path_GREP=$GREP
4032fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034
Reid Spencera773bd52006-08-04 18:18:08 +00004035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004038 GREP="$ac_cv_path_GREP"
4039
4040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041{ echo "$as_me:$LINENO: checking for egrep" >&5
4042echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004045else
4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047 then ac_cv_path_EGREP="$GREP -E"
4048 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049 # Extract the first word of "egrep" to use in msg output
4050if test -z "$EGREP"; then
4051set dummy egrep; ac_prog_name=$2
4052if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
Reid Spencera773bd52006-08-04 18:18:08 +00004055 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056# Loop through the user's path and test for each of PROGNAME-LIST
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004067 # Check for GNU $ac_path_EGREP
4068case `"$ac_path_EGREP" --version 2>&1` in
4069*GNU*)
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4071*)
4072 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004074 while :
4075 do
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4087 fi
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4090 done
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092esac
4093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094
4095 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004096 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097done
4098
4099done
Reid Spencera773bd52006-08-04 18:18:08 +00004100IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004101
4102
4103fi
4104
4105EGREP="$ac_cv_path_EGREP"
4106if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4110fi
4111
Reid Spencera773bd52006-08-04 18:18:08 +00004112else
4113 ac_cv_path_EGREP=$EGREP
4114fi
4115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116
Reid Spencera773bd52006-08-04 18:18:08 +00004117 fi
4118fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004121 EGREP="$ac_cv_path_EGREP"
4122
4123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4125echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4126if test "${ac_cv_header_stdc+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129 cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004135#include <stdlib.h>
4136#include <stdarg.h>
4137#include <string.h>
4138#include <float.h>
4139
John Criswell0c38eaf2003-09-10 15:17:25 +00004140int
4141main ()
4142{
4143
4144 ;
4145 return 0;
4146}
John Criswell7a73b802003-06-30 21:59:07 +00004147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148rm -f conftest.$ac_objext
4149if { (ac_try="$ac_compile"
4150case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004182 ac_cv_header_stdc=yes
4183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189
Reid Spencera773bd52006-08-04 18:18:08 +00004190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004191
4192if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194 cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004200#include <string.h>
4201
4202_ACEOF
4203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 $EGREP "memchr" >/dev/null 2>&1; then
4205 :
John Criswell7a73b802003-06-30 21:59:07 +00004206else
4207 ac_cv_header_stdc=no
4208fi
4209rm -f conftest*
4210
4211fi
4212
4213if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004215 cat >conftest.$ac_ext <<_ACEOF
4216/* confdefs.h. */
4217_ACEOF
4218cat confdefs.h >>conftest.$ac_ext
4219cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004221#include <stdlib.h>
4222
4223_ACEOF
4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225 $EGREP "free" >/dev/null 2>&1; then
4226 :
John Criswell7a73b802003-06-30 21:59:07 +00004227else
4228 ac_cv_header_stdc=no
4229fi
4230rm -f conftest*
4231
4232fi
4233
4234if test $ac_cv_header_stdc = yes; then
4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004237 :
4238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004239 cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004245#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004246#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004247#if ((' ' & 0x0FF) == 0x020)
4248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004251# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004252 (('a' <= (c) && (c) <= 'i') \
4253 || ('j' <= (c) && (c) <= 'r') \
4254 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4256#endif
4257
4258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259int
4260main ()
4261{
4262 int i;
4263 for (i = 0; i < 256; i++)
4264 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004265 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004266 return 2;
4267 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004268}
4269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270rm -f conftest$ac_exeext
4271if { (ac_try="$ac_link"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_link") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 :
John Criswell7a73b802003-06-30 21:59:07 +00004291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299rm -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 +00004300fi
4301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302
John Criswell7a73b802003-06-30 21:59:07 +00004303fi
4304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004307if test $ac_cv_header_stdc = yes; then
4308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004309cat >>confdefs.h <<\_ACEOF
4310#define STDC_HEADERS 1
4311_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004312
4313fi
4314
Reid Spencera773bd52006-08-04 18:18:08 +00004315# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316
4317
4318
4319
4320
4321
4322
4323
4324
Reid Spencera773bd52006-08-04 18:18:08 +00004325for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327do
4328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
4341
4342#include <$ac_header>
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (ac_try="$ac_compile"
4346case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 eval "$as_ac_Header=yes"
4379else
4380 echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 eval "$as_ac_Header=no"
4384fi
4385
4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387fi
4388ac_res=`eval echo '${'$as_ac_Header'}'`
4389 { echo "$as_me:$LINENO: result: $ac_res" >&5
4390echo "${ECHO_T}$ac_res" >&6; }
4391if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004392 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004394_ACEOF
4395
4396fi
4397
4398done
4399
4400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4402echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4403if test "${ac_cv_c_bigendian+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406 # See if sys/param.h defines the BYTE_ORDER macro.
4407cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004412/* end confdefs.h. */
4413#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004415
4416int
4417main ()
4418{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4420 bogus endian macros
4421#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004422
4423 ;
4424 return 0;
4425}
4426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427rm -f conftest.$ac_objext
4428if { (ac_try="$ac_compile"
4429case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004461 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004467/* end confdefs.h. */
4468#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004469#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004470
4471int
4472main ()
4473{
4474#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 not big endian
4476#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004477
4478 ;
4479 return 0;
4480}
4481_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482rm -f conftest.$ac_objext
4483if { (ac_try="$ac_compile"
4484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_compile") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
4511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_try") 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004516 ac_cv_c_bigendian=yes
4517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518 echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521 ac_cv_c_bigendian=no
4522fi
4523
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525else
4526 echo "$as_me: failed program was:" >&5
4527sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 # It does not; compile a test program.
4530if test "$cross_compiling" = yes; then
4531 # try to guess the endianness by grepping values into an object file
4532 ac_cv_c_bigendian=unknown
4533 cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h. */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h. */
4539short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4541void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4542short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4543short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4544void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004545int
4546main ()
4547{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004549 ;
4550 return 0;
4551}
4552_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553rm -f conftest.$ac_objext
4554if { (ac_try="$ac_compile"
4555case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_compile") 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004588 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589fi
4590if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4591 if test "$ac_cv_c_bigendian" = unknown; then
4592 ac_cv_c_bigendian=no
4593 else
4594 # finding both strings is unlikely to happen, but who knows?
4595 ac_cv_c_bigendian=unknown
4596 fi
4597fi
Reid Spencera773bd52006-08-04 18:18:08 +00004598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004602
Torok Edwin871384f2010-01-26 08:50:50 +00004603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604
Reid Spencera773bd52006-08-04 18:18:08 +00004605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h. */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004612/* end confdefs.h. */
4613$ac_includes_default
4614int
4615main ()
4616{
4617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 /* Are we little or big endian? From Harbison&Steele. */
4619 union
4620 {
4621 long int l;
4622 char c[sizeof (long int)];
4623 } u;
4624 u.l = 1;
4625 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004626
4627 ;
4628 return 0;
4629}
4630_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631rm -f conftest$ac_exeext
4632if { (ac_try="$ac_link"
4633case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_link") 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
4646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004651 ac_cv_c_bigendian=no
4652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653 echo "$as_me: program exited with status $ac_status" >&5
4654echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657( exit $ac_status )
4658ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660rm -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 +00004661fi
4662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663
Reid Spencera773bd52006-08-04 18:18:08 +00004664fi
4665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667fi
4668{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4669echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4670case $ac_cv_c_bigendian in
4671 yes)
4672 ENDIAN=big
4673 ;;
4674 no)
4675 ENDIAN=little
4676 ;;
4677 *)
4678 { { echo "$as_me:$LINENO: error: unknown endianness
4679presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4680echo "$as_me: error: unknown endianness
4681presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4683esac
Reid Spencera773bd52006-08-04 18:18:08 +00004684
4685
4686if test "$cross_compiling" = yes; then
4687 LLVM_CROSS_COMPILING=1
4688
4689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004690{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4691echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4692if test "${ac_cv_build_exeext+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004694else
4695 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4696 ac_cv_build_exeext=.exe
4697else
4698 ac_build_prefix=${build_alias}-
4699
4700 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4701set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004706else
4707 if test -n "$BUILD_CC"; then
4708 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 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 +00004717 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004719 break 2
4720 fi
4721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722done
Reid Spencera773bd52006-08-04 18:18:08 +00004723IFS=$as_save_IFS
4724
4725fi
4726fi
4727BUILD_CC=$ac_cv_prog_BUILD_CC
4728if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4730echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004732 { echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004734fi
4735
4736
4737 if test -z "$BUILD_CC"; then
4738 # Extract the first word of "gcc", so it can be a program name with args.
4739set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004744else
4745 if test -n "$BUILD_CC"; then
4746 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 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 +00004755 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004757 break 2
4758 fi
4759done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760done
Reid Spencera773bd52006-08-04 18:18:08 +00004761IFS=$as_save_IFS
4762
4763fi
4764fi
4765BUILD_CC=$ac_cv_prog_BUILD_CC
4766if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770 { echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004772fi
4773
4774
4775 if test -z "$BUILD_CC"; then
4776 # Extract the first word of "cc", so it can be a program name with args.
4777set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004782else
4783 if test -n "$BUILD_CC"; then
4784 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4785else
4786 ac_prog_rejected=no
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 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 +00004794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4795 ac_prog_rejected=yes
4796 continue
4797 fi
4798 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004800 break 2
4801 fi
4802done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004803done
Reid Spencera773bd52006-08-04 18:18:08 +00004804IFS=$as_save_IFS
4805
4806if test $ac_prog_rejected = yes; then
4807 # We found a bogon in the path, so make sure we never use it.
4808 set dummy $ac_cv_prog_BUILD_CC
4809 shift
4810 if test $# != 0; then
4811 # We chose a different compiler from the bogus one.
4812 # However, it has the same basename, so the bogon will be chosen
4813 # first if we set BUILD_CC to just the basename; use the full file name.
4814 shift
4815 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4816 fi
4817fi
4818fi
4819fi
4820BUILD_CC=$ac_cv_prog_BUILD_CC
4821if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4823echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825 { echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004827fi
4828
4829
4830 fi
4831 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4833echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4834 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004835 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4836 rm -f conftest*
4837 echo 'int main () { return 0; }' > conftest.$ac_ext
4838 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004840 (eval $ac_build_link) 2>&5
4841 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004844 for file in conftest.*; do
4845 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004846 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004847 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4848 esac
4849 done
4850 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4852echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4853 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004854 fi
4855 rm -f conftest*
4856 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4857fi
4858fi
4859
4860BUILD_EXEEXT=""
4861test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4863echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004864ac_build_exeext=$BUILD_EXEEXT
4865
Jim Grosbach673612e2008-10-02 22:56:44 +00004866 ac_build_prefix=${build_alias}-
4867 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4868set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004873else
4874 if test -n "$BUILD_CXX"; then
4875 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 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 +00004884 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004886 break 2
4887 fi
4888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889done
Jim Grosbach673612e2008-10-02 22:56:44 +00004890IFS=$as_save_IFS
4891
4892fi
4893fi
4894BUILD_CXX=$ac_cv_prog_BUILD_CXX
4895if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4897echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899 { echo "$as_me:$LINENO: result: no" >&5
4900echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004901fi
4902
4903
4904 if test -z "$BUILD_CXX"; then
4905 # Extract the first word of "g++", so it can be a program name with args.
4906set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004911else
4912 if test -n "$BUILD_CXX"; then
4913 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 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 +00004922 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004924 break 2
4925 fi
4926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004927done
Jim Grosbach673612e2008-10-02 22:56:44 +00004928IFS=$as_save_IFS
4929
4930fi
4931fi
4932BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004934 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 { echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004939fi
4940
4941
4942 if test -z "$BUILD_CXX"; then
4943 # Extract the first word of "c++", so it can be a program name with args.
4944set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004949else
4950 if test -n "$BUILD_CXX"; then
4951 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4952else
4953 ac_prog_rejected=no
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 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 +00004961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4962 ac_prog_rejected=yes
4963 continue
4964 fi
4965 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004967 break 2
4968 fi
4969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004970done
Jim Grosbach673612e2008-10-02 22:56:44 +00004971IFS=$as_save_IFS
4972
4973if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy $ac_cv_prog_BUILD_CXX
4976 shift
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set BUILD_CXX to just the basename; use the full file name.
4981 shift
4982 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4983 fi
4984fi
4985fi
4986fi
4987BUILD_CXX=$ac_cv_prog_BUILD_CXX
4988if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4990echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992 { echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004994fi
4995
4996
4997 fi
4998 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004999else
5000 LLVM_CROSS_COMPILING=0
5001
5002fi
5003
Dan Gohman56fb5f92010-08-04 16:25:01 +00005004if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005005 cvsbuild="yes"
5006 optimize="no"
5007 CVSBUILD=CVSBUILD=1
5008
5009else
5010 cvsbuild="no"
5011 optimize="yes"
5012fi
5013
5014
Eric Christopherbee515f2011-11-11 22:51:42 +00005015# Check whether --enable-libcpp was given.
5016if test "${enable_libcpp+set}" = set; then
5017 enableval=$enable_libcpp;
5018else
5019 enableval=default
5020fi
5021
5022case "$enableval" in
5023 yes) ENABLE_LIBCPP=1
5024 ;;
5025 no) ENABLE_LIBCPP=0
5026 ;;
5027 default) ENABLE_LIBCPP=0
5028;;
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5030echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5032esac
5033
Eric Christopher82120022012-08-03 19:47:14 +00005034# Check whether --enable-cxx11 was given.
5035if test "${enable_cxx11+set}" = set; then
5036 enableval=$enable_cxx11;
5037else
5038 enableval=default
5039fi
5040
5041case "$enableval" in
5042 yes) ENABLE_CXX11=1
5043 ;;
5044 no) ENABLE_CXX11=0
5045 ;;
5046 default) ENABLE_CXX11=0
5047;;
5048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5049echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5051esac
5052
Reid Spencera773bd52006-08-04 18:18:08 +00005053# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005055 enableval=$enable_optimized;
5056else
5057 enableval=$optimize
5058fi
5059
5060if test ${enableval} = "no" ; then
5061 ENABLE_OPTIMIZED=
5062
5063else
5064 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5065
5066fi
5067
David Greene2a5a12c2009-04-17 14:50:39 +00005068# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005069if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005070 enableval=$enable_profiling;
5071else
5072 enableval="no"
5073fi
5074
5075if test ${enableval} = "no" ; then
5076 ENABLE_PROFILING=
5077
5078else
5079 ENABLE_PROFILING=ENABLE_PROFILING=1
5080
5081fi
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005085 enableval=$enable_assertions;
5086else
5087 enableval="yes"
5088fi
5089
5090if test ${enableval} = "yes" ; then
5091 DISABLE_ASSERTIONS=
5092
5093else
5094 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5095
5096fi
5097
Eric Christopher09a88732012-08-03 19:58:20 +00005098# Check whether --enable-werror was given.
5099if test "${enable_werror+set}" = set; then
5100 enableval=$enable_werror;
5101else
5102 enableval="no"
5103fi
5104
5105case "$enableval" in
5106 yes) ENABLE_WERROR=1
5107 ;;
5108 no) ENABLE_WERROR=0
5109 ;;
5110 default) ENABLE_WERROR=0
5111;;
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5115esac
5116
David Greenea696d242007-06-28 19:36:08 +00005117# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005118if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005119 enableval=$enable_expensive_checks;
5120else
5121 enableval="no"
5122fi
5123
5124if test ${enableval} = "yes" ; then
5125 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5126
5127 EXPENSIVE_CHECKS=yes
5128
5129else
5130 ENABLE_EXPENSIVE_CHECKS=
5131
5132 EXPENSIVE_CHECKS=no
5133
5134fi
5135
Reid Spencer8b2e1412006-11-17 03:32:33 +00005136# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005137if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005138 enableval=$enable_debug_runtime;
5139else
5140 enableval=no
5141fi
5142
5143if test ${enableval} = "no" ; then
5144 DEBUG_RUNTIME=
5145
5146else
5147 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5148
5149fi
5150
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005151# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005152if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005153 enableval=$enable_debug_symbols;
5154else
5155 enableval=no
5156fi
5157
5158if test ${enableval} = "no" ; then
5159 DEBUG_SYMBOLS=
5160
5161else
5162 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5163
5164fi
5165
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005166# Check whether --enable-keep-symbols was given.
5167if test "${enable_keep_symbols+set}" = set; then
5168 enableval=$enable_keep_symbols;
5169else
5170 enableval=no
5171fi
5172
5173if test ${enableval} = "no" ; then
5174 KEEP_SYMBOLS=
5175
5176else
5177 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5178
5179fi
5180
Reid Spencera773bd52006-08-04 18:18:08 +00005181# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005182if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005183 enableval=$enable_jit;
5184else
5185 enableval=default
5186fi
5187
5188if test ${enableval} = "no"
5189then
5190 JIT=
5191
5192else
5193 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005194 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005195 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005196 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005197 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005198 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005199 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005200 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005201 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005202 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005203 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005204 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005205 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005206 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005207 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005208 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005209 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005210 Hexagon) TARGET_HAS_JIT=0
5211 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005212 MBlaze) TARGET_HAS_JIT=0
5213 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005214 NVPTX) TARGET_HAS_JIT=0
5215 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005216 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005217 ;;
5218 esac
5219fi
5220
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005221# Check whether --enable-docs was given.
5222if test "${enable_docs+set}" = set; then
5223 enableval=$enable_docs;
5224else
5225 enableval=default
5226fi
5227
5228case "$enableval" in
5229 yes) ENABLE_DOCS=1
5230 ;;
5231 no) ENABLE_DOCS=0
5232 ;;
5233 default) ENABLE_DOCS=1
5234 ;;
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5236echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5238esac
5239
Reid Spencera773bd52006-08-04 18:18:08 +00005240# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005241if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005242 enableval=$enable_doxygen;
5243else
5244 enableval=default
5245fi
5246
5247case "$enableval" in
5248 yes) ENABLE_DOXYGEN=1
5249 ;;
5250 no) ENABLE_DOXYGEN=0
5251 ;;
5252 default) ENABLE_DOXYGEN=0
5253 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5255echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005257esac
5258
5259# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005261 enableval=$enable_threads;
5262else
Reid Spencer65c5d752006-11-05 17:08:18 +00005263 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005264fi
5265
5266case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005267 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005268 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005269 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005270 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005271 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005272 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5274echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005276esac
5277
Owen Andersona8603702009-05-19 22:18:56 +00005278cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005279#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005280_ACEOF
5281
5282
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005283# Check whether --enable-pthreads was given.
5284if test "${enable_pthreads+set}" = set; then
5285 enableval=$enable_pthreads;
5286else
5287 enableval=default
5288fi
5289
5290case "$enableval" in
5291 yes) ENABLE_PTHREADS=1
5292 ;;
5293 no) ENABLE_PTHREADS=0
5294 ;;
5295 default) ENABLE_PTHREADS=1
5296 ;;
5297 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5298echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5299 { (exit 1); exit 1; }; } ;;
5300esac
5301
Reid Spencer89b0d992006-12-16 22:07:52 +00005302# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005303if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005304 enableval=$enable_pic;
5305else
5306 enableval=default
5307fi
5308
5309case "$enableval" in
5310 yes) ENABLE_PIC=1
5311 ;;
5312 no) ENABLE_PIC=0
5313 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005314 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005315 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005316 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5317echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5318 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005319esac
5320
5321cat >>confdefs.h <<_ACEOF
5322#define ENABLE_PIC $ENABLE_PIC
5323_ACEOF
5324
5325
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005326# Check whether --enable-shared was given.
5327if test "${enable_shared+set}" = set; then
5328 enableval=$enable_shared;
5329else
5330 enableval=default
5331fi
5332
5333case "$enableval" in
5334 yes) ENABLE_SHARED=1
5335 ;;
5336 no) ENABLE_SHARED=0
5337 ;;
5338 default) ENABLE_SHARED=0
5339 ;;
5340 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5341echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5342 { (exit 1); exit 1; }; } ;;
5343esac
5344
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005345# Check whether --enable-embed-stdcxx was given.
5346if test "${enable_embed_stdcxx+set}" = set; then
5347 enableval=$enable_embed_stdcxx;
5348else
5349 enableval=default
5350fi
5351
5352case "$enableval" in
5353 yes) ENABLE_EMBED_STDCXX=1
5354 ;;
5355 no) ENABLE_EMBED_STDCXX=0
5356 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005357 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005358 ;;
5359 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5360echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5362esac
5363
Daniel Dunbardd464df2010-05-10 20:11:56 +00005364# Check whether --enable-timestamps was given.
5365if test "${enable_timestamps+set}" = set; then
5366 enableval=$enable_timestamps;
5367else
5368 enableval=default
5369fi
5370
5371case "$enableval" in
5372 yes) ENABLE_TIMESTAMPS=1
5373 ;;
5374 no) ENABLE_TIMESTAMPS=0
5375 ;;
5376 default) ENABLE_TIMESTAMPS=1
5377 ;;
5378 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5379echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5380 { (exit 1); exit 1; }; } ;;
5381esac
5382
5383cat >>confdefs.h <<_ACEOF
5384#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5385_ACEOF
5386
5387
Reid Spencera773bd52006-08-04 18:18:08 +00005388TARGETS_TO_BUILD=""
5389# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005390if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005391 enableval=$enable_targets;
5392else
5393 enableval=all
5394fi
5395
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005396if test "$enableval" = host-only ; then
5397 enableval=host
5398fi
Reid Spencera773bd52006-08-04 18:18:08 +00005399case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005400 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005401 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5402 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005403 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5404 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5405 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5406 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005407 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5408 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005409 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005410 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005411 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5412 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005413 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005414 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005415 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005416 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005417 host) case "$llvm_cv_target_arch" in
5418 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5419 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5420 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5421 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005422 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5423 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005424 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005425 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005426 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5427 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005428 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005429 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005430 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5431echo "$as_me: error: Can not set target to build" >&2;}
5432 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005433 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005434 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5435echo "$as_me: error: Unrecognized target $a_target" >&2;}
5436 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005437 esac
5438 done
5439 ;;
5440esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005441
5442# Check whether --enable-experimental-targets was given.
5443if test "${enable_experimental_targets+set}" = set; then
5444 enableval=$enable_experimental_targets;
5445else
5446 enableval=disable
5447fi
5448
5449
5450if test ${enableval} != "disable"
5451then
5452 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5453fi
5454
Reid Spencera773bd52006-08-04 18:18:08 +00005455TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5456
5457
Douglas Gregor0711c302009-06-17 00:43:20 +00005458for a_target in $TARGETS_TO_BUILD; do
5459 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5460
5461cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005462#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5463_ACEOF
5464
5465 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5466 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005467 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005468 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005469 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5470 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5471 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005472 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5473 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5474 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005475
5476cat >>confdefs.h <<_ACEOF
5477#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005478_ACEOF
5479
5480
5481cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005482#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5483_ACEOF
5484
5485
5486cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005487#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005488_ACEOF
5489
5490
5491cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005492#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005493_ACEOF
5494
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005495 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005496
5497cat >>confdefs.h <<_ACEOF
5498#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5499_ACEOF
5500
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005501 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005502 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5503
5504cat >>confdefs.h <<_ACEOF
5505#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5506_ACEOF
5507
5508 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005509 fi
5510done
5511
Douglas Gregor1555a232009-06-16 20:12:29 +00005512LLVM_ENUM_TARGETS=""
5513LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005514LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005515LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005516for target_to_build in $TARGETS_TO_BUILD; do
5517 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005518 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005519 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5520 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005521 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5522 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5523 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005524 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5525 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5526 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005527done
5528
5529
5530
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005531
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005532
Reid Spencera773bd52006-08-04 18:18:08 +00005533
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005534# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005536 withval=$with_optimize_option;
5537else
5538 withval=default
5539fi
5540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005541{ echo "$as_me:$LINENO: checking optimization flags" >&5
5542echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005543case "$withval" in
5544 default)
5545 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005546 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005547 MingW) optimize_option=-O2 ;;
5548 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005549 esac ;;
5550 *) optimize_option="$withval" ;;
5551esac
5552OPTIMIZE_OPTION=$optimize_option
5553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005554{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5555echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005556
5557
Reid Spencera773bd52006-08-04 18:18:08 +00005558# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005560 withval=$with_extra_options;
5561else
5562 withval=default
5563fi
5564
5565case "$withval" in
5566 default) EXTRA_OPTIONS= ;;
5567 *) EXTRA_OPTIONS=$withval ;;
5568esac
5569EXTRA_OPTIONS=$EXTRA_OPTIONS
5570
5571
Daniel Dunbared344d22011-06-16 22:30:41 +00005572
5573# Check whether --with-extra-ld-options was given.
5574if test "${with_extra_ld_options+set}" = set; then
5575 withval=$with_extra_ld_options;
5576else
5577 withval=default
5578fi
5579
5580case "$withval" in
5581 default) EXTRA_LD_OPTIONS= ;;
5582 *) EXTRA_LD_OPTIONS=$withval ;;
5583esac
5584EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5585
5586
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005587# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005589 enableval=$enable_bindings;
5590else
5591 enableval=default
5592fi
5593
5594BINDINGS_TO_BUILD=""
5595case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005596 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005597 all ) BINDINGS_TO_BUILD="ocaml" ;;
5598 none | no) BINDINGS_TO_BUILD="" ;;
5599 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5600 case "$a_binding" in
5601 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005602 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5603echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5604 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005605 esac
5606 done
5607 ;;
5608esac
5609
Reid Spencera773bd52006-08-04 18:18:08 +00005610
Gordon Henriksenf0915682007-10-02 16:42:22 +00005611# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005613 withval=$with_ocaml_libdir;
5614else
5615 withval=auto
5616fi
5617
5618case "$withval" in
5619 auto) with_ocaml_libdir="$withval" ;;
5620 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5622echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5623 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005624esac
5625
5626
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005627# Check whether --with-clang-srcdir was given.
5628if test "${with_clang_srcdir+set}" = set; then
5629 withval=$with_clang_srcdir;
5630else
5631 withval="-"
5632fi
5633
5634case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005635 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005636 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5637 *) clang_src_root="$ac_pwd/$withval" ;;
5638esac
5639CLANG_SRC_ROOT=$clang_src_root
5640
5641
5642
Chandler Carruth6b241162010-10-19 08:21:25 +00005643# Check whether --with-clang-resource-dir was given.
5644if test "${with_clang_resource_dir+set}" = set; then
5645 withval=$with_clang_resource_dir;
5646else
5647 withval=""
5648fi
5649
5650
5651cat >>confdefs.h <<_ACEOF
5652#define CLANG_RESOURCE_DIR "$withval"
5653_ACEOF
5654
5655
5656
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005657# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005658if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005659 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005660else
5661 withval=""
5662fi
5663
5664
5665cat >>confdefs.h <<_ACEOF
5666#define C_INCLUDE_DIRS "$withval"
5667_ACEOF
5668
5669
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005670# Clang normally uses the system c++ headers and libraries. With this option,
5671# clang will use the ones provided by a gcc installation instead. This option should
5672# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005673
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005674# Check whether --with-gcc-toolchain was given.
5675if test "${with_gcc_toolchain+set}" = set; then
5676 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005677else
5678 withval=""
5679fi
5680
5681
5682cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005683#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005684_ACEOF
5685
5686
5687
Sebastian Pope4f1b372012-04-30 20:06:58 +00005688# Check whether --with-default-sysroot was given.
5689if test "${with_default_sysroot+set}" = set; then
5690 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005691else
5692 withval=""
5693fi
5694
5695
5696cat >>confdefs.h <<_ACEOF
5697#define DEFAULT_SYSROOT "$withval"
5698_ACEOF
5699
5700
5701
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005702# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005703if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005704 withval=$with_binutils_include;
5705else
5706 withval=default
5707fi
5708
5709case "$withval" in
5710 default) WITH_BINUTILS_INCDIR=default ;;
5711 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5713echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5714 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005715esac
5716if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5717 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5718
5719 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5720 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005721 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5722echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5723 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005724 fi
5725fi
5726
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005727
5728# Check whether --with-bug-report-url was given.
5729if test "${with_bug_report_url+set}" = set; then
5730 withval=$with_bug_report_url;
5731else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005732 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005733fi
5734
5735
5736cat >>confdefs.h <<_ACEOF
5737#define BUG_REPORT_URL "$withval"
5738_ACEOF
5739
5740
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005741# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005743 enableval=$enable_libffi; case "$enableval" in
5744 yes) llvm_cv_enable_libffi="yes" ;;
5745 no) llvm_cv_enable_libffi="no" ;;
5746 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5748 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005749 esac
5750else
5751 llvm_cv_enable_libffi=no
5752fi
5753
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005754
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005755
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005756# Check whether --with-internal-prefix was given.
5757if test "${with_internal_prefix+set}" = set; then
5758 withval=$with_internal_prefix;
5759else
5760 withval=""
5761fi
5762
5763INTERNAL_PREFIX=$withval
5764
5765
5766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5768echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5769if test "${lt_cv_path_NM+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005771else
5772 if test -n "$NM"; then
5773 # Let the user override the test.
5774 lt_cv_path_NM="$NM"
5775else
5776 lt_nm_to_check="${ac_tool_prefix}nm"
5777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5778 lt_nm_to_check="$lt_nm_to_check nm"
5779 fi
5780 for lt_tmp_nm in $lt_nm_to_check; do
5781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5783 IFS="$lt_save_ifs"
5784 test -z "$ac_dir" && ac_dir=.
5785 tmp_nm="$ac_dir/$lt_tmp_nm"
5786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5787 # Check to see if the nm accepts a BSD-compat flag.
5788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5789 # nm: unknown option "B" ignored
5790 # Tru64's nm complains that /dev/null is an invalid object file
5791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5792 */dev/null* | *'Invalid file or object type'*)
5793 lt_cv_path_NM="$tmp_nm -B"
5794 break
5795 ;;
5796 *)
5797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5798 */dev/null*)
5799 lt_cv_path_NM="$tmp_nm -p"
5800 break
5801 ;;
5802 *)
5803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5804 continue # so that we can try to find one that supports BSD flags
5805 ;;
5806 esac
5807 ;;
5808 esac
5809 fi
5810 done
5811 IFS="$lt_save_ifs"
5812 done
5813 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5814fi
5815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5817echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005818NM="$lt_cv_path_NM"
5819
5820
5821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822{ echo "$as_me:$LINENO: checking for GNU make" >&5
5823echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5824if test "${llvm_cv_gnu_make_command+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005826else
5827 llvm_cv_gnu_make_command=''
5828 for a in "$MAKE" make gmake gnumake ; do
5829 if test -z "$a" ; then continue ; fi ;
5830 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5831 then
5832 llvm_cv_gnu_make_command=$a ;
5833 break;
5834 fi
5835 done
5836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5838echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005839 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5840 ifGNUmake='' ;
5841 else
5842 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5844echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005845 fi
5846
5847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5849echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005850LN_S=$as_ln_s
5851if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 { echo "$as_me:$LINENO: result: yes" >&5
5853echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5856echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005857fi
5858
5859# Extract the first word of "cmp", so it can be a program name with args.
5860set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863if test "${ac_cv_path_CMP+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005865else
5866 case $CMP in
5867 [\\/]* | ?:[\\/]*)
5868 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5869 ;;
5870 *)
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005878 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005880 break 2
5881 fi
5882done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883done
Reid Spencera773bd52006-08-04 18:18:08 +00005884IFS=$as_save_IFS
5885
5886 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5887 ;;
5888esac
5889fi
5890CMP=$ac_cv_path_CMP
5891if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892 { echo "$as_me:$LINENO: result: $CMP" >&5
5893echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 { echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005897fi
5898
5899
5900# Extract the first word of "cp", so it can be a program name with args.
5901set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904if test "${ac_cv_path_CP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005906else
5907 case $CP in
5908 [\\/]* | ?:[\\/]*)
5909 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5910 ;;
5911 *)
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005919 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005921 break 2
5922 fi
5923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924done
Reid Spencera773bd52006-08-04 18:18:08 +00005925IFS=$as_save_IFS
5926
5927 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5928 ;;
5929esac
5930fi
5931CP=$ac_cv_path_CP
5932if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933 { echo "$as_me:$LINENO: result: $CP" >&5
5934echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936 { echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005938fi
5939
5940
5941# Extract the first word of "date", so it can be a program name with args.
5942set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945if test "${ac_cv_path_DATE+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005947else
5948 case $DATE in
5949 [\\/]* | ?:[\\/]*)
5950 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5951 ;;
5952 *)
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005960 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005962 break 2
5963 fi
5964done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005965done
Reid Spencera773bd52006-08-04 18:18:08 +00005966IFS=$as_save_IFS
5967
5968 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5969 ;;
5970esac
5971fi
5972DATE=$ac_cv_path_DATE
5973if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974 { echo "$as_me:$LINENO: result: $DATE" >&5
5975echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005979fi
5980
5981
5982# Extract the first word of "find", so it can be a program name with args.
5983set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986if test "${ac_cv_path_FIND+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005988else
5989 case $FIND in
5990 [\\/]* | ?:[\\/]*)
5991 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5992 ;;
5993 *)
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006001 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006003 break 2
6004 fi
6005done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006done
Reid Spencera773bd52006-08-04 18:18:08 +00006007IFS=$as_save_IFS
6008
6009 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6010 ;;
6011esac
6012fi
6013FIND=$ac_cv_path_FIND
6014if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015 { echo "$as_me:$LINENO: result: $FIND" >&5
6016echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006017else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006018 { echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006020fi
6021
6022
6023# Extract the first word of "grep", so it can be a program name with args.
6024set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027if test "${ac_cv_path_GREP+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006029else
6030 case $GREP in
6031 [\\/]* | ?:[\\/]*)
6032 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6033 ;;
6034 *)
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006042 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006044 break 2
6045 fi
6046done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047done
Reid Spencera773bd52006-08-04 18:18:08 +00006048IFS=$as_save_IFS
6049
6050 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6051 ;;
6052esac
6053fi
6054GREP=$ac_cv_path_GREP
6055if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056 { echo "$as_me:$LINENO: result: $GREP" >&5
6057echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 { echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006061fi
6062
6063
6064# Extract the first word of "mkdir", so it can be a program name with args.
6065set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068if test "${ac_cv_path_MKDIR+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006070else
6071 case $MKDIR in
6072 [\\/]* | ?:[\\/]*)
6073 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6074 ;;
6075 *)
6076 as_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_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
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
6091 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6092 ;;
6093esac
6094fi
6095MKDIR=$ac_cv_path_MKDIR
6096if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6098echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006102fi
6103
6104
6105# Extract the first word of "mv", so it can be a program name with args.
6106set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109if test "${ac_cv_path_MV+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006111else
6112 case $MV in
6113 [\\/]* | ?:[\\/]*)
6114 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6115 ;;
6116 *)
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 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 +00006124 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006126 break 2
6127 fi
6128done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129done
Reid Spencera773bd52006-08-04 18:18:08 +00006130IFS=$as_save_IFS
6131
6132 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6133 ;;
6134esac
6135fi
6136MV=$ac_cv_path_MV
6137if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138 { echo "$as_me:$LINENO: result: $MV" >&5
6139echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006141 { echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006143fi
6144
6145
6146if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006153else
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156else
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 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 +00006164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006166 break 2
6167 fi
6168done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169done
Reid Spencera773bd52006-08-04 18:18:08 +00006170IFS=$as_save_IFS
6171
6172fi
6173fi
6174RANLIB=$ac_cv_prog_RANLIB
6175if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006181fi
6182
6183
6184fi
6185if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006193else
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 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 +00006204 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006206 break 2
6207 fi
6208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209done
Reid Spencera773bd52006-08-04 18:18:08 +00006210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006221fi
6222
6223 if test "x$ac_ct_RANLIB" = x; then
6224 RANLIB=":"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet. If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&5
6231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006234ac_tool_warned=yes ;;
6235esac
6236 RANLIB=$ac_ct_RANLIB
6237 fi
6238else
6239 RANLIB="$ac_cv_prog_RANLIB"
6240fi
6241
Torok Edwin871384f2010-01-26 08:50:50 +00006242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247if test "${ac_cv_prog_AR+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006249else
6250 if test -n "$AR"; then
6251 ac_cv_prog_AR="$AR" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 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 +00006260 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006262 break 2
6263 fi
6264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265done
Torok Edwin871384f2010-01-26 08:50:50 +00006266IFS=$as_save_IFS
6267
6268fi
6269fi
6270AR=$ac_cv_prog_AR
6271if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272 { echo "$as_me:$LINENO: result: $AR" >&5
6273echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275 { echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006277fi
6278
6279
6280fi
6281if test -z "$ac_cv_prog_AR"; then
6282 ac_ct_AR=$AR
6283 # Extract the first word of "ar", so it can be a program name with args.
6284set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006289else
6290 if test -n "$ac_ct_AR"; then
6291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 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 +00006300 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006302 break 2
6303 fi
6304done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305done
Torok Edwin871384f2010-01-26 08:50:50 +00006306IFS=$as_save_IFS
6307
6308fi
6309fi
6310ac_ct_AR=$ac_cv_prog_ac_ct_AR
6311if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6313echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 { echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006317fi
6318
6319 if test "x$ac_ct_AR" = x; then
6320 AR="false"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325whose name does not start with the host triplet. If you think this
6326configuration is useful to you, please write to autoconf@gnu.org." >&5
6327echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328whose name does not start with the host triplet. If you think this
6329configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006330ac_tool_warned=yes ;;
6331esac
6332 AR=$ac_ct_AR
6333 fi
6334else
6335 AR="$ac_cv_prog_AR"
6336fi
6337
Reid Spencera773bd52006-08-04 18:18:08 +00006338# Extract the first word of "rm", so it can be a program name with args.
6339set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342if test "${ac_cv_path_RM+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006344else
6345 case $RM in
6346 [\\/]* | ?:[\\/]*)
6347 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6348 ;;
6349 *)
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006357 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006359 break 2
6360 fi
6361done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362done
Reid Spencera773bd52006-08-04 18:18:08 +00006363IFS=$as_save_IFS
6364
6365 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6366 ;;
6367esac
6368fi
6369RM=$ac_cv_path_RM
6370if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 { echo "$as_me:$LINENO: result: $RM" >&5
6372echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006374 { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006376fi
6377
6378
6379# Extract the first word of "sed", so it can be a program name with args.
6380set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383if test "${ac_cv_path_SED+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006385else
6386 case $SED in
6387 [\\/]* | ?:[\\/]*)
6388 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6389 ;;
6390 *)
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006398 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006400 break 2
6401 fi
6402done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403done
Reid Spencera773bd52006-08-04 18:18:08 +00006404IFS=$as_save_IFS
6405
6406 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6407 ;;
6408esac
6409fi
6410SED=$ac_cv_path_SED
6411if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412 { echo "$as_me:$LINENO: result: $SED" >&5
6413echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 { echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006417fi
6418
6419
6420# Extract the first word of "tar", so it can be a program name with args.
6421set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424if test "${ac_cv_path_TAR+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006426else
6427 case $TAR in
6428 [\\/]* | ?:[\\/]*)
6429 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6430 ;;
6431 *)
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 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 +00006439 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006441 break 2
6442 fi
6443done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444done
Reid Spencera773bd52006-08-04 18:18:08 +00006445IFS=$as_save_IFS
6446
6447 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6448 ;;
6449esac
6450fi
6451TAR=$ac_cv_path_TAR
6452if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 { echo "$as_me:$LINENO: result: $TAR" >&5
6454echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456 { echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006458fi
6459
6460
6461# Extract the first word of "pwd", so it can be a program name with args.
6462set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_BINPWD+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006467else
6468 case $BINPWD in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006480 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006482 break 2
6483 fi
6484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485done
Reid Spencera773bd52006-08-04 18:18:08 +00006486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6489 ;;
6490esac
6491fi
6492BINPWD=$ac_cv_path_BINPWD
6493if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6495echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006499fi
6500
6501
6502
6503# Extract the first word of "Graphviz", so it can be a program name with args.
6504set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006509else
6510 case $GRAPHVIZ in
6511 [\\/]* | ?:[\\/]*)
6512 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6513 ;;
6514 *)
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 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 +00006522 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006524 break 2
6525 fi
6526done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527done
Reid Spencera773bd52006-08-04 18:18:08 +00006528IFS=$as_save_IFS
6529
6530 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6531 ;;
6532esac
6533fi
6534GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6535if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6537echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539 { echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006541fi
6542
6543
6544if test "$GRAPHVIZ" != "echo Graphviz" ; then
6545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546cat >>confdefs.h <<\_ACEOF
6547#define HAVE_GRAPHVIZ 1
6548_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006549
Jeff Cohen28783c32007-01-12 18:22:38 +00006550 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006551 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6552 fi
6553
6554cat >>confdefs.h <<_ACEOF
6555#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6556_ACEOF
6557
6558fi
6559# Extract the first word of "dot", so it can be a program name with args.
6560set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563if test "${ac_cv_path_DOT+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006565else
6566 case $DOT in
6567 [\\/]* | ?:[\\/]*)
6568 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6569 ;;
6570 *)
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 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 +00006578 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006580 break 2
6581 fi
6582done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583done
Reid Spencera773bd52006-08-04 18:18:08 +00006584IFS=$as_save_IFS
6585
6586 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6587 ;;
6588esac
6589fi
6590DOT=$ac_cv_path_DOT
6591if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592 { echo "$as_me:$LINENO: result: $DOT" >&5
6593echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595 { echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006597fi
6598
6599
6600if test "$DOT" != "echo dot" ; then
6601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602cat >>confdefs.h <<\_ACEOF
6603#define HAVE_DOT 1
6604_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006605
Jeff Cohen28783c32007-01-12 18:22:38 +00006606 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006607 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6608 fi
6609
6610cat >>confdefs.h <<_ACEOF
6611#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6612_ACEOF
6613
6614fi
David Greenef0b9eff2009-07-09 17:16:26 +00006615# Extract the first word of "fdp", so it can be a program name with args.
6616set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619if test "${ac_cv_path_FDP+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006621else
6622 case $FDP in
6623 [\\/]* | ?:[\\/]*)
6624 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6625 ;;
6626 *)
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 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 +00006634 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006636 break 2
6637 fi
6638done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639done
David Greenef0b9eff2009-07-09 17:16:26 +00006640IFS=$as_save_IFS
6641
6642 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6643 ;;
6644esac
6645fi
6646FDP=$ac_cv_path_FDP
6647if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648 { echo "$as_me:$LINENO: result: $FDP" >&5
6649echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651 { echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006653fi
6654
6655
6656if test "$FDP" != "echo fdp" ; then
6657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658cat >>confdefs.h <<\_ACEOF
6659#define HAVE_FDP 1
6660_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006661
6662 if test "$llvm_cv_os_type" = "MingW" ; then
6663 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6664 fi
6665
6666cat >>confdefs.h <<_ACEOF
6667#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6668_ACEOF
6669
6670fi
6671# Extract the first word of "neato", so it can be a program name with args.
6672set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675if test "${ac_cv_path_NEATO+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006677else
6678 case $NEATO in
6679 [\\/]* | ?:[\\/]*)
6680 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6681 ;;
6682 *)
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 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 +00006690 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006692 break 2
6693 fi
6694done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695done
David Greenef0b9eff2009-07-09 17:16:26 +00006696IFS=$as_save_IFS
6697
6698 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6699 ;;
6700esac
6701fi
6702NEATO=$ac_cv_path_NEATO
6703if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704 { echo "$as_me:$LINENO: result: $NEATO" >&5
6705echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006706else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707 { echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006709fi
6710
6711
6712if test "$NEATO" != "echo neato" ; then
6713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714cat >>confdefs.h <<\_ACEOF
6715#define HAVE_NEATO 1
6716_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006717
6718 if test "$llvm_cv_os_type" = "MingW" ; then
6719 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6720 fi
6721
6722cat >>confdefs.h <<_ACEOF
6723#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6724_ACEOF
6725
6726fi
6727# Extract the first word of "twopi", so it can be a program name with args.
6728set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_TWOPI+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006733else
6734 case $TWOPI in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 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 +00006746 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006748 break 2
6749 fi
6750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751done
David Greenef0b9eff2009-07-09 17:16:26 +00006752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6755 ;;
6756esac
6757fi
6758TWOPI=$ac_cv_path_TWOPI
6759if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6761echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006765fi
6766
6767
6768if test "$TWOPI" != "echo twopi" ; then
6769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770cat >>confdefs.h <<\_ACEOF
6771#define HAVE_TWOPI 1
6772_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006773
6774 if test "$llvm_cv_os_type" = "MingW" ; then
6775 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776 fi
6777
6778cat >>confdefs.h <<_ACEOF
6779#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6780_ACEOF
6781
6782fi
6783# Extract the first word of "circo", so it can be a program name with args.
6784set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_CIRCO+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006789else
6790 case $CIRCO in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 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 +00006802 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006804 break 2
6805 fi
6806done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807done
David Greenef0b9eff2009-07-09 17:16:26 +00006808IFS=$as_save_IFS
6809
6810 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6811 ;;
6812esac
6813fi
6814CIRCO=$ac_cv_path_CIRCO
6815if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006816 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6817echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006821fi
6822
6823
6824if test "$CIRCO" != "echo circo" ; then
6825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_CIRCO 1
6828_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006829
6830 if test "$llvm_cv_os_type" = "MingW" ; then
6831 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832 fi
6833
6834cat >>confdefs.h <<_ACEOF
6835#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6836_ACEOF
6837
6838fi
Reid Spencera773bd52006-08-04 18:18:08 +00006839for ac_prog in gv gsview32
6840do
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_GV+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006847else
6848 case $GV in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 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 +00006860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006862 break 2
6863 fi
6864done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865done
Reid Spencera773bd52006-08-04 18:18:08 +00006866IFS=$as_save_IFS
6867
6868 ;;
6869esac
6870fi
6871GV=$ac_cv_path_GV
6872if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873 { echo "$as_me:$LINENO: result: $GV" >&5
6874echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006876 { echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006878fi
6879
6880
6881 test -n "$GV" && break
6882done
6883test -n "$GV" || GV="echo gv"
6884
6885if test "$GV" != "echo gv" ; then
6886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887cat >>confdefs.h <<\_ACEOF
6888#define HAVE_GV 1
6889_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006890
Jeff Cohen28783c32007-01-12 18:22:38 +00006891 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893 fi
6894
6895cat >>confdefs.h <<_ACEOF
6896#define LLVM_PATH_GV "$GV${EXEEXT}"
6897_ACEOF
6898
6899fi
6900# Extract the first word of "dotty", so it can be a program name with args.
6901set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_DOTTY+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006906else
6907 case $DOTTY in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 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 +00006919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006921 break 2
6922 fi
6923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924done
Reid Spencera773bd52006-08-04 18:18:08 +00006925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928 ;;
6929esac
6930fi
6931DOTTY=$ac_cv_path_DOTTY
6932if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006938fi
6939
6940
6941if test "$DOTTY" != "echo dotty" ; then
6942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943cat >>confdefs.h <<\_ACEOF
6944#define HAVE_DOTTY 1
6945_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006946
Jeff Cohen28783c32007-01-12 18:22:38 +00006947 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949 fi
6950
6951cat >>confdefs.h <<_ACEOF
6952#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953_ACEOF
6954
6955fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006956# Extract the first word of "xdot.py", so it can be a program name with args.
6957set dummy xdot.py; ac_word=$2
6958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960if test "${ac_cv_path_XDOT_PY+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963 case $XDOT_PY in
6964 [\\/]* | ?:[\\/]*)
6965 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6966 ;;
6967 *)
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980done
6981IFS=$as_save_IFS
6982
6983 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6984 ;;
6985esac
6986fi
6987XDOT_PY=$ac_cv_path_XDOT_PY
6988if test -n "$XDOT_PY"; then
6989 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6990echo "${ECHO_T}$XDOT_PY" >&6; }
6991else
6992 { echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6; }
6994fi
6995
6996
6997if test "$XDOT_PY" != "echo xdot.py" ; then
6998
6999cat >>confdefs.h <<\_ACEOF
7000#define HAVE_XDOT_PY 1
7001_ACEOF
7002
7003 if test "$llvm_cv_os_type" = "MingW" ; then
7004 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7005 fi
7006
7007cat >>confdefs.h <<_ACEOF
7008#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7009_ACEOF
7010
7011fi
Reid Spencera773bd52006-08-04 18:18:08 +00007012
Reid Spencera773bd52006-08-04 18:18:08 +00007013# Find a good install program. We prefer a C program (faster),
7014# so one script is as good as another. But avoid the broken or
7015# incompatible versions:
7016# SysV /etc/install, /usr/sbin/install
7017# SunOS /usr/etc/install
7018# IRIX /sbin/install
7019# AIX /bin/install
7020# AmigaOS /C/install, which installs bootblocks on floppy discs
7021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024# OS/2's system install, which has a completely different semantic
7025# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007028if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029if test "${ac_cv_path_install+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007031else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 # Account for people who put trailing slashes in PATH elements.
7038case $as_dir/ in
7039 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007042 /usr/ucb/* ) ;;
7043 *)
7044 # OSF1 and SCO ODT 3.0 have their own names for install.
7045 # Don't use installbsd from OSF since it installs stuff as root
7046 # by default.
7047 for ac_prog in ginstall scoinst install; do
7048 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049 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 +00007050 if test $ac_prog = install &&
7051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # AIX install. It has an incompatible calling convention.
7053 :
7054 elif test $ac_prog = install &&
7055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # program-specific install script used by HP pwplus--don't use.
7057 :
7058 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7060 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007061 fi
7062 fi
7063 done
7064 done
7065 ;;
7066esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067done
Reid Spencera773bd52006-08-04 18:18:08 +00007068IFS=$as_save_IFS
7069
7070
7071fi
7072 if test "${ac_cv_path_install+set}" = set; then
7073 INSTALL=$ac_cv_path_install
7074 else
7075 # As a last resort, use the slow shell script. Don't cache a
7076 # value for INSTALL within a source directory, because that will
7077 # break other packages using the cache if that directory is
7078 # removed, or if the value is a relative name.
7079 INSTALL=$ac_install_sh
7080 fi
7081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7083echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007084
7085# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7086# It thinks the first close brace ends the variable substitution.
7087test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7088
7089test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7090
7091test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7092
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007093case "$INSTALL" in
7094 [\\/$]* | ?:[\\/]* ) ;;
7095 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7096esac
Reid Spencera773bd52006-08-04 18:18:08 +00007097
7098# Extract the first word of "bzip2", so it can be a program name with args.
7099set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102if test "${ac_cv_path_BZIP2+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007104else
7105 case $BZIP2 in
7106 [\\/]* | ?:[\\/]*)
7107 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7108 ;;
7109 *)
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 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 +00007117 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007119 break 2
7120 fi
7121done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122done
Reid Spencera773bd52006-08-04 18:18:08 +00007123IFS=$as_save_IFS
7124
Reid Spencera773bd52006-08-04 18:18:08 +00007125 ;;
7126esac
7127fi
7128BZIP2=$ac_cv_path_BZIP2
7129if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7131echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007135fi
7136
7137
mike-m68cb3192010-05-06 23:45:43 +00007138# Extract the first word of "cat", so it can be a program name with args.
7139set dummy cat; ac_word=$2
7140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142if test "${ac_cv_path_CAT+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 case $CAT in
7146 [\\/]* | ?:[\\/]*)
7147 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7148 ;;
7149 *)
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163IFS=$as_save_IFS
7164
7165 ;;
7166esac
7167fi
7168CAT=$ac_cv_path_CAT
7169if test -n "$CAT"; then
7170 { echo "$as_me:$LINENO: result: $CAT" >&5
7171echo "${ECHO_T}$CAT" >&6; }
7172else
7173 { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
7175fi
7176
7177
Reid Spencera773bd52006-08-04 18:18:08 +00007178# Extract the first word of "doxygen", so it can be a program name with args.
7179set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_DOXYGEN+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007184else
7185 case $DOXYGEN in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 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 +00007197 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007199 break 2
7200 fi
7201done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202done
Reid Spencera773bd52006-08-04 18:18:08 +00007203IFS=$as_save_IFS
7204
Reid Spencera773bd52006-08-04 18:18:08 +00007205 ;;
7206esac
7207fi
7208DOXYGEN=$ac_cv_path_DOXYGEN
7209if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7211echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007215fi
7216
7217
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007218# Extract the first word of "groff", so it can be a program name with args.
7219set dummy groff; ac_word=$2
7220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222if test "${ac_cv_path_GROFF+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225 case $GROFF in
7226 [\\/]* | ?:[\\/]*)
7227 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7228 ;;
7229 *)
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242done
7243IFS=$as_save_IFS
7244
7245 ;;
7246esac
7247fi
7248GROFF=$ac_cv_path_GROFF
7249if test -n "$GROFF"; then
7250 { echo "$as_me:$LINENO: result: $GROFF" >&5
7251echo "${ECHO_T}$GROFF" >&6; }
7252else
7253 { echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6; }
7255fi
7256
7257
Reid Spencera773bd52006-08-04 18:18:08 +00007258# Extract the first word of "gzip", so it can be a program name with args.
7259set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007262if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007264else
Eric Christopher031d3072010-12-10 01:31:51 +00007265 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007266 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007267 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007268 ;;
7269 *)
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 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 +00007277 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007279 break 2
7280 fi
7281done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282done
Reid Spencera773bd52006-08-04 18:18:08 +00007283IFS=$as_save_IFS
7284
Reid Spencera773bd52006-08-04 18:18:08 +00007285 ;;
7286esac
7287fi
Eric Christopher031d3072010-12-10 01:31:51 +00007288GZIPBIN=$ac_cv_path_GZIPBIN
7289if test -n "$GZIPBIN"; then
7290 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7291echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 { echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007295fi
7296
7297
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007298# Extract the first word of "pdfroff", so it can be a program name with args.
7299set dummy pdfroff; ac_word=$2
7300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302if test "${ac_cv_path_PDFROFF+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 case $PDFROFF in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7308 ;;
7309 *)
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322done
7323IFS=$as_save_IFS
7324
7325 ;;
7326esac
7327fi
7328PDFROFF=$ac_cv_path_PDFROFF
7329if test -n "$PDFROFF"; then
7330 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7331echo "${ECHO_T}$PDFROFF" >&6; }
7332else
7333 { echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6; }
7335fi
7336
7337
Reid Spencera773bd52006-08-04 18:18:08 +00007338# Extract the first word of "zip", so it can be a program name with args.
7339set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342if test "${ac_cv_path_ZIP+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007344else
7345 case $ZIP in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 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 +00007357 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007359 break 2
7360 fi
7361done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362done
Reid Spencera773bd52006-08-04 18:18:08 +00007363IFS=$as_save_IFS
7364
Reid Spencera773bd52006-08-04 18:18:08 +00007365 ;;
7366esac
7367fi
7368ZIP=$ac_cv_path_ZIP
7369if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370 { echo "$as_me:$LINENO: result: $ZIP" >&5
7371echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 { echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007375fi
7376
7377
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007378for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007379do
7380 # Extract the first word of "$ac_prog", so it can be a program name with args.
7381set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384if test "${ac_cv_path_OCAMLC+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007386else
7387 case $OCAMLC in
7388 [\\/]* | ?:[\\/]*)
7389 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7390 ;;
7391 *)
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 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 +00007399 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007401 break 2
7402 fi
7403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007405IFS=$as_save_IFS
7406
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007407 ;;
7408esac
7409fi
7410OCAMLC=$ac_cv_path_OCAMLC
7411if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7413echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415 { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007417fi
7418
7419
Gordon Henriksene7072162008-03-07 18:20:01 +00007420 test -n "$OCAMLC" && break
7421done
7422
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007423for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007424do
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007431else
7432 case $OCAMLOPT in
7433 [\\/]* | ?:[\\/]*)
7434 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7435 ;;
7436 *)
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 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 +00007444 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007446 break 2
7447 fi
7448done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007450IFS=$as_save_IFS
7451
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007452 ;;
7453esac
7454fi
7455OCAMLOPT=$ac_cv_path_OCAMLOPT
7456if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7458echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007462fi
7463
7464
Gordon Henriksene7072162008-03-07 18:20:01 +00007465 test -n "$OCAMLOPT" && break
7466done
7467
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007468for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007469do
7470 # Extract the first word of "$ac_prog", so it can be a program name with args.
7471set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7474if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007476else
7477 case $OCAMLDEP in
7478 [\\/]* | ?:[\\/]*)
7479 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7480 ;;
7481 *)
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 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 +00007489 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007491 break 2
7492 fi
7493done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007494done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007495IFS=$as_save_IFS
7496
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007497 ;;
7498esac
7499fi
7500OCAMLDEP=$ac_cv_path_OCAMLDEP
7501if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7503echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 { echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007507fi
7508
7509
Gordon Henriksene7072162008-03-07 18:20:01 +00007510 test -n "$OCAMLDEP" && break
7511done
7512
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007513for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007514do
7515 # Extract the first word of "$ac_prog", so it can be a program name with args.
7516set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007521else
7522 case $OCAMLDOC in
7523 [\\/]* | ?:[\\/]*)
7524 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7525 ;;
7526 *)
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 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 +00007534 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007536 break 2
7537 fi
7538done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007540IFS=$as_save_IFS
7541
7542 ;;
7543esac
7544fi
7545OCAMLDOC=$ac_cv_path_OCAMLDOC
7546if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7548echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550 { echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007552fi
7553
7554
7555 test -n "$OCAMLDOC" && break
7556done
7557
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007558for ac_prog in gas as
7559do
7560 # Extract the first word of "$ac_prog", so it can be a program name with args.
7561set dummy $ac_prog; ac_word=$2
7562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7564if test "${ac_cv_path_GAS+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567 case $GAS in
7568 [\\/]* | ?:[\\/]*)
7569 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7570 ;;
7571 *)
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583done
7584done
7585IFS=$as_save_IFS
7586
7587 ;;
7588esac
7589fi
7590GAS=$ac_cv_path_GAS
7591if test -n "$GAS"; then
7592 { echo "$as_me:$LINENO: result: $GAS" >&5
7593echo "${ECHO_T}$GAS" >&6; }
7594else
7595 { echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6; }
7597fi
7598
7599
7600 test -n "$GAS" && break
7601done
7602
Reid Spencera773bd52006-08-04 18:18:08 +00007603
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007604{ echo "$as_me:$LINENO: checking for linker version" >&5
7605echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7606if test "${llvm_cv_link_version+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609
7610 version_string="$(ld -v 2>&1 | head -1)"
7611
7612 # Check for ld64.
7613 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007614 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007615 else
7616 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7617 fi
7618
7619fi
7620{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7621echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7622
7623cat >>confdefs.h <<_ACEOF
7624#define HOST_LINK_VERSION "$llvm_cv_link_version"
7625_ACEOF
7626
7627
7628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7630echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7631if test "${llvm_cv_link_use_r+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007633else
7634 ac_ext=c
7635ac_cpp='$CPP $CPPFLAGS'
7636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638ac_compiler_gnu=$ac_cv_c_compiler_gnu
7639
7640 oldcflags="$CFLAGS"
7641 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 cat >conftest.$ac_ext <<_ACEOF
7643/* confdefs.h. */
7644_ACEOF
7645cat confdefs.h >>conftest.$ac_ext
7646cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007647/* end confdefs.h. */
7648
7649int
7650main ()
7651{
Dan Gohman39ed6782010-04-25 00:12:20 +00007652
Reid Spencera773bd52006-08-04 18:18:08 +00007653 ;
7654 return 0;
7655}
7656_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657rm -f conftest.$ac_objext conftest$ac_exeext
7658if { (ac_try="$ac_link"
7659case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662esac
7663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_link") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7672 { (case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
7676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_try") 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest$ac_exeext'
7682 { (case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_try") 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007691 llvm_cv_link_use_r=yes
7692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007697fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698
Bill Wendlingebcceee2009-04-18 11:20:33 +00007699rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007701 CFLAGS="$oldcflags"
7702 ac_ext=c
7703ac_cpp='$CPP $CPPFLAGS'
7704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707
7708
7709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7711echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007712if test "$llvm_cv_link_use_r" = yes ; then
7713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714cat >>confdefs.h <<\_ACEOF
7715#define HAVE_LINK_R 1
7716_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007717
7718 fi
7719
7720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7722echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7723if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007725else
7726 ac_ext=c
7727ac_cpp='$CPP $CPPFLAGS'
7728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731
7732 oldcflags="$CFLAGS"
7733 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 cat >conftest.$ac_ext <<_ACEOF
7735/* confdefs.h. */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007739/* end confdefs.h. */
7740
7741int
7742main ()
7743{
Dan Gohman39ed6782010-04-25 00:12:20 +00007744
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007745 ;
7746 return 0;
7747}
7748_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749rm -f conftest.$ac_objext conftest$ac_exeext
7750if { (ac_try="$ac_link"
7751case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754esac
7755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7764 { (case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767esac
7768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest$ac_exeext'
7774 { (case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777esac
7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_try") 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007783 llvm_cv_link_use_export_dynamic=yes
7784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 echo "$as_me: failed program was:" >&5
7786sed 's/^/| /' conftest.$ac_ext >&5
7787
7788 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790
Bill Wendlingebcceee2009-04-18 11:20:33 +00007791rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007793 CFLAGS="$oldcflags"
7794 ac_ext=c
7795ac_cpp='$CPP $CPPFLAGS'
7796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800
7801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007802{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7803echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007804if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806cat >>confdefs.h <<\_ACEOF
7807#define HAVE_LINK_EXPORT_DYNAMIC 1
7808_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007809
7810 fi
7811
7812
Dan Gohmanda612d62010-06-01 14:56:56 +00007813{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7814echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7815if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817else
7818 ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824 oldcflags="$CFLAGS"
7825
7826 # The following code is from the autoconf manual,
7827 # "11.13: Limitations of Usual Tools".
7828 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7829 # Use mktemp if possible; otherwise fall back on mkdir,
7830 # with $RANDOM to make collisions less likely.
7831 : ${TMPDIR=/tmp}
7832 {
7833 tmp=`
7834 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7835 ` &&
7836 test -n "$tmp" && test -d "$tmp"
7837 } || {
7838 tmp=$TMPDIR/foo$$-$RANDOM
7839 (umask 077 && mkdir "$tmp")
7840 } || exit $?
7841
Dan Gohmanda612d62010-06-01 14:56:56 +00007842 echo "{" > "$tmp/export.map"
7843 echo " global: main;" >> "$tmp/export.map"
7844 echo " local: *;" >> "$tmp/export.map"
7845 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007846
Dan Gohmanda612d62010-06-01 14:56:56 +00007847 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007848 cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h. */
7854
7855int
7856main ()
7857{
Dan Gohman39ed6782010-04-25 00:12:20 +00007858
Dan Gohman391569c2010-04-16 22:59:06 +00007859 ;
7860 return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext conftest$ac_exeext
7864if { (ac_try="$ac_link"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007897 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007898else
7899 echo "$as_me: failed program was:" >&5
7900sed 's/^/| /' conftest.$ac_ext >&5
7901
Dan Gohman943005e2010-06-01 16:22:27 +00007902 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007903fi
7904
7905rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007907 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007908 rmdir "$tmp"
7909 CFLAGS="$oldcflags"
7910 ac_ext=c
7911ac_cpp='$CPP $CPPFLAGS'
7912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916
7917fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007918{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7919echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7920if test "$llvm_cv_link_use_version_script" = yes ; then
7921 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007922
7923 fi
7924
7925
Reid Spencera773bd52006-08-04 18:18:08 +00007926
7927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7929echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7930if test "${ac_cv_c_const+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007933 cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h. */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007938/* end confdefs.h. */
7939
7940int
7941main ()
7942{
7943/* FIXME: Include the comments suggested by Paul. */
7944#ifndef __cplusplus
7945 /* Ultrix mips cc rejects this. */
7946 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007947 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007948 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007949 char const *const *ccp;
7950 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007951 /* NEC SVR4.0.2 mips cc rejects this. */
7952 struct point {int x, y;};
7953 static struct point const zero = {0,0};
7954 /* AIX XL C 1.02.0.0 rejects this.
7955 It does not let you subtract one const X* pointer from another in
7956 an arm of an if-expression whose if-part is not a constant
7957 expression */
7958 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007960 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961 ++ccp;
7962 p = (char**) ccp;
7963 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007964 { /* SCO 3.2v4 cc rejects this. */
7965 char *t;
7966 char const *s = 0 ? (char *) 0 : (char const *) 0;
7967
7968 *t++ = 0;
7969 if (s) return 0;
7970 }
7971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7972 int x[] = {25, 17};
7973 const int *foo = &x[0];
7974 ++foo;
7975 }
7976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7977 typedef const int *iptr;
7978 iptr p = 0;
7979 ++p;
7980 }
7981 { /* AIX XL C 1.02.0.0 rejects this saying
7982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7983 struct s { int j; const int *ap[3]; };
7984 struct s *b; b->j = 5;
7985 }
7986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7987 const int foo = 10;
7988 if (!foo) return 0;
7989 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007991#endif
7992
7993 ;
7994 return 0;
7995}
7996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997rm -f conftest.$ac_objext
7998if { (ac_try="$ac_compile"
7999case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002esac
8003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012 { (case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015esac
8016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_try") 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_try") 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008031 ac_cv_c_const=yes
8032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033 echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038
Reid Spencera773bd52006-08-04 18:18:08 +00008039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8042echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008043if test $ac_cv_c_const = no; then
8044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045cat >>confdefs.h <<\_ACEOF
8046#define const
8047_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008048
8049fi
8050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051
8052
8053
8054
8055
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008056ac_header_dirent=no
8057for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8059{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8060echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008069/* end confdefs.h. */
8070#include <sys/types.h>
8071#include <$ac_hdr>
8072
8073int
8074main ()
8075{
8076if ((DIR *) 0)
8077return 0;
8078 ;
8079 return 0;
8080}
8081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082rm -f conftest.$ac_objext
8083if { (ac_try="$ac_compile"
8084case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8097 { (case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
8101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_try") 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110esac
8111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008116 eval "$as_ac_Header=yes"
8117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 echo "$as_me: failed program was:" >&5
8119sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123
Reid Spencera773bd52006-08-04 18:18:08 +00008124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126ac_res=`eval echo '${'$as_ac_Header'}'`
8127 { echo "$as_me:$LINENO: result: $ac_res" >&5
8128echo "${ECHO_T}$ac_res" >&6; }
8129if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008130 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008132_ACEOF
8133
8134ac_header_dirent=$ac_hdr; break
8135fi
8136
8137done
8138# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8139if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8141echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8142if test "${ac_cv_search_opendir+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008144else
8145 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008151/* end confdefs.h. */
8152
Reid Spencera773bd52006-08-04 18:18:08 +00008153/* Override any GCC internal prototype to avoid an error.
8154 Use char because int might match the return type of a GCC
8155 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008156#ifdef __cplusplus
8157extern "C"
8158#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008159char opendir ();
8160int
8161main ()
8162{
Reid Spencera773bd52006-08-04 18:18:08 +00008163return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164 ;
8165 return 0;
8166}
8167_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008168for ac_lib in '' dir; do
8169 if test -z "$ac_lib"; then
8170 ac_res="none required"
8171 else
8172 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008174 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008175 rm -f conftest.$ac_objext conftest$ac_exeext
8176if { (ac_try="$ac_link"
8177case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180esac
8181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193esac
8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008209 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210else
8211 echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
8214
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216
Bill Wendlingebcceee2009-04-18 11:20:33 +00008217rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 conftest$ac_exeext
8219 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008220 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221fi
John Criswell7a73b802003-06-30 21:59:07 +00008222done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008223if test "${ac_cv_search_opendir+set}" = set; then
8224 :
Reid Spencera773bd52006-08-04 18:18:08 +00008225else
8226 ac_cv_search_opendir=no
8227fi
8228rm conftest.$ac_ext
8229LIBS=$ac_func_search_save_LIBS
8230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8232echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008233ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008236
Reid Spencera773bd52006-08-04 18:18:08 +00008237fi
8238
8239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8241echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8242if test "${ac_cv_search_opendir+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008244else
8245 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246cat >conftest.$ac_ext <<_ACEOF
8247/* confdefs.h. */
8248_ACEOF
8249cat confdefs.h >>conftest.$ac_ext
8250cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008251/* end confdefs.h. */
8252
8253/* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256#ifdef __cplusplus
8257extern "C"
8258#endif
8259char opendir ();
8260int
8261main ()
8262{
8263return opendir ();
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268for ac_lib in '' x; do
8269 if test -z "$ac_lib"; then
8270 ac_res="none required"
8271 else
8272 ac_res=-l$ac_lib
8273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8274 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275 rm -f conftest.$ac_objext conftest$ac_exeext
8276if { (ac_try="$ac_link"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008309 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310else
8311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314
Reid Spencera773bd52006-08-04 18:18:08 +00008315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316
Bill Wendlingebcceee2009-04-18 11:20:33 +00008317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318 conftest$ac_exeext
8319 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008320 break
8321fi
8322done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323if test "${ac_cv_search_opendir+set}" = set; then
8324 :
Reid Spencera773bd52006-08-04 18:18:08 +00008325else
8326 ac_cv_search_opendir=no
8327fi
8328rm conftest.$ac_ext
8329LIBS=$ac_func_search_save_LIBS
8330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008331{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8332echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008333ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8336
8337fi
8338
8339fi
John Criswell7a73b802003-06-30 21:59:07 +00008340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341
John Criswell7a73b802003-06-30 21:59:07 +00008342for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343do
8344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350fi
8351ac_res=`eval echo '${'$as_ac_Header'}'`
8352 { echo "$as_me:$LINENO: result: $ac_res" >&5
8353echo "${ECHO_T}$ac_res" >&6; }
8354else
8355 # Is the header compilable?
8356{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8358cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364$ac_includes_default
8365#include <$ac_header>
8366_ACEOF
8367rm -f conftest.$ac_objext
8368if { (ac_try="$ac_compile"
8369case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8375 ac_status=$?
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_header_compiler=yes
8402else
8403 echo "$as_me: failed program was:" >&5
8404sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 ac_header_compiler=no
8407fi
8408
8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8411echo "${ECHO_T}$ac_header_compiler" >&6; }
8412
8413# Is the header present?
8414{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8416cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
8422#include <$ac_header>
8423_ACEOF
8424if { (ac_try="$ac_cpp conftest.$ac_ext"
8425case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428esac
8429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
8443else
8444 ac_cpp_err=yes
8445fi
8446if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
8448else
8449 echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_header_preproc=no
8453fi
8454
8455rm -f conftest.err conftest.$ac_ext
8456{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457echo "${ECHO_T}$ac_header_preproc" >&6; }
8458
8459# So? What about this header?
8460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8461 yes:no: )
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8466 ac_header_preproc=yes
8467 ;;
8468 no:yes:* )
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8481 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008482## ------------------------------------ ##
8483## Report this to http://llvm.org/bugs/ ##
8484## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485_ASBOX
8486 ) | sed "s/^/$as_me: WARNING: /" >&2
8487 ;;
8488esac
8489{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494 eval "$as_ac_Header=\$ac_header_preproc"
8495fi
8496ac_res=`eval echo '${'$as_ac_Header'}'`
8497 { echo "$as_me:$LINENO: result: $ac_res" >&5
8498echo "${ECHO_T}$ac_res" >&6; }
8499
8500fi
8501if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008502 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008504_ACEOF
8505
8506fi
8507
8508done
8509
Reid Spencera773bd52006-08-04 18:18:08 +00008510# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008512 enableval=$enable_ltdl_install;
8513fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008514
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516
8517
8518if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008519 INSTALL_LTDL_TRUE=
8520 INSTALL_LTDL_FALSE='#'
8521else
8522 INSTALL_LTDL_TRUE='#'
8523 INSTALL_LTDL_FALSE=
8524fi
8525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526
8527
8528if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008529 CONVENIENCE_LTDL_TRUE=
8530 CONVENIENCE_LTDL_FALSE='#'
8531else
8532 CONVENIENCE_LTDL_TRUE='#'
8533 CONVENIENCE_LTDL_FALSE=
8534fi
8535
8536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8538echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008539library_names_spec=
8540libname_spec='lib$name'
8541soname_spec=
8542shrext_cmds=".so"
8543postinstall_cmds=
8544postuninstall_cmds=
8545finish_cmds=
8546finish_eval=
8547shlibpath_var=
8548shlibpath_overrides_runpath=unknown
8549version_type=none
8550dynamic_linker="$host_os ld.so"
8551sys_lib_dlsearch_path_spec="/lib /usr/lib"
8552if test "$GCC" = yes; then
8553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8555 # if the path contains ";" then we assume it to be the separator
8556 # otherwise default to the standard path separator (i.e. ":") - it is
8557 # assumed that no part of a normal pathname contains ";" but that should
8558 # okay in the real world where ";" in dirpaths is itself problematic.
8559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8560 else
8561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8562 fi
8563else
8564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8565fi
8566need_lib_prefix=unknown
8567hardcode_into_libs=no
8568
8569# when you set need_version to no, make sure it does not cause -set_version
8570# flags to be left without arguments
8571need_version=unknown
8572
8573case $host_os in
8574aix3*)
8575 version_type=linux
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8577 shlibpath_var=LIBPATH
8578
8579 # AIX 3 has no versioning support, so we append a major version to the name.
8580 soname_spec='${libname}${release}${shared_ext}$major'
8581 ;;
8582
8583aix4* | aix5*)
8584 version_type=linux
8585 need_lib_prefix=no
8586 need_version=no
8587 hardcode_into_libs=yes
8588 if test "$host_cpu" = ia64; then
8589 # AIX 5 supports IA64
8590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8591 shlibpath_var=LD_LIBRARY_PATH
8592 else
8593 # With GCC up to 2.95.x, collect2 would create an import file
8594 # for dependence libraries. The import file would start with
8595 # the line `#! .'. This would cause the generated library to
8596 # depend on `.', always an invalid library. This was fixed in
8597 # development snapshots of GCC prior to 3.0.
8598 case $host_os in
8599 aix4 | aix4.[01] | aix4.[01].*)
8600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8601 echo ' yes '
8602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8603 :
8604 else
8605 can_build_shared=no
8606 fi
8607 ;;
8608 esac
8609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8610 # soname into executable. Probably we can add versioning support to
8611 # collect2, so additional links can be useful in future.
8612 if test "$aix_use_runtimelinking" = yes; then
8613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8614 # instead of lib<name>.a to let people know that these are not
8615 # typical AIX shared libraries.
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617 else
8618 # We preserve .a as extension for shared libraries through AIX4.2
8619 # and later when we are not doing run time linking.
8620 library_names_spec='${libname}${release}.a $libname.a'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8622 fi
8623 shlibpath_var=LIBPATH
8624 fi
8625 ;;
8626
8627amigaos*)
8628 library_names_spec='$libname.ixlibrary $libname.a'
8629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8630 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'
8631 ;;
8632
8633beos*)
8634 library_names_spec='${libname}${shared_ext}'
8635 dynamic_linker="$host_os ld.so"
8636 shlibpath_var=LIBRARY_PATH
8637 ;;
8638
8639bsdi[45]*)
8640 version_type=linux
8641 need_version=no
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8645 shlibpath_var=LD_LIBRARY_PATH
8646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8648 # the default ld.so.conf also contains /usr/contrib/lib and
8649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8650 # libtool to hard-code these into programs
8651 ;;
8652
8653cygwin* | mingw* | pw32*)
8654 version_type=windows
8655 shrext_cmds=".dll"
8656 need_version=no
8657 need_lib_prefix=no
8658
8659 case $GCC,$host_os in
8660 yes,cygwin* | yes,mingw* | yes,pw32*)
8661 library_names_spec='$libname.dll.a'
8662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8663 postinstall_cmds='base_file=`basename \${file}`~
8664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8665 dldir=$destdir/`dirname \$dlpath`~
8666 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008667 $install_prog $dir/$dlname \$dldir/$dlname~
8668 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8670 dlpath=$dir/\$dldll~
8671 $rm \$dlpath'
8672 shlibpath_overrides_runpath=yes
8673
8674 case $host_os in
8675 cygwin*)
8676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8679 ;;
8680 mingw*)
8681 # MinGW DLLs use traditional 'lib' prefix
8682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8685 # It is most probably a Windows format PATH printed by
8686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8687 # path with ; separators, and with drive letters. We can handle the
8688 # drive letters (cygwin fileutils understands them), so leave them,
8689 # especially as we might pass files found there to a mingw objdump,
8690 # which wouldn't understand a cygwinified path. Ahh.
8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8692 else
8693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8694 fi
8695 ;;
8696 pw32*)
8697 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008698 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 +00008699 ;;
8700 esac
8701 ;;
8702
8703 *)
8704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8705 ;;
8706 esac
8707 dynamic_linker='Win32 ld.exe'
8708 # FIXME: first we should search . and the directory the executable is in
8709 shlibpath_var=PATH
8710 ;;
8711
8712darwin* | rhapsody*)
8713 dynamic_linker="$host_os dyld"
8714 version_type=darwin
8715 need_lib_prefix=no
8716 need_version=no
8717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8718 soname_spec='${libname}${release}${major}$shared_ext'
8719 shlibpath_overrides_runpath=yes
8720 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008721 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8723 if test "$GCC" = yes; then
8724 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"`
8725 else
8726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8727 fi
8728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8729 ;;
8730
8731dgux*)
8732 version_type=linux
8733 need_lib_prefix=no
8734 need_version=no
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 shlibpath_var=LD_LIBRARY_PATH
8738 ;;
8739
Eric Christopher360fa9a2011-10-26 00:42:12 +00008740freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008741 dynamic_linker=no
8742 ;;
8743
8744kfreebsd*-gnu)
8745 version_type=linux
8746 need_lib_prefix=no
8747 need_version=no
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 shlibpath_overrides_runpath=no
8752 hardcode_into_libs=yes
8753 dynamic_linker='GNU ld.so'
8754 ;;
8755
Reid Spencera773bd52006-08-04 18:18:08 +00008756freebsd* | dragonfly*)
8757 # DragonFly does not have aout. When/if they implement a new
8758 # versioning mechanism, adjust this.
8759 if test -x /usr/bin/objformat; then
8760 objformat=`/usr/bin/objformat`
8761 else
8762 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008763 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008764 *) objformat=elf ;;
8765 esac
8766 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767 version_type=freebsd-$objformat
8768 case $version_type in
8769 freebsd-elf*)
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8771 need_version=no
8772 need_lib_prefix=no
8773 ;;
8774 freebsd-*)
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8776 need_version=yes
8777 ;;
8778 esac
8779 shlibpath_var=LD_LIBRARY_PATH
8780 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008781 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008782 shlibpath_overrides_runpath=yes
8783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008784 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008785 shlibpath_overrides_runpath=yes
8786 hardcode_into_libs=yes
8787 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008788 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8789 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008790 shlibpath_overrides_runpath=no
8791 hardcode_into_libs=yes
8792 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008793 freebsd*) # from 4.6 on
8794 shlibpath_overrides_runpath=yes
8795 hardcode_into_libs=yes
8796 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008797 esac
8798 ;;
8799
8800gnu*)
8801 version_type=linux
8802 need_lib_prefix=no
8803 need_version=no
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 hardcode_into_libs=yes
8808 ;;
8809
8810hpux9* | hpux10* | hpux11*)
8811 # Give a soname corresponding to the major version so that dld.sl refuses to
8812 # link against other versions.
8813 version_type=sunos
8814 need_lib_prefix=no
8815 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008816 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817 ia64*)
8818 shrext_cmds='.so'
8819 hardcode_into_libs=yes
8820 dynamic_linker="$host_os dld.so"
8821 shlibpath_var=LD_LIBRARY_PATH
8822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 if test "X$HPUX_IA64_MODE" = X32; then
8826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8827 else
8828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8829 fi
8830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831 ;;
8832 hppa*64*)
8833 shrext_cmds='.sl'
8834 hardcode_into_libs=yes
8835 dynamic_linker="$host_os dld.sl"
8836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8842 ;;
8843 *)
8844 shrext_cmds='.sl'
8845 dynamic_linker="$host_os dld.sl"
8846 shlibpath_var=SHLIB_PATH
8847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 ;;
8851 esac
8852 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8853 postinstall_cmds='chmod 555 $lib'
8854 ;;
8855
Reid Spencera773bd52006-08-04 18:18:08 +00008856interix3*)
8857 version_type=linux
8858 need_lib_prefix=no
8859 need_version=no
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8866 ;;
8867
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868irix5* | irix6* | nonstopux*)
8869 case $host_os in
8870 nonstopux*) version_type=nonstopux ;;
8871 *)
8872 if test "$lt_cv_prog_gnu_ld" = yes; then
8873 version_type=linux
8874 else
8875 version_type=irix
8876 fi ;;
8877 esac
8878 need_lib_prefix=no
8879 need_version=no
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8882 case $host_os in
8883 irix5* | nonstopux*)
8884 libsuff= shlibsuff=
8885 ;;
8886 *)
8887 case $LD in # libtool.m4 will add one of these switches to LD
8888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8889 libsuff= shlibsuff= libmagic=32-bit;;
8890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8891 libsuff=32 shlibsuff=N32 libmagic=N32;;
8892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8894 *) libsuff= shlibsuff= libmagic=never-match;;
8895 esac
8896 ;;
8897 esac
8898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8899 shlibpath_overrides_runpath=no
8900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8902 hardcode_into_libs=yes
8903 ;;
8904
8905# No shared lib support for Linux oldld, aout, or coff.
8906linux*oldld* | linux*aout* | linux*coff*)
8907 dynamic_linker=no
8908 ;;
8909
8910# This must be Linux ELF.
8911linux*)
8912 version_type=linux
8913 need_lib_prefix=no
8914 need_version=no
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 shlibpath_overrides_runpath=no
8920 # This implies no fast_install, which is unacceptable.
8921 # Some rework will be needed to allow for fast_install
8922 # before this can be enabled.
8923 hardcode_into_libs=yes
8924
8925 # Append ld.so.conf contents to the search path
8926 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008927 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 +00008928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8929 fi
8930
8931 # We used to test for /lib/ld.so.1 and disable shared libraries on
8932 # powerpc, because MkLinux only supported shared libraries with the
8933 # GNU dynamic linker. Since this was broken with cross compilers,
8934 # most powerpc-linux boxes support dynamic linking these days and
8935 # people can always --disable-shared, the test was removed, and we
8936 # assume the GNU/Linux dynamic linker is in use.
8937 dynamic_linker='GNU/Linux ld.so'
8938 ;;
8939
8940knetbsd*-gnu)
8941 version_type=linux
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=no
8948 hardcode_into_libs=yes
8949 dynamic_linker='GNU ld.so'
8950 ;;
8951
8952netbsd*)
8953 version_type=sunos
8954 need_lib_prefix=no
8955 need_version=no
8956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8959 dynamic_linker='NetBSD (a.out) ld.so'
8960 else
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 dynamic_linker='NetBSD ld.elf_so'
8964 fi
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8968 ;;
8969
8970newsos6)
8971 version_type=linux
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=yes
8975 ;;
8976
8977nto-qnx*)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=yes
8985 ;;
8986
Eric Christopherb0f67592012-08-06 20:52:18 +00008987openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008988 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008989 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008990 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8992 case $host_os in
8993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8994 *) need_version=no ;;
8995 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9000 case $host_os in
9001 openbsd2.[89] | openbsd2.[89].*)
9002 shlibpath_overrides_runpath=no
9003 ;;
9004 *)
9005 shlibpath_overrides_runpath=yes
9006 ;;
9007 esac
9008 else
9009 shlibpath_overrides_runpath=yes
9010 fi
9011 ;;
9012
9013os2*)
9014 libname_spec='$name'
9015 shrext_cmds=".dll"
9016 need_lib_prefix=no
9017 library_names_spec='$libname${shared_ext} $libname.a'
9018 dynamic_linker='OS/2 ld.exe'
9019 shlibpath_var=LIBPATH
9020 ;;
9021
9022osf3* | osf4* | osf5*)
9023 version_type=osf
9024 need_lib_prefix=no
9025 need_version=no
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9031 ;;
9032
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009033solaris*)
9034 version_type=linux
9035 need_lib_prefix=no
9036 need_version=no
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9042 # ldd complains unless libraries are executable
9043 postinstall_cmds='chmod +x $lib'
9044 ;;
9045
9046sunos4*)
9047 version_type=sunos
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 if test "$with_gnu_ld" = yes; then
9053 need_lib_prefix=no
9054 fi
9055 need_version=yes
9056 ;;
9057
Reid Spencera773bd52006-08-04 18:18:08 +00009058sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009059 version_type=linux
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 case $host_vendor in
9064 sni)
9065 shlibpath_overrides_runpath=no
9066 need_lib_prefix=no
9067 export_dynamic_flag_spec='${wl}-Blargedynsym'
9068 runpath_var=LD_RUN_PATH
9069 ;;
9070 siemens)
9071 need_lib_prefix=no
9072 ;;
9073 motorola)
9074 need_lib_prefix=no
9075 need_version=no
9076 shlibpath_overrides_runpath=no
9077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9078 ;;
9079 esac
9080 ;;
9081
9082sysv4*MP*)
9083 if test -d /usr/nec ;then
9084 version_type=linux
9085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9086 soname_spec='$libname${shared_ext}.$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 fi
9089 ;;
9090
Reid Spencera773bd52006-08-04 18:18:08 +00009091sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9092 version_type=freebsd-elf
9093 need_lib_prefix=no
9094 need_version=no
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 hardcode_into_libs=yes
9099 if test "$with_gnu_ld" = yes; then
9100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9101 shlibpath_overrides_runpath=no
9102 else
9103 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9104 shlibpath_overrides_runpath=yes
9105 case $host_os in
9106 sco3.2v5*)
9107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9108 ;;
9109 esac
9110 fi
9111 sys_lib_dlsearch_path_spec='/usr/lib'
9112 ;;
9113
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009114uts4*)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 ;;
9120
9121*)
9122 dynamic_linker=no
9123 ;;
9124esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009125{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9126echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127test "$dynamic_linker" = no && can_build_shared=no
9128
Reid Spencera773bd52006-08-04 18:18:08 +00009129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9130if test "$GCC" = yes; then
9131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9132fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009133
Reid Spencera773bd52006-08-04 18:18:08 +00009134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009135{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9136echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9137if test "${libltdl_cv_shlibext+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009139else
9140
9141module=yes
9142eval libltdl_cv_shlibext=$shrext_cmds
9143
9144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009145{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9146echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147if test -n "$libltdl_cv_shlibext"; then
9148
9149cat >>confdefs.h <<_ACEOF
9150#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9151_ACEOF
9152
9153fi
9154
9155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009156{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9157echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9158if test "${libltdl_cv_shlibpath_var+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160else
9161 libltdl_cv_shlibpath_var="$shlibpath_var"
9162fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009163{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9164echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165if test -n "$libltdl_cv_shlibpath_var"; then
9166
9167cat >>confdefs.h <<_ACEOF
9168#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9169_ACEOF
9170
9171fi
9172
9173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009174{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9175echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9176if test "${libltdl_cv_sys_search_path+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009178else
9179 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009181{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9182echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009183if test -n "$libltdl_cv_sys_search_path"; then
9184 sys_search_path=
9185 for dir in $libltdl_cv_sys_search_path; do
9186 if test -z "$sys_search_path"; then
9187 sys_search_path="$dir"
9188 else
9189 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9190 fi
9191 done
9192
9193cat >>confdefs.h <<_ACEOF
9194#define LTDL_SYSSEARCHPATH "$sys_search_path"
9195_ACEOF
9196
9197fi
9198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009199{ echo "$as_me:$LINENO: checking for objdir" >&5
9200echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9201if test "${libltdl_cv_objdir+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009203else
9204 libltdl_cv_objdir="$objdir"
9205 if test -n "$objdir"; then
9206 :
9207 else
9208 rm -f .libs 2>/dev/null
9209 mkdir .libs 2>/dev/null
9210 if test -d .libs; then
9211 libltdl_cv_objdir=.libs
9212 else
9213 # MS-DOS does not allow filenames that begin with a dot.
9214 libltdl_cv_objdir=_libs
9215 fi
9216 rmdir .libs 2>/dev/null
9217 fi
9218
9219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009220{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9221echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222
9223cat >>confdefs.h <<_ACEOF
9224#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9225_ACEOF
9226
9227
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228
9229
9230
9231
9232# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009233{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9234echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9235if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237else
9238
9239# These are sane defaults that work on at least a few old systems.
9240# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9241
9242# Character class describing NM global symbol codes.
9243symcode='[BCDEGRST]'
9244
9245# Regexp to match symbols that can be accessed directly from C.
9246sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9247
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248# Transform an extracted symbol line into a proper C declaration
9249lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9250
9251# Transform an extracted symbol line into symbol name and symbol address
9252lt_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'"
9253
9254# Define system-specific variables.
9255case $host_os in
9256aix*)
9257 symcode='[BCDT]'
9258 ;;
9259cygwin* | mingw* | pw32*)
9260 symcode='[ABCDGISTW]'
9261 ;;
9262hpux*) # Its linker distinguishes data from code symbols
9263 if test "$host_cpu" = ia64; then
9264 symcode='[ABCDEGRST]'
9265 fi
9266 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9267 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'"
9268 ;;
9269linux*)
9270 if test "$host_cpu" = ia64; then
9271 symcode='[ABCDGIRSTW]'
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9273 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'"
9274 fi
9275 ;;
9276irix* | nonstopux*)
9277 symcode='[BCDEGRST]'
9278 ;;
9279osf*)
9280 symcode='[BCDEGQRST]'
9281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009282solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283 symcode='[BDRT]'
9284 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009285sco3.2v5*)
9286 symcode='[DT]'
9287 ;;
9288sysv4.2uw2*)
9289 symcode='[DT]'
9290 ;;
9291sysv5* | sco5v6* | unixware* | OpenUNIX*)
9292 symcode='[ABDT]'
9293 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009294sysv4)
9295 symcode='[DFNSTU]'
9296 ;;
9297esac
9298
9299# Handle CRLF in mingw tool chain
9300opt_cr=
9301case $build_os in
9302mingw*)
9303 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9304 ;;
9305esac
9306
9307# If we're using GNU nm, then use its standard symbol codes.
9308case `$NM -V 2>&1` in
9309*GNU* | *'with BFD'*)
9310 symcode='[ABCDGIRSTW]' ;;
9311esac
9312
9313# Try without a prefix undercore, then with it.
9314for ac_symprfx in "" "_"; do
9315
Reid Spencera773bd52006-08-04 18:18:08 +00009316 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9317 symxfrm="\\1 $ac_symprfx\\2 \\2"
9318
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009320 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 +00009321
9322 # Check to see that the pipe works correctly.
9323 pipe_works=no
9324
9325 rm -f conftest*
9326 cat > conftest.$ac_ext <<EOF
9327#ifdef __cplusplus
9328extern "C" {
9329#endif
9330char nm_test_var;
9331void nm_test_func(){}
9332#ifdef __cplusplus
9333}
9334#endif
9335int main(){nm_test_var='a';nm_test_func();return(0);}
9336EOF
9337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339 (eval $ac_compile) 2>&5
9340 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343 # Now try to grab the symbols.
9344 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345 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 +00009346 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9347 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350 # Try sorting and uniquifying the output.
9351 if sort "$nlist" | uniq > "$nlist"T; then
9352 mv -f "$nlist"T "$nlist"
9353 else
9354 rm -f "$nlist"T
9355 fi
9356
9357 # Make sure that we snagged all the symbols we need.
9358 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9359 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9360 cat <<EOF > conftest.$ac_ext
9361#ifdef __cplusplus
9362extern "C" {
9363#endif
9364
9365EOF
9366 # Now generate the symbol file.
9367 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9368
9369 cat <<EOF >> conftest.$ac_ext
9370#if defined (__STDC__) && __STDC__
9371# define lt_ptr_t void *
9372#else
9373# define lt_ptr_t char *
9374# define const
9375#endif
9376
9377/* The mapping between symbol names and symbols. */
9378const struct {
9379 const char *name;
9380 lt_ptr_t address;
9381}
9382lt_preloaded_symbols[] =
9383{
9384EOF
9385 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9386 cat <<\EOF >> conftest.$ac_ext
9387 {0, (lt_ptr_t) 0}
9388};
9389
9390#ifdef __cplusplus
9391}
9392#endif
9393EOF
9394 # Now try linking the two files.
9395 mv conftest.$ac_objext conftstm.$ac_objext
9396 lt_save_LIBS="$LIBS"
9397 lt_save_CFLAGS="$CFLAGS"
9398 LIBS="conftstm.$ac_objext"
9399 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401 (eval $ac_link) 2>&5
9402 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405 pipe_works=yes
9406 fi
9407 LIBS="$lt_save_LIBS"
9408 CFLAGS="$lt_save_CFLAGS"
9409 else
9410 echo "cannot find nm_test_func in $nlist" >&5
9411 fi
9412 else
9413 echo "cannot find nm_test_var in $nlist" >&5
9414 fi
9415 else
9416 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9417 fi
9418 else
9419 echo "$progname: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 fi
9422 rm -f conftest* conftst*
9423
9424 # Do not use the global_symbol_pipe unless it works.
9425 if test "$pipe_works" = yes; then
9426 break
9427 else
9428 lt_cv_sys_global_symbol_pipe=
9429 fi
9430done
9431
9432fi
9433
9434if test -z "$lt_cv_sys_global_symbol_pipe"; then
9435 lt_cv_sys_global_symbol_to_cdecl=
9436fi
9437if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438 { echo "$as_me:$LINENO: result: failed" >&5
9439echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009441 { echo "$as_me:$LINENO: result: ok" >&5
9442echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443fi
9444
9445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9447echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9448if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450else
9451 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9452 libltdl_cv_preloaded_symbols=yes
9453 else
9454 libltdl_cv_preloaded_symbols=no
9455 fi
9456
9457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009458{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9459echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009462cat >>confdefs.h <<\_ACEOF
9463#define HAVE_PRELOADED_SYMBOLS 1
9464_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465
9466fi
9467
9468LIBADD_DL=
9469
9470ac_ext=c
9471ac_cpp='$CPP $CPPFLAGS'
9472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9474ac_compiler_gnu=$ac_cv_c_compiler_gnu
9475
9476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009477{ echo "$as_me:$LINENO: checking for shl_load" >&5
9478echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9479if test "${ac_cv_func_shl_load+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
9488/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009492/* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char shl_load (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9496
9497#ifdef __STDC__
9498# include <limits.h>
9499#else
9500# include <assert.h>
9501#endif
9502
9503#undef shl_load
9504
9505/* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9508#ifdef __cplusplus
9509extern "C"
9510#endif
9511char shl_load ();
9512/* The GNU C library defines this for functions which it implements
9513 to always fail with ENOSYS. Some functions are actually named
9514 something starting with __ and the normal name is an alias. */
9515#if defined __stub_shl_load || defined __stub___shl_load
9516choke me
9517#endif
9518
9519int
9520main ()
9521{
9522return shl_load ();
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext conftest$ac_exeext
9528if { (ac_try="$ac_link"
9529case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532esac
9533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_link") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9542 { (case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545esac
9546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_try") 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555esac
9556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_try") 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_func_shl_load=yes
9562else
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_func_shl_load=no
9567fi
9568
9569rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571fi
9572{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9573echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9574if test $ac_cv_func_shl_load = yes; then
9575
9576cat >>confdefs.h <<\_ACEOF
9577#define HAVE_SHL_LOAD 1
9578_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009579
9580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009581 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9582echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9583if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585else
9586 ac_check_lib_save_LIBS=$LIBS
9587LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009588cat >conftest.$ac_ext <<_ACEOF
9589/* confdefs.h. */
9590_ACEOF
9591cat confdefs.h >>conftest.$ac_ext
9592cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009593/* end confdefs.h. */
9594
Reid Spencera773bd52006-08-04 18:18:08 +00009595/* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598#ifdef __cplusplus
9599extern "C"
9600#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601char shl_load ();
9602int
9603main ()
9604{
Reid Spencera773bd52006-08-04 18:18:08 +00009605return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606 ;
9607 return 0;
9608}
9609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610rm -f conftest.$ac_objext conftest$ac_exeext
9611if { (ac_try="$ac_link"
9612case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615esac
9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9625 { (case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_try") 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try='test -s conftest$ac_exeext'
9635 { (case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638esac
9639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_try") 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644 ac_cv_lib_dld_shl_load=yes
9645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651
Bill Wendlingebcceee2009-04-18 11:20:33 +00009652rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654LIBS=$ac_check_lib_save_LIBS
9655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009656{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9657echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9658if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009660cat >>confdefs.h <<\_ACEOF
9661#define HAVE_SHL_LOAD 1
9662_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663
9664 LIBADD_DL="$LIBADD_DL -ldld"
9665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009666 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9667echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9668if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670else
9671 ac_check_lib_save_LIBS=$LIBS
9672LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009673cat >conftest.$ac_ext <<_ACEOF
9674/* confdefs.h. */
9675_ACEOF
9676cat confdefs.h >>conftest.$ac_ext
9677cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678/* end confdefs.h. */
9679
Reid Spencera773bd52006-08-04 18:18:08 +00009680/* Override any GCC internal prototype to avoid an error.
9681 Use char because int might match the return type of a GCC
9682 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683#ifdef __cplusplus
9684extern "C"
9685#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686char dlopen ();
9687int
9688main ()
9689{
Reid Spencera773bd52006-08-04 18:18:08 +00009690return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009691 ;
9692 return 0;
9693}
9694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009695rm -f conftest.$ac_objext conftest$ac_exeext
9696if { (ac_try="$ac_link"
9697case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700esac
9701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723esac
9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_try") 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009729 ac_cv_lib_dl_dlopen=yes
9730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009731 echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009736
Bill Wendlingebcceee2009-04-18 11:20:33 +00009737rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009738 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009739LIBS=$ac_check_lib_save_LIBS
9740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009741{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9742echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9743if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009745cat >>confdefs.h <<\_ACEOF
9746#define HAVE_LIBDL 1
9747_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748
9749 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009751 cat >conftest.$ac_ext <<_ACEOF
9752/* confdefs.h. */
9753_ACEOF
9754cat confdefs.h >>conftest.$ac_ext
9755cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756/* end confdefs.h. */
9757#if HAVE_DLFCN_H
9758# include <dlfcn.h>
9759#endif
9760
9761int
9762main ()
9763{
9764dlopen(0, 0);
9765 ;
9766 return 0;
9767}
9768_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009769rm -f conftest.$ac_objext conftest$ac_exeext
9770if { (ac_try="$ac_link"
9771case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009804cat >>confdefs.h <<\_ACEOF
9805#define HAVE_LIBDL 1
9806_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807 libltdl_cv_func_dlopen="yes"
9808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9813echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9814if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816else
9817 ac_check_lib_save_LIBS=$LIBS
9818LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009819cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824/* end confdefs.h. */
9825
Reid Spencera773bd52006-08-04 18:18:08 +00009826/* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829#ifdef __cplusplus
9830extern "C"
9831#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832char dlopen ();
9833int
9834main ()
9835{
Reid Spencera773bd52006-08-04 18:18:08 +00009836return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837 ;
9838 return 0;
9839}
9840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (ac_try="$ac_link"
9843case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846esac
9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_try") 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875 ac_cv_lib_svld_dlopen=yes
9876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009877 echo "$as_me: failed program was:" >&5
9878sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009882
Bill Wendlingebcceee2009-04-18 11:20:33 +00009883rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009884 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885LIBS=$ac_check_lib_save_LIBS
9886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009887{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9888echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9889if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009891cat >>confdefs.h <<\_ACEOF
9892#define HAVE_LIBDL 1
9893_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894
9895 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009897 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9898echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9899if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901else
9902 ac_check_lib_save_LIBS=$LIBS
9903LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909/* end confdefs.h. */
9910
Reid Spencera773bd52006-08-04 18:18:08 +00009911/* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914#ifdef __cplusplus
9915extern "C"
9916#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917char dld_link ();
9918int
9919main ()
9920{
Reid Spencera773bd52006-08-04 18:18:08 +00009921return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009922 ;
9923 return 0;
9924}
9925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009926rm -f conftest.$ac_objext conftest$ac_exeext
9927if { (ac_try="$ac_link"
9928case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_link") 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9941 { (case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944esac
9945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_try") 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try='test -s conftest$ac_exeext'
9951 { (case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_try") 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960 ac_cv_lib_dld_dld_link=yes
9961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009962 echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009967
Bill Wendlingebcceee2009-04-18 11:20:33 +00009968rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009969 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970LIBS=$ac_check_lib_save_LIBS
9971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009972{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9973echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9974if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976cat >>confdefs.h <<\_ACEOF
9977#define HAVE_DLD 1
9978_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979
9980 LIBADD_DL="$LIBADD_DL -ldld"
9981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009982 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9983echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9984if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986else
9987 cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
9993/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9995#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009997/* System header to define __stub macros and hopefully few prototypes,
9998 which can conflict with char _dyld_func_lookup (); below.
9999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10000 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010002#ifdef __STDC__
10003# include <limits.h>
10004#else
10005# include <assert.h>
10006#endif
10007
10008#undef _dyld_func_lookup
10009
10010/* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10013#ifdef __cplusplus
10014extern "C"
10015#endif
10016char _dyld_func_lookup ();
10017/* The GNU C library defines this for functions which it implements
10018 to always fail with ENOSYS. Some functions are actually named
10019 something starting with __ and the normal name is an alias. */
10020#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10021choke me
10022#endif
10023
10024int
10025main ()
10026{
10027return _dyld_func_lookup ();
10028 ;
10029 return 0;
10030}
10031_ACEOF
10032rm -f conftest.$ac_objext conftest$ac_exeext
10033if { (ac_try="$ac_link"
10034case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
10061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 ac_cv_func__dyld_func_lookup=yes
10067else
10068 echo "$as_me: failed program was:" >&5
10069sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072fi
Reid Spencera773bd52006-08-04 18:18:08 +000010073
Bill Wendlingebcceee2009-04-18 11:20:33 +000010074rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075 conftest$ac_exeext conftest.$ac_ext
10076fi
10077{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10078echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10079if test $ac_cv_func__dyld_func_lookup = yes; then
10080
10081cat >>confdefs.h <<\_ACEOF
10082#define HAVE_DYLD 1
10083_ACEOF
10084
10085fi
10086
10087
10088fi
10089
10090
10091fi
10092
10093
10094fi
10095
10096rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098
10099fi
10100
10101
10102fi
10103
10104
10105fi
10106
10107
10108if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10109then
10110 lt_save_LIBS="$LIBS"
10111 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010112
10113for ac_func in dlerror
10114do
10115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121 cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h. */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h. */
10127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10129#define $ac_func innocuous_$ac_func
10130
10131/* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func (); below.
10133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134 <limits.h> exists even on freestanding compilers. */
10135
10136#ifdef __STDC__
10137# include <limits.h>
10138#else
10139# include <assert.h>
10140#endif
10141
10142#undef $ac_func
10143
10144/* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10147#ifdef __cplusplus
10148extern "C"
10149#endif
10150char $ac_func ();
10151/* The GNU C library defines this for functions which it implements
10152 to always fail with ENOSYS. Some functions are actually named
10153 something starting with __ and the normal name is an alias. */
10154#if defined __stub_$ac_func || defined __stub___$ac_func
10155choke me
10156#endif
10157
10158int
10159main ()
10160{
10161return $ac_func ();
10162 ;
10163 return 0;
10164}
10165_ACEOF
10166rm -f conftest.$ac_objext conftest$ac_exeext
10167if { (ac_try="$ac_link"
10168case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_link") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10181 { (case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194esac
10195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_try") 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 eval "$as_ac_var=yes"
10201else
10202 echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 eval "$as_ac_var=no"
10206fi
10207
10208rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210fi
10211ac_res=`eval echo '${'$as_ac_var'}'`
10212 { echo "$as_me:$LINENO: result: $ac_res" >&5
10213echo "${ECHO_T}$ac_res" >&6; }
10214if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217_ACEOF
10218
10219fi
10220done
10221
10222 LIBS="$lt_save_LIBS"
10223fi
10224ac_ext=c
10225ac_cpp='$CPP $CPPFLAGS'
10226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10228ac_compiler_gnu=$ac_cv_c_compiler_gnu
10229
10230
10231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010232{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10233echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10234if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236else
10237 ac_cv_sys_symbol_underscore=no
10238 cat > conftest.$ac_ext <<EOF
10239void nm_test_func(){}
10240int main(){nm_test_func;return 0;}
10241EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243 (eval $ac_compile) 2>&5
10244 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247 # Now try to grab the symbols.
10248 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010249 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 +000010250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10251 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010254 # See whether the symbols have a leading underscore.
10255 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10256 ac_cv_sys_symbol_underscore=yes
10257 else
10258 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10259 :
10260 else
10261 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10262 fi
10263 fi
10264 else
10265 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10266 fi
10267 else
10268 echo "configure: failed program was:" >&5
10269 cat conftest.c >&5
10270 fi
10271 rm -rf conftest*
10272
10273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010274{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10275echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276
10277
10278if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10279 if test x"$libltdl_cv_func_dlopen" = xyes ||
10280 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010281 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10282echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10283if test "${libltdl_cv_need_uscore+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285else
10286 libltdl_cv_need_uscore=unknown
10287 save_LIBS="$LIBS"
10288 LIBS="$LIBS $LIBADD_DL"
10289 if test "$cross_compiling" = yes; then :
10290 libltdl_cv_need_uscore=cross
10291else
10292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293 lt_status=$lt_dlunknown
10294 cat > conftest.$ac_ext <<EOF
Sebastian Pop94a935f2012-08-27 23:05:06 +000010295#line 10295 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296#include "confdefs.h"
10297
10298#if HAVE_DLFCN_H
10299#include <dlfcn.h>
10300#endif
10301
10302#include <stdio.h>
10303
10304#ifdef RTLD_GLOBAL
10305# define LT_DLGLOBAL RTLD_GLOBAL
10306#else
10307# ifdef DL_GLOBAL
10308# define LT_DLGLOBAL DL_GLOBAL
10309# else
10310# define LT_DLGLOBAL 0
10311# endif
10312#endif
10313
10314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315 find out it does not work in some platform. */
10316#ifndef LT_DLLAZY_OR_NOW
10317# ifdef RTLD_LAZY
10318# define LT_DLLAZY_OR_NOW RTLD_LAZY
10319# else
10320# ifdef DL_LAZY
10321# define LT_DLLAZY_OR_NOW DL_LAZY
10322# else
10323# ifdef RTLD_NOW
10324# define LT_DLLAZY_OR_NOW RTLD_NOW
10325# else
10326# ifdef DL_NOW
10327# define LT_DLLAZY_OR_NOW DL_NOW
10328# else
10329# define LT_DLLAZY_OR_NOW 0
10330# endif
10331# endif
10332# endif
10333# endif
10334#endif
10335
10336#ifdef __cplusplus
10337extern "C" void exit (int);
10338#endif
10339
10340void fnord() { int i=42;}
10341int main ()
10342{
10343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344 int status = $lt_dlunknown;
10345
10346 if (self)
10347 {
10348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350 /* dlclose (self); */
10351 }
Reid Spencera773bd52006-08-04 18:18:08 +000010352 else
10353 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010354
10355 exit (status);
10356}
10357EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359 (eval $ac_link) 2>&5
10360 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010363 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364 lt_status=$?
10365 case x$lt_status in
10366 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10367 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010368 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 esac
10370 else :
10371 # compilation failed
10372
10373 fi
10374fi
10375rm -fr conftest*
10376
10377 LIBS="$save_LIBS"
10378
10379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010380{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10381echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 fi
10383fi
10384
10385if test x"$libltdl_cv_need_uscore" = xyes; then
10386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010387cat >>confdefs.h <<\_ACEOF
10388#define NEED_USCORE 1
10389_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390
10391fi
10392
10393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010394{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10395echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10396if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398else
10399 # PORTME does your system automatically load deplibs for dlopen?
10400 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10401 # For now, we just catch OSes we know something about -- in the
10402 # future, we'll try test this programmatically.
10403 libltdl_cv_sys_dlopen_deplibs=unknown
10404 case "$host_os" in
10405 aix3*|aix4.1.*|aix4.2.*)
10406 # Unknown whether this is true for these versions of AIX, but
10407 # we want this `case' here to explicitly catch those versions.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10409 ;;
10410 aix[45]*)
10411 libltdl_cv_sys_dlopen_deplibs=yes
10412 ;;
10413 darwin*)
10414 # Assuming the user has installed a libdl from somewhere, this is true
10415 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10416 libltdl_cv_sys_dlopen_deplibs=yes
10417 ;;
10418 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10419 # GNU and its variants, using gnu ld.so (Glibc)
10420 libltdl_cv_sys_dlopen_deplibs=yes
10421 ;;
10422 hpux10*|hpux11*)
10423 libltdl_cv_sys_dlopen_deplibs=yes
10424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010425 interix*)
10426 libltdl_cv_sys_dlopen_deplibs=yes
10427 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428 irix[12345]*|irix6.[01]*)
10429 # Catch all versions of IRIX before 6.2, and indicate that we don't
10430 # know how it worked for any of those versions.
10431 libltdl_cv_sys_dlopen_deplibs=unknown
10432 ;;
10433 irix*)
10434 # The case above catches anything before 6.2, and it's known that
10435 # at 6.2 and later dlopen does load deplibs.
10436 libltdl_cv_sys_dlopen_deplibs=yes
10437 ;;
10438 netbsd*)
10439 libltdl_cv_sys_dlopen_deplibs=yes
10440 ;;
10441 openbsd*)
10442 libltdl_cv_sys_dlopen_deplibs=yes
10443 ;;
10444 osf[1234]*)
10445 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10446 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010447 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448 libltdl_cv_sys_dlopen_deplibs=no
10449 ;;
10450 osf5.0|osf5.0a|osf5.1)
10451 # dlopen *does* load deplibs and with the right loader patch applied
10452 # it even uses RPATH in a shared library to search for shared objects
10453 # that the library depends on, but there's no easy way to know if that
10454 # patch is installed. Since this is the case, all we can really
10455 # say is unknown -- it depends on the patch being installed. If
10456 # it is, this changes to `yes'. Without it, it would be `no'.
10457 libltdl_cv_sys_dlopen_deplibs=unknown
10458 ;;
10459 osf*)
10460 # the two cases above should catch all versions of osf <= 5.1. Read
10461 # the comments above for what we know about them.
10462 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10463 # is used to find them so we can finally say `yes'.
10464 libltdl_cv_sys_dlopen_deplibs=yes
10465 ;;
10466 solaris*)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10470 libltdl_cv_sys_dlopen_deplibs=yes
10471 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472 esac
10473
10474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010475{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10476echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010479cat >>confdefs.h <<\_ACEOF
10480#define LTDL_DLOPEN_DEPLIBS 1
10481_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482
10483fi
10484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010485
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010487do
10488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494fi
10495ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497echo "${ECHO_T}$ac_res" >&6; }
10498else
10499 # Is the header compilable?
10500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508$ac_includes_default
10509#include <$ac_header>
10510_ACEOF
10511rm -f conftest.$ac_objext
10512if { (ac_try="$ac_compile"
10513case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516esac
10517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10526 { (case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529esac
10530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_try") 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_header_compiler=yes
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_header_compiler=no
10551fi
10552
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555echo "${ECHO_T}$ac_header_compiler" >&6; }
10556
10557# Is the header present?
10558{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566#include <$ac_header>
10567_ACEOF
10568if { (ac_try="$ac_cpp conftest.$ac_ext"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_c_preproc_warn_flag
10583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10584 else
10585 ac_cpp_err=
10586 fi
10587else
10588 ac_cpp_err=yes
10589fi
10590if test -z "$ac_cpp_err"; then
10591 ac_header_preproc=yes
10592else
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_header_preproc=no
10597fi
10598
10599rm -f conftest.err conftest.$ac_ext
10600{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10601echo "${ECHO_T}$ac_header_preproc" >&6; }
10602
10603# So? What about this header?
10604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10605 yes:no: )
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10610 ac_header_preproc=yes
10611 ;;
10612 no:yes:* )
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10625 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010626## ------------------------------------ ##
10627## Report this to http://llvm.org/bugs/ ##
10628## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010629_ASBOX
10630 ) | sed "s/^/$as_me: WARNING: /" >&2
10631 ;;
10632esac
10633{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637else
10638 eval "$as_ac_Header=\$ac_header_preproc"
10639fi
10640ac_res=`eval echo '${'$as_ac_Header'}'`
10641 { echo "$as_me:$LINENO: result: $ac_res" >&5
10642echo "${ECHO_T}$ac_res" >&6; }
10643
10644fi
10645if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648_ACEOF
10649
10650fi
10651
10652done
10653
10654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010655{ echo "$as_me:$LINENO: checking for error_t" >&5
10656echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10657if test "${ac_cv_type_error_t+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
10666#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667# include <argz.h>
10668#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669
10670typedef error_t ac__type_new_;
10671int
10672main ()
10673{
10674if ((ac__type_new_ *) 0)
10675 return 0;
10676if (sizeof (ac__type_new_))
10677 return 0;
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682rm -f conftest.$ac_objext
10683if { (ac_try="$ac_compile"
10684case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_type_error_t=yes
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_cv_type_error_t=no
10722fi
10723
10724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725fi
10726{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10727echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10728if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729
10730cat >>confdefs.h <<_ACEOF
10731#define HAVE_ERROR_T 1
10732_ACEOF
10733
10734
10735else
10736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737cat >>confdefs.h <<\_ACEOF
10738#define error_t int
10739_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740
10741fi
10742
10743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010744
10745
10746
10747
10748
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750do
10751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10752{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10754if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765#define $ac_func innocuous_$ac_func
10766
10767/* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char $ac_func (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10771
10772#ifdef __STDC__
10773# include <limits.h>
10774#else
10775# include <assert.h>
10776#endif
10777
10778#undef $ac_func
10779
10780/* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783#ifdef __cplusplus
10784extern "C"
10785#endif
10786char $ac_func ();
10787/* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790#if defined __stub_$ac_func || defined __stub___$ac_func
10791choke me
10792#endif
10793
10794int
10795main ()
10796{
10797return $ac_func ();
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
10803if { (ac_try="$ac_link"
10804case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest$ac_exeext'
10827 { (case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_try") 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 eval "$as_ac_var=yes"
10837else
10838 echo "$as_me: failed program was:" >&5
10839sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 eval "$as_ac_var=no"
10842fi
10843
10844rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846fi
10847ac_res=`eval echo '${'$as_ac_var'}'`
10848 { echo "$as_me:$LINENO: result: $ac_res" >&5
10849echo "${ECHO_T}$ac_res" >&6; }
10850if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853_ACEOF
10854
10855fi
10856done
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010877
10878
10879
10880
10881
10882
10883
10884
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10886 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010887do
10888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894fi
10895ac_res=`eval echo '${'$as_ac_Header'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897echo "${ECHO_T}$ac_res" >&6; }
10898else
10899 # Is the header compilable?
10900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10902cat >conftest.$ac_ext <<_ACEOF
10903/* confdefs.h. */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h. */
10908$ac_includes_default
10909#include <$ac_header>
10910_ACEOF
10911rm -f conftest.$ac_objext
10912if { (ac_try="$ac_compile"
10913case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929esac
10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939esac
10940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_try") 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_header_compiler=yes
10946else
10947 echo "$as_me: failed program was:" >&5
10948sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 ac_header_compiler=no
10951fi
10952
10953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10955echo "${ECHO_T}$ac_header_compiler" >&6; }
10956
10957# Is the header present?
10958{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10960cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h. */
10966#include <$ac_header>
10967_ACEOF
10968if { (ac_try="$ac_cpp conftest.$ac_ext"
10969case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972esac
10973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev/null; then
10981 if test -s conftest.err; then
10982 ac_cpp_err=$ac_c_preproc_warn_flag
10983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10984 else
10985 ac_cpp_err=
10986 fi
10987else
10988 ac_cpp_err=yes
10989fi
10990if test -z "$ac_cpp_err"; then
10991 ac_header_preproc=yes
10992else
10993 echo "$as_me: failed program was:" >&5
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
10996 ac_header_preproc=no
10997fi
10998
10999rm -f conftest.err conftest.$ac_ext
11000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11001echo "${ECHO_T}$ac_header_preproc" >&6; }
11002
11003# So? What about this header?
11004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11005 yes:no: )
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11010 ac_header_preproc=yes
11011 ;;
11012 no:yes:* )
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11025 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011026## ------------------------------------ ##
11027## Report this to http://llvm.org/bugs/ ##
11028## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011029_ASBOX
11030 ) | sed "s/^/$as_me: WARNING: /" >&2
11031 ;;
11032esac
11033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 eval "$as_ac_Header=\$ac_header_preproc"
11039fi
11040ac_res=`eval echo '${'$as_ac_Header'}'`
11041 { echo "$as_me:$LINENO: result: $ac_res" >&5
11042echo "${ECHO_T}$ac_res" >&6; }
11043
11044fi
11045if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048_ACEOF
11049
11050fi
11051
11052done
11053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011054
11055
11056
11057
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011059do
11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066fi
11067ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069echo "${ECHO_T}$ac_res" >&6; }
11070else
11071 # Is the header compilable?
11072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080$ac_includes_default
11081#include <$ac_header>
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (ac_try="$ac_compile"
11085case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 ac_header_compiler=no
11123fi
11124
11125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127echo "${ECHO_T}$ac_header_compiler" >&6; }
11128
11129# Is the header present?
11130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138#include <$ac_header>
11139_ACEOF
11140if { (ac_try="$ac_cpp conftest.$ac_ext"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11156 else
11157 ac_cpp_err=
11158 fi
11159else
11160 ac_cpp_err=yes
11161fi
11162if test -z "$ac_cpp_err"; then
11163 ac_header_preproc=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 ac_header_preproc=no
11169fi
11170
11171rm -f conftest.err conftest.$ac_ext
11172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173echo "${ECHO_T}$ac_header_preproc" >&6; }
11174
11175# So? What about this header?
11176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177 yes:no: )
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11183 ;;
11184 no:yes:* )
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011198## ------------------------------------ ##
11199## Report this to http://llvm.org/bugs/ ##
11200## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011201_ASBOX
11202 ) | sed "s/^/$as_me: WARNING: /" >&2
11203 ;;
11204esac
11205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 eval "$as_ac_Header=\$ac_header_preproc"
11211fi
11212ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214echo "${ECHO_T}$ac_res" >&6; }
11215
11216fi
11217if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220_ACEOF
11221
11222fi
11223
11224done
11225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226
11227
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011229do
11230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236fi
11237ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239echo "${ECHO_T}$ac_res" >&6; }
11240else
11241 # Is the header compilable?
11242{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11244cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250$ac_includes_default
11251#include <$ac_header>
11252_ACEOF
11253rm -f conftest.$ac_objext
11254if { (ac_try="$ac_compile"
11255case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271esac
11272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_try") 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_header_compiler=yes
11288else
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 ac_header_compiler=no
11293fi
11294
11295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11297echo "${ECHO_T}$ac_header_compiler" >&6; }
11298
11299# Is the header present?
11300{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11302cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308#include <$ac_header>
11309_ACEOF
11310if { (ac_try="$ac_cpp conftest.$ac_ext"
11311case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314esac
11315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag
11325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11326 else
11327 ac_cpp_err=
11328 fi
11329else
11330 ac_cpp_err=yes
11331fi
11332if test -z "$ac_cpp_err"; then
11333 ac_header_preproc=yes
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 ac_header_preproc=no
11339fi
11340
11341rm -f conftest.err conftest.$ac_ext
11342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11343echo "${ECHO_T}$ac_header_preproc" >&6; }
11344
11345# So? What about this header?
11346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 yes:no: )
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11352 ac_header_preproc=yes
11353 ;;
11354 no:yes:* )
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011368## ------------------------------------ ##
11369## Report this to http://llvm.org/bugs/ ##
11370## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011371_ASBOX
11372 ) | sed "s/^/$as_me: WARNING: /" >&2
11373 ;;
11374esac
11375{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380 eval "$as_ac_Header=\$ac_header_preproc"
11381fi
11382ac_res=`eval echo '${'$as_ac_Header'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384echo "${ECHO_T}$ac_res" >&6; }
11385
11386fi
11387if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390_ACEOF
11391 break
11392fi
11393
11394done
11395
11396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011397
11398
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011400do
11401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11402{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11404if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
11413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11415#define $ac_func innocuous_$ac_func
11416
11417/* System header to define __stub macros and hopefully few prototypes,
11418 which can conflict with char $ac_func (); below.
11419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11420 <limits.h> exists even on freestanding compilers. */
11421
11422#ifdef __STDC__
11423# include <limits.h>
11424#else
11425# include <assert.h>
11426#endif
11427
11428#undef $ac_func
11429
11430/* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433#ifdef __cplusplus
11434extern "C"
11435#endif
11436char $ac_func ();
11437/* The GNU C library defines this for functions which it implements
11438 to always fail with ENOSYS. Some functions are actually named
11439 something starting with __ and the normal name is an alias. */
11440#if defined __stub_$ac_func || defined __stub___$ac_func
11441choke me
11442#endif
11443
11444int
11445main ()
11446{
11447return $ac_func ();
11448 ;
11449 return 0;
11450}
11451_ACEOF
11452rm -f conftest.$ac_objext conftest$ac_exeext
11453if { (ac_try="$ac_link"
11454case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_link") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11470esac
11471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 eval "$as_ac_var=yes"
11487else
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 eval "$as_ac_var=no"
11492fi
11493
11494rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496fi
11497ac_res=`eval echo '${'$as_ac_var'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499echo "${ECHO_T}$ac_res" >&6; }
11500if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011503_ACEOF
11504 break
11505fi
11506done
11507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011508
11509
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511do
11512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11513{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11515if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517else
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11526#define $ac_func innocuous_$ac_func
11527
11528/* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char $ac_func (); below.
11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531 <limits.h> exists even on freestanding compilers. */
11532
11533#ifdef __STDC__
11534# include <limits.h>
11535#else
11536# include <assert.h>
11537#endif
11538
11539#undef $ac_func
11540
11541/* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11544#ifdef __cplusplus
11545extern "C"
11546#endif
11547char $ac_func ();
11548/* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551#if defined __stub_$ac_func || defined __stub___$ac_func
11552choke me
11553#endif
11554
11555int
11556main ()
11557{
11558return $ac_func ();
11559 ;
11560 return 0;
11561}
11562_ACEOF
11563rm -f conftest.$ac_objext conftest$ac_exeext
11564if { (ac_try="$ac_link"
11565case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568esac
11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_link") 2>conftest.er1
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591esac
11592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_try") 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 eval "$as_ac_var=yes"
11598else
11599 echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 eval "$as_ac_var=no"
11603fi
11604
11605rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607fi
11608ac_res=`eval echo '${'$as_ac_var'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610echo "${ECHO_T}$ac_res" >&6; }
11611if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614_ACEOF
11615 break
11616fi
11617done
11618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011619
11620
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011622do
11623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11637#define $ac_func innocuous_$ac_func
11638
11639/* System header to define __stub macros and hopefully few prototypes,
11640 which can conflict with char $ac_func (); below.
11641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11642 <limits.h> exists even on freestanding compilers. */
11643
11644#ifdef __STDC__
11645# include <limits.h>
11646#else
11647# include <assert.h>
11648#endif
11649
11650#undef $ac_func
11651
11652/* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11655#ifdef __cplusplus
11656extern "C"
11657#endif
11658char $ac_func ();
11659/* The GNU C library defines this for functions which it implements
11660 to always fail with ENOSYS. Some functions are actually named
11661 something starting with __ and the normal name is an alias. */
11662#if defined __stub_$ac_func || defined __stub___$ac_func
11663choke me
11664#endif
11665
11666int
11667main ()
11668{
11669return $ac_func ();
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext conftest$ac_exeext
11675if { (ac_try="$ac_link"
11676case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_link") 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692esac
11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11702esac
11703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_try") 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 eval "$as_ac_var=yes"
11709else
11710 echo "$as_me: failed program was:" >&5
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 eval "$as_ac_var=no"
11714fi
11715
11716rm -f core conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11718fi
11719ac_res=`eval echo '${'$as_ac_var'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721echo "${ECHO_T}$ac_res" >&6; }
11722if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725_ACEOF
11726 break
11727fi
11728done
11729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011730
11731
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011733do
11734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11735{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11748#define $ac_func innocuous_$ac_func
11749
11750/* System header to define __stub macros and hopefully few prototypes,
11751 which can conflict with char $ac_func (); below.
11752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 <limits.h> exists even on freestanding compilers. */
11754
11755#ifdef __STDC__
11756# include <limits.h>
11757#else
11758# include <assert.h>
11759#endif
11760
11761#undef $ac_func
11762
11763/* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
11769char $ac_func ();
11770/* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773#if defined __stub_$ac_func || defined __stub___$ac_func
11774choke me
11775#endif
11776
11777int
11778main ()
11779{
11780return $ac_func ();
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext conftest$ac_exeext
11786if { (ac_try="$ac_link"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_link") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 eval "$as_ac_var=yes"
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 eval "$as_ac_var=no"
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829fi
11830ac_res=`eval echo '${'$as_ac_var'}'`
11831 { echo "$as_me:$LINENO: result: $ac_res" >&5
11832echo "${ECHO_T}$ac_res" >&6; }
11833if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836_ACEOF
11837
11838fi
11839done
11840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011841
11842
11843
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011845do
11846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11860#define $ac_func innocuous_$ac_func
11861
11862/* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char $ac_func (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11866
11867#ifdef __STDC__
11868# include <limits.h>
11869#else
11870# include <assert.h>
11871#endif
11872
11873#undef $ac_func
11874
11875/* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11878#ifdef __cplusplus
11879extern "C"
11880#endif
11881char $ac_func ();
11882/* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885#if defined __stub_$ac_func || defined __stub___$ac_func
11886choke me
11887#endif
11888
11889int
11890main ()
11891{
11892return $ac_func ();
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext conftest$ac_exeext
11898if { (ac_try="$ac_link"
11899case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11912 { (case "(($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_try") 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_var=yes"
11932else
11933 echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 eval "$as_ac_var=no"
11937fi
11938
11939rm -f core conftest.err conftest.$ac_objext \
11940 conftest$ac_exeext conftest.$ac_ext
11941fi
11942ac_res=`eval echo '${'$as_ac_var'}'`
11943 { echo "$as_me:$LINENO: result: $ac_res" >&5
11944echo "${ECHO_T}$ac_res" >&6; }
11945if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948_ACEOF
11949
11950fi
11951done
11952
11953
Douglas Gregor01746742009-05-11 18:05:52 +000011954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011955{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11956echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011957
Reid Spencer86901802004-12-08 23:07:27 +000011958ICC=no
11959IXX=no
11960case $CC in
11961 icc*|icpc*)
11962 ICC=yes
11963 IXX=yes
11964 ;;
11965 *)
11966 ;;
11967esac
11968
Duraid Madina937c60a2006-02-15 07:57:42 +000011969if test "$GCC" != "yes" && test "$ICC" != "yes"
11970then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011971 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11972echo "$as_me: error: gcc|icc required but not found" >&2;}
11973 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011974fi
11975
11976if test "$GXX" != "yes" && test "$IXX" != "yes"
11977then
Eric Christopher73e36da2010-12-08 02:02:14 +000011978 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11979echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011980 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011981fi
11982
Reid Spencer86901802004-12-08 23:07:27 +000011983if test "$GCC" = "yes"
11984then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011985 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011986#if !defined(__GNUC__) || __GNUC__ < 3
11987#error Unsupported GCC version
11988#endif
11989
11990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011991rm -f conftest.$ac_objext
11992if { (ac_try="$ac_compile"
11993case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_compile") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009esac
12010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest.$ac_objext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12031echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12032 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012034
Chris Lattner399c7c72008-02-05 19:43:53 +000012035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012036fi
12037
12038if test -z "$llvm_cv_gnu_make_command"
12039then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012040 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12041echo "$as_me: error: GNU Make required but not found" >&2;}
12042 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012043fi
12044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012045{ echo "$as_me:$LINENO: result: ok" >&5
12046echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012048{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12049echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012050NO_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 +000012051
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012052NO_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 +000012053
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012054COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12055
12056{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12057echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012058
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012060
12061{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12062echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12063if test "${ac_cv_lib_m_sin+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012065else
12066 ac_check_lib_save_LIBS=$LIBS
12067LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012068cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h. */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012073/* end confdefs.h. */
12074
Reid Spencera773bd52006-08-04 18:18:08 +000012075/* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012078#ifdef __cplusplus
12079extern "C"
12080#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012081char sin ();
12082int
12083main ()
12084{
Reid Spencera773bd52006-08-04 18:18:08 +000012085return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012086 ;
12087 return 0;
12088}
12089_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108esac
12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012124 ac_cv_lib_m_sin=yes
12125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012131
Bill Wendlingebcceee2009-04-18 11:20:33 +000012132rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012133 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012134LIBS=$ac_check_lib_save_LIBS
12135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012136{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12137echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12138if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012139 cat >>confdefs.h <<_ACEOF
12140#define HAVE_LIBM 1
12141_ACEOF
12142
12143 LIBS="-lm $LIBS"
12144
12145fi
12146
Jeff Cohen28783c32007-01-12 18:22:38 +000012147if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148
12149{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12150echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12151if test "${ac_cv_lib_imagehlp_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="-limagehlp $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_imagehlp_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_imagehlp_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_imagehlp_main" >&5
12219echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12220if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012221 cat >>confdefs.h <<_ACEOF
12222#define HAVE_LIBIMAGEHLP 1
12223_ACEOF
12224
12225 LIBS="-limagehlp $LIBS"
12226
12227fi
12228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229
12230{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12231echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12232if test "${ac_cv_lib_psapi_main+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012234else
12235 ac_check_lib_save_LIBS=$LIBS
12236LIBS="-lpsapi $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
Reid Spencer484fc8e2006-06-01 16:55:59 +000012242/* end confdefs.h. */
12243
Reid Spencer48fdf912006-06-01 19:03:21 +000012244
Reid Spencer484fc8e2006-06-01 16:55:59 +000012245int
12246main ()
12247{
Reid Spencera773bd52006-08-04 18:18:08 +000012248return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012249 ;
12250 return 0;
12251}
12252_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253rm -f conftest.$ac_objext conftest$ac_exeext
12254if { (ac_try="$ac_link"
12255case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258esac
12259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_link") 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12268 { (case "(($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_try") 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012287 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012289 echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012294
Bill Wendlingebcceee2009-04-18 11:20:33 +000012295rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012296 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012297LIBS=$ac_check_lib_save_LIBS
12298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012299{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12300echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12301if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012302 cat >>confdefs.h <<_ACEOF
12303#define HAVE_LIBPSAPI 1
12304_ACEOF
12305
12306 LIBS="-lpsapi $LIBS"
12307
12308fi
12309
12310fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012312{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12313echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12314if test "${ac_cv_search_dlopen+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012316else
12317 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318cat >conftest.$ac_ext <<_ACEOF
12319/* confdefs.h. */
12320_ACEOF
12321cat confdefs.h >>conftest.$ac_ext
12322cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012324
Reid Spencera773bd52006-08-04 18:18:08 +000012325/* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012328#ifdef __cplusplus
12329extern "C"
12330#endif
John Criswell7a73b802003-06-30 21:59:07 +000012331char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012332int
12333main ()
12334{
Reid Spencera773bd52006-08-04 18:18:08 +000012335return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012336 ;
12337 return 0;
12338}
12339_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012340for ac_lib in '' dl; do
12341 if test -z "$ac_lib"; then
12342 ac_res="none required"
12343 else
12344 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012346 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012347 rm -f conftest.$ac_objext conftest$ac_exeext
12348if { (ac_try="$ac_link"
12349case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
12353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12362 { (case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365esac
12366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_try") 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375esac
12376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_try") 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012381 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012382else
12383 echo "$as_me: failed program was:" >&5
12384sed 's/^/| /' conftest.$ac_ext >&5
12385
12386
John Criswell7a73b802003-06-30 21:59:07 +000012387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012388
Bill Wendlingebcceee2009-04-18 11:20:33 +000012389rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390 conftest$ac_exeext
12391 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012392 break
John Criswell7a73b802003-06-30 21:59:07 +000012393fi
Reid Spencera773bd52006-08-04 18:18:08 +000012394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012395if test "${ac_cv_search_dlopen+set}" = set; then
12396 :
Reid Spencera773bd52006-08-04 18:18:08 +000012397else
12398 ac_cv_search_dlopen=no
12399fi
12400rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012401LIBS=$ac_func_search_save_LIBS
12402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012403{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12404echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012405ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409cat >>confdefs.h <<\_ACEOF
12410#define HAVE_DLOPEN 1
12411_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012412
12413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12415echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012416fi
12417
12418
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012419if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012420 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12421echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12422if test "${ac_cv_search_ffi_call+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012424else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012425 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012426cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012431/* end confdefs.h. */
12432
12433/* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436#ifdef __cplusplus
12437extern "C"
12438#endif
12439char ffi_call ();
12440int
12441main ()
12442{
12443return ffi_call ();
12444 ;
12445 return 0;
12446}
12447_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012448for ac_lib in '' ffi; do
12449 if test -z "$ac_lib"; then
12450 ac_res="none required"
12451 else
12452 ac_res=-l$ac_lib
12453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12454 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012455 rm -f conftest.$ac_objext conftest$ac_exeext
12456if { (ac_try="$ac_link"
12457case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12460esac
12461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_link") 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12470 { (case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12473esac
12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_try") 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483esac
12484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_try") 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012489 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490else
12491 echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
12494
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012496
Bill Wendlingebcceee2009-04-18 11:20:33 +000012497rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498 conftest$ac_exeext
12499 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012500 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012501fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012502done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012503if test "${ac_cv_search_ffi_call+set}" = set; then
12504 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012505else
12506 ac_cv_search_ffi_call=no
12507fi
12508rm conftest.$ac_ext
12509LIBS=$ac_func_search_save_LIBS
12510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012511{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12512echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012513ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517cat >>confdefs.h <<\_ACEOF
12518#define HAVE_FFI_CALL 1
12519_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012520
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012521else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012522 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12523echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12524 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012525fi
12526
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012527fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012529{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12530echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12531if test "${ac_cv_search_mallinfo+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012533else
12534 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012535cat >conftest.$ac_ext <<_ACEOF
12536/* confdefs.h. */
12537_ACEOF
12538cat confdefs.h >>conftest.$ac_ext
12539cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012540/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012541
Reid Spencera773bd52006-08-04 18:18:08 +000012542/* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012545#ifdef __cplusplus
12546extern "C"
12547#endif
John Criswell7a73b802003-06-30 21:59:07 +000012548char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012549int
12550main ()
12551{
Reid Spencera773bd52006-08-04 18:18:08 +000012552return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012553 ;
12554 return 0;
12555}
12556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012557for ac_lib in '' malloc; do
12558 if test -z "$ac_lib"; then
12559 ac_res="none required"
12560 else
12561 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012563 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564 rm -f conftest.$ac_objext conftest$ac_exeext
12565if { (ac_try="$ac_link"
12566case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569esac
12570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest$ac_exeext'
12589 { (case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592esac
12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_try") 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012598 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012599else
12600 echo "$as_me: failed program was:" >&5
12601sed 's/^/| /' conftest.$ac_ext >&5
12602
12603
John Criswell7a73b802003-06-30 21:59:07 +000012604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605
Bill Wendlingebcceee2009-04-18 11:20:33 +000012606rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012607 conftest$ac_exeext
12608 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012609 break
John Criswell7a73b802003-06-30 21:59:07 +000012610fi
Reid Spencera773bd52006-08-04 18:18:08 +000012611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012612if test "${ac_cv_search_mallinfo+set}" = set; then
12613 :
Reid Spencera773bd52006-08-04 18:18:08 +000012614else
12615 ac_cv_search_mallinfo=no
12616fi
12617rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012618LIBS=$ac_func_search_save_LIBS
12619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012620{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12621echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012622ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012626cat >>confdefs.h <<\_ACEOF
12627#define HAVE_MALLINFO 1
12628_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012629
12630fi
12631
12632
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012633if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012634
12635{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12636echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12637if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012639else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012640 ac_check_lib_save_LIBS=$LIBS
12641LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012642cat >conftest.$ac_ext <<_ACEOF
12643/* confdefs.h. */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012647/* end confdefs.h. */
12648
Reid Spencera773bd52006-08-04 18:18:08 +000012649/* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012652#ifdef __cplusplus
12653extern "C"
12654#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012655char pthread_mutex_init ();
12656int
12657main ()
12658{
Reid Spencera773bd52006-08-04 18:18:08 +000012659return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012660 ;
12661 return 0;
12662}
12663_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664rm -f conftest.$ac_objext conftest$ac_exeext
12665if { (ac_try="$ac_link"
12666case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_link") 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682esac
12683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest$ac_exeext'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012698 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012700 echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012705
Bill Wendlingebcceee2009-04-18 11:20:33 +000012706rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012708LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012710{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12711echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12712if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012713 cat >>confdefs.h <<_ACEOF
12714#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012715_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012716
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012717 LIBS="-lpthread $LIBS"
12718
Reid Spencer22177fe2005-07-12 15:24:20 +000012719fi
12720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012721 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12722echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12723if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012725else
12726 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012727cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012732/* end confdefs.h. */
12733
Reid Spencera773bd52006-08-04 18:18:08 +000012734/* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012737#ifdef __cplusplus
12738extern "C"
12739#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012740char pthread_mutex_lock ();
12741int
12742main ()
12743{
Reid Spencera773bd52006-08-04 18:18:08 +000012744return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012745 ;
12746 return 0;
12747}
12748_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012749for ac_lib in '' pthread; do
12750 if test -z "$ac_lib"; then
12751 ac_res="none required"
12752 else
12753 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012755 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012756 rm -f conftest.$ac_objext conftest$ac_exeext
12757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012790 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012791else
12792 echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
12795
Brian Gaeke5f268f72003-12-05 19:29:01 +000012796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012797
Bill Wendlingebcceee2009-04-18 11:20:33 +000012798rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012799 conftest$ac_exeext
12800 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012801 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012802fi
Reid Spencera773bd52006-08-04 18:18:08 +000012803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12805 :
Reid Spencera773bd52006-08-04 18:18:08 +000012806else
12807 ac_cv_search_pthread_mutex_lock=no
12808fi
12809rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012810LIBS=$ac_func_search_save_LIBS
12811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12813echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012814ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818cat >>confdefs.h <<\_ACEOF
12819#define HAVE_PTHREAD_MUTEX_LOCK 1
12820_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012821
12822fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12825echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12826if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012828else
12829 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012835/* end confdefs.h. */
12836
12837/* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12840#ifdef __cplusplus
12841extern "C"
12842#endif
12843char pthread_rwlock_init ();
12844int
12845main ()
12846{
12847return pthread_rwlock_init ();
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852for ac_lib in '' pthread; do
12853 if test -z "$ac_lib"; then
12854 ac_res="none required"
12855 else
12856 ac_res=-l$ac_lib
12857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12858 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012859 rm -f conftest.$ac_objext conftest$ac_exeext
12860if { (ac_try="$ac_link"
12861case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012893 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012894else
12895 echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
12898
Owen Andersonde8aed22009-06-16 18:20:20 +000012899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900
Owen Andersonde8aed22009-06-16 18:20:20 +000012901rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012902 conftest$ac_exeext
12903 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012904 break
12905fi
12906done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012907if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12908 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012909else
12910 ac_cv_search_pthread_rwlock_init=no
12911fi
12912rm conftest.$ac_ext
12913LIBS=$ac_func_search_save_LIBS
12914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12916echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012917ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012921cat >>confdefs.h <<\_ACEOF
12922#define HAVE_PTHREAD_RWLOCK_INIT 1
12923_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012924
12925fi
12926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12928echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12929if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012931else
12932 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012938/* end confdefs.h. */
12939
12940/* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12943#ifdef __cplusplus
12944extern "C"
12945#endif
12946char pthread_getspecific ();
12947int
12948main ()
12949{
12950return pthread_getspecific ();
12951 ;
12952 return 0;
12953}
12954_ACEOF
12955for ac_lib in '' pthread; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12958 else
12959 ac_res=-l$ac_lib
12960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12961 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012962 rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (ac_try="$ac_link"
12964case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012996 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
Owen Anderson27fcfe12009-06-25 23:10:26 +000013002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003
Owen Anderson27fcfe12009-06-25 23:10:26 +000013004rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005 conftest$ac_exeext
13006 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013007 break
13008fi
13009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13011 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013012else
13013 ac_cv_search_pthread_getspecific=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13019echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013020ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_PTHREAD_GETSPECIFIC 1
13026_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013027
13028fi
13029
Reid Spencer0a262ba2005-08-24 10:07:20 +000013030fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013031
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013032
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013033# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013034if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013035 withval=$with_udis86;
13036 USE_UDIS86=1
13037
13038 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013039 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013040 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13041 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013042
13043{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13044echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13045if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013047else
13048 ac_check_lib_save_LIBS=$LIBS
13049LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013055/* end confdefs.h. */
13056
13057/* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13060#ifdef __cplusplus
13061extern "C"
13062#endif
13063char ud_init ();
13064int
13065main ()
13066{
13067return ud_init ();
13068 ;
13069 return 0;
13070}
13071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (ac_try="$ac_link"
13074case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013106 ac_cv_lib_udis86_ud_init=yes
13107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113
Bill Wendlingebcceee2009-04-18 11:20:33 +000013114rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013116LIBS=$ac_check_lib_save_LIBS
13117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013118{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13119echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13120if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013121 cat >>confdefs.h <<_ACEOF
13122#define HAVE_LIBUDIS86 1
13123_ACEOF
13124
13125 LIBS="-ludis86 $LIBS"
13126
13127else
13128
13129 echo "Error! You need to have libudis86 around."
13130 exit -1
13131
13132fi
13133
13134
13135else
13136 USE_UDIS86=0
13137
13138fi
13139
13140
13141cat >>confdefs.h <<_ACEOF
13142#define USE_UDIS86 $USE_UDIS86
13143_ACEOF
13144
13145
13146
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013147# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013148if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013149 withval=$with_oprofile;
13150 USE_OPROFILE=1
13151
13152 case "$withval" in
13153 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013154 no) llvm_cv_oppath=
13155 USE_OPROFILE=0
13156 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013157 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013158 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013159 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013160 case $llvm_cv_os_type in
13161 Linux)
13162 if test -n "$llvm_cv_oppath" ; then
13163 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13164 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13166if test "${ac_cv_search_bfd_init+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013168else
13169 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170cat >conftest.$ac_ext <<_ACEOF
13171/* confdefs.h. */
13172_ACEOF
13173cat confdefs.h >>conftest.$ac_ext
13174cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013175/* end confdefs.h. */
13176
13177/* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180#ifdef __cplusplus
13181extern "C"
13182#endif
13183char bfd_init ();
13184int
13185main ()
13186{
13187return bfd_init ();
13188 ;
13189 return 0;
13190}
13191_ACEOF
13192for ac_lib in '' bfd; do
13193 if test -z "$ac_lib"; then
13194 ac_res="none required"
13195 else
13196 ac_res=-l$ac_lib
13197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13198 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013199 rm -f conftest.$ac_objext conftest$ac_exeext
13200if { (ac_try="$ac_link"
13201case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204esac
13205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_link") 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217esac
13218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest$ac_exeext'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013233 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013234else
13235 echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013240
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013241rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013242 conftest$ac_exeext
13243 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013244 break
13245fi
13246done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013247if test "${ac_cv_search_bfd_init+set}" = set; then
13248 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013249else
13250 ac_cv_search_bfd_init=no
13251fi
13252rm conftest.$ac_ext
13253LIBS=$ac_func_search_save_LIBS
13254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13256echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013257ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13260
13261fi
13262
Eli Bendersky61b18512012-03-13 08:33:15 +000013263 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13265if test "${ac_cv_search_op_open_agent+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013267else
13268 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269cat >conftest.$ac_ext <<_ACEOF
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013274/* end confdefs.h. */
13275
13276/* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13279#ifdef __cplusplus
13280extern "C"
13281#endif
13282char op_open_agent ();
13283int
13284main ()
13285{
13286return op_open_agent ();
13287 ;
13288 return 0;
13289}
13290_ACEOF
13291for ac_lib in '' opagent; do
13292 if test -z "$ac_lib"; then
13293 ac_res="none required"
13294 else
13295 ac_res=-l$ac_lib
13296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13297 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013298 rm -f conftest.$ac_objext conftest$ac_exeext
13299if { (ac_try="$ac_link"
13300case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_link") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13313 { (case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316esac
13317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_try") 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest$ac_exeext'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013332 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013333else
13334 echo "$as_me: failed program was:" >&5
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
13337
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013339
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341 conftest$ac_exeext
13342 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013343 break
13344fi
13345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346if test "${ac_cv_search_op_open_agent+set}" = set; then
13347 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013348else
13349 ac_cv_search_op_open_agent=no
13350fi
13351rm conftest.$ac_ext
13352LIBS=$ac_func_search_save_LIBS
13353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13355echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013356ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13359
13360else
13361
Eli Bendersky61b18512012-03-13 08:33:15 +000013362 echo "Error! You need to have libopagent around."
13363 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013364
13365fi
13366
Eli Bendersky61b18512012-03-13 08:33:15 +000013367 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13369echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13370if test "${ac_cv_header_opagent_h+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372fi
13373{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13374echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13375else
13376 # Is the header compilable?
13377{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13378echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h. */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
13384/* end confdefs.h. */
13385$ac_includes_default
13386#include <opagent.h>
13387_ACEOF
13388rm -f conftest.$ac_objext
13389if { (ac_try="$ac_compile"
13390case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393esac
13394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_compile") 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
13422 ac_header_compiler=yes
13423else
13424 echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427 ac_header_compiler=no
13428fi
13429
13430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13432echo "${ECHO_T}$ac_header_compiler" >&6; }
13433
13434# Is the header present?
13435{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13436echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13437cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
13443#include <opagent.h>
13444_ACEOF
13445if { (ac_try="$ac_cpp conftest.$ac_ext"
13446case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449esac
13450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
13460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13461 else
13462 ac_cpp_err=
13463 fi
13464else
13465 ac_cpp_err=yes
13466fi
13467if test -z "$ac_cpp_err"; then
13468 ac_header_preproc=yes
13469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_header_preproc=no
13474fi
13475
13476rm -f conftest.err conftest.$ac_ext
13477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13478echo "${ECHO_T}$ac_header_preproc" >&6; }
13479
13480# So? What about this header?
13481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13482 yes:no: )
13483 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13484echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13486echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13487 ac_header_preproc=yes
13488 ;;
13489 no:yes:* )
13490 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13491echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13493echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13494 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13495echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13497echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13499echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13501echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13502 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013503## ------------------------------------ ##
13504## Report this to http://llvm.org/bugs/ ##
13505## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013506_ASBOX
13507 ) | sed "s/^/$as_me: WARNING: /" >&2
13508 ;;
13509esac
13510{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13511echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13512if test "${ac_cv_header_opagent_h+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514else
13515 ac_cv_header_opagent_h=$ac_header_preproc
13516fi
13517{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13518echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13519
13520fi
13521if test $ac_cv_header_opagent_h = yes; then
13522 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013523else
13524
Eli Bendersky61b18512012-03-13 08:33:15 +000013525 echo "Error! You need to have opagent.h around."
13526 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013527
13528fi
13529
13530
Eli Bendersky61b18512012-03-13 08:33:15 +000013531 fi ;;
13532 *)
13533 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13534echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13535 { (exit 1); exit 1; }; } ;;
13536 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013537
13538else
13539
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013540 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013541
13542
13543fi
13544
13545
13546cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013547#define LLVM_USE_OPROFILE $USE_OPROFILE
13548_ACEOF
13549
13550
13551
13552# Check whether --with-intel-jitevents was given.
13553if test "${with_intel_jitevents+set}" = set; then
13554 withval=$with_intel_jitevents;
13555 case $llvm_cv_os_type in
13556 Linux|Win32|Cygwin|MingW) ;;
13557 *)
13558 { { echo "$as_me:$LINENO: error:
13559 Intel JIT API support is available on Linux and Windows only.\"" >&5
13560echo "$as_me: error:
13561 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13562 { (exit 1); exit 1; }; } ;;
13563 esac
13564
13565 USE_INTEL_JITEVENTS=1
13566
13567 case "$llvm_cv_target_arch" in
13568 x86) llvm_intel_jitevents_archdir="lib32";;
13569 x86_64) llvm_intel_jitevents_archdir="lib64";;
13570 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13571 exit -1;;
13572 esac
13573 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13574 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13575 case "$withval" in
13576 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13577 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13578 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013579 esac
13580
13581
13582
13583
13584 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013585 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013586
13587 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13588echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13589if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591else
13592 ac_func_search_save_LIBS=$LIBS
13593cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599
13600/* Override any GCC internal prototype to avoid an error.
13601 Use char because int might match the return type of a GCC
13602 builtin and then its argument prototype would still apply. */
13603#ifdef __cplusplus
13604extern "C"
13605#endif
13606char iJIT_IsProfilingActive ();
13607int
13608main ()
13609{
13610return iJIT_IsProfilingActive ();
13611 ;
13612 return 0;
13613}
13614_ACEOF
13615for ac_lib in '' jitprofiling; do
13616 if test -z "$ac_lib"; then
13617 ac_res="none required"
13618 else
13619 ac_res=-l$ac_lib
13620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13621 fi
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623if { (ac_try="$ac_link"
13624case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627esac
13628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_link") 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13637 { (case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13640esac
13641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_try") 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest$ac_exeext'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13650esac
13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13657else
13658 echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
13661
13662fi
13663
13664rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext
13666 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13667 break
13668fi
13669done
13670if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13671 :
13672else
13673 ac_cv_search_iJIT_IsProfilingActive=no
13674fi
13675rm conftest.$ac_ext
13676LIBS=$ac_func_search_save_LIBS
13677fi
13678{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13679echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13680ac_res=$ac_cv_search_iJIT_IsProfilingActive
13681if test "$ac_res" != no; then
13682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13683
13684else
13685
13686 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13687 exit -1
13688
13689fi
13690
13691 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13692 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13693echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13694if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696fi
13697{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13698echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13699else
13700 # Is the header compilable?
13701{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13702echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709$ac_includes_default
13710#include <jitprofiling.h>
13711_ACEOF
13712rm -f conftest.$ac_objext
13713if { (ac_try="$ac_compile"
13714case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717esac
13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_compile") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest.$ac_objext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_header_compiler=yes
13747else
13748 echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_header_compiler=no
13752fi
13753
13754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756echo "${ECHO_T}$ac_header_compiler" >&6; }
13757
13758# Is the header present?
13759{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13760echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13761cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h. */
13767#include <jitprofiling.h>
13768_ACEOF
13769if { (ac_try="$ac_cpp conftest.$ac_ext"
13770case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773esac
13774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } >/dev/null; then
13782 if test -s conftest.err; then
13783 ac_cpp_err=$ac_c_preproc_warn_flag
13784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13785 else
13786 ac_cpp_err=
13787 fi
13788else
13789 ac_cpp_err=yes
13790fi
13791if test -z "$ac_cpp_err"; then
13792 ac_header_preproc=yes
13793else
13794 echo "$as_me: failed program was:" >&5
13795sed 's/^/| /' conftest.$ac_ext >&5
13796
13797 ac_header_preproc=no
13798fi
13799
13800rm -f conftest.err conftest.$ac_ext
13801{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13802echo "${ECHO_T}$ac_header_preproc" >&6; }
13803
13804# So? What about this header?
13805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13806 yes:no: )
13807 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13808echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13810echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13811 ac_header_preproc=yes
13812 ;;
13813 no:yes:* )
13814 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13815echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13817echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13819echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13821echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13823echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13825echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13826 ( cat <<\_ASBOX
13827## ------------------------------------ ##
13828## Report this to http://llvm.org/bugs/ ##
13829## ------------------------------------ ##
13830_ASBOX
13831 ) | sed "s/^/$as_me: WARNING: /" >&2
13832 ;;
13833esac
13834{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13835echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13836if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839 ac_cv_header_jitprofiling_h=$ac_header_preproc
13840fi
13841{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13842echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13843
13844fi
13845if test $ac_cv_header_jitprofiling_h = yes; then
13846 :
13847else
13848
13849 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13850 exit -1
13851
13852fi
13853
13854
13855
13856
13857else
13858
13859 USE_INTEL_JITEVENTS=0
13860
13861
13862fi
13863
13864
13865cat >>confdefs.h <<_ACEOF
13866#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013867_ACEOF
13868
13869
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013870for ac_prog in xml2-config
13871do
13872 # Extract the first word of "$ac_prog", so it can be a program name with args.
13873set dummy $ac_prog; ac_word=$2
13874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13876if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879 if test -n "$XML2CONFIG"; then
13880 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13881else
13882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883for as_dir in $PATH
13884do
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_XML2CONFIG="$ac_prog"
13890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13892 fi
13893done
13894done
13895IFS=$as_save_IFS
13896
13897fi
13898fi
13899XML2CONFIG=$ac_cv_prog_XML2CONFIG
13900if test -n "$XML2CONFIG"; then
13901 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13902echo "${ECHO_T}$XML2CONFIG" >&6; }
13903else
13904 { echo "$as_me:$LINENO: result: no" >&5
13905echo "${ECHO_T}no" >&6; }
13906fi
13907
13908
13909 test -n "$XML2CONFIG" && break
13910done
13911
13912
13913{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13914echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13915if test "x$XML2CONFIG" = "x"; then
13916 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13917echo "${ECHO_T}xml2-config not found" >&6; }
13918else
13919 LIBXML2_INC=`$XML2CONFIG --cflags`
13920 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13921echo "${ECHO_T}$LIBXML2_INC" >&6; }
13922 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13923echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13924if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
13927 ac_check_lib_save_LIBS=$LIBS
13928LIBS="-lxml2 $LIBS"
13929cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h. */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h. */
13935
13936/* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13939#ifdef __cplusplus
13940extern "C"
13941#endif
13942char xmlReadFile ();
13943int
13944main ()
13945{
13946return xmlReadFile ();
13947 ;
13948 return 0;
13949}
13950_ACEOF
13951rm -f conftest.$ac_objext conftest$ac_exeext
13952if { (ac_try="$ac_link"
13953case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956esac
13957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_link") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979esac
13980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985 ac_cv_lib_xml2_xmlReadFile=yes
13986else
13987 echo "$as_me: failed program was:" >&5
13988sed 's/^/| /' conftest.$ac_ext >&5
13989
13990 ac_cv_lib_xml2_xmlReadFile=no
13991fi
13992
13993rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13995LIBS=$ac_check_lib_save_LIBS
13996fi
13997{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13998echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13999if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14000
14001cat >>confdefs.h <<\_ACEOF
14002#define CLANG_HAVE_LIBXML 1
14003_ACEOF
14004
14005 LIBXML2_LIBS="-lxml2"
14006fi
14007
14008fi
14009
14010
14011
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013
14014
14015
14016
14017
Reid Spencer59473af2004-12-25 07:31:29 +000014018ac_header_dirent=no
14019for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14021{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14022echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014026 cat >conftest.$ac_ext <<_ACEOF
14027/* confdefs.h. */
14028_ACEOF
14029cat confdefs.h >>conftest.$ac_ext
14030cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014031/* end confdefs.h. */
14032#include <sys/types.h>
14033#include <$ac_hdr>
14034
14035int
14036main ()
14037{
14038if ((DIR *) 0)
14039return 0;
14040 ;
14041 return 0;
14042}
14043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014044rm -f conftest.$ac_objext
14045if { (ac_try="$ac_compile"
14046case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14049esac
14050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_compile") 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14059 { (case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14062esac
14063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_try") 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_try") 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014078 eval "$as_ac_Header=yes"
14079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014080 echo "$as_me: failed program was:" >&5
14081sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085
Reid Spencera773bd52006-08-04 18:18:08 +000014086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088ac_res=`eval echo '${'$as_ac_Header'}'`
14089 { echo "$as_me:$LINENO: result: $ac_res" >&5
14090echo "${ECHO_T}$ac_res" >&6; }
14091if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014092 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014094_ACEOF
14095
14096ac_header_dirent=$ac_hdr; break
14097fi
14098
14099done
14100# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14101if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014102 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14103echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14104if test "${ac_cv_search_opendir+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014106else
14107 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014108cat >conftest.$ac_ext <<_ACEOF
14109/* confdefs.h. */
14110_ACEOF
14111cat confdefs.h >>conftest.$ac_ext
14112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014113/* end confdefs.h. */
14114
Reid Spencera773bd52006-08-04 18:18:08 +000014115/* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014118#ifdef __cplusplus
14119extern "C"
14120#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014121char opendir ();
14122int
14123main ()
14124{
Reid Spencera773bd52006-08-04 18:18:08 +000014125return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014126 ;
14127 return 0;
14128}
14129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014130for ac_lib in '' dir; do
14131 if test -z "$ac_lib"; then
14132 ac_res="none required"
14133 else
14134 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014136 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137 rm -f conftest.$ac_objext conftest$ac_exeext
14138if { (ac_try="$ac_link"
14139case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142esac
14143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_link") 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14155esac
14156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14165esac
14166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014171 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176
Reid Spencer59473af2004-12-25 07:31:29 +000014177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014178
Bill Wendlingebcceee2009-04-18 11:20:33 +000014179rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014180 conftest$ac_exeext
14181 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014182 break
Reid Spencer59473af2004-12-25 07:31:29 +000014183fi
Reid Spencera773bd52006-08-04 18:18:08 +000014184done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185if test "${ac_cv_search_opendir+set}" = set; then
14186 :
Reid Spencera773bd52006-08-04 18:18:08 +000014187else
14188 ac_cv_search_opendir=no
14189fi
14190rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014191LIBS=$ac_func_search_save_LIBS
14192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14194echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014195ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014196if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014198
14199fi
14200
14201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014202 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14203echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14204if test "${ac_cv_search_opendir+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014206else
14207 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208cat >conftest.$ac_ext <<_ACEOF
14209/* confdefs.h. */
14210_ACEOF
14211cat confdefs.h >>conftest.$ac_ext
14212cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014213/* end confdefs.h. */
14214
Reid Spencera773bd52006-08-04 18:18:08 +000014215/* Override any GCC internal prototype to avoid an error.
14216 Use char because int might match the return type of a GCC
14217 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014218#ifdef __cplusplus
14219extern "C"
14220#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014221char opendir ();
14222int
14223main ()
14224{
Reid Spencera773bd52006-08-04 18:18:08 +000014225return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014226 ;
14227 return 0;
14228}
14229_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014230for ac_lib in '' x; do
14231 if test -z "$ac_lib"; then
14232 ac_res="none required"
14233 else
14234 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014236 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237 rm -f conftest.$ac_objext conftest$ac_exeext
14238if { (ac_try="$ac_link"
14239case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_link") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest$ac_exeext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014271 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276
Reid Spencer59473af2004-12-25 07:31:29 +000014277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014278
Bill Wendlingebcceee2009-04-18 11:20:33 +000014279rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014280 conftest$ac_exeext
14281 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014282 break
Reid Spencer59473af2004-12-25 07:31:29 +000014283fi
Reid Spencera773bd52006-08-04 18:18:08 +000014284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014285if test "${ac_cv_search_opendir+set}" = set; then
14286 :
Reid Spencera773bd52006-08-04 18:18:08 +000014287else
14288 ac_cv_search_opendir=no
14289fi
14290rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014291LIBS=$ac_func_search_save_LIBS
14292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14294echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014295ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014296if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014298
14299fi
14300
14301fi
14302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14304echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14305if test "${ac_cv_header_mmap_anon+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014307else
14308 ac_ext=c
14309ac_cpp='$CPP $CPPFLAGS'
14310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312ac_compiler_gnu=$ac_cv_c_compiler_gnu
14313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014314 cat >conftest.$ac_ext <<_ACEOF
14315/* confdefs.h. */
14316_ACEOF
14317cat confdefs.h >>conftest.$ac_ext
14318cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014319/* end confdefs.h. */
14320#include <sys/mman.h>
14321#include <unistd.h>
14322#include <fcntl.h>
14323int
14324main ()
14325{
14326mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14327 ;
14328 return 0;
14329}
14330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331rm -f conftest.$ac_objext
14332if { (ac_try="$ac_compile"
14333case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14336esac
14337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338 (eval "$ac_compile") 2>conftest.er1
14339 ac_status=$?
14340 grep -v '^ *+' conftest.er1 >conftest.err
14341 rm -f conftest.er1
14342 cat conftest.err >&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } &&
14345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14346 { (case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14349esac
14350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_try") 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14359esac
14360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_try") 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014365 ac_cv_header_mmap_anon=yes
14366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367 echo "$as_me: failed program was:" >&5
14368sed 's/^/| /' conftest.$ac_ext >&5
14369
14370 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014372
Reid Spencera773bd52006-08-04 18:18:08 +000014373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014374 ac_ext=c
14375ac_cpp='$CPP $CPPFLAGS'
14376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14378ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379
14380
14381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14383echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014384if test "$ac_cv_header_mmap_anon" = yes; then
14385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386cat >>confdefs.h <<\_ACEOF
14387#define HAVE_MMAP_ANONYMOUS 1
14388_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014389
14390fi
14391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14393echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14394if test "${ac_cv_header_stat_broken+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397 cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014402/* end confdefs.h. */
14403#include <sys/types.h>
14404#include <sys/stat.h>
14405
Reid Spencera773bd52006-08-04 18:18:08 +000014406#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407# if S_ISBLK (S_IFDIR)
14408You lose.
14409# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014410#endif
14411
Reid Spencera773bd52006-08-04 18:18:08 +000014412#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014413# if S_ISBLK (S_IFCHR)
14414You lose.
14415# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014416#endif
14417
Reid Spencera773bd52006-08-04 18:18:08 +000014418#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014419# if S_ISLNK (S_IFREG)
14420You lose.
14421# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014422#endif
14423
Reid Spencera773bd52006-08-04 18:18:08 +000014424#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014425# if S_ISSOCK (S_IFREG)
14426You lose.
14427# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014428#endif
14429
14430_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14432 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014433 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434else
14435 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437rm -f conftest*
14438
Reid Spencer59473af2004-12-25 07:31:29 +000014439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014440{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14441echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014442if test $ac_cv_header_stat_broken = yes; then
14443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014444cat >>confdefs.h <<\_ACEOF
14445#define STAT_MACROS_BROKEN 1
14446_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014447
14448fi
14449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014450{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14451echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14452if test "${ac_cv_header_sys_wait_h+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455 cat >conftest.$ac_ext <<_ACEOF
14456/* confdefs.h. */
14457_ACEOF
14458cat confdefs.h >>conftest.$ac_ext
14459cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014461#include <sys/types.h>
14462#include <sys/wait.h>
14463#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014464# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014465#endif
14466#ifndef WIFEXITED
14467# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14468#endif
14469
John Criswell7a73b802003-06-30 21:59:07 +000014470int
14471main ()
14472{
14473 int s;
14474 wait (&s);
14475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14476 ;
14477 return 0;
14478}
14479_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480rm -f conftest.$ac_objext
14481if { (ac_try="$ac_compile"
14482case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_compile") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14495 { (case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498esac
14499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_try") 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest.$ac_objext'
14505 { (case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14508esac
14509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510 (eval "$ac_try") 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014514 ac_cv_header_sys_wait_h=yes
14515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014516 echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
14519 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521
Reid Spencera773bd52006-08-04 18:18:08 +000014522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014524{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14525echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014526if test $ac_cv_header_sys_wait_h = yes; then
14527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014528cat >>confdefs.h <<\_ACEOF
14529#define HAVE_SYS_WAIT_H 1
14530_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014531
14532fi
14533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14535echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14536if test "${ac_cv_header_time+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014539 cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014544/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014545#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014546#include <sys/time.h>
14547#include <time.h>
14548
14549int
14550main ()
14551{
14552if ((struct tm *) 0)
14553return 0;
14554 ;
14555 return 0;
14556}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014557_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558rm -f conftest.$ac_objext
14559if { (ac_try="$ac_compile"
14560case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_compile") 2>conftest.er1
14566 ac_status=$?
14567 grep -v '^ *+' conftest.er1 >conftest.err
14568 rm -f conftest.er1
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_try") 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014592 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014599
Reid Spencera773bd52006-08-04 18:18:08 +000014600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014602{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14603echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014604if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014606cat >>confdefs.h <<\_ACEOF
14607#define TIME_WITH_SYS_TIME 1
14608_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014609
14610fi
14611
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014613
14614
14615
14616
14617
14618
Reid Spencer59473af2004-12-25 07:31:29 +000014619for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014620do
14621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627fi
14628ac_res=`eval echo '${'$as_ac_Header'}'`
14629 { echo "$as_me:$LINENO: result: $ac_res" >&5
14630echo "${ECHO_T}$ac_res" >&6; }
14631else
14632 # Is the header compilable?
14633{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14635cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641$ac_includes_default
14642#include <$ac_header>
14643_ACEOF
14644rm -f conftest.$ac_objext
14645if { (ac_try="$ac_compile"
14646case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_compile") 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14659 { (case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662esac
14663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_try") 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672esac
14673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_try") 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_header_compiler=yes
14679else
14680 echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683 ac_header_compiler=no
14684fi
14685
14686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14688echo "${ECHO_T}$ac_header_compiler" >&6; }
14689
14690# Is the header present?
14691{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14693cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699#include <$ac_header>
14700_ACEOF
14701if { (ac_try="$ac_cpp conftest.$ac_ext"
14702case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705esac
14706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } >/dev/null; then
14714 if test -s conftest.err; then
14715 ac_cpp_err=$ac_c_preproc_warn_flag
14716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14717 else
14718 ac_cpp_err=
14719 fi
14720else
14721 ac_cpp_err=yes
14722fi
14723if test -z "$ac_cpp_err"; then
14724 ac_header_preproc=yes
14725else
14726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 ac_header_preproc=no
14730fi
14731
14732rm -f conftest.err conftest.$ac_ext
14733{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14734echo "${ECHO_T}$ac_header_preproc" >&6; }
14735
14736# So? What about this header?
14737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738 yes:no: )
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14743 ac_header_preproc=yes
14744 ;;
14745 no:yes:* )
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14758 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014759## ------------------------------------ ##
14760## Report this to http://llvm.org/bugs/ ##
14761## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014762_ASBOX
14763 ) | sed "s/^/$as_me: WARNING: /" >&2
14764 ;;
14765esac
14766{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770else
14771 eval "$as_ac_Header=\$ac_header_preproc"
14772fi
14773ac_res=`eval echo '${'$as_ac_Header'}'`
14774 { echo "$as_me:$LINENO: result: $ac_res" >&5
14775echo "${ECHO_T}$ac_res" >&6; }
14776
14777fi
14778if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014779 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014781_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014782
14783fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014784
Reid Spencer59473af2004-12-25 07:31:29 +000014785done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014787
14788
14789
14790
14791
14792
Douglas Gregor071d73d2009-05-18 17:21:34 +000014793for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014794do
14795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801fi
14802ac_res=`eval echo '${'$as_ac_Header'}'`
14803 { echo "$as_me:$LINENO: result: $ac_res" >&5
14804echo "${ECHO_T}$ac_res" >&6; }
14805else
14806 # Is the header compilable?
14807{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14809cat >conftest.$ac_ext <<_ACEOF
14810/* confdefs.h. */
14811_ACEOF
14812cat confdefs.h >>conftest.$ac_ext
14813cat >>conftest.$ac_ext <<_ACEOF
14814/* end confdefs.h. */
14815$ac_includes_default
14816#include <$ac_header>
14817_ACEOF
14818rm -f conftest.$ac_objext
14819if { (ac_try="$ac_compile"
14820case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14823esac
14824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_compile") 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836esac
14837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; } &&
14842 { ac_try='test -s conftest.$ac_objext'
14843 { (case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846esac
14847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_try") 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_header_compiler=yes
14853else
14854 echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
14857 ac_header_compiler=no
14858fi
14859
14860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14862echo "${ECHO_T}$ac_header_compiler" >&6; }
14863
14864# Is the header present?
14865{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14867cat >conftest.$ac_ext <<_ACEOF
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
14873#include <$ac_header>
14874_ACEOF
14875if { (ac_try="$ac_cpp conftest.$ac_ext"
14876case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
14880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } >/dev/null; then
14888 if test -s conftest.err; then
14889 ac_cpp_err=$ac_c_preproc_warn_flag
14890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14891 else
14892 ac_cpp_err=
14893 fi
14894else
14895 ac_cpp_err=yes
14896fi
14897if test -z "$ac_cpp_err"; then
14898 ac_header_preproc=yes
14899else
14900 echo "$as_me: failed program was:" >&5
14901sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ac_header_preproc=no
14904fi
14905
14906rm -f conftest.err conftest.$ac_ext
14907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908echo "${ECHO_T}$ac_header_preproc" >&6; }
14909
14910# So? What about this header?
14911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14912 yes:no: )
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14918 ;;
14919 no:yes:* )
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14932 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014933## ------------------------------------ ##
14934## Report this to http://llvm.org/bugs/ ##
14935## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936_ASBOX
14937 ) | sed "s/^/$as_me: WARNING: /" >&2
14938 ;;
14939esac
14940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945 eval "$as_ac_Header=\$ac_header_preproc"
14946fi
14947ac_res=`eval echo '${'$as_ac_Header'}'`
14948 { echo "$as_me:$LINENO: result: $ac_res" >&5
14949echo "${ECHO_T}$ac_res" >&6; }
14950
14951fi
14952if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014953 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014955_ACEOF
14956
14957fi
14958
14959done
14960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961
14962
Douglas Gregor071d73d2009-05-18 17:21:34 +000014963for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014964do
14965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971fi
14972ac_res=`eval echo '${'$as_ac_Header'}'`
14973 { echo "$as_me:$LINENO: result: $ac_res" >&5
14974echo "${ECHO_T}$ac_res" >&6; }
14975else
14976 # Is the header compilable?
14977{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14979cat >conftest.$ac_ext <<_ACEOF
14980/* confdefs.h. */
14981_ACEOF
14982cat confdefs.h >>conftest.$ac_ext
14983cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */
14985$ac_includes_default
14986#include <$ac_header>
14987_ACEOF
14988rm -f conftest.$ac_objext
14989if { (ac_try="$ac_compile"
14990case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_compile") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006esac
15007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15016esac
15017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_try") 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_header_compiler=yes
15023else
15024 echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 ac_header_compiler=no
15028fi
15029
15030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15032echo "${ECHO_T}$ac_header_compiler" >&6; }
15033
15034# Is the header present?
15035{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15037cat >conftest.$ac_ext <<_ACEOF
15038/* confdefs.h. */
15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h. */
15043#include <$ac_header>
15044_ACEOF
15045if { (ac_try="$ac_cpp conftest.$ac_ext"
15046case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } >/dev/null; then
15058 if test -s conftest.err; then
15059 ac_cpp_err=$ac_c_preproc_warn_flag
15060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15061 else
15062 ac_cpp_err=
15063 fi
15064else
15065 ac_cpp_err=yes
15066fi
15067if test -z "$ac_cpp_err"; then
15068 ac_header_preproc=yes
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 ac_header_preproc=no
15074fi
15075
15076rm -f conftest.err conftest.$ac_ext
15077{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15078echo "${ECHO_T}$ac_header_preproc" >&6; }
15079
15080# So? What about this header?
15081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15082 yes:no: )
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15087 ac_header_preproc=yes
15088 ;;
15089 no:yes:* )
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15097echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15102 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015103## ------------------------------------ ##
15104## Report this to http://llvm.org/bugs/ ##
15105## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106_ASBOX
15107 ) | sed "s/^/$as_me: WARNING: /" >&2
15108 ;;
15109esac
15110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115 eval "$as_ac_Header=\$ac_header_preproc"
15116fi
15117ac_res=`eval echo '${'$as_ac_Header'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119echo "${ECHO_T}$ac_res" >&6; }
15120
15121fi
15122if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015123 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015125_ACEOF
15126
15127fi
15128
15129done
Reid Spencer59473af2004-12-25 07:31:29 +000015130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015131
15132
15133
15134
Daniel Dunbar3e462932011-02-03 02:40:02 +000015135
15136for 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 +000015137do
15138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144fi
15145ac_res=`eval echo '${'$as_ac_Header'}'`
15146 { echo "$as_me:$LINENO: result: $ac_res" >&5
15147echo "${ECHO_T}$ac_res" >&6; }
15148else
15149 # Is the header compilable?
15150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15152cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158$ac_includes_default
15159#include <$ac_header>
15160_ACEOF
15161rm -f conftest.$ac_objext
15162if { (ac_try="$ac_compile"
15163case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15166esac
15167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_compile") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15176 { (case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15179esac
15180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181 (eval "$ac_try") 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15189esac
15190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_try") 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_header_compiler=yes
15196else
15197 echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200 ac_header_compiler=no
15201fi
15202
15203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15205echo "${ECHO_T}$ac_header_compiler" >&6; }
15206
15207# Is the header present?
15208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15210cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
15216#include <$ac_header>
15217_ACEOF
15218if { (ac_try="$ac_cpp conftest.$ac_ext"
15219case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } >/dev/null; then
15231 if test -s conftest.err; then
15232 ac_cpp_err=$ac_c_preproc_warn_flag
15233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15234 else
15235 ac_cpp_err=
15236 fi
15237else
15238 ac_cpp_err=yes
15239fi
15240if test -z "$ac_cpp_err"; then
15241 ac_header_preproc=yes
15242else
15243 echo "$as_me: failed program was:" >&5
15244sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 ac_header_preproc=no
15247fi
15248
15249rm -f conftest.err conftest.$ac_ext
15250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251echo "${ECHO_T}$ac_header_preproc" >&6; }
15252
15253# So? What about this header?
15254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15255 yes:no: )
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15260 ac_header_preproc=yes
15261 ;;
15262 no:yes:* )
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15270echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15275 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015276## ------------------------------------ ##
15277## Report this to http://llvm.org/bugs/ ##
15278## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015279_ASBOX
15280 ) | sed "s/^/$as_me: WARNING: /" >&2
15281 ;;
15282esac
15283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287else
15288 eval "$as_ac_Header=\$ac_header_preproc"
15289fi
15290ac_res=`eval echo '${'$as_ac_Header'}'`
15291 { echo "$as_me:$LINENO: result: $ac_res" >&5
15292echo "${ECHO_T}$ac_res" >&6; }
15293
15294fi
15295if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015296 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015298_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015299
15300fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015301
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015302done
15303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015304
15305
15306
15307
Douglas Gregor01746742009-05-11 18:05:52 +000015308for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015309do
15310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316fi
15317ac_res=`eval echo '${'$as_ac_Header'}'`
15318 { echo "$as_me:$LINENO: result: $ac_res" >&5
15319echo "${ECHO_T}$ac_res" >&6; }
15320else
15321 # Is the header compilable?
15322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15324cat >conftest.$ac_ext <<_ACEOF
15325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
15330$ac_includes_default
15331#include <$ac_header>
15332_ACEOF
15333rm -f conftest.$ac_objext
15334if { (ac_try="$ac_compile"
15335case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15338esac
15339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_compile") 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; } &&
15357 { ac_try='test -s conftest.$ac_objext'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15361esac
15362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_header_compiler=yes
15368else
15369 echo "$as_me: failed program was:" >&5
15370sed 's/^/| /' conftest.$ac_ext >&5
15371
15372 ac_header_compiler=no
15373fi
15374
15375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15377echo "${ECHO_T}$ac_header_compiler" >&6; }
15378
15379# Is the header present?
15380{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15382cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
15388#include <$ac_header>
15389_ACEOF
15390if { (ac_try="$ac_cpp conftest.$ac_ext"
15391case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394esac
15395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } >/dev/null; then
15403 if test -s conftest.err; then
15404 ac_cpp_err=$ac_c_preproc_warn_flag
15405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15406 else
15407 ac_cpp_err=
15408 fi
15409else
15410 ac_cpp_err=yes
15411fi
15412if test -z "$ac_cpp_err"; then
15413 ac_header_preproc=yes
15414else
15415 echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418 ac_header_preproc=no
15419fi
15420
15421rm -f conftest.err conftest.$ac_ext
15422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15423echo "${ECHO_T}$ac_header_preproc" >&6; }
15424
15425# So? What about this header?
15426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15427 yes:no: )
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15432 ac_header_preproc=yes
15433 ;;
15434 no:yes:* )
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15447 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015448## ------------------------------------ ##
15449## Report this to http://llvm.org/bugs/ ##
15450## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015451_ASBOX
15452 ) | sed "s/^/$as_me: WARNING: /" >&2
15453 ;;
15454esac
15455{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459else
15460 eval "$as_ac_Header=\$ac_header_preproc"
15461fi
15462ac_res=`eval echo '${'$as_ac_Header'}'`
15463 { echo "$as_me:$LINENO: result: $ac_res" >&5
15464echo "${ECHO_T}$ac_res" >&6; }
15465
15466fi
15467if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015468 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015470_ACEOF
15471
15472fi
15473
15474done
15475
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015476
15477for ac_header in valgrind/valgrind.h
15478do
15479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15485fi
15486ac_res=`eval echo '${'$as_ac_Header'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488echo "${ECHO_T}$ac_res" >&6; }
15489else
15490 # Is the header compilable?
15491{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15492echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15493cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499$ac_includes_default
15500#include <$ac_header>
15501_ACEOF
15502rm -f conftest.$ac_objext
15503if { (ac_try="$ac_compile"
15504case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507esac
15508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_compile") 2>conftest.er1
15510 ac_status=$?
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15517 { (case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520esac
15521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_try") 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15530esac
15531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_try") 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_header_compiler=yes
15537else
15538 echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 ac_header_compiler=no
15542fi
15543
15544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546echo "${ECHO_T}$ac_header_compiler" >&6; }
15547
15548# Is the header present?
15549{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15551cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557#include <$ac_header>
15558_ACEOF
15559if { (ac_try="$ac_cpp conftest.$ac_ext"
15560case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } >/dev/null; then
15572 if test -s conftest.err; then
15573 ac_cpp_err=$ac_c_preproc_warn_flag
15574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15575 else
15576 ac_cpp_err=
15577 fi
15578else
15579 ac_cpp_err=yes
15580fi
15581if test -z "$ac_cpp_err"; then
15582 ac_header_preproc=yes
15583else
15584 echo "$as_me: failed program was:" >&5
15585sed 's/^/| /' conftest.$ac_ext >&5
15586
15587 ac_header_preproc=no
15588fi
15589
15590rm -f conftest.err conftest.$ac_ext
15591{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15592echo "${ECHO_T}$ac_header_preproc" >&6; }
15593
15594# So? What about this header?
15595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15596 yes:no: )
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15601 ac_header_preproc=yes
15602 ;;
15603 no:yes:* )
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15607echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15611echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15616 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015617## ------------------------------------ ##
15618## Report this to http://llvm.org/bugs/ ##
15619## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015620_ASBOX
15621 ) | sed "s/^/$as_me: WARNING: /" >&2
15622 ;;
15623esac
15624{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15628else
15629 eval "$as_ac_Header=\$ac_header_preproc"
15630fi
15631ac_res=`eval echo '${'$as_ac_Header'}'`
15632 { echo "$as_me:$LINENO: result: $ac_res" >&5
15633echo "${ECHO_T}$ac_res" >&6; }
15634
15635fi
15636if test `eval echo '${'$as_ac_Header'}'` = yes; then
15637 cat >>confdefs.h <<_ACEOF
15638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15639_ACEOF
15640
15641fi
15642
15643done
15644
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015645
15646for ac_header in fenv.h
15647do
15648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654fi
15655ac_res=`eval echo '${'$as_ac_Header'}'`
15656 { echo "$as_me:$LINENO: result: $ac_res" >&5
15657echo "${ECHO_T}$ac_res" >&6; }
15658else
15659 # Is the header compilable?
15660{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15662cat >conftest.$ac_ext <<_ACEOF
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668$ac_includes_default
15669#include <$ac_header>
15670_ACEOF
15671rm -f conftest.$ac_objext
15672if { (ac_try="$ac_compile"
15673case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15676esac
15677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_compile") 2>conftest.er1
15679 ac_status=$?
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689esac
15690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest.$ac_objext'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_header_compiler=yes
15706else
15707 echo "$as_me: failed program was:" >&5
15708sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 ac_header_compiler=no
15711fi
15712
15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15715echo "${ECHO_T}$ac_header_compiler" >&6; }
15716
15717# Is the header present?
15718{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15720cat >conftest.$ac_ext <<_ACEOF
15721/* confdefs.h. */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h. */
15726#include <$ac_header>
15727_ACEOF
15728if { (ac_try="$ac_cpp conftest.$ac_ext"
15729case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15735 ac_status=$?
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } >/dev/null; then
15741 if test -s conftest.err; then
15742 ac_cpp_err=$ac_c_preproc_warn_flag
15743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15744 else
15745 ac_cpp_err=
15746 fi
15747else
15748 ac_cpp_err=yes
15749fi
15750if test -z "$ac_cpp_err"; then
15751 ac_header_preproc=yes
15752else
15753 echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 ac_header_preproc=no
15757fi
15758
15759rm -f conftest.err conftest.$ac_ext
15760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15761echo "${ECHO_T}$ac_header_preproc" >&6; }
15762
15763# So? What about this header?
15764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15765 yes:no: )
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15770 ac_header_preproc=yes
15771 ;;
15772 no:yes:* )
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15785 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015786## ------------------------------------ ##
15787## Report this to http://llvm.org/bugs/ ##
15788## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015789_ASBOX
15790 ) | sed "s/^/$as_me: WARNING: /" >&2
15791 ;;
15792esac
15793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797else
15798 eval "$as_ac_Header=\$ac_header_preproc"
15799fi
15800ac_res=`eval echo '${'$as_ac_Header'}'`
15801 { echo "$as_me:$LINENO: result: $ac_res" >&5
15802echo "${ECHO_T}$ac_res" >&6; }
15803
15804fi
15805if test `eval echo '${'$as_ac_Header'}'` = yes; then
15806 cat >>confdefs.h <<_ACEOF
15807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15808_ACEOF
15809
15810fi
15811
15812done
15813
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015814if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015815
15816for ac_header in pthread.h
15817do
15818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824fi
15825ac_res=`eval echo '${'$as_ac_Header'}'`
15826 { echo "$as_me:$LINENO: result: $ac_res" >&5
15827echo "${ECHO_T}$ac_res" >&6; }
15828else
15829 # Is the header compilable?
15830{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15832cat >conftest.$ac_ext <<_ACEOF
15833/* confdefs.h. */
15834_ACEOF
15835cat confdefs.h >>conftest.$ac_ext
15836cat >>conftest.$ac_ext <<_ACEOF
15837/* end confdefs.h. */
15838$ac_includes_default
15839#include <$ac_header>
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (ac_try="$ac_compile"
15843case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15846esac
15847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_compile") 2>conftest.er1
15849 ac_status=$?
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15869esac
15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_try") 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_header_compiler=yes
15876else
15877 echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 ac_header_compiler=no
15881fi
15882
15883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885echo "${ECHO_T}$ac_header_compiler" >&6; }
15886
15887# Is the header present?
15888{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15890cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896#include <$ac_header>
15897_ACEOF
15898if { (ac_try="$ac_cpp conftest.$ac_ext"
15899case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15902esac
15903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } >/dev/null; then
15911 if test -s conftest.err; then
15912 ac_cpp_err=$ac_c_preproc_warn_flag
15913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914 else
15915 ac_cpp_err=
15916 fi
15917else
15918 ac_cpp_err=yes
15919fi
15920if test -z "$ac_cpp_err"; then
15921 ac_header_preproc=yes
15922else
15923 echo "$as_me: failed program was:" >&5
15924sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 ac_header_preproc=no
15927fi
15928
15929rm -f conftest.err conftest.$ac_ext
15930{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15931echo "${ECHO_T}$ac_header_preproc" >&6; }
15932
15933# So? What about this header?
15934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 yes:no: )
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15940 ac_header_preproc=yes
15941 ;;
15942 no:yes:* )
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15955 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015956## ------------------------------------ ##
15957## Report this to http://llvm.org/bugs/ ##
15958## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015959_ASBOX
15960 ) | sed "s/^/$as_me: WARNING: /" >&2
15961 ;;
15962esac
15963{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967else
15968 eval "$as_ac_Header=\$ac_header_preproc"
15969fi
15970ac_res=`eval echo '${'$as_ac_Header'}'`
15971 { echo "$as_me:$LINENO: result: $ac_res" >&5
15972echo "${ECHO_T}$ac_res" >&6; }
15973
15974fi
15975if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015976 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015978_ACEOF
15979 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015980
15981else
15982 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015983
15984fi
15985
Reid Spencerbe3e4192007-08-17 05:45:26 +000015986done
Reid Spencer1000b732006-12-01 00:37:14 +000015987
15988else
15989 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015990
15991fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015992
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015993if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015994
15995
15996for ac_header in ffi.h ffi/ffi.h
15997do
15998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004fi
16005ac_res=`eval echo '${'$as_ac_Header'}'`
16006 { echo "$as_me:$LINENO: result: $ac_res" >&5
16007echo "${ECHO_T}$ac_res" >&6; }
16008else
16009 # Is the header compilable?
16010{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16011echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16012cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018$ac_includes_default
16019#include <$ac_header>
16020_ACEOF
16021rm -f conftest.$ac_objext
16022if { (ac_try="$ac_compile"
16023case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026esac
16027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_compile") 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16036 { (case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039esac
16040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_try") 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16049esac
16050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_try") 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_header_compiler=yes
16056else
16057 echo "$as_me: failed program was:" >&5
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
16060 ac_header_compiler=no
16061fi
16062
16063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16065echo "${ECHO_T}$ac_header_compiler" >&6; }
16066
16067# Is the header present?
16068{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076#include <$ac_header>
16077_ACEOF
16078if { (ac_try="$ac_cpp conftest.$ac_ext"
16079case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082esac
16083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } >/dev/null; then
16091 if test -s conftest.err; then
16092 ac_cpp_err=$ac_c_preproc_warn_flag
16093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16094 else
16095 ac_cpp_err=
16096 fi
16097else
16098 ac_cpp_err=yes
16099fi
16100if test -z "$ac_cpp_err"; then
16101 ac_header_preproc=yes
16102else
16103 echo "$as_me: failed program was:" >&5
16104sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 ac_header_preproc=no
16107fi
16108
16109rm -f conftest.err conftest.$ac_ext
16110{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111echo "${ECHO_T}$ac_header_preproc" >&6; }
16112
16113# So? What about this header?
16114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16115 yes:no: )
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16121 ;;
16122 no:yes:* )
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16135 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016136## ------------------------------------ ##
16137## Report this to http://llvm.org/bugs/ ##
16138## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016139_ASBOX
16140 ) | sed "s/^/$as_me: WARNING: /" >&2
16141 ;;
16142esac
16143{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147else
16148 eval "$as_ac_Header=\$ac_header_preproc"
16149fi
16150ac_res=`eval echo '${'$as_ac_Header'}'`
16151 { echo "$as_me:$LINENO: result: $ac_res" >&5
16152echo "${ECHO_T}$ac_res" >&6; }
16153
16154fi
16155if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016156 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016158_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016159
16160fi
16161
16162done
16163
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016164fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016165
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016166
Eric Christopher654dee42010-06-22 21:01:04 +000016167for ac_header in CrashReporterClient.h
16168do
16169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175fi
16176ac_res=`eval echo '${'$as_ac_Header'}'`
16177 { echo "$as_me:$LINENO: result: $ac_res" >&5
16178echo "${ECHO_T}$ac_res" >&6; }
16179else
16180 # Is the header compilable?
16181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16183cat >conftest.$ac_ext <<_ACEOF
16184/* confdefs.h. */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h. */
16189$ac_includes_default
16190#include <$ac_header>
16191_ACEOF
16192rm -f conftest.$ac_objext
16193if { (ac_try="$ac_compile"
16194case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197esac
16198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_compile") 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210esac
16211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_try") 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
16217 { (case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16220esac
16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_try") 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_header_compiler=yes
16227else
16228 echo "$as_me: failed program was:" >&5
16229sed 's/^/| /' conftest.$ac_ext >&5
16230
16231 ac_header_compiler=no
16232fi
16233
16234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16236echo "${ECHO_T}$ac_header_compiler" >&6; }
16237
16238# Is the header present?
16239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16241cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
16247#include <$ac_header>
16248_ACEOF
16249if { (ac_try="$ac_cpp conftest.$ac_ext"
16250case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253esac
16254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } >/dev/null; then
16262 if test -s conftest.err; then
16263 ac_cpp_err=$ac_c_preproc_warn_flag
16264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16265 else
16266 ac_cpp_err=
16267 fi
16268else
16269 ac_cpp_err=yes
16270fi
16271if test -z "$ac_cpp_err"; then
16272 ac_header_preproc=yes
16273else
16274 echo "$as_me: failed program was:" >&5
16275sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 ac_header_preproc=no
16278fi
16279
16280rm -f conftest.err conftest.$ac_ext
16281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16282echo "${ECHO_T}$ac_header_preproc" >&6; }
16283
16284# So? What about this header?
16285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16286 yes:no: )
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16291 ac_header_preproc=yes
16292 ;;
16293 no:yes:* )
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16306 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016307## ------------------------------------ ##
16308## Report this to http://llvm.org/bugs/ ##
16309## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016310_ASBOX
16311 ) | sed "s/^/$as_me: WARNING: /" >&2
16312 ;;
16313esac
16314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318else
16319 eval "$as_ac_Header=\$ac_header_preproc"
16320fi
16321ac_res=`eval echo '${'$as_ac_Header'}'`
16322 { echo "$as_me:$LINENO: result: $ac_res" >&5
16323echo "${ECHO_T}$ac_res" >&6; }
16324
16325fi
16326if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16329_ACEOF
16330
16331fi
16332
16333done
16334
16335
Eric Christopher51e57132010-12-07 02:05:42 +000016336{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16337echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016338cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016344extern const char *__crashreporter_info__;
16345 int main() {
16346 __crashreporter_info__ = "test";
16347 return 0;
16348 }
Eric Christopher481d4022010-12-03 07:45:22 +000016349
Eric Christopher481d4022010-12-03 07:45:22 +000016350_ACEOF
16351rm -f conftest.$ac_objext conftest$ac_exeext
16352if { (ac_try="$ac_link"
16353case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356esac
16357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_link") 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369esac
16370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest$ac_exeext'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379esac
16380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016385 { echo "$as_me:$LINENO: result: yes" >&5
16386echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016387
16388cat >>confdefs.h <<\_ACEOF
16389#define HAVE_CRASHREPORTER_INFO 1
16390_ACEOF
16391
Eric Christopher51e57132010-12-07 02:05:42 +000016392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 { echo "$as_me:$LINENO: result: no" >&5
16397echo "${ECHO_T}no" >&6; }
16398
16399cat >>confdefs.h <<\_ACEOF
16400#define HAVE_CRASHREPORTER_INFO 0
16401_ACEOF
16402
Eric Christopher481d4022010-12-03 07:45:22 +000016403fi
Eric Christopher654dee42010-06-22 21:01:04 +000016404
Eric Christopher51e57132010-12-07 02:05:42 +000016405rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16407
16408
Reid Spencer8085cff2005-01-16 02:58:39 +000016409
Torok Edwin871384f2010-01-26 08:50:50 +000016410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016411 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16412echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16413if test "${ac_cv_huge_val_sanity+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016415else
16416
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016417 ac_ext=cpp
16418ac_cpp='$CXXCPP $CPPFLAGS'
16419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016422
Eric Christopherc7718502010-03-02 05:06:54 +000016423 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016424 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016425 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016426 ac_cv_huge_val_sanity=yes
16427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016428 cat >conftest.$ac_ext <<_ACEOF
16429/* confdefs.h. */
16430_ACEOF
16431cat confdefs.h >>conftest.$ac_ext
16432cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016433/* end confdefs.h. */
16434#include <math.h>
16435int
16436main ()
16437{
16438double x = HUGE_VAL; return x != x;
16439 ;
16440 return 0;
16441}
16442_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016443rm -f conftest$ac_exeext
16444if { (ac_try="$ac_link"
16445case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448esac
16449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_link") 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457esac
16458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016463 ac_cv_huge_val_sanity=yes
16464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016465 echo "$as_me: program exited with status $ac_status" >&5
16466echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469( exit $ac_status )
16470ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016471fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016472rm -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 +000016473fi
16474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016475
Eric Christopherc7718502010-03-02 05:06:54 +000016476 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016477 ac_ext=c
16478ac_cpp='$CPP $CPPFLAGS'
16479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16481ac_compiler_gnu=$ac_cv_c_compiler_gnu
16482
16483
16484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016485{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16486echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016487 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16488
16489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016490{ echo "$as_me:$LINENO: checking for pid_t" >&5
16491echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16492if test "${ac_cv_type_pid_t+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495 cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501$ac_includes_default
16502typedef pid_t ac__type_new_;
16503int
16504main ()
16505{
16506if ((ac__type_new_ *) 0)
16507 return 0;
16508if (sizeof (ac__type_new_))
16509 return 0;
16510 ;
16511 return 0;
16512}
16513_ACEOF
16514rm -f conftest.$ac_objext
16515if { (ac_try="$ac_compile"
16516case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_cv_type_pid_t=yes
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016553 ac_cv_type_pid_t=no
16554fi
16555
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557fi
16558{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16559echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16560if test $ac_cv_type_pid_t = yes; then
16561 :
John Criswell7a73b802003-06-30 21:59:07 +000016562else
16563
16564cat >>confdefs.h <<_ACEOF
16565#define pid_t int
16566_ACEOF
16567
16568fi
16569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016570{ echo "$as_me:$LINENO: checking for size_t" >&5
16571echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16572if test "${ac_cv_type_size_t+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575 cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581$ac_includes_default
16582typedef size_t ac__type_new_;
16583int
16584main ()
16585{
16586if ((ac__type_new_ *) 0)
16587 return 0;
16588if (sizeof (ac__type_new_))
16589 return 0;
16590 ;
16591 return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext
16595if { (ac_try="$ac_compile"
16596case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_compile") 2>conftest.er1
16602 ac_status=$?
16603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612esac
16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
16619 { (case "(($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_try") 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_type_size_t=yes
16629else
16630 echo "$as_me: failed program was:" >&5
16631sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016633 ac_cv_type_size_t=no
16634fi
16635
16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637fi
16638{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16639echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16640if test $ac_cv_type_size_t = yes; then
16641 :
John Criswell7a73b802003-06-30 21:59:07 +000016642else
16643
16644cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016645#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016646_ACEOF
16647
16648fi
16649
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016650
16651cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016652#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016653_ACEOF
16654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016655{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16656echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16657if test "${ac_cv_struct_tm+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016660 cat >conftest.$ac_ext <<_ACEOF
16661/* confdefs.h. */
16662_ACEOF
16663cat confdefs.h >>conftest.$ac_ext
16664cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016665/* end confdefs.h. */
16666#include <sys/types.h>
16667#include <time.h>
16668
16669int
16670main ()
16671{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016672struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016673 ;
16674 return 0;
16675}
16676_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016677rm -f conftest.$ac_objext
16678if { (ac_try="$ac_compile"
16679case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682esac
16683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_compile") 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest.$ac_objext'
16702 { (case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16705esac
16706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_try") 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016711 ac_cv_struct_tm=time.h
16712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016718
Reid Spencera773bd52006-08-04 18:18:08 +000016719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016721{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16722echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016723if test $ac_cv_struct_tm = sys/time.h; then
16724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016725cat >>confdefs.h <<\_ACEOF
16726#define TM_IN_SYS_TIME 1
16727_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016728
16729fi
16730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016731{ echo "$as_me:$LINENO: checking for int64_t" >&5
16732echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16733if test "${ac_cv_type_int64_t+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 cat >conftest.$ac_ext <<_ACEOF
16737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
16742$ac_includes_default
16743typedef int64_t ac__type_new_;
16744int
16745main ()
16746{
16747if ((ac__type_new_ *) 0)
16748 return 0;
16749if (sizeof (ac__type_new_))
16750 return 0;
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext
16756if { (ac_try="$ac_compile"
16757case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_compile") 2>conftest.er1
16763 ac_status=$?
16764 grep -v '^ *+' conftest.er1 >conftest.err
16765 rm -f conftest.er1
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783esac
16784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_cv_type_int64_t=yes
16790else
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794 ac_cv_type_int64_t=no
16795fi
16796
16797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798fi
16799{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16800echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16801if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016802
16803cat >>confdefs.h <<_ACEOF
16804#define HAVE_INT64_T 1
16805_ACEOF
16806
16807
16808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016809 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16810echo "$as_me: error: Type int64_t required but not found" >&2;}
16811 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016812fi
16813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016814{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16815echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16816if test "${ac_cv_type_uint64_t+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819 cat >conftest.$ac_ext <<_ACEOF
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
16825$ac_includes_default
16826typedef uint64_t ac__type_new_;
16827int
16828main ()
16829{
16830if ((ac__type_new_ *) 0)
16831 return 0;
16832if (sizeof (ac__type_new_))
16833 return 0;
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
16839if { (ac_try="$ac_compile"
16840case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest.$ac_objext'
16863 { (case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_try") 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_type_uint64_t=yes
16873else
16874 echo "$as_me: failed program was:" >&5
16875sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 ac_cv_type_uint64_t=no
16878fi
16879
16880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881fi
16882{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16883echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16884if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016885
16886cat >>confdefs.h <<_ACEOF
16887#define HAVE_UINT64_T 1
16888_ACEOF
16889
16890
16891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016892 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16893echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16894if test "${ac_cv_type_u_int64_t+set}" = set; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896else
16897 cat >conftest.$ac_ext <<_ACEOF
16898/* confdefs.h. */
16899_ACEOF
16900cat confdefs.h >>conftest.$ac_ext
16901cat >>conftest.$ac_ext <<_ACEOF
16902/* end confdefs.h. */
16903$ac_includes_default
16904typedef u_int64_t ac__type_new_;
16905int
16906main ()
16907{
16908if ((ac__type_new_ *) 0)
16909 return 0;
16910if (sizeof (ac__type_new_))
16911 return 0;
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext
16917if { (ac_try="$ac_compile"
16918case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921esac
16922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_type_u_int64_t=yes
16951else
16952 echo "$as_me: failed program was:" >&5
16953sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 ac_cv_type_u_int64_t=no
16956fi
16957
16958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959fi
16960{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16961echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16962if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016963
16964cat >>confdefs.h <<_ACEOF
16965#define HAVE_U_INT64_T 1
16966_ACEOF
16967
16968
Misha Brukmanceca9042004-09-02 23:02:30 +000016969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016970 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16971echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16972 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016973fi
16974
John Criswell679ff312004-09-02 18:44:44 +000016975fi
16976
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016977
16978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016979
16980
16981
16982
16983
16984
16985
Reid Spencerdf3be822006-01-23 08:15:53 +000016986for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016987do
16988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993else
16994 cat >conftest.$ac_ext <<_ACEOF
16995/* confdefs.h. */
16996_ACEOF
16997cat confdefs.h >>conftest.$ac_ext
16998cat >>conftest.$ac_ext <<_ACEOF
16999/* end confdefs.h. */
17000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17002#define $ac_func innocuous_$ac_func
17003
17004/* System header to define __stub macros and hopefully few prototypes,
17005 which can conflict with char $ac_func (); below.
17006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17007 <limits.h> exists even on freestanding compilers. */
17008
17009#ifdef __STDC__
17010# include <limits.h>
17011#else
17012# include <assert.h>
17013#endif
17014
17015#undef $ac_func
17016
17017/* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17020#ifdef __cplusplus
17021extern "C"
17022#endif
17023char $ac_func ();
17024/* The GNU C library defines this for functions which it implements
17025 to always fail with ENOSYS. Some functions are actually named
17026 something starting with __ and the normal name is an alias. */
17027#if defined __stub_$ac_func || defined __stub___$ac_func
17028choke me
17029#endif
17030
17031int
17032main ()
17033{
17034return $ac_func ();
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext conftest$ac_exeext
17040if { (ac_try="$ac_link"
17041case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044esac
17045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest$ac_exeext'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 eval "$as_ac_var=yes"
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 eval "$as_ac_var=no"
17079fi
17080
17081rm -f core conftest.err conftest.$ac_objext \
17082 conftest$ac_exeext conftest.$ac_ext
17083fi
17084ac_res=`eval echo '${'$as_ac_var'}'`
17085 { echo "$as_me:$LINENO: result: $ac_res" >&5
17086echo "${ECHO_T}$ac_res" >&6; }
17087if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017088 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017090_ACEOF
17091
17092fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017093done
John Criswell7a73b802003-06-30 21:59:07 +000017094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017095
17096
17097
17098
Reid Spencer96cf5872007-07-13 10:05:30 +000017099for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017100do
17101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107 cat >conftest.$ac_ext <<_ACEOF
17108/* confdefs.h. */
17109_ACEOF
17110cat confdefs.h >>conftest.$ac_ext
17111cat >>conftest.$ac_ext <<_ACEOF
17112/* end confdefs.h. */
17113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17115#define $ac_func innocuous_$ac_func
17116
17117/* System header to define __stub macros and hopefully few prototypes,
17118 which can conflict with char $ac_func (); below.
17119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17120 <limits.h> exists even on freestanding compilers. */
17121
17122#ifdef __STDC__
17123# include <limits.h>
17124#else
17125# include <assert.h>
17126#endif
17127
17128#undef $ac_func
17129
17130/* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136char $ac_func ();
17137/* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140#if defined __stub_$ac_func || defined __stub___$ac_func
17141choke me
17142#endif
17143
17144int
17145main ()
17146{
17147return $ac_func ();
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 eval "$as_ac_var=yes"
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 eval "$as_ac_var=no"
17192fi
17193
17194rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196fi
17197ac_res=`eval echo '${'$as_ac_var'}'`
17198 { echo "$as_me:$LINENO: result: $ac_res" >&5
17199echo "${ECHO_T}$ac_res" >&6; }
17200if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017203_ACEOF
17204
17205fi
17206done
17207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017208
17209
17210
17211
17212
Reid Spencerb90645c2007-02-16 19:17:20 +000017213for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017214do
17215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221 cat >conftest.$ac_ext <<_ACEOF
17222/* confdefs.h. */
17223_ACEOF
17224cat confdefs.h >>conftest.$ac_ext
17225cat >>conftest.$ac_ext <<_ACEOF
17226/* end confdefs.h. */
17227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17229#define $ac_func innocuous_$ac_func
17230
17231/* System header to define __stub macros and hopefully few prototypes,
17232 which can conflict with char $ac_func (); below.
17233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234 <limits.h> exists even on freestanding compilers. */
17235
17236#ifdef __STDC__
17237# include <limits.h>
17238#else
17239# include <assert.h>
17240#endif
17241
17242#undef $ac_func
17243
17244/* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247#ifdef __cplusplus
17248extern "C"
17249#endif
17250char $ac_func ();
17251/* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254#if defined __stub_$ac_func || defined __stub___$ac_func
17255choke me
17256#endif
17257
17258int
17259main ()
17260{
17261return $ac_func ();
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266rm -f conftest.$ac_objext conftest$ac_exeext
17267if { (ac_try="$ac_link"
17268case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271esac
17272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281 { (case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17284esac
17285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_try") 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; } &&
17290 { ac_try='test -s conftest$ac_exeext'
17291 { (case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17294esac
17295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_try") 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 eval "$as_ac_var=yes"
17301else
17302 echo "$as_me: failed program was:" >&5
17303sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 eval "$as_ac_var=no"
17306fi
17307
17308rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17310fi
17311ac_res=`eval echo '${'$as_ac_var'}'`
17312 { echo "$as_me:$LINENO: result: $ac_res" >&5
17313echo "${ECHO_T}$ac_res" >&6; }
17314if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017317_ACEOF
17318
17319fi
17320done
17321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017322
17323
17324
Reid Spencerb90645c2007-02-16 19:17:20 +000017325for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017326do
17327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17328{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17330if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332else
17333 cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17341#define $ac_func innocuous_$ac_func
17342
17343/* System header to define __stub macros and hopefully few prototypes,
17344 which can conflict with char $ac_func (); below.
17345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17346 <limits.h> exists even on freestanding compilers. */
17347
17348#ifdef __STDC__
17349# include <limits.h>
17350#else
17351# include <assert.h>
17352#endif
17353
17354#undef $ac_func
17355
17356/* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17359#ifdef __cplusplus
17360extern "C"
17361#endif
17362char $ac_func ();
17363/* The GNU C library defines this for functions which it implements
17364 to always fail with ENOSYS. Some functions are actually named
17365 something starting with __ and the normal name is an alias. */
17366#if defined __stub_$ac_func || defined __stub___$ac_func
17367choke me
17368#endif
17369
17370int
17371main ()
17372{
17373return $ac_func ();
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext conftest$ac_exeext
17379if { (ac_try="$ac_link"
17380case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383esac
17384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_link") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest$ac_exeext'
17403 { (case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406esac
17407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 eval "$as_ac_var=yes"
17413else
17414 echo "$as_me: failed program was:" >&5
17415sed 's/^/| /' conftest.$ac_ext >&5
17416
17417 eval "$as_ac_var=no"
17418fi
17419
17420rm -f core conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17422fi
17423ac_res=`eval echo '${'$as_ac_var'}'`
17424 { echo "$as_me:$LINENO: result: $ac_res" >&5
17425echo "${ECHO_T}$ac_res" >&6; }
17426if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017427 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017429_ACEOF
17430
17431fi
17432done
17433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017434
17435
17436
17437
17438
Eric Christophere4291822010-04-16 05:14:21 +000017439
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017440
17441for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017442do
17443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17444{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448else
17449 cat >conftest.$ac_ext <<_ACEOF
17450/* confdefs.h. */
17451_ACEOF
17452cat confdefs.h >>conftest.$ac_ext
17453cat >>conftest.$ac_ext <<_ACEOF
17454/* end confdefs.h. */
17455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17457#define $ac_func innocuous_$ac_func
17458
17459/* System header to define __stub macros and hopefully few prototypes,
17460 which can conflict with char $ac_func (); below.
17461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17462 <limits.h> exists even on freestanding compilers. */
17463
17464#ifdef __STDC__
17465# include <limits.h>
17466#else
17467# include <assert.h>
17468#endif
17469
17470#undef $ac_func
17471
17472/* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17475#ifdef __cplusplus
17476extern "C"
17477#endif
17478char $ac_func ();
17479/* The GNU C library defines this for functions which it implements
17480 to always fail with ENOSYS. Some functions are actually named
17481 something starting with __ and the normal name is an alias. */
17482#if defined __stub_$ac_func || defined __stub___$ac_func
17483choke me
17484#endif
17485
17486int
17487main ()
17488{
17489return $ac_func ();
17490 ;
17491 return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext conftest$ac_exeext
17495if { (ac_try="$ac_link"
17496case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_link") 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17509 { (case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512esac
17513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_try") 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest$ac_exeext'
17519 { (case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17522esac
17523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_try") 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 eval "$as_ac_var=yes"
17529else
17530 echo "$as_me: failed program was:" >&5
17531sed 's/^/| /' conftest.$ac_ext >&5
17532
17533 eval "$as_ac_var=no"
17534fi
17535
17536rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538fi
17539ac_res=`eval echo '${'$as_ac_var'}'`
17540 { echo "$as_me:$LINENO: result: $ac_res" >&5
17541echo "${ECHO_T}$ac_res" >&6; }
17542if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017543 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017545_ACEOF
17546
17547fi
17548done
Reid Spencerdf3be822006-01-23 08:15:53 +000017549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017550
17551
17552
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017553
17554for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017555do
17556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17557{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17559if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561else
17562 cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17570#define $ac_func innocuous_$ac_func
17571
17572/* System header to define __stub macros and hopefully few prototypes,
17573 which can conflict with char $ac_func (); below.
17574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17575 <limits.h> exists even on freestanding compilers. */
17576
17577#ifdef __STDC__
17578# include <limits.h>
17579#else
17580# include <assert.h>
17581#endif
17582
17583#undef $ac_func
17584
17585/* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588#ifdef __cplusplus
17589extern "C"
17590#endif
17591char $ac_func ();
17592/* The GNU C library defines this for functions which it implements
17593 to always fail with ENOSYS. Some functions are actually named
17594 something starting with __ and the normal name is an alias. */
17595#if defined __stub_$ac_func || defined __stub___$ac_func
17596choke me
17597#endif
17598
17599int
17600main ()
17601{
17602return $ac_func ();
17603 ;
17604 return 0;
17605}
17606_ACEOF
17607rm -f conftest.$ac_objext conftest$ac_exeext
17608if { (ac_try="$ac_link"
17609case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612esac
17613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625esac
17626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_try") 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest$ac_exeext'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635esac
17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 eval "$as_ac_var=yes"
17642else
17643 echo "$as_me: failed program was:" >&5
17644sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 eval "$as_ac_var=no"
17647fi
17648
17649rm -f core conftest.err conftest.$ac_objext \
17650 conftest$ac_exeext conftest.$ac_ext
17651fi
17652ac_res=`eval echo '${'$as_ac_var'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654echo "${ECHO_T}$ac_res" >&6; }
17655if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017656 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017657#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017658_ACEOF
17659
17660fi
17661done
17662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017663
17664
17665
17666
Chris Lattner511f11d2005-11-14 07:25:50 +000017667for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017668do
17669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17670{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674else
17675 cat >conftest.$ac_ext <<_ACEOF
17676/* confdefs.h. */
17677_ACEOF
17678cat confdefs.h >>conftest.$ac_ext
17679cat >>conftest.$ac_ext <<_ACEOF
17680/* end confdefs.h. */
17681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17683#define $ac_func innocuous_$ac_func
17684
17685/* System header to define __stub macros and hopefully few prototypes,
17686 which can conflict with char $ac_func (); below.
17687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17688 <limits.h> exists even on freestanding compilers. */
17689
17690#ifdef __STDC__
17691# include <limits.h>
17692#else
17693# include <assert.h>
17694#endif
17695
17696#undef $ac_func
17697
17698/* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17701#ifdef __cplusplus
17702extern "C"
17703#endif
17704char $ac_func ();
17705/* The GNU C library defines this for functions which it implements
17706 to always fail with ENOSYS. Some functions are actually named
17707 something starting with __ and the normal name is an alias. */
17708#if defined __stub_$ac_func || defined __stub___$ac_func
17709choke me
17710#endif
17711
17712int
17713main ()
17714{
17715return $ac_func ();
17716 ;
17717 return 0;
17718}
17719_ACEOF
17720rm -f conftest.$ac_objext conftest$ac_exeext
17721if { (ac_try="$ac_link"
17722case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_link") 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17735 { (case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17738esac
17739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_try") 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 eval "$as_ac_var=yes"
17755else
17756 echo "$as_me: failed program was:" >&5
17757sed 's/^/| /' conftest.$ac_ext >&5
17758
17759 eval "$as_ac_var=no"
17760fi
17761
17762rm -f core conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17764fi
17765ac_res=`eval echo '${'$as_ac_var'}'`
17766 { echo "$as_me:$LINENO: result: $ac_res" >&5
17767echo "${ECHO_T}$ac_res" >&6; }
17768if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017769 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017771_ACEOF
17772
17773fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017774done
John Criswell7a73b802003-06-30 21:59:07 +000017775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017776
17777
17778
17779
Daniel Dunbar3e462932011-02-03 02:40:02 +000017780
17781for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017782do
17783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17784{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17786if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788else
17789 cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
17794/* end confdefs.h. */
17795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17797#define $ac_func innocuous_$ac_func
17798
17799/* System header to define __stub macros and hopefully few prototypes,
17800 which can conflict with char $ac_func (); below.
17801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17802 <limits.h> exists even on freestanding compilers. */
17803
17804#ifdef __STDC__
17805# include <limits.h>
17806#else
17807# include <assert.h>
17808#endif
17809
17810#undef $ac_func
17811
17812/* Override any GCC internal prototype to avoid an error.
17813 Use char because int might match the return type of a GCC
17814 builtin and then its argument prototype would still apply. */
17815#ifdef __cplusplus
17816extern "C"
17817#endif
17818char $ac_func ();
17819/* The GNU C library defines this for functions which it implements
17820 to always fail with ENOSYS. Some functions are actually named
17821 something starting with __ and the normal name is an alias. */
17822#if defined __stub_$ac_func || defined __stub___$ac_func
17823choke me
17824#endif
17825
17826int
17827main ()
17828{
17829return $ac_func ();
17830 ;
17831 return 0;
17832}
17833_ACEOF
17834rm -f conftest.$ac_objext conftest$ac_exeext
17835if { (ac_try="$ac_link"
17836case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_link") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852esac
17853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest$ac_exeext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862esac
17863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 eval "$as_ac_var=yes"
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 eval "$as_ac_var=no"
17874fi
17875
17876rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878fi
17879ac_res=`eval echo '${'$as_ac_var'}'`
17880 { echo "$as_me:$LINENO: result: $ac_res" >&5
17881echo "${ECHO_T}$ac_res" >&6; }
17882if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017883 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017885_ACEOF
17886
17887fi
17888done
17889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017890{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17891echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17892if test "${llvm_cv_c_printf_a+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017894else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017895 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017896ac_cpp='$CPP $CPPFLAGS'
17897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899ac_compiler_gnu=$ac_cv_c_compiler_gnu
17900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017901 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017902 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017904 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017906 /* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017911
John Criswella0137d32003-10-13 16:22:01 +000017912#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017913#include <stdlib.h>
17914
John Criswella0137d32003-10-13 16:22:01 +000017915int
17916main ()
17917{
17918
Reid Spencer2706f8c2004-09-19 23:53:36 +000017919volatile double A, B;
17920char Buffer[100];
17921A = 1;
17922A /= 10.0;
17923sprintf(Buffer, "%a", A);
17924B = atof(Buffer);
17925if (A != B)
17926 return (1);
17927if (A != 0x1.999999999999ap-4)
17928 return (1);
17929return (0);
John Criswella0137d32003-10-13 16:22:01 +000017930 ;
17931 return 0;
17932}
17933_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017934rm -f conftest$ac_exeext
17935if { (ac_try="$ac_link"
17936case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939esac
17940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17948esac
17949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017954 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017956 echo "$as_me: program exited with status $ac_status" >&5
17957echo "$as_me: failed program was:" >&5
17958sed 's/^/| /' conftest.$ac_ext >&5
17959
17960( exit $ac_status )
17961llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017963rm -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 +000017964fi
Reid Spencera773bd52006-08-04 18:18:08 +000017965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017966
Reid Spencer2706f8c2004-09-19 23:53:36 +000017967 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017968ac_cpp='$CPP $CPPFLAGS'
17969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17975echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017976 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017978cat >>confdefs.h <<\_ACEOF
17979#define HAVE_PRINTF_A 1
17980_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017981
Reid Spencer2706f8c2004-09-19 23:53:36 +000017982 fi
John Criswella0137d32003-10-13 16:22:01 +000017983
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017985{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17986echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17987if test "${ac_cv_func_rand48+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017989else
Reid Spencera773bd52006-08-04 18:18:08 +000017990 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017991ac_cpp='$CXXCPP $CPPFLAGS'
17992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017996 cat >conftest.$ac_ext <<_ACEOF
17997/* confdefs.h. */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018001/* end confdefs.h. */
18002#include <stdlib.h>
18003int
18004main ()
18005{
18006srand48(0);lrand48();drand48();
18007 ;
18008 return 0;
18009}
18010_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018011rm -f conftest.$ac_objext
18012if { (ac_try="$ac_compile"
18013case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest.$ac_objext'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039esac
18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018045 ac_cv_func_rand48=yes
18046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018047 echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018052
Reid Spencera773bd52006-08-04 18:18:08 +000018053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018054 ac_ext=c
18055ac_cpp='$CPP $CPPFLAGS'
18056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058ac_compiler_gnu=$ac_cv_c_compiler_gnu
18059
18060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018061{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18062echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018063
18064if test "$ac_cv_func_rand48" = "yes" ; then
18065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018066cat >>confdefs.h <<\_ACEOF
18067#define HAVE_RAND48 1
18068_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018069
18070fi
John Criswell0021c312004-02-13 21:57:29 +000018071
18072
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018073{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18074echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18075if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077else
18078 cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
18084$ac_includes_default
18085int
18086main ()
18087{
18088#ifndef strerror_s
18089 char *p = (char *) strerror_s;
18090 return !p;
18091#endif
18092
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext
18098if { (ac_try="$ac_compile"
18099case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102esac
18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125esac
18126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_have_decl_strerror_s=yes
18132else
18133 echo "$as_me: failed program was:" >&5
18134sed 's/^/| /' conftest.$ac_ext >&5
18135
18136 ac_cv_have_decl_strerror_s=no
18137fi
18138
18139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140fi
18141{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18142echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18143if test $ac_cv_have_decl_strerror_s = yes; then
18144
18145cat >>confdefs.h <<_ACEOF
18146#define HAVE_DECL_STRERROR_S 1
18147_ACEOF
18148
18149
18150else
18151 cat >>confdefs.h <<_ACEOF
18152#define HAVE_DECL_STRERROR_S 0
18153_ACEOF
18154
18155
18156fi
18157
18158
18159
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018160if test "$llvm_cv_os_type" = "MingW" ; then
18161 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18162echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18163if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
18166 ac_check_lib_save_LIBS=$LIBS
18167LIBS="-lgcc $LIBS"
18168cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174
18175/* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char _alloca ();
18182int
18183main ()
18184{
18185return _alloca ();
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext conftest$ac_exeext
18191if { (ac_try="$ac_link"
18192case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218esac
18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_gcc__alloca=yes
18225else
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_cv_lib_gcc__alloca=no
18230fi
18231
18232rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234LIBS=$ac_check_lib_save_LIBS
18235fi
18236{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18237echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18238if test $ac_cv_lib_gcc__alloca = yes; then
18239
18240cat >>confdefs.h <<\_ACEOF
18241#define HAVE__ALLOCA 1
18242_ACEOF
18243
18244fi
18245
18246 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18247echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18248if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251 ac_check_lib_save_LIBS=$LIBS
18252LIBS="-lgcc $LIBS"
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259
18260/* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263#ifdef __cplusplus
18264extern "C"
18265#endif
18266char __alloca ();
18267int
18268main ()
18269{
18270return __alloca ();
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext conftest$ac_exeext
18276if { (ac_try="$ac_link"
18277case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_gcc___alloca=yes
18310else
18311 echo "$as_me: failed program was:" >&5
18312sed 's/^/| /' conftest.$ac_ext >&5
18313
18314 ac_cv_lib_gcc___alloca=no
18315fi
18316
18317rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319LIBS=$ac_check_lib_save_LIBS
18320fi
18321{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18322echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18323if test $ac_cv_lib_gcc___alloca = yes; then
18324
18325cat >>confdefs.h <<\_ACEOF
18326#define HAVE___ALLOCA 1
18327_ACEOF
18328
18329fi
18330
18331 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18332echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18333if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 ac_check_lib_save_LIBS=$LIBS
18337LIBS="-lgcc $LIBS"
18338cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344
18345/* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18348#ifdef __cplusplus
18349extern "C"
18350#endif
18351char __chkstk ();
18352int
18353main ()
18354{
18355return __chkstk ();
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext conftest$ac_exeext
18361if { (ac_try="$ac_link"
18362case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365esac
18366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388esac
18389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_try") 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_lib_gcc___chkstk=yes
18395else
18396 echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ac_cv_lib_gcc___chkstk=no
18400fi
18401
18402rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404LIBS=$ac_check_lib_save_LIBS
18405fi
18406{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18407echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18408if test $ac_cv_lib_gcc___chkstk = yes; then
18409
18410cat >>confdefs.h <<\_ACEOF
18411#define HAVE___CHKSTK 1
18412_ACEOF
18413
18414fi
18415
18416 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18417echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18418if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420else
18421 ac_check_lib_save_LIBS=$LIBS
18422LIBS="-lgcc $LIBS"
18423cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429
18430/* Override any GCC internal prototype to avoid an error.
18431 Use char because int might match the return type of a GCC
18432 builtin and then its argument prototype would still apply. */
18433#ifdef __cplusplus
18434extern "C"
18435#endif
18436char ___chkstk ();
18437int
18438main ()
18439{
18440return ___chkstk ();
18441 ;
18442 return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext conftest$ac_exeext
18446if { (ac_try="$ac_link"
18447case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18473esac
18474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_cv_lib_gcc____chkstk=yes
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_cv_lib_gcc____chkstk=no
18485fi
18486
18487rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489LIBS=$ac_check_lib_save_LIBS
18490fi
18491{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18492echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18493if test $ac_cv_lib_gcc____chkstk = yes; then
18494
18495cat >>confdefs.h <<\_ACEOF
18496#define HAVE____CHKSTK 1
18497_ACEOF
18498
18499fi
18500
18501
18502 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18503echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18504if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 ac_check_lib_save_LIBS=$LIBS
18508LIBS="-lgcc $LIBS"
18509cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h. */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
18514/* end confdefs.h. */
18515
18516/* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18519#ifdef __cplusplus
18520extern "C"
18521#endif
18522char __ashldi3 ();
18523int
18524main ()
18525{
18526return __ashldi3 ();
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext conftest$ac_exeext
18532if { (ac_try="$ac_link"
18533case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18539 ac_status=$?
18540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559esac
18560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___ashldi3=yes
18566else
18567 echo "$as_me: failed program was:" >&5
18568sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_cv_lib_gcc___ashldi3=no
18571fi
18572
18573rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575LIBS=$ac_check_lib_save_LIBS
18576fi
18577{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18578echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18579if test $ac_cv_lib_gcc___ashldi3 = yes; then
18580
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE___ASHLDI3 1
18583_ACEOF
18584
18585fi
18586
18587 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18588echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18589if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 ac_check_lib_save_LIBS=$LIBS
18593LIBS="-lgcc $LIBS"
18594cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
18600
18601/* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607char __ashrdi3 ();
18608int
18609main ()
18610{
18611return __ashrdi3 ();
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext conftest$ac_exeext
18617if { (ac_try="$ac_link"
18618case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18624 ac_status=$?
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644esac
18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___ashrdi3=yes
18651else
18652 echo "$as_me: failed program was:" >&5
18653sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_cv_lib_gcc___ashrdi3=no
18656fi
18657
18658rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660LIBS=$ac_check_lib_save_LIBS
18661fi
18662{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18663echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18664if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18665
18666cat >>confdefs.h <<\_ACEOF
18667#define HAVE___ASHRDI3 1
18668_ACEOF
18669
18670fi
18671
18672 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18673echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18674if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676else
18677 ac_check_lib_save_LIBS=$LIBS
18678LIBS="-lgcc $LIBS"
18679cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
18685
18686/* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689#ifdef __cplusplus
18690extern "C"
18691#endif
18692char __divdi3 ();
18693int
18694main ()
18695{
18696return __divdi3 ();
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext conftest$ac_exeext
18702if { (ac_try="$ac_link"
18703case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18709 ac_status=$?
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc___divdi3=yes
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_lib_gcc___divdi3=no
18741fi
18742
18743rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745LIBS=$ac_check_lib_save_LIBS
18746fi
18747{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18748echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18749if test $ac_cv_lib_gcc___divdi3 = yes; then
18750
18751cat >>confdefs.h <<\_ACEOF
18752#define HAVE___DIVDI3 1
18753_ACEOF
18754
18755fi
18756
18757 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18758echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18759if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762 ac_check_lib_save_LIBS=$LIBS
18763LIBS="-lgcc $LIBS"
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770
18771/* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18774#ifdef __cplusplus
18775extern "C"
18776#endif
18777char __fixdfdi ();
18778int
18779main ()
18780{
18781return __fixdfdi ();
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext conftest$ac_exeext
18787if { (ac_try="$ac_link"
18788case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_lib_gcc___fixdfdi=yes
18821else
18822 echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 ac_cv_lib_gcc___fixdfdi=no
18826fi
18827
18828rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830LIBS=$ac_check_lib_save_LIBS
18831fi
18832{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18833echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18834if test $ac_cv_lib_gcc___fixdfdi = yes; then
18835
18836cat >>confdefs.h <<\_ACEOF
18837#define HAVE___FIXDFDI 1
18838_ACEOF
18839
18840fi
18841
18842 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18843echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18844if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 ac_check_lib_save_LIBS=$LIBS
18848LIBS="-lgcc $LIBS"
18849cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18859#ifdef __cplusplus
18860extern "C"
18861#endif
18862char __fixsfdi ();
18863int
18864main ()
18865{
18866return __fixsfdi ();
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext conftest$ac_exeext
18872if { (ac_try="$ac_link"
18873case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18899esac
18900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_gcc___fixsfdi=yes
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_lib_gcc___fixsfdi=no
18911fi
18912
18913rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915LIBS=$ac_check_lib_save_LIBS
18916fi
18917{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18918echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18919if test $ac_cv_lib_gcc___fixsfdi = yes; then
18920
18921cat >>confdefs.h <<\_ACEOF
18922#define HAVE___FIXSFDI 1
18923_ACEOF
18924
18925fi
18926
18927 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18928echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18929if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 ac_check_lib_save_LIBS=$LIBS
18933LIBS="-lgcc $LIBS"
18934cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
18940
18941/* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18944#ifdef __cplusplus
18945extern "C"
18946#endif
18947char __floatdidf ();
18948int
18949main ()
18950{
18951return __floatdidf ();
18952 ;
18953 return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext conftest$ac_exeext
18957if { (ac_try="$ac_link"
18958case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gcc___floatdidf=yes
18991else
18992 echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ac_cv_lib_gcc___floatdidf=no
18996fi
18997
18998rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000LIBS=$ac_check_lib_save_LIBS
19001fi
19002{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19003echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19004if test $ac_cv_lib_gcc___floatdidf = yes; then
19005
19006cat >>confdefs.h <<\_ACEOF
19007#define HAVE___FLOATDIDF 1
19008_ACEOF
19009
19010fi
19011
19012 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19013echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19014if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016else
19017 ac_check_lib_save_LIBS=$LIBS
19018LIBS="-lgcc $LIBS"
19019cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
19025
19026/* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032char __lshrdi3 ();
19033int
19034main ()
19035{
19036return __lshrdi3 ();
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext conftest$ac_exeext
19042if { (ac_try="$ac_link"
19043case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19069esac
19070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_cv_lib_gcc___lshrdi3=yes
19076else
19077 echo "$as_me: failed program was:" >&5
19078sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_cv_lib_gcc___lshrdi3=no
19081fi
19082
19083rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085LIBS=$ac_check_lib_save_LIBS
19086fi
19087{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19088echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19089if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19090
19091cat >>confdefs.h <<\_ACEOF
19092#define HAVE___LSHRDI3 1
19093_ACEOF
19094
19095fi
19096
19097 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19098echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19099if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102 ac_check_lib_save_LIBS=$LIBS
19103LIBS="-lgcc $LIBS"
19104cat >conftest.$ac_ext <<_ACEOF
19105/* confdefs.h. */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h. */
19110
19111/* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19114#ifdef __cplusplus
19115extern "C"
19116#endif
19117char __moddi3 ();
19118int
19119main ()
19120{
19121return __moddi3 ();
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext conftest$ac_exeext
19127if { (ac_try="$ac_link"
19128case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_gcc___moddi3=yes
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_cv_lib_gcc___moddi3=no
19166fi
19167
19168rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19173echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19174if test $ac_cv_lib_gcc___moddi3 = yes; then
19175
19176cat >>confdefs.h <<\_ACEOF
19177#define HAVE___MODDI3 1
19178_ACEOF
19179
19180fi
19181
19182 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19183echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19184if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186else
19187 ac_check_lib_save_LIBS=$LIBS
19188LIBS="-lgcc $LIBS"
19189cat >conftest.$ac_ext <<_ACEOF
19190/* confdefs.h. */
19191_ACEOF
19192cat confdefs.h >>conftest.$ac_ext
19193cat >>conftest.$ac_ext <<_ACEOF
19194/* end confdefs.h. */
19195
19196/* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19199#ifdef __cplusplus
19200extern "C"
19201#endif
19202char __udivdi3 ();
19203int
19204main ()
19205{
19206return __udivdi3 ();
19207 ;
19208 return 0;
19209}
19210_ACEOF
19211rm -f conftest.$ac_objext conftest$ac_exeext
19212if { (ac_try="$ac_link"
19213case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216esac
19217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_lib_gcc___udivdi3=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ac_cv_lib_gcc___udivdi3=no
19251fi
19252
19253rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255LIBS=$ac_check_lib_save_LIBS
19256fi
19257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19258echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19259if test $ac_cv_lib_gcc___udivdi3 = yes; then
19260
19261cat >>confdefs.h <<\_ACEOF
19262#define HAVE___UDIVDI3 1
19263_ACEOF
19264
19265fi
19266
19267 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19268echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19269if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272 ac_check_lib_save_LIBS=$LIBS
19273LIBS="-lgcc $LIBS"
19274cat >conftest.$ac_ext <<_ACEOF
19275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
19280
19281/* Override any GCC internal prototype to avoid an error.
19282 Use char because int might match the return type of a GCC
19283 builtin and then its argument prototype would still apply. */
19284#ifdef __cplusplus
19285extern "C"
19286#endif
19287char __umoddi3 ();
19288int
19289main ()
19290{
19291return __umoddi3 ();
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext conftest$ac_exeext
19297if { (ac_try="$ac_link"
19298case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301esac
19302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_link") 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19314esac
19315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324esac
19325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_try") 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19330 ac_cv_lib_gcc___umoddi3=yes
19331else
19332 echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ac_cv_lib_gcc___umoddi3=no
19336fi
19337
19338rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19340LIBS=$ac_check_lib_save_LIBS
19341fi
19342{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19343echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19344if test $ac_cv_lib_gcc___umoddi3 = yes; then
19345
19346cat >>confdefs.h <<\_ACEOF
19347#define HAVE___UMODDI3 1
19348_ACEOF
19349
19350fi
19351
19352
19353 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19354echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19355if test "${ac_cv_lib_gcc___main+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19357else
19358 ac_check_lib_save_LIBS=$LIBS
19359LIBS="-lgcc $LIBS"
19360cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366
19367/* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19370#ifdef __cplusplus
19371extern "C"
19372#endif
19373char __main ();
19374int
19375main ()
19376{
19377return __main ();
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext conftest$ac_exeext
19383if { (ac_try="$ac_link"
19384case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410esac
19411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_lib_gcc___main=yes
19417else
19418 echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_cv_lib_gcc___main=no
19422fi
19423
19424rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426LIBS=$ac_check_lib_save_LIBS
19427fi
19428{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19429echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19430if test $ac_cv_lib_gcc___main = yes; then
19431
19432cat >>confdefs.h <<\_ACEOF
19433#define HAVE___MAIN 1
19434_ACEOF
19435
19436fi
19437
19438 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19439echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19440if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443 ac_check_lib_save_LIBS=$LIBS
19444LIBS="-lgcc $LIBS"
19445cat >conftest.$ac_ext <<_ACEOF
19446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
19451
19452/* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19455#ifdef __cplusplus
19456extern "C"
19457#endif
19458char __cmpdi2 ();
19459int
19460main ()
19461{
19462return __cmpdi2 ();
19463 ;
19464 return 0;
19465}
19466_ACEOF
19467rm -f conftest.$ac_objext conftest$ac_exeext
19468if { (ac_try="$ac_link"
19469case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472esac
19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_link") 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19482 { (case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19485esac
19486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_try") 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest$ac_exeext'
19492 { (case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495esac
19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_try") 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19501 ac_cv_lib_gcc___cmpdi2=yes
19502else
19503 echo "$as_me: failed program was:" >&5
19504sed 's/^/| /' conftest.$ac_ext >&5
19505
19506 ac_cv_lib_gcc___cmpdi2=no
19507fi
19508
19509rm -f core conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511LIBS=$ac_check_lib_save_LIBS
19512fi
19513{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19514echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19515if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19516
19517cat >>confdefs.h <<\_ACEOF
19518#define HAVE___CMPDI2 1
19519_ACEOF
19520
19521fi
19522
19523fi
19524
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019525if test "$llvm_cv_os_type" = "MingW" ; then
19526 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19527echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19528 cat >conftest.$ac_ext <<_ACEOF
19529#include <windows.h>
19530#include <imagehlp.h>
19531extern void foo(PENUMLOADED_MODULES_CALLBACK);
19532extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19533_ACEOF
19534rm -f conftest.$ac_objext
19535if { (ac_try="$ac_compile"
19536case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552esac
19553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562esac
19563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568
19569 { echo "$as_me:$LINENO: result: yes" >&5
19570echo "${ECHO_T}yes" >&6; }
19571 llvm_cv_win32_elmcb_pcstr="PCSTR"
19572
19573else
19574 echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577
19578 { echo "$as_me:$LINENO: result: no" >&5
19579echo "${ECHO_T}no" >&6; }
19580 llvm_cv_win32_elmcb_pcstr="PSTR"
19581
19582fi
19583
19584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19585
19586cat >>confdefs.h <<_ACEOF
19587#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19588_ACEOF
19589
19590fi
19591
Torok Edwin871384f2010-01-26 08:50:50 +000019592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019593{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19594echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19595if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019597else
Reid Spencera773bd52006-08-04 18:18:08 +000019598 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019599ac_cpp='$CXXCPP $CPPFLAGS'
19600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019604 cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019609/* end confdefs.h. */
19610#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019611int
19612main ()
19613{
19614float f; isnan(f);
19615 ;
19616 return 0;
19617}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619rm -f conftest.$ac_objext
19620if { (ac_try="$ac_compile"
19621case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647esac
19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019653 ac_cv_func_isnan_in_math_h=yes
19654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660
Reid Spencera773bd52006-08-04 18:18:08 +000019661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019662 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019663ac_cpp='$CPP $CPPFLAGS'
19664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667
19668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19670echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019671
19672
19673if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675cat >>confdefs.h <<\_ACEOF
19676#define HAVE_ISNAN_IN_MATH_H 1
19677_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019678
Reid Spencerabec8f92004-10-27 23:03:44 +000019679fi
19680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019681{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19682echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19683if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019685else
Reid Spencera773bd52006-08-04 18:18:08 +000019686 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019687ac_cpp='$CXXCPP $CPPFLAGS'
19688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019692 cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h. */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019697/* end confdefs.h. */
19698#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019699int
19700main ()
19701{
19702float f; isnan(f);
19703 ;
19704 return 0;
19705}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019706_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019707rm -f conftest.$ac_objext
19708if { (ac_try="$ac_compile"
19709case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019741 ac_cv_func_isnan_in_cmath=yes
19742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019748
Reid Spencera773bd52006-08-04 18:18:08 +000019749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019750 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019751ac_cpp='$CPP $CPPFLAGS'
19752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754ac_compiler_gnu=$ac_cv_c_compiler_gnu
19755
19756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019757{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19758echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019759
19760if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762cat >>confdefs.h <<\_ACEOF
19763#define HAVE_ISNAN_IN_CMATH 1
19764_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019765
Reid Spencerabec8f92004-10-27 23:03:44 +000019766fi
19767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019768{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19769echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19770if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019772else
Reid Spencera773bd52006-08-04 18:18:08 +000019773 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019774ac_cpp='$CXXCPP $CPPFLAGS'
19775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019779 cat >conftest.$ac_ext <<_ACEOF
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019784/* end confdefs.h. */
19785#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019786int
19787main ()
19788{
19789float f; std::isnan(f);
19790 ;
19791 return 0;
19792}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019793_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019794rm -f conftest.$ac_objext
19795if { (ac_try="$ac_compile"
19796case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799esac
19800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_compile") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19812esac
19813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19822esac
19823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_try") 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019828 ac_cv_func_std_isnan_in_cmath=yes
19829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019835
Reid Spencera773bd52006-08-04 18:18:08 +000019836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019837 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019838ac_cpp='$CPP $CPPFLAGS'
19839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19841ac_compiler_gnu=$ac_cv_c_compiler_gnu
19842
19843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019844{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19845echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019846
19847if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849cat >>confdefs.h <<\_ACEOF
19850#define HAVE_STD_ISNAN_IN_CMATH 1
19851_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019852
Reid Spencerabec8f92004-10-27 23:03:44 +000019853fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019854
19855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019856{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19857echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19858if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019860else
Reid Spencera773bd52006-08-04 18:18:08 +000019861 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019862ac_cpp='$CXXCPP $CPPFLAGS'
19863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019867 cat >conftest.$ac_ext <<_ACEOF
19868/* confdefs.h. */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019872/* end confdefs.h. */
19873#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019874int
19875main ()
19876{
19877float f; isinf(f);
19878 ;
19879 return 0;
19880}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019882rm -f conftest.$ac_objext
19883if { (ac_try="$ac_compile"
19884case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900esac
19901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910esac
19911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019916 ac_cv_func_isinf_in_math_h=yes
19917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918 echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019923
Reid Spencera773bd52006-08-04 18:18:08 +000019924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019925 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019926ac_cpp='$CPP $CPPFLAGS'
19927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19933echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019934
19935if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019936
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937cat >>confdefs.h <<\_ACEOF
19938#define HAVE_ISINF_IN_MATH_H 1
19939_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019940
Reid Spencerabec8f92004-10-27 23:03:44 +000019941fi
19942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19944echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19945if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019947else
Reid Spencera773bd52006-08-04 18:18:08 +000019948 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019949ac_cpp='$CXXCPP $CPPFLAGS'
19950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019954 cat >conftest.$ac_ext <<_ACEOF
19955/* confdefs.h. */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019959/* end confdefs.h. */
19960#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019961int
19962main ()
19963{
19964float f; isinf(f);
19965 ;
19966 return 0;
19967}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019968_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019969rm -f conftest.$ac_objext
19970if { (ac_try="$ac_compile"
19971case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974esac
19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_compile") 2>conftest.er1
19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020003 ac_cv_func_isinf_in_cmath=yes
20004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020005 echo "$as_me: failed program was:" >&5
20006sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020010
Reid Spencera773bd52006-08-04 18:18:08 +000020011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020012 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020013ac_cpp='$CPP $CPPFLAGS'
20014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017
20018fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020019{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20020echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020021
20022if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024cat >>confdefs.h <<\_ACEOF
20025#define HAVE_ISINF_IN_CMATH 1
20026_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020027
Reid Spencerabec8f92004-10-27 23:03:44 +000020028fi
20029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020030{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20031echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20032if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020034else
Reid Spencera773bd52006-08-04 18:18:08 +000020035 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020036ac_cpp='$CXXCPP $CPPFLAGS'
20037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020041 cat >conftest.$ac_ext <<_ACEOF
20042/* confdefs.h. */
20043_ACEOF
20044cat confdefs.h >>conftest.$ac_ext
20045cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020046/* end confdefs.h. */
20047#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020048int
20049main ()
20050{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020051float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020052 ;
20053 return 0;
20054}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020055_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020056rm -f conftest.$ac_objext
20057if { (ac_try="$ac_compile"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20071 { (case "(($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_try") 2>&5
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest.$ac_objext'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084esac
20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020090 ac_cv_func_std_isinf_in_cmath=yes
20091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020097
Reid Spencera773bd52006-08-04 18:18:08 +000020098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020099 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020100ac_cpp='$CPP $CPPFLAGS'
20101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104
20105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20107echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020108
20109if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111cat >>confdefs.h <<\_ACEOF
20112#define HAVE_STD_ISINF_IN_CMATH 1
20113_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020114
Reid Spencerabec8f92004-10-27 23:03:44 +000020115fi
20116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020117{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20118echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20119if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020121else
Reid Spencera773bd52006-08-04 18:18:08 +000020122 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020123ac_cpp='$CXXCPP $CPPFLAGS'
20124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020128 cat >conftest.$ac_ext <<_ACEOF
20129/* confdefs.h. */
20130_ACEOF
20131cat confdefs.h >>conftest.$ac_ext
20132cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020133/* end confdefs.h. */
20134#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020135int
20136main ()
20137{
20138float f; finite(f);
20139 ;
20140 return 0;
20141}
Brian Gaeked59a6472004-07-21 03:33:58 +000020142_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143rm -f conftest.$ac_objext
20144if { (ac_try="$ac_compile"
20145case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148esac
20149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20151 ac_status=$?
20152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20161esac
20162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; } &&
20167 { ac_try='test -s conftest.$ac_objext'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171esac
20172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020177 ac_cv_func_finite_in_ieeefp_h=yes
20178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020179 echo "$as_me: failed program was:" >&5
20180sed 's/^/| /' conftest.$ac_ext >&5
20181
20182 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184
Reid Spencera773bd52006-08-04 18:18:08 +000020185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020186 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020187ac_cpp='$CPP $CPPFLAGS'
20188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190ac_compiler_gnu=$ac_cv_c_compiler_gnu
20191
20192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020193{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20194echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020195
Brian Gaeke6802b552004-10-28 05:06:45 +000020196if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020198cat >>confdefs.h <<\_ACEOF
20199#define HAVE_FINITE_IN_IEEEFP_H 1
20200_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020201
Reid Spencerabec8f92004-10-27 23:03:44 +000020202fi
20203
20204
20205
Reid Spencer30fe5262007-01-20 07:48:49 +000020206if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020207
20208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020209for ac_header in stdlib.h unistd.h
20210do
20211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217fi
20218ac_res=`eval echo '${'$as_ac_Header'}'`
20219 { echo "$as_me:$LINENO: result: $ac_res" >&5
20220echo "${ECHO_T}$ac_res" >&6; }
20221else
20222 # Is the header compilable?
20223{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20225cat >conftest.$ac_ext <<_ACEOF
20226/* confdefs.h. */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h. */
20231$ac_includes_default
20232#include <$ac_header>
20233_ACEOF
20234rm -f conftest.$ac_objext
20235if { (ac_try="$ac_compile"
20236case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20239esac
20240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_compile") 2>conftest.er1
20242 ac_status=$?
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } &&
20248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252esac
20253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; } &&
20258 { ac_try='test -s conftest.$ac_objext'
20259 { (case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20262esac
20263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_try") 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 ac_header_compiler=yes
20269else
20270 echo "$as_me: failed program was:" >&5
20271sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273 ac_header_compiler=no
20274fi
20275
20276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278echo "${ECHO_T}$ac_header_compiler" >&6; }
20279
20280# Is the header present?
20281{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
20289#include <$ac_header>
20290_ACEOF
20291if { (ac_try="$ac_cpp conftest.$ac_ext"
20292case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295esac
20296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20298 ac_status=$?
20299 grep -v '^ *+' conftest.er1 >conftest.err
20300 rm -f conftest.er1
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } >/dev/null; then
20304 if test -s conftest.err; then
20305 ac_cpp_err=$ac_c_preproc_warn_flag
20306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20307 else
20308 ac_cpp_err=
20309 fi
20310else
20311 ac_cpp_err=yes
20312fi
20313if test -z "$ac_cpp_err"; then
20314 ac_header_preproc=yes
20315else
20316 echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 ac_header_preproc=no
20320fi
20321
20322rm -f conftest.err conftest.$ac_ext
20323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20324echo "${ECHO_T}$ac_header_preproc" >&6; }
20325
20326# So? What about this header?
20327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20328 yes:no: )
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20333 ac_header_preproc=yes
20334 ;;
20335 no:yes:* )
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20343echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20348 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020349## ------------------------------------ ##
20350## Report this to http://llvm.org/bugs/ ##
20351## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352_ASBOX
20353 ) | sed "s/^/$as_me: WARNING: /" >&2
20354 ;;
20355esac
20356{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360else
20361 eval "$as_ac_Header=\$ac_header_preproc"
20362fi
20363ac_res=`eval echo '${'$as_ac_Header'}'`
20364 { echo "$as_me:$LINENO: result: $ac_res" >&5
20365echo "${ECHO_T}$ac_res" >&6; }
20366
20367fi
20368if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020369 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020371_ACEOF
20372
20373fi
20374
20375done
20376
20377
20378for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020379do
20380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20385else
20386 cat >conftest.$ac_ext <<_ACEOF
20387/* confdefs.h. */
20388_ACEOF
20389cat confdefs.h >>conftest.$ac_ext
20390cat >>conftest.$ac_ext <<_ACEOF
20391/* end confdefs.h. */
20392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20394#define $ac_func innocuous_$ac_func
20395
20396/* System header to define __stub macros and hopefully few prototypes,
20397 which can conflict with char $ac_func (); below.
20398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20399 <limits.h> exists even on freestanding compilers. */
20400
20401#ifdef __STDC__
20402# include <limits.h>
20403#else
20404# include <assert.h>
20405#endif
20406
20407#undef $ac_func
20408
20409/* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20412#ifdef __cplusplus
20413extern "C"
20414#endif
20415char $ac_func ();
20416/* The GNU C library defines this for functions which it implements
20417 to always fail with ENOSYS. Some functions are actually named
20418 something starting with __ and the normal name is an alias. */
20419#if defined __stub_$ac_func || defined __stub___$ac_func
20420choke me
20421#endif
20422
20423int
20424main ()
20425{
20426return $ac_func ();
20427 ;
20428 return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext conftest$ac_exeext
20432if { (ac_try="$ac_link"
20433case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_link") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449esac
20450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest$ac_exeext'
20456 { (case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459esac
20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 eval "$as_ac_var=yes"
20466else
20467 echo "$as_me: failed program was:" >&5
20468sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 eval "$as_ac_var=no"
20471fi
20472
20473rm -f core conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20475fi
20476ac_res=`eval echo '${'$as_ac_var'}'`
20477 { echo "$as_me:$LINENO: result: $ac_res" >&5
20478echo "${ECHO_T}$ac_res" >&6; }
20479if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020480 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020482_ACEOF
20483
20484fi
20485done
20486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020487{ echo "$as_me:$LINENO: checking for working mmap" >&5
20488echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20489if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020492 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020493 ac_cv_func_mmap_fixed_mapped=no
20494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020495 cat >conftest.$ac_ext <<_ACEOF
20496/* confdefs.h. */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020501$ac_includes_default
20502/* malloc might have been renamed as rpl_malloc. */
20503#undef malloc
20504
20505/* Thanks to Mike Haertel and Jim Avera for this test.
20506 Here is a matrix of mmap possibilities:
20507 mmap private not fixed
20508 mmap private fixed at somewhere currently unmapped
20509 mmap private fixed at somewhere already mapped
20510 mmap shared not fixed
20511 mmap shared fixed at somewhere currently unmapped
20512 mmap shared fixed at somewhere already mapped
20513 For private mappings, we should verify that changes cannot be read()
20514 back from the file, nor mmap's back from the file at a different
20515 address. (There have been systems where private was not correctly
20516 implemented like the infamous i386 svr4.0, and systems where the
20517 VM page cache was not coherent with the file system buffer cache
20518 like early versions of FreeBSD and possibly contemporary NetBSD.)
20519 For shared mappings, we should conversely verify that changes get
20520 propagated back to all the places they're supposed to be.
20521
20522 Grep wants private fixed already mapped.
20523 The main things grep needs to know about mmap are:
20524 * does it exist and is it safe to write into the mmap'd area
20525 * how to use it (BSD variants) */
20526
20527#include <fcntl.h>
20528#include <sys/mman.h>
20529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020530#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020531char *malloc ();
20532#endif
20533
20534/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535#if !HAVE_GETPAGESIZE
20536/* Assume that all systems that can run configure have sys/param.h. */
20537# if !HAVE_SYS_PARAM_H
20538# define HAVE_SYS_PARAM_H 1
20539# endif
20540
John Criswell7a73b802003-06-30 21:59:07 +000020541# ifdef _SC_PAGESIZE
20542# define getpagesize() sysconf(_SC_PAGESIZE)
20543# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020545# include <sys/param.h>
20546# ifdef EXEC_PAGESIZE
20547# define getpagesize() EXEC_PAGESIZE
20548# else /* no EXEC_PAGESIZE */
20549# ifdef NBPG
20550# define getpagesize() NBPG * CLSIZE
20551# ifndef CLSIZE
20552# define CLSIZE 1
20553# endif /* no CLSIZE */
20554# else /* no NBPG */
20555# ifdef NBPC
20556# define getpagesize() NBPC
20557# else /* no NBPC */
20558# ifdef PAGESIZE
20559# define getpagesize() PAGESIZE
20560# endif /* PAGESIZE */
20561# endif /* no NBPC */
20562# endif /* no NBPG */
20563# endif /* no EXEC_PAGESIZE */
20564# else /* no HAVE_SYS_PARAM_H */
20565# define getpagesize() 8192 /* punt totally */
20566# endif /* no HAVE_SYS_PARAM_H */
20567# endif /* no _SC_PAGESIZE */
20568
20569#endif /* no HAVE_GETPAGESIZE */
20570
20571int
20572main ()
20573{
20574 char *data, *data2, *data3;
20575 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020576 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020577
20578 pagesize = getpagesize ();
20579
20580 /* First, make a file with some known garbage in it. */
20581 data = (char *) malloc (pagesize);
20582 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020583 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020584 for (i = 0; i < pagesize; ++i)
20585 *(data + i) = rand ();
20586 umask (0);
20587 fd = creat ("conftest.mmap", 0600);
20588 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020590 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020591 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020592 close (fd);
20593
20594 /* Next, try to mmap the file at a fixed address which already has
20595 something else allocated at it. If we can, also make sure that
20596 we see the same garbage. */
20597 fd = open ("conftest.mmap", O_RDWR);
20598 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599 return 1;
20600 data2 = (char *) malloc (2 * pagesize);
20601 if (!data2)
20602 return 1;
20603 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020606 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020607 for (i = 0; i < pagesize; ++i)
20608 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020609 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020610
20611 /* Finally, make sure that changes to the mapped area do not
20612 percolate back to the file as seen by read(). (This is a bug on
20613 some variants of i386 svr4.0.) */
20614 for (i = 0; i < pagesize; ++i)
20615 *(data2 + i) = *(data2 + i) + 1;
20616 data3 = (char *) malloc (pagesize);
20617 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020618 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020619 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020621 for (i = 0; i < pagesize; ++i)
20622 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020624 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020625 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020626}
20627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628rm -f conftest$ac_exeext
20629if { (ac_try="$ac_link"
20630case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633esac
20634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_link") 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642esac
20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020648 ac_cv_func_mmap_fixed_mapped=yes
20649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650 echo "$as_me: program exited with status $ac_status" >&5
20651echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654( exit $ac_status )
20655ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657rm -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 +000020658fi
Reid Spencera773bd52006-08-04 18:18:08 +000020659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660
John Criswell7a73b802003-06-30 21:59:07 +000020661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20663echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020664if test $ac_cv_func_mmap_fixed_mapped = yes; then
20665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666cat >>confdefs.h <<\_ACEOF
20667#define HAVE_MMAP 1
20668_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020669
20670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020673 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20674echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20675if test "${ac_cv_func_mmap_file+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020677else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020678 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020679ac_cpp='$CPP $CPPFLAGS'
20680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682ac_compiler_gnu=$ac_cv_c_compiler_gnu
20683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020685 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020689 /* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020694
John Criswell7a73b802003-06-30 21:59:07 +000020695#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020696#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020697#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020698
20699int
20700main ()
20701{
John Criswell7a73b802003-06-30 21:59:07 +000020702
20703 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020704 fd = creat ("foo",0777);
20705 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20706 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020707 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020708 ;
20709 return 0;
20710}
John Criswell7a73b802003-06-30 21:59:07 +000020711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020712rm -f conftest$ac_exeext
20713if { (ac_try="$ac_link"
20714case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_link") 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
John Criswell7a73b802003-06-30 21:59:07 +000020732 ac_cv_func_mmap_file=yes
20733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734 echo "$as_me: program exited with status $ac_status" >&5
20735echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
20738( exit $ac_status )
20739ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020741rm -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 +000020742fi
Reid Spencera773bd52006-08-04 18:18:08 +000020743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020744
John Criswell7a73b802003-06-30 21:59:07 +000020745 ac_ext=c
20746ac_cpp='$CPP $CPPFLAGS'
20747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20749ac_compiler_gnu=$ac_cv_c_compiler_gnu
20750
20751
20752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20754echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020755if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757cat >>confdefs.h <<\_ACEOF
20758#define HAVE_MMAP_FILE
20759_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020760
20761 MMAP_FILE=yes
20762
20763fi
20764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20766echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20767if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020769else
Reid Spencer582a23c2004-12-29 07:07:57 +000020770 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020771 ac_cv_need_dev_zero_for_mmap=yes
20772 else
20773 ac_cv_need_dev_zero_for_mmap=no
20774 fi
20775
20776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20778echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020779if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781cat >>confdefs.h <<\_ACEOF
20782#define NEED_DEV_ZERO_FOR_MMAP 1
20783_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020784
20785fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020786
Reid Spencer30fe5262007-01-20 07:48:49 +000020787 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20788 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20790echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020791 fi
20792 if test "$ac_cv_func_mmap_file" = "no"
20793 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020794 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20795echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020796 fi
John Criswellb13092b2003-07-22 21:00:24 +000020797fi
John Criswell7a73b802003-06-30 21:59:07 +000020798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20800echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020801ac_ext=cpp
20802ac_cpp='$CXXCPP $CPPFLAGS'
20803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020807cat >conftest.$ac_ext <<_ACEOF
20808/* confdefs.h. */
20809_ACEOF
20810cat confdefs.h >>conftest.$ac_ext
20811cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020812/* end confdefs.h. */
20813int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020814 volatile unsigned long val = 1;
20815 __sync_synchronize();
20816 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020817 __sync_add_and_fetch(&val, 1);
20818 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020819 return 0;
20820 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020821
20822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823rm -f conftest.$ac_objext conftest$ac_exeext
20824if { (ac_try="$ac_link"
20825case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828esac
20829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_link") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20838 { (case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_try") 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; } &&
20847 { ac_try='test -s conftest$ac_exeext'
20848 { (case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851esac
20852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_try") 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020857 ac_ext=c
20858ac_cpp='$CPP $CPPFLAGS'
20859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861ac_compiler_gnu=$ac_cv_c_compiler_gnu
20862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020863 { echo "$as_me:$LINENO: result: yes" >&5
20864echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020866cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020867#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020868_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020869
Owen Andersond4b272b2009-05-18 23:58:51 +000020870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871 echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020874 { echo "$as_me:$LINENO: result: no" >&5
20875echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020877cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020878#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020879_ACEOF
20880
20881 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20882echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020884
Owen Andersond4b272b2009-05-18 23:58:51 +000020885rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020886 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020887
John Criswell7a73b802003-06-30 21:59:07 +000020888
Nick Lewycky4372e692009-09-29 06:18:23 +000020889if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020890 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20891echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20892if test "${llvm_cv_linux_mixed+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020894else
20895 ac_ext=c
20896ac_cpp='$CPP $CPPFLAGS'
20897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899ac_compiler_gnu=$ac_cv_c_compiler_gnu
20900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020901 cat >conftest.$ac_ext <<_ACEOF
20902/* confdefs.h. */
20903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020906/* end confdefs.h. */
20907#ifndef __x86_64__
20908 error: Not x86-64 even if uname says so!
20909 #endif
20910
20911int
20912main ()
20913{
20914
20915 ;
20916 return 0;
20917}
20918_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919rm -f conftest.$ac_objext
20920if { (ac_try="$ac_compile"
20921case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924esac
20925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20927 ac_status=$?
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020953 llvm_cv_linux_mixed=no
20954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020955 echo "$as_me: failed program was:" >&5
20956sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020960
Nick Lewycky4372e692009-09-29 06:18:23 +000020961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 ac_ext=c
20963ac_cpp='$CPP $CPPFLAGS'
20964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967
20968
20969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020970{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20971echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020972
20973 if test "$llvm_cv_linux_mixed" = "yes"; then
20974 llvm_cv_target_arch="x86"
20975 ARCH="x86"
20976 fi
20977fi
20978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979
Reid Spencer9372f152007-07-30 20:13:24 +000020980for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020981do
20982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987else
20988 cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
20994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20996#define $ac_func innocuous_$ac_func
20997
20998/* System header to define __stub macros and hopefully few prototypes,
20999 which can conflict with char $ac_func (); below.
21000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21001 <limits.h> exists even on freestanding compilers. */
21002
21003#ifdef __STDC__
21004# include <limits.h>
21005#else
21006# include <assert.h>
21007#endif
21008
21009#undef $ac_func
21010
21011/* Override any GCC internal prototype to avoid an error.
21012 Use char because int might match the return type of a GCC
21013 builtin and then its argument prototype would still apply. */
21014#ifdef __cplusplus
21015extern "C"
21016#endif
21017char $ac_func ();
21018/* The GNU C library defines this for functions which it implements
21019 to always fail with ENOSYS. Some functions are actually named
21020 something starting with __ and the normal name is an alias. */
21021#if defined __stub_$ac_func || defined __stub___$ac_func
21022choke me
21023#endif
21024
21025int
21026main ()
21027{
21028return $ac_func ();
21029 ;
21030 return 0;
21031}
21032_ACEOF
21033rm -f conftest.$ac_objext conftest$ac_exeext
21034if { (ac_try="$ac_link"
21035case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21038esac
21039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_link") 2>conftest.er1
21041 ac_status=$?
21042 grep -v '^ *+' conftest.er1 >conftest.err
21043 rm -f conftest.er1
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21048 { (case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21051esac
21052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_try") 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try='test -s conftest$ac_exeext'
21058 { (case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21061esac
21062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_try") 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 eval "$as_ac_var=yes"
21068else
21069 echo "$as_me: failed program was:" >&5
21070sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 eval "$as_ac_var=no"
21073fi
21074
21075rm -f core conftest.err conftest.$ac_objext \
21076 conftest$ac_exeext conftest.$ac_ext
21077fi
21078ac_res=`eval echo '${'$as_ac_var'}'`
21079 { echo "$as_me:$LINENO: result: $ac_res" >&5
21080echo "${ECHO_T}$ac_res" >&6; }
21081if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021082 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021084_ACEOF
21085
21086fi
21087done
21088
21089
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021090SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021091
21092
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021093SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21094
21095
Jeff Cohen28783c32007-01-12 18:22:38 +000021096if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021097 prefix="/usr/local"
21098fi
Reid Spencere9de0912004-08-20 09:03:57 +000021099eval LLVM_PREFIX="${prefix}";
21100eval LLVM_BINDIR="${prefix}/bin";
21101eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021102eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021103eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021104eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021105eval LLVM_INCLUDEDIR="${prefix}/include";
21106eval LLVM_INFODIR="${prefix}/info";
21107eval LLVM_MANDIR="${prefix}/man";
21108LLVM_CONFIGTIME=`date`
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021120if test "${ENABLE_TIMESTAMPS}" = "0"; then
21121 LLVM_CONFIGTIME="(timestamp not enabled)"
21122fi
21123
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021124
Reid Spencere9de0912004-08-20 09:03:57 +000021125cat >>confdefs.h <<_ACEOF
21126#define LLVM_PREFIX "$LLVM_PREFIX"
21127_ACEOF
21128
21129
21130cat >>confdefs.h <<_ACEOF
21131#define LLVM_BINDIR "$LLVM_BINDIR"
21132_ACEOF
21133
21134
21135cat >>confdefs.h <<_ACEOF
21136#define LLVM_LIBDIR "$LLVM_LIBDIR"
21137_ACEOF
21138
21139
21140cat >>confdefs.h <<_ACEOF
21141#define LLVM_DATADIR "$LLVM_DATADIR"
21142_ACEOF
21143
21144
21145cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021146#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021147_ACEOF
21148
21149
21150cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021151#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021152_ACEOF
21153
21154
21155cat >>confdefs.h <<_ACEOF
21156#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21157_ACEOF
21158
21159
21160cat >>confdefs.h <<_ACEOF
21161#define LLVM_INFODIR "$LLVM_INFODIR"
21162_ACEOF
21163
21164
21165cat >>confdefs.h <<_ACEOF
21166#define LLVM_MANDIR "$LLVM_MANDIR"
21167_ACEOF
21168
21169
21170cat >>confdefs.h <<_ACEOF
21171#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21172_ACEOF
21173
21174
Eric Christopher790e11c2007-12-01 00:34:39 +000021175cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021176#define LLVM_HOSTTRIPLE "$host"
21177_ACEOF
21178
21179
21180cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021181#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021182_ACEOF
21183
21184
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021185if test "$BINDINGS_TO_BUILD" = auto ; then
21186 BINDINGS_TO_BUILD=""
21187 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21188 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21189 fi
21190fi
21191BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21192
21193
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021194ALL_BINDINGS=ocaml
21195
21196
Gordon Henriksenf0915682007-10-02 16:42:22 +000021197binding_prereqs_failed=0
21198for a_binding in $BINDINGS_TO_BUILD ; do
21199 case "$a_binding" in
21200 ocaml)
21201 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21203echo "$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 +000021204 binding_prereqs_failed=1
21205 fi
21206 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21208echo "$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 +000021209 binding_prereqs_failed=1
21210 fi
21211 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021212 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21213echo "$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 +000021214 fi
21215 if test "x$with_ocaml_libdir" != xauto ; then
21216 OCAML_LIBDIR=$with_ocaml_libdir
21217
21218 else
21219 ocaml_stdlib="`"$OCAMLC" -where`"
21220 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21221 then
21222 # ocaml stdlib is beneath our prefix; use stdlib
21223 OCAML_LIBDIR=$ocaml_stdlib
21224
21225 else
21226 # ocaml stdlib is outside our prefix; use libdir/ocaml
21227 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21228
21229 fi
21230 fi
21231 ;;
21232 esac
21233done
21234if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21236echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21237 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021238fi
21239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021240{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21241echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21242if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021244else
21245 ac_ext=cpp
21246ac_cpp='$CXXCPP $CPPFLAGS'
21247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21250
21251 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021252 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021253 cat >conftest.$ac_ext <<_ACEOF
21254/* confdefs.h. */
21255_ACEOF
21256cat confdefs.h >>conftest.$ac_ext
21257cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021258/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021259template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021260int
21261main ()
21262{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021263X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021264 ;
21265 return 0;
21266}
21267_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268rm -f conftest.$ac_objext
21269if { (ac_try="$ac_compile"
21270case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21273esac
21274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21276 ac_status=$?
21277 grep -v '^ *+' conftest.er1 >conftest.err
21278 rm -f conftest.er1
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21283 { (case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286esac
21287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_try") 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21296esac
21297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_try") 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021302 llvm_cv_cxx_visibility_inlines_hidden=yes
21303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304 echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021308fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 CXXFLAGS="$oldcxxflags"
21312 ac_ext=c
21313ac_cpp='$CPP $CPPFLAGS'
21314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316ac_compiler_gnu=$ac_cv_c_compiler_gnu
21317
21318
21319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021320{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21321echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021322if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21323 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21324
21325else
21326 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21327
21328fi
21329
Gordon Henriksenf0915682007-10-02 16:42:22 +000021330
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021331if test "$llvm_cv_link_use_r" = "yes" ; then
21332 RPATH="-Wl,-R"
21333else
21334 RPATH="-Wl,-rpath"
21335fi
21336
21337
21338if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21339 RDYNAMIC="-Wl,-export-dynamic"
21340else
21341 RDYNAMIC=""
21342fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021343
21344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021345
Eric Christophera1cba682010-08-08 02:44:25 +000021346ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021347
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021348
21349
21350
21351
21352
Douglas Gregor1555a232009-06-16 20:12:29 +000021353ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21354
21355ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21356
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021357ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21358
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021359ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21360
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021361ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021362
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021363
Reid Spencera773bd52006-08-04 18:18:08 +000021364ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021365
Eric Christopher360fa9a2011-10-26 00:42:12 +000021366
Reid Spencerea949cf2006-08-16 00:45:38 +000021367ac_config_files="$ac_config_files llvm.spec"
21368
21369
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021370ac_config_files="$ac_config_files docs/doxygen.cfg"
21371
Eric Christopher63c09512012-02-02 00:16:55 +000021372
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021373if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021374 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021375fi
Eric Christopher63c09512012-02-02 00:16:55 +000021376if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021377 configh="include/clang/Config/config.h"
21378 doxy="docs/doxygen.cfg"
21379 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021380
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021381 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021382
21383fi
21384
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021385ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021386
Eric Christopher360fa9a2011-10-26 00:42:12 +000021387
Reid Spencera773bd52006-08-04 18:18:08 +000021388ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021389
Reid Spencera773bd52006-08-04 18:18:08 +000021390ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021391
21392
Reid Spencera773bd52006-08-04 18:18:08 +000021393ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021394
21395
Reid Spencera773bd52006-08-04 18:18:08 +000021396ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021397
21398
Reid Spencera773bd52006-08-04 18:18:08 +000021399ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021400
21401
Reid Spencer8b2e1412006-11-17 03:32:33 +000021402ac_config_commands="$ac_config_commands runtime/Makefile"
21403
21404
Reid Spencera773bd52006-08-04 18:18:08 +000021405ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021406
21407
Reid Spencera773bd52006-08-04 18:18:08 +000021408ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021409
21410
Bill Wendlingf24eb392009-01-04 23:12:30 +000021411ac_config_commands="$ac_config_commands unittests/Makefile"
21412
21413
Reid Spencera773bd52006-08-04 18:18:08 +000021414ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021415
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021418
21419
Reid Spencera773bd52006-08-04 18:18:08 +000021420ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021421
21422
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021423ac_config_commands="$ac_config_commands bindings/Makefile"
21424
21425
21426ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21427
21428
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021429
John Criswell7a73b802003-06-30 21:59:07 +000021430cat >confcache <<\_ACEOF
21431# This file is a shell script that caches the results of configure
21432# tests run on this system so they can be shared between configure
21433# scripts and configure runs, see configure's option --config-cache.
21434# It is not useful on other systems. If it contains results you don't
21435# want to keep, you may remove or edit it.
21436#
21437# config.status only pays attention to the cache file if you give it
21438# the --recheck option to rerun configure.
21439#
John Criswell0c38eaf2003-09-10 15:17:25 +000021440# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021441# loading this file, other *unset* `ac_cv_foo' will be assigned the
21442# following values.
21443
21444_ACEOF
21445
21446# The following way of writing the cache mishandles newlines in values,
21447# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021448# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021449# Ultrix sh set writes to stderr and can't be redirected directly,
21450# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021451(
21452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21453 eval ac_val=\$$ac_var
21454 case $ac_val in #(
21455 *${as_nl}*)
21456 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21458echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021459 esac
21460 case $ac_var in #(
21461 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021462 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021463 esac ;;
21464 esac
21465 done
21466
John Criswell7a73b802003-06-30 21:59:07 +000021467 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21469 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470 # `set' does not quote correctly, so add quotes (double-quote
21471 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021472 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021473 "s/'/'\\\\''/g;
21474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021475 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021476 *)
21477 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021480 esac |
21481 sort
21482) |
John Criswell7a73b802003-06-30 21:59:07 +000021483 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021484 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021485 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021486 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21488 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21490 :end' >>confcache
21491if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21492 if test -w "$cache_file"; then
21493 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21495echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021496 cat confcache >$cache_file
21497 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21499echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021500 fi
21501fi
21502rm -f confcache
21503
21504test "x$prefix" = xNONE && prefix=$ac_default_prefix
21505# Let make expand exec_prefix.
21506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21507
John Criswell7a73b802003-06-30 21:59:07 +000021508DEFS=-DHAVE_CONFIG_H
21509
John Criswell0c38eaf2003-09-10 15:17:25 +000021510ac_libobjs=
21511ac_ltlibobjs=
21512for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21513 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21517 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21519 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021520done
21521LIBOBJS=$ac_libobjs
21522
21523LTLIBOBJS=$ac_ltlibobjs
21524
21525
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021526if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21528Usually this means the macro was only invoked conditionally." >&5
21529echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21530Usually this means the macro was only invoked conditionally." >&2;}
21531 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021532fi
21533if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021534 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21535Usually this means the macro was only invoked conditionally." >&5
21536echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21537Usually this means the macro was only invoked conditionally." >&2;}
21538 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021539fi
John Criswell7a73b802003-06-30 21:59:07 +000021540
21541: ${CONFIG_STATUS=./config.status}
21542ac_clean_files_save=$ac_clean_files
21543ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21545echo "$as_me: creating $CONFIG_STATUS" >&6;}
21546cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021547#! $SHELL
21548# Generated by $as_me.
21549# Run this file to recreate the current configuration.
21550# Compiler output produced by configure, useful for debugging
21551# configure, is in config.log if it exists.
21552
21553debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021554ac_cs_recheck=false
21555ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021556SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021557_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559cat >>$CONFIG_STATUS <<\_ACEOF
21560## --------------------- ##
21561## M4sh Initialization. ##
21562## --------------------- ##
21563
21564# Be Bourne compatible
21565if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021566 emulate sh
21567 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021568 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021569 # is contrary to our usage. Disable this feature.
21570 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021571 setopt NO_GLOB_SUBST
21572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575BIN_SH=xpg4; export BIN_SH # for Tru64
21576DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021577
John Criswell7a73b802003-06-30 21:59:07 +000021578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021579# PATH needs CR
21580# Avoid depending upon Character Ranges.
21581as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21582as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21583as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21584as_cr_digits='0123456789'
21585as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021586
21587# The user is always right.
21588if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021589 echo "#! /bin/sh" >conf$$.sh
21590 echo "exit 0" >>conf$$.sh
21591 chmod +x conf$$.sh
21592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21593 PATH_SEPARATOR=';'
21594 else
21595 PATH_SEPARATOR=:
21596 fi
21597 rm -f conf$$.sh
21598fi
21599
21600# Support unset when possible.
21601if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21602 as_unset=unset
21603else
21604 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021605fi
John Criswell7a73b802003-06-30 21:59:07 +000021606
Reid Spencera773bd52006-08-04 18:18:08 +000021607
21608# IFS
21609# We need space, tab and new line, in precisely that order. Quoting is
21610# there to prevent editors from complaining about space-tab.
21611# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21612# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613as_nl='
21614'
Reid Spencera773bd52006-08-04 18:18:08 +000021615IFS=" "" $as_nl"
21616
21617# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021618case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021619 *[\\/]* ) as_myself=$0 ;;
21620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021621for as_dir in $PATH
21622do
21623 IFS=$as_save_IFS
21624 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21626done
Reid Spencera773bd52006-08-04 18:18:08 +000021627IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021628
Reid Spencera773bd52006-08-04 18:18:08 +000021629 ;;
21630esac
21631# We did not find ourselves, most probably we were run as `sh COMMAND'
21632# in which case we are not to be found in the path.
21633if test "x$as_myself" = x; then
21634 as_myself=$0
21635fi
21636if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21638 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021639fi
21640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641# Work around bugs in pre-3.0 UWIN ksh.
21642for as_var in ENV MAIL MAILPATH
21643do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021644done
21645PS1='$ '
21646PS2='> '
21647PS4='+ '
21648
21649# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650for as_var in \
21651 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21652 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21653 LC_TELEPHONE LC_TIME
21654do
21655 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21656 eval $as_var=C; export $as_var
21657 else
21658 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660done
Torok Edwin871384f2010-01-26 08:50:50 +000021661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021663if expr a : '\(a\)' >/dev/null 2>&1 &&
21664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21665 as_expr=expr
21666else
21667 as_expr=false
21668fi
21669
21670if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21671 as_basename=basename
21672else
21673 as_basename=false
21674fi
21675
21676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021677# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021678as_me=`$as_basename -- "$0" ||
21679$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21680 X"$0" : 'X\(//\)$' \| \
21681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021683 sed '/^.*\/\([^/][^/]*\)\/*$/{
21684 s//\1/
21685 q
21686 }
21687 /^X\/\(\/\/\)$/{
21688 s//\1/
21689 q
21690 }
21691 /^X\/\(\/\).*/{
21692 s//\1/
21693 q
21694 }
21695 s/.*/./; q'`
21696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021697# CDPATH.
21698$as_unset CDPATH
21699
21700
21701
21702 as_lineno_1=$LINENO
21703 as_lineno_2=$LINENO
21704 test "x$as_lineno_1" != "x$as_lineno_2" &&
21705 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21706
21707 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21708 # uniformly replaced by the line number. The first 'sed' inserts a
21709 # line-number line after each line using $LINENO; the second 'sed'
21710 # does the real work. The second script uses 'N' to pair each
21711 # line-number line with the line containing $LINENO, and appends
21712 # trailing '-' during substitution so that $LINENO is not a special
21713 # case at line end.
21714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21715 # scripts with optimization help from Paolo Bonzini. Blame Lee
21716 # E. McMahon (1931-1989) for sed's syntax. :-)
21717 sed -n '
21718 p
21719 /[$]LINENO/=
21720 ' <$as_myself |
21721 sed '
21722 s/[$]LINENO.*/&-/
21723 t lineno
21724 b
21725 :lineno
21726 N
21727 :loop
21728 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21729 t loop
21730 s/-\n.*//
21731 ' >$as_me.lineno &&
21732 chmod +x "$as_me.lineno" ||
21733 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21734 { (exit 1); exit 1; }; }
21735
21736 # Don't try to exec as it changes $[0], causing all sort of problems
21737 # (the dirname of $[0] is not the place where we might find the
21738 # original and so on. Autoconf is especially sensitive to this).
21739 . "./$as_me.lineno"
21740 # Exit status is that of the last command.
21741 exit
21742}
21743
21744
21745if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21746 as_dirname=dirname
21747else
21748 as_dirname=false
21749fi
Reid Spencera773bd52006-08-04 18:18:08 +000021750
21751ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021753-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021757 esac;;
21758*)
21759 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021760esac
21761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021762if expr a : '\(a\)' >/dev/null 2>&1 &&
21763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21764 as_expr=expr
21765else
21766 as_expr=false
21767fi
21768
John Criswell7a73b802003-06-30 21:59:07 +000021769rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021770if test -d conf$$.dir; then
21771 rm -f conf$$.dir/conf$$.file
21772else
21773 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021776echo >conf$$.file
21777if ln -s conf$$.file conf$$ 2>/dev/null; then
21778 as_ln_s='ln -s'
21779 # ... but there are two gotchas:
21780 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21781 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21782 # In both cases, we have to default to `cp -p'.
21783 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021784 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785elif ln conf$$.file conf$$ 2>/dev/null; then
21786 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021787else
21788 as_ln_s='cp -p'
21789fi
Reid Spencera773bd52006-08-04 18:18:08 +000021790rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21791rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021792
John Criswell0c38eaf2003-09-10 15:17:25 +000021793if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021795else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021796 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021797 as_mkdir_p=false
21798fi
21799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21801# systems may use methods other than mode bits to determine executability.
21802cat >conf$$.file <<_ASEOF
21803#! /bin/sh
21804exit 0
21805_ASEOF
21806chmod +x conf$$.file
21807if test -x conf$$.file >/dev/null 2>&1; then
21808 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021810 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021813
21814# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021815as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021816
21817# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021818as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021819
21820
John Criswell7a73b802003-06-30 21:59:07 +000021821exec 6>&1
21822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021824# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021825# values after options handling.
21826ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021827This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021829
21830 CONFIG_FILES = $CONFIG_FILES
21831 CONFIG_HEADERS = $CONFIG_HEADERS
21832 CONFIG_LINKS = $CONFIG_LINKS
21833 CONFIG_COMMANDS = $CONFIG_COMMANDS
21834 $ $0 $@
21835
Reid Spencera773bd52006-08-04 18:18:08 +000021836on `(hostname || uname -n) 2>/dev/null | sed 1q`
21837"
21838
John Criswell7a73b802003-06-30 21:59:07 +000021839_ACEOF
21840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021842# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021843config_files="$ac_config_files"
21844config_headers="$ac_config_headers"
21845config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021846
Reid Spencera773bd52006-08-04 18:18:08 +000021847_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021850ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851\`$as_me' instantiates files from templates according to the
21852current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021855
21856 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857 -V, --version print version number, then exit
21858 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021859 -d, --debug don't remove temporary files
21860 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861 --file=FILE[:TEMPLATE]
21862 instantiate the configuration file FILE
21863 --header=FILE[:TEMPLATE]
21864 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021865
21866Configuration files:
21867$config_files
21868
21869Configuration headers:
21870$config_headers
21871
John Criswellc764fbc2003-09-06 15:17:13 +000021872Configuration commands:
21873$config_commands
21874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021876
Reid Spencera773bd52006-08-04 18:18:08 +000021877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021879ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021880LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881configured by $0, generated by GNU Autoconf 2.60,
21882 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021884Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021885This config.status script is free software; the Free Software Foundation
21886gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021887
21888ac_pwd='$ac_pwd'
21889srcdir='$srcdir'
21890INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021891_ACEOF
21892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893cat >>$CONFIG_STATUS <<\_ACEOF
21894# If no file are specified by the user, then we need to provide default
21895# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021896ac_need_defaults=:
21897while test $# != 0
21898do
21899 case $1 in
21900 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021901 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21902 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021903 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021904 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021905 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021906 ac_option=$1
21907 ac_optarg=$2
21908 ac_shift=shift
21909 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021910 esac
21911
John Criswell0c38eaf2003-09-10 15:17:25 +000021912 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021913 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21915 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021916 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021918 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021919 debug=: ;;
21920 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021921 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021923 ac_need_defaults=false;;
21924 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021925 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021927 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021928 --he | --h)
21929 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021930 { echo "$as_me: error: ambiguous option: $1
21931Try \`$0 --help' for more information." >&2
21932 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021933 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021934 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21937 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021938
21939 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021940 -*) { echo "$as_me: error: unrecognized option: $1
21941Try \`$0 --help' for more information." >&2
21942 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021945 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021946
21947 esac
21948 shift
21949done
21950
John Criswell0c38eaf2003-09-10 15:17:25 +000021951ac_configure_extra_args=
21952
21953if $ac_cs_silent; then
21954 exec 6>/dev/null
21955 ac_configure_extra_args="$ac_configure_extra_args --silent"
21956fi
21957
21958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021960if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21962 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021963 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021965fi
21966
John Criswell7a73b802003-06-30 21:59:07 +000021967_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021969exec 5>>config.log
21970{
21971 echo
21972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21973## Running $as_me. ##
21974_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021976} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021977
Reid Spencera773bd52006-08-04 18:18:08 +000021978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021979cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021980#
Reid Spencera773bd52006-08-04 18:18:08 +000021981# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021982#
Reid Spencerc0682832005-02-24 19:05:19 +000021983llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021984
21985_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021987cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021988
21989# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021990for ac_config_target in $ac_config_targets
21991do
Reid Spencera773bd52006-08-04 18:18:08 +000021992 case $ac_config_target in
21993 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021994 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021995 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21996 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021997 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021998 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021999 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022000 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022001 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022002 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022003 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22004 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022005 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022006 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22007 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22008 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22009 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22010 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022011 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022012 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22013 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022014 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022015 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22016 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22017 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022018 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22019 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22022echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22023 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022024 esac
22025done
22026
Reid Spencera773bd52006-08-04 18:18:08 +000022027
John Criswell7a73b802003-06-30 21:59:07 +000022028# If the user did not use the arguments to specify the items to instantiate,
22029# then the envvar interface is used. Set only those that are not.
22030# We use the long form for the default assignment because of an extremely
22031# bizarre bug on SunOS 4.1.3.
22032if $ac_need_defaults; then
22033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022036fi
22037
John Criswell0c38eaf2003-09-10 15:17:25 +000022038# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022039# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022040# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022041# Hook for its removal unless debugging.
22042# Note that there is a small window in which the directory will not be cleaned:
22043# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022044$debug ||
22045{
Reid Spencera773bd52006-08-04 18:18:08 +000022046 tmp=
22047 trap 'exit_status=$?
22048 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22049' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022050 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022051}
John Criswell7a73b802003-06-30 21:59:07 +000022052# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022053
John Criswell7a73b802003-06-30 21:59:07 +000022054{
Reid Spencera773bd52006-08-04 18:18:08 +000022055 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022056 test -n "$tmp" && test -d "$tmp"
22057} ||
22058{
Reid Spencera773bd52006-08-04 18:18:08 +000022059 tmp=./conf$$-$RANDOM
22060 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061} ||
22062{
22063 echo "$me: cannot create a temporary directory in ." >&2
22064 { (exit 1); exit 1; }
22065}
John Criswell7a73b802003-06-30 21:59:07 +000022066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022067#
22068# Set up the sed scripts for CONFIG_FILES section.
22069#
22070
22071# No need to generate the scripts if there are no CONFIG_FILES.
22072# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022073if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022074
22075_ACEOF
22076
Reid Spencera773bd52006-08-04 18:18:08 +000022077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022078
Reid Spencera773bd52006-08-04 18:18:08 +000022079ac_delim='%!_!# '
22080for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022081 cat >conf$$subs.sed <<_ACEOF
22082SHELL!$SHELL$ac_delim
22083PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22084PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22085PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22086PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22087PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22088PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22089exec_prefix!$exec_prefix$ac_delim
22090prefix!$prefix$ac_delim
22091program_transform_name!$program_transform_name$ac_delim
22092bindir!$bindir$ac_delim
22093sbindir!$sbindir$ac_delim
22094libexecdir!$libexecdir$ac_delim
22095datarootdir!$datarootdir$ac_delim
22096datadir!$datadir$ac_delim
22097sysconfdir!$sysconfdir$ac_delim
22098sharedstatedir!$sharedstatedir$ac_delim
22099localstatedir!$localstatedir$ac_delim
22100includedir!$includedir$ac_delim
22101oldincludedir!$oldincludedir$ac_delim
22102docdir!$docdir$ac_delim
22103infodir!$infodir$ac_delim
22104htmldir!$htmldir$ac_delim
22105dvidir!$dvidir$ac_delim
22106pdfdir!$pdfdir$ac_delim
22107psdir!$psdir$ac_delim
22108libdir!$libdir$ac_delim
22109localedir!$localedir$ac_delim
22110mandir!$mandir$ac_delim
22111DEFS!$DEFS$ac_delim
22112ECHO_C!$ECHO_C$ac_delim
22113ECHO_N!$ECHO_N$ac_delim
22114ECHO_T!$ECHO_T$ac_delim
22115LIBS!$LIBS$ac_delim
22116build_alias!$build_alias$ac_delim
22117host_alias!$host_alias$ac_delim
22118target_alias!$target_alias$ac_delim
22119LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Sebastian Pop94a935f2012-08-27 23:05:06 +000022120program_prefix!$program_prefix$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022121CC!$CC$ac_delim
22122CFLAGS!$CFLAGS$ac_delim
22123LDFLAGS!$LDFLAGS$ac_delim
22124CPPFLAGS!$CPPFLAGS$ac_delim
22125ac_ct_CC!$ac_ct_CC$ac_delim
22126EXEEXT!$EXEEXT$ac_delim
22127OBJEXT!$OBJEXT$ac_delim
22128CXX!$CXX$ac_delim
22129CXXFLAGS!$CXXFLAGS$ac_delim
22130ac_ct_CXX!$ac_ct_CXX$ac_delim
22131CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022132subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022133ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22134LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022135build!$build$ac_delim
22136build_cpu!$build_cpu$ac_delim
22137build_vendor!$build_vendor$ac_delim
22138build_os!$build_os$ac_delim
22139host!$host$ac_delim
22140host_cpu!$host_cpu$ac_delim
22141host_vendor!$host_vendor$ac_delim
22142host_os!$host_os$ac_delim
22143target!$target$ac_delim
22144target_cpu!$target_cpu$ac_delim
22145target_vendor!$target_vendor$ac_delim
22146target_os!$target_os$ac_delim
22147OS!$OS$ac_delim
22148HOST_OS!$HOST_OS$ac_delim
22149TARGET_OS!$TARGET_OS$ac_delim
22150LINKALL!$LINKALL$ac_delim
22151NOLINKALL!$NOLINKALL$ac_delim
22152LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22153LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22154ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022155HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157GREP!$GREP$ac_delim
22158EGREP!$EGREP$ac_delim
22159LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22160BUILD_CC!$BUILD_CC$ac_delim
22161BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22162BUILD_CXX!$BUILD_CXX$ac_delim
22163CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022164ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022165ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22167ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22168DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022169ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022170ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22171EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22172DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22173DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022174KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022175JIT!$JIT$ac_delim
22176TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022177ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022179_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022182 break
22183 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22185echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022187 else
22188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022189 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022190done
22191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022192ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22193if test -n "$ac_eof"; then
22194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22195 ac_eof=`expr $ac_eof + 1`
22196fi
22197
22198cat >>$CONFIG_STATUS <<_ACEOF
22199cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202sed '
22203s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22204s/^/s,@/; s/!/@,|#_!!_#|/
22205:n
22206t n
22207s/'"$ac_delim"'$/,g/; t
22208s/$/\\/; p
22209N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22210' >>$CONFIG_STATUS <conf$$subs.sed
22211rm -f conf$$subs.sed
22212cat >>$CONFIG_STATUS <<_ACEOF
22213CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022214_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022215
22216
22217ac_delim='%!_!# '
22218for ac_last_try in false false false false false :; do
22219 cat >conf$$subs.sed <<_ACEOF
Sebastian Pop94a935f2012-08-27 23:05:06 +000022220LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022221ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022222ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022223ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022224ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022225ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022226TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22227LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22228LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022229LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022230LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022231OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022232EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022233EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022234CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022235BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022236INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237NM!$NM$ac_delim
22238ifGNUmake!$ifGNUmake$ac_delim
22239LN_S!$LN_S$ac_delim
22240CMP!$CMP$ac_delim
22241CP!$CP$ac_delim
22242DATE!$DATE$ac_delim
22243FIND!$FIND$ac_delim
22244MKDIR!$MKDIR$ac_delim
22245MV!$MV$ac_delim
22246RANLIB!$RANLIB$ac_delim
22247AR!$AR$ac_delim
22248RM!$RM$ac_delim
22249SED!$SED$ac_delim
22250TAR!$TAR$ac_delim
22251BINPWD!$BINPWD$ac_delim
22252GRAPHVIZ!$GRAPHVIZ$ac_delim
22253DOT!$DOT$ac_delim
22254FDP!$FDP$ac_delim
22255NEATO!$NEATO$ac_delim
22256TWOPI!$TWOPI$ac_delim
22257CIRCO!$CIRCO$ac_delim
22258GV!$GV$ac_delim
22259DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022260XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022261INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22262INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22263INSTALL_DATA!$INSTALL_DATA$ac_delim
22264BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022265CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022266DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022267GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022268GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022269PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270ZIP!$ZIP$ac_delim
22271OCAMLC!$OCAMLC$ac_delim
22272OCAMLOPT!$OCAMLOPT$ac_delim
22273OCAMLDEP!$OCAMLDEP$ac_delim
22274OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022275GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022276HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022277INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22278INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22279CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22280CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22281LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022282NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22283NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022284COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285USE_UDIS86!$USE_UDIS86$ac_delim
22286USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022287USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22288INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22289INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022290XML2CONFIG!$XML2CONFIG$ac_delim
22291LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22292LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022293HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22294HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22295MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022296SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022297SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22299LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22300LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22301LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22302LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22303LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22304LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22305LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22306LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22307LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22308BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22309ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022310OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22311ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22312RPATH!$RPATH$ac_delim
22313RDYNAMIC!$RDYNAMIC$ac_delim
22314LIBOBJS!$LIBOBJS$ac_delim
22315LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022316_ACEOF
22317
Sebastian Pop94a935f2012-08-27 23:05:06 +000022318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022319 break
22320 elif $ac_last_try; then
22321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22322echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22323 { (exit 1); exit 1; }; }
22324 else
22325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22326 fi
22327done
22328
22329ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22330if test -n "$ac_eof"; then
22331 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22332 ac_eof=`expr $ac_eof + 1`
22333fi
22334
22335cat >>$CONFIG_STATUS <<_ACEOF
22336cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Sebastian Pop94a935f2012-08-27 23:05:06 +000022337/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Tobias Grossera84b5672010-11-10 16:31:34 +000022338_ACEOF
22339sed '
22340s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22341s/^/s,@/; s/!/@,|#_!!_#|/
22342:n
22343t n
22344s/'"$ac_delim"'$/,g/; t
22345s/$/\\/; p
22346N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22347' >>$CONFIG_STATUS <conf$$subs.sed
22348rm -f conf$$subs.sed
22349cat >>$CONFIG_STATUS <<_ACEOF
Tobias Grossera84b5672010-11-10 16:31:34 +000022350CEOF$ac_eof
22351_ACEOF
22352
22353
Reid Spencera773bd52006-08-04 18:18:08 +000022354# VPATH may cause trouble with some makes, so we remove $(srcdir),
22355# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22356# trailing colons and then remove the whole line if VPATH becomes empty
22357# (actually we leave an empty line to preserve line numbers).
22358if test "x$srcdir" = x.; then
22359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22360s/:*\$(srcdir):*/:/
22361s/:*\${srcdir}:*/:/
22362s/:*@srcdir@:*/:/
22363s/^\([^=]*=[ ]*\):*/\1/
22364s/:*$//
22365s/^[^=]*=[ ]*$//
22366}'
22367fi
22368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022369cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022370fi # test -n "$CONFIG_FILES"
22371
Reid Spencera773bd52006-08-04 18:18:08 +000022372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022373for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022374do
22375 case $ac_tag in
22376 :[FHLC]) ac_mode=$ac_tag; continue;;
22377 esac
22378 case $ac_mode$ac_tag in
22379 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022380 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22381echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22382 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022383 :[FH]-) ac_tag=-:-;;
22384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22385 esac
22386 ac_save_IFS=$IFS
22387 IFS=:
22388 set x $ac_tag
22389 IFS=$ac_save_IFS
22390 shift
22391 ac_file=$1
22392 shift
22393
22394 case $ac_mode in
22395 :L) ac_source=$1;;
22396 :[FH])
22397 ac_file_inputs=
22398 for ac_f
22399 do
22400 case $ac_f in
22401 -) ac_f="$tmp/stdin";;
22402 *) # Look for the file first in the build tree, then in the source tree
22403 # (if the path is not absolute). The absolute path cannot be DOS-style,
22404 # because $ac_f cannot contain `:'.
22405 test -f "$ac_f" ||
22406 case $ac_f in
22407 [\\/$]*) false;;
22408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22409 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022410 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22411echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22412 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022413 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022414 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022415 done
22416
22417 # Let's still pretend it is `configure' which instantiates (i.e., don't
22418 # use $as_me), people would be surprised to read:
22419 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022420 configure_input="Generated from "`IFS=:
22421 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022422 if test x"$ac_file" != x-; then
22423 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022424 { echo "$as_me:$LINENO: creating $ac_file" >&5
22425echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022426 fi
22427
22428 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022429 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022430 esac
22431 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022432 esac
22433
Reid Spencera773bd52006-08-04 18:18:08 +000022434 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022435$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022436 X"$ac_file" : 'X\(//\)[^/]' \| \
22437 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22441 s//\1/
22442 q
22443 }
22444 /^X\(\/\/\)[^/].*/{
22445 s//\1/
22446 q
22447 }
22448 /^X\(\/\/\)$/{
22449 s//\1/
22450 q
22451 }
22452 /^X\(\/\).*/{
22453 s//\1/
22454 q
22455 }
22456 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022457 { as_dir="$ac_dir"
22458 case $as_dir in #(
22459 -*) as_dir=./$as_dir;;
22460 esac
22461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22462 as_dirs=
22463 while :; do
22464 case $as_dir in #(
22465 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22466 *) as_qdir=$as_dir;;
22467 esac
22468 as_dirs="'$as_qdir' $as_dirs"
22469 as_dir=`$as_dirname -- "$as_dir" ||
22470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22471 X"$as_dir" : 'X\(//\)[^/]' \| \
22472 X"$as_dir" : 'X\(//\)$' \| \
22473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22474echo X"$as_dir" |
22475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22476 s//\1/
22477 q
22478 }
22479 /^X\(\/\/\)[^/].*/{
22480 s//\1/
22481 q
22482 }
22483 /^X\(\/\/\)$/{
22484 s//\1/
22485 q
22486 }
22487 /^X\(\/\).*/{
22488 s//\1/
22489 q
22490 }
22491 s/.*/./; q'`
22492 test -d "$as_dir" && break
22493 done
22494 test -z "$as_dirs" || eval "mkdir $as_dirs"
22495 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22496echo "$as_me: error: cannot create directory $as_dir" >&2;}
22497 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022498 ac_builddir=.
22499
Reid Spencera773bd52006-08-04 18:18:08 +000022500case "$ac_dir" in
22501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22502*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022504 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022506 case $ac_top_builddir_sub in
22507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22509 esac ;;
22510esac
22511ac_abs_top_builddir=$ac_pwd
22512ac_abs_builddir=$ac_pwd$ac_dir_suffix
22513# for backward compatibility:
22514ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022515
22516case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022517 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022518 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022519 ac_top_srcdir=$ac_top_builddir_sub
22520 ac_abs_top_srcdir=$ac_pwd ;;
22521 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022522 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022523 ac_top_srcdir=$srcdir
22524 ac_abs_top_srcdir=$srcdir ;;
22525 *) # Relative name.
22526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22527 ac_top_srcdir=$ac_top_build_prefix$srcdir
22528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022529esac
Reid Spencera773bd52006-08-04 18:18:08 +000022530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022531
John Criswell7a73b802003-06-30 21:59:07 +000022532
Reid Spencera773bd52006-08-04 18:18:08 +000022533 case $ac_mode in
22534 :F)
22535 #
22536 # CONFIG_FILE
22537 #
John Criswell7a73b802003-06-30 21:59:07 +000022538
22539 case $INSTALL in
22540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022542 esac
John Criswell7a73b802003-06-30 21:59:07 +000022543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022546# If the template does not know about datarootdir, expand it.
22547# FIXME: This hack should be removed a few years after 2.60.
22548ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022549
22550case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022551 p
22552 q
22553}
22554/@datadir@/p
22555/@docdir@/p
22556/@infodir@/p
22557/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022558/@mandir@/p
22559' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022560*datarootdir*) ac_datarootdir_seen=yes;;
22561*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022562 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22563echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022565cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022566 ac_datarootdir_hack='
22567 s&@datadir@&$datadir&g
22568 s&@docdir@&$docdir&g
22569 s&@infodir@&$infodir&g
22570 s&@localedir@&$localedir&g
22571 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022572 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022573esac
22574_ACEOF
22575
22576# Neutralize VPATH when `$srcdir' = `.'.
22577# Shell code in configure.ac might set extrasub.
22578# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022579cat >>$CONFIG_STATUS <<_ACEOF
22580 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022581$extrasub
22582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022583cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022584:t
22585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022586s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022587s&@top_builddir@&$ac_top_builddir_sub&;t t
22588s&@srcdir@&$ac_srcdir&;t t
22589s&@abs_srcdir@&$ac_abs_srcdir&;t t
22590s&@top_srcdir@&$ac_top_srcdir&;t t
22591s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22592s&@builddir@&$ac_builddir&;t t
22593s&@abs_builddir@&$ac_abs_builddir&;t t
22594s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22595s&@INSTALL@&$ac_INSTALL&;t t
22596$ac_datarootdir_hack
Sebastian Pop94a935f2012-08-27 23:05:06 +000022597" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022598
Reid Spencera773bd52006-08-04 18:18:08 +000022599test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22600 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22601 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022602 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022603which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022604echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022605which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022606
Reid Spencera773bd52006-08-04 18:18:08 +000022607 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022608 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022609 -) cat "$tmp/out"; rm -f "$tmp/out";;
22610 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22611 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022612 ;;
22613 :H)
22614 #
22615 # CONFIG_HEADER
22616 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022617_ACEOF
22618
22619# Transform confdefs.h into a sed script `conftest.defines', that
22620# substitutes the proper values into config.h.in to produce config.h.
22621rm -f conftest.defines conftest.tail
22622# First, append a space to every undef/define line, to ease matching.
22623echo 's/$/ /' >conftest.defines
22624# Then, protect against being on the right side of a sed subst, or in
22625# an unquoted here document, in config.status. If some macros were
22626# called several times there might be several #defines for the same
22627# symbol, which is useless. But do not sort them, since the last
22628# AC_DEFINE must be honored.
22629ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22630# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22631# NAME is the cpp macro being defined, VALUE is the value it is being given.
22632# PARAMS is the parameter list in the macro definition--in most cases, it's
22633# just an empty string.
22634ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22635ac_dB='\\)[ (].*,\\1define\\2'
22636ac_dC=' '
22637ac_dD=' ,'
22638
22639uniq confdefs.h |
22640 sed -n '
22641 t rset
22642 :rset
22643 s/^[ ]*#[ ]*define[ ][ ]*//
22644 t ok
22645 d
22646 :ok
22647 s/[\\&,]/\\&/g
22648 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22649 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22650 ' >>conftest.defines
22651
22652# Remove the space that was appended to ease matching.
22653# Then replace #undef with comments. This is necessary, for
22654# example, in the case of _POSIX_SOURCE, which is predefined and required
22655# on some systems where configure will not decide to define it.
22656# (The regexp can be short, since the line contains either #define or #undef.)
22657echo 's/ $//
22658s,^[ #]*u.*,/* & */,' >>conftest.defines
22659
22660# Break up conftest.defines:
22661ac_max_sed_lines=50
22662
22663# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22664# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22665# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22666# et cetera.
22667ac_in='$ac_file_inputs'
22668ac_out='"$tmp/out1"'
22669ac_nxt='"$tmp/out2"'
22670
22671while :
22672do
22673 # Write a here document:
22674 cat >>$CONFIG_STATUS <<_ACEOF
22675 # First, check the format of the line:
22676 cat >"\$tmp/defines.sed" <<\\CEOF
22677/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22678/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22679b
22680:def
22681_ACEOF
22682 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22683 echo 'CEOF
22684 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22685 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22686 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22687 grep . conftest.tail >/dev/null || break
22688 rm -f conftest.defines
22689 mv conftest.tail conftest.defines
22690done
22691rm -f conftest.defines conftest.tail
22692
22693echo "ac_result=$ac_in" >>$CONFIG_STATUS
22694cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022695 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022696 echo "/* $configure_input */" >"$tmp/config.h"
22697 cat "$ac_result" >>"$tmp/config.h"
22698 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22699 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22700echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022701 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022702 rm -f $ac_file
22703 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022704 fi
22705 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022706 echo "/* $configure_input */"
22707 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022708 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022709 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022710 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022712 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22713echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022714 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022715 esac
John Criswell7a73b802003-06-30 21:59:07 +000022716
Reid Spencera773bd52006-08-04 18:18:08 +000022717
22718 case $ac_file$ac_mode in
22719 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022721 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022723 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022725 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022727 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022729 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022731 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022733 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022735 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022737 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022739 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022741 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022743 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022744 ${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 +000022745
22746 esac
22747done # for ac_tag
22748
John Criswell7a73b802003-06-30 21:59:07 +000022749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022750{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022752chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022753ac_clean_files=$ac_clean_files_save
22754
22755
22756# configure is writing to config.log, and then calls config.status.
22757# config.status does its own redirection, appending to config.log.
22758# Unfortunately, on DOS this fails, as config.log is still kept open
22759# by configure, so config.status won't be able to write to it; its
22760# output is simply discarded. So we exec the FD to /dev/null,
22761# effectively closing config.log, so it can be properly (re)opened and
22762# appended to by config.status. When coming back to configure, we
22763# need to make the FD available again.
22764if test "$no_create" != yes; then
22765 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022766 ac_config_status_args=
22767 test "$silent" = yes &&
22768 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022769 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022771 exec 5>>config.log
22772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22773 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022774 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022775fi
22776
John Criswell12399a12003-09-30 15:55:44 +000022777#
22778# CONFIG_SUBDIRS section.
22779#
22780if test "$no_recursion" != yes; then
22781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022782 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022783 ac_sub_configure_args=
22784 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022785 eval "set x $ac_configure_args"
22786 shift
22787 for ac_arg
22788 do
John Criswell12399a12003-09-30 15:55:44 +000022789 if test -n "$ac_prev"; then
22790 ac_prev=
22791 continue
22792 fi
22793 case $ac_arg in
22794 -cache-file | --cache-file | --cache-fil | --cache-fi \
22795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22796 ac_prev=cache_file ;;
22797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22799 | --c=*)
22800 ;;
22801 --config-cache | -C)
22802 ;;
22803 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22804 ac_prev=srcdir ;;
22805 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22806 ;;
22807 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22808 ac_prev=prefix ;;
22809 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022811 *)
22812 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022813 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022814 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022815 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022816 esac
22817 done
22818
22819 # Always prepend --prefix to ensure using the same prefix
22820 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022821 ac_arg="--prefix=$prefix"
22822 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022823 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022824 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022825 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022826
22827 ac_popdir=`pwd`
22828 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22829
22830 # Do not complain, so a configure script can configure whichever
22831 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022832 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022833
Reid Spencera773bd52006-08-04 18:18:08 +000022834 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022835 echo "$as_me:$LINENO: $ac_msg" >&5
22836 echo "$ac_msg" >&6
22837 { as_dir="$ac_dir"
22838 case $as_dir in #(
22839 -*) as_dir=./$as_dir;;
22840 esac
22841 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22842 as_dirs=
22843 while :; do
22844 case $as_dir in #(
22845 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22846 *) as_qdir=$as_dir;;
22847 esac
22848 as_dirs="'$as_qdir' $as_dirs"
22849 as_dir=`$as_dirname -- "$as_dir" ||
22850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22851 X"$as_dir" : 'X\(//\)[^/]' \| \
22852 X"$as_dir" : 'X\(//\)$' \| \
22853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22854echo X"$as_dir" |
22855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22856 s//\1/
22857 q
22858 }
22859 /^X\(\/\/\)[^/].*/{
22860 s//\1/
22861 q
22862 }
22863 /^X\(\/\/\)$/{
22864 s//\1/
22865 q
22866 }
22867 /^X\(\/\).*/{
22868 s//\1/
22869 q
22870 }
22871 s/.*/./; q'`
22872 test -d "$as_dir" && break
22873 done
22874 test -z "$as_dirs" || eval "mkdir $as_dirs"
22875 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22876echo "$as_me: error: cannot create directory $as_dir" >&2;}
22877 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022878 ac_builddir=.
22879
Reid Spencera773bd52006-08-04 18:18:08 +000022880case "$ac_dir" in
22881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22882*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022884 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022885 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022886 case $ac_top_builddir_sub in
22887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22889 esac ;;
22890esac
22891ac_abs_top_builddir=$ac_pwd
22892ac_abs_builddir=$ac_pwd$ac_dir_suffix
22893# for backward compatibility:
22894ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022895
22896case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022897 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022898 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022899 ac_top_srcdir=$ac_top_builddir_sub
22900 ac_abs_top_srcdir=$ac_pwd ;;
22901 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022902 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022903 ac_top_srcdir=$srcdir
22904 ac_abs_top_srcdir=$srcdir ;;
22905 *) # Relative name.
22906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22907 ac_top_srcdir=$ac_top_build_prefix$srcdir
22908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022909esac
Reid Spencera773bd52006-08-04 18:18:08 +000022910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022911
22912
Reid Spencera773bd52006-08-04 18:18:08 +000022913 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022914
22915 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022916 if test -f "$ac_srcdir/configure.gnu"; then
22917 ac_sub_configure=$ac_srcdir/configure.gnu
22918 elif test -f "$ac_srcdir/configure"; then
22919 ac_sub_configure=$ac_srcdir/configure
22920 elif test -f "$ac_srcdir/configure.in"; then
22921 # This should be Cygnus configure.
22922 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022923 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022924 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22925echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022926 ac_sub_configure=
22927 fi
22928
22929 # The recursion is here.
22930 if test -n "$ac_sub_configure"; then
22931 # Make the cache file name correct relative to the subdirectory.
22932 case $cache_file in
22933 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022934 *) # Relative name.
22935 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022936 esac
22937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022938 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22939echo "$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 +000022940 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022941 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22942 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022943 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22944echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22945 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022946 fi
22947
Reid Spencera773bd52006-08-04 18:18:08 +000022948 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022949 done
22950fi
22951