blob: 10bd4459772b2e9f2aa386617a36bb1664ba3120 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000687ENABLE_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
690ENABLE_EXPENSIVE_CHECKS
691EXPENSIVE_CHECKS
692DEBUG_RUNTIME
693DEBUG_SYMBOLS
694JIT
695TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000696ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000698LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000699ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000701ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000702ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000703ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000704TARGETS_TO_BUILD
705LLVM_ENUM_TARGETS
706LLVM_ENUM_ASM_PRINTERS
707LLVM_ENUM_ASM_PARSERS
708LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000747PDFROFF
748RUNTEST
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749TCLSH
750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000755GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000756HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000764COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765USE_UDIS86
766USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000767USE_INTEL_JITEVENTS
768INTEL_JITEVENTS_INCDIR
769INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001320\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001386 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Justin Holewinski42a0b482012-05-24 21:38:21 +00001422 xcore, msp430, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001426 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001433 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001434 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001437 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001443 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001444 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001447 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001448 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001449 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001450 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001451 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001454 --with-intel-jitevents=<vtune-amplifier-dir>
1455 Specify location of run-time support library for
1456 Intel JIT API
1457 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001460 CC C compiler command
1461 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001465 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001468 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
Eric Christopherf33ab862011-12-21 00:52:44 +00001473Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001475ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001482 ac_builddir=.
1483
Reid Spencera773bd52006-08-04 18:18:08 +00001484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001499
1500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001501 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001513esac
Reid Spencera773bd52006-08-04 18:18:08 +00001514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001515
Reid Spencera773bd52006-08-04 18:18:08 +00001516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001524 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001528 done
1529fi
1530
Reid Spencera773bd52006-08-04 18:18:08 +00001531test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001532if $ac_init_version; then
1533 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001534LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001542Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001544 exit
John Criswell7a73b802003-06-30 21:59:07 +00001545fi
Reid Spencera773bd52006-08-04 18:18:08 +00001546cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001550It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001551generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553 $ $0 $@
1554
1555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001556exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571
1572/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001575/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001576/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001587 echo "PATH: $as_dir"
1588done
Reid Spencera773bd52006-08-04 18:18:08 +00001589IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001606# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001608ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_configure_args0=
1610ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_must_keep_next=false
1612for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001613do
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 for ac_arg
1615 do
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001621 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 esac
1624 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1639 ;;
1640 -* ) ac_must_keep_next=true ;;
1641 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001643 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ;;
1645 esac
1646 done
John Criswell7a73b802003-06-30 21:59:07 +00001647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$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 +00001650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log. We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001656trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1658 {
1659 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001660
John Criswell7a73b802003-06-30 21:59:07 +00001661 cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001668(
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001679 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac ;;
1681 esac
1682 done
John Criswell7a73b802003-06-30 21:59:07 +00001683 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001686 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001690 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac |
1694 sort
1695)
John Criswell7a73b802003-06-30 21:59:07 +00001696 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
Reid Spencera773bd52006-08-04 18:18:08 +00001706 eval ac_val=\$$ac_var
1707 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001709 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730 fi
1731
John Criswell7a73b802003-06-30 21:59:07 +00001732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001739 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001745 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001748 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001749' 0
John Criswell7a73b802003-06-30 21:59:07 +00001750for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001756rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764
John Criswell7a73b802003-06-30 21:59:07 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
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_STRING "$PACKAGE_STRING"
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_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001787if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001789elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795shift
1796for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001797do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1803 fi
1804done
1805
1806if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001812 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001815 esac
1816 fi
1817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001826for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001831 case $ac_old_set,$ac_new_set in
1832 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 ac_cache_corrupted=: ;;
1836 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 ac_cache_corrupted=: ;;
1840 ,);;
1841 *)
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001861 esac
1862 fi
1863done
1864if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
Reid Spencera773bd52006-08-04 18:18:08 +00001895
John Criswell7a73b802003-06-30 21:59:07 +00001896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001904cat >>confdefs.h <<\_ACEOF
1905#define LLVM_VERSION_MAJOR 3
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001910#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001911_ACEOF
1912
1913
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001914LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001915
1916
1917
1918
1919
1920
1921
John Criswell7a73b802003-06-30 21:59:07 +00001922ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001923for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
John Criswell7a73b802003-06-30 21:59:07 +00001937done
1938if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001942fi
Reid Spencera773bd52006-08-04 18:18:08 +00001943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951
John Criswell7a73b802003-06-30 21:59:07 +00001952
John Criswell392aaa32003-07-22 19:18:09 +00001953
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001959 fi
John Criswell93e1c722003-09-15 17:04:06 +00001960fi
1961
Nick Lewycky83fc4472009-09-29 05:48:51 +00001962ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001967if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001968 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001969 do
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001976else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 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 +00001987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001989 break 2
1990 fi
1991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992done
Reid Spencera773bd52006-08-04 18:18:08 +00001993IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001994
1995fi
1996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001997CC=$ac_cv_prog_CC
1998if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 { echo "$as_me:$LINENO: result: $CC" >&5
2000echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 { echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002004fi
2005
Reid Spencera773bd52006-08-04 18:18:08 +00002006
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002008 done
2009fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010if test -z "$CC"; then
2011 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002012 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002013do
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002020else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 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 +00002031 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002033 break 2
2034 fi
2035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036done
Reid Spencera773bd52006-08-04 18:18:08 +00002037IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
2040fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 { echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002048fi
2049
Reid Spencera773bd52006-08-04 18:18:08 +00002050
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002052done
John Criswell7a73b802003-06-30 21:59:07 +00002053
Reid Spencera773bd52006-08-04 18:18:08 +00002054 if test "x$ac_ct_CC" = x; then
2055 CC=""
2056 else
2057 case $cross_compiling:$ac_tool_warned in
2058yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet. If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&5
2062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063whose name does not start with the host triplet. If you think this
2064configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002065ac_tool_warned=yes ;;
2066esac
2067 CC=$ac_ct_CC
2068 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069fi
2070
John Criswell7a73b802003-06-30 21:59:07 +00002071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079echo "$as_me:$LINENO: checking for C compiler version" >&5
2080ac_compiler=`set X $ac_compile; echo $2`
2081{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002088 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091{ (ac_try="$ac_compiler -v >&5"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -v >&5") 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101{ (ac_try="$ac_compiler -V >&5"
2102case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105esac
2106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -V >&5") 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002112cat >conftest.$ac_ext <<_ACEOF
2113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119int
2120main ()
2121{
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002128ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002129# Try to create an executable without -o first, disregard a.out.
2130# It will help us diagnose broken compilers, and finding out an intuition
2131# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002132{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135#
2136# List of possible output files, starting from the most likely.
2137# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138# only as a last resort. b.out is created by i960 compilers.
2139ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140#
2141# The IRIX 6 linker writes into existing files which may not be
2142# executable, retaining their permissions. Remove them first so a
2143# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002144ac_rmfiles=
2145for ac_file in $ac_files
2146do
2147 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150 esac
2151done
2152rm -f $ac_rmfiles
2153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002155case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002160 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002161 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166# in a Makefile. We should not override ac_cv_exeext if it was cached,
2167# so that the user can short-circuit this test for compilers unknown to
2168# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002170do
2171 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002172 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002174 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002175 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 # We found the default executable, but exeext='' is most
2177 # certainly right.
2178 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002181 then :; else
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 fi
2184 # We set ac_cv_exeext here because the later test for it is not
2185 # safe: cross compilers may not add the suffix if given an `-o'
2186 # argument, so we may need to know it at that point already.
2187 # Even if this section looks crufty: it has the advantage of
2188 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002192 esac
2193done
Reid Spencera773bd52006-08-04 18:18:08 +00002194test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
John Criswell7a73b802003-06-30 21:59:07 +00002196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002198sed 's/^/| /' conftest.$ac_ext >&5
2199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002200{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: C compiler cannot create executables
2203See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002205fi
John Criswell7a73b802003-06-30 21:59:07 +00002206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002207ac_exeext=$ac_cv_exeext
2208{ echo "$as_me:$LINENO: result: $ac_file" >&5
2209echo "${ECHO_T}$ac_file" >&6; }
2210
2211# Check that the compiler produces executables we can run. If not, either
2212# the compiler is broken, or we cross compile.
2213{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216# If not cross compiling, check that we can run a simple program.
2217if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_try") 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 cross_compiling=no
2229 else
2230 if test "$cross_compiling" = maybe; then
2231 cross_compiling=yes
2232 else
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2240 fi
2241 fi
2242fi
2243{ echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002247ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002248# Check that the compiler produces executables we can run. If not, either
2249# the compiler is broken, or we cross compile.
2250{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002263 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002264 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002271for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002273 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002276 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 * ) break;;
2278 esac
2279done
2280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287
2288rm -f conftest$ac_cv_exeext
2289{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300 cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002306
John Criswell7a73b802003-06-30 21:59:07 +00002307int
2308main ()
2309{
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002317case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002322 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002323 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002326 for ac_file in conftest.o conftest.obj conftest.*; do
2327 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002328 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331 break;;
2332 esac
2333done
2334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002336sed 's/^/| /' conftest.$ac_ext >&5
2337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344
John Criswell7a73b802003-06-30 21:59:07 +00002345rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002349OBJEXT=$ac_cv_objext
2350ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002355else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002362
John Criswell7a73b802003-06-30 21:59:07 +00002363int
2364main ()
2365{
2366#ifndef __GNUC__
2367 choke me
2368#endif
2369
2370 ;
2371 return 0;
2372}
2373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374rm -f conftest.$ac_objext
2375if { (ac_try="$ac_compile"
2376case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379esac
2380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compile") 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392esac
2393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402esac
2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002408 ac_compiler_gnu=yes
2409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415
Reid Spencera773bd52006-08-04 18:18:08 +00002416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002418
2419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423ac_test_CFLAGS=${CFLAGS+set}
2424ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002429else
Reid Spencera773bd52006-08-04 18:18:08 +00002430 ac_save_c_werror_flag=$ac_c_werror_flag
2431 ac_c_werror_flag=yes
2432 ac_cv_prog_cc_g=no
2433 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434 cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h. */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002440
John Criswell7a73b802003-06-30 21:59:07 +00002441int
2442main ()
2443{
2444
2445 ;
2446 return 0;
2447}
2448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449rm -f conftest.$ac_objext
2450if { (ac_try="$ac_compile"
2451case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454esac
2455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467esac
2468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
2478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002485 echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 CFLAGS=""
2489 cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002494/* end confdefs.h. */
2495
2496int
2497main ()
2498{
2499
2500 ;
2501 return 0;
2502}
2503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504rm -f conftest.$ac_objext
2505if { (ac_try="$ac_compile"
2506case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compile") 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532esac
2533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 :
Torok Edwin871384f2010-01-26 08:50:50 +00002539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002540 echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002544 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002550/* end confdefs.h. */
2551
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002560rm -f conftest.$ac_objext
2561if { (ac_try="$ac_compile"
2562case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002594 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
John Criswell7a73b802003-06-30 21:59:07 +00002600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601
Reid Spencera773bd52006-08-04 18:18:08 +00002602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604
Reid Spencera773bd52006-08-04 18:18:08 +00002605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607
Reid Spencera773bd52006-08-04 18:18:08 +00002608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2617 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002618 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002620 fi
2621else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 if test "$GCC" = yes; then
2623 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002624 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002626 fi
2627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632else
Reid Spencera773bd52006-08-04 18:18:08 +00002633 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640/* end confdefs.h. */
2641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649 char **p;
2650 int i;
2651{
2652 return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656 char *s;
2657 va_list v;
2658 va_start (v,p);
2659 s = g (p, va_arg (v,int));
2660 va_end (v);
2661 return s;
2662}
2663
2664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002667 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002670 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2675#define FOO(x) 'x'
2676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678int test (int i, double x);
2679struct s1 {int (*f) (int a);};
2680struct s2 {int (*f) (double a);};
2681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682int argc;
2683char **argv;
2684int
2685main ()
2686{
2687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 ;
2689 return 0;
2690}
2691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002694do
2695 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002696 rm -f conftest.$ac_objext
2697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002730 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731else
2732 echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737
Reid Spencera773bd52006-08-04 18:18:08 +00002738rm -f core conftest.err conftest.$ac_objext
2739 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740done
Reid Spencera773bd52006-08-04 18:18:08 +00002741rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742CC=$ac_save_CC
2743
2744fi
Reid Spencera773bd52006-08-04 18:18:08 +00002745# AC_CACHE_VAL
2746case "x$ac_cv_prog_cc_c89" in
2747 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 { echo "$as_me:$LINENO: result: none needed" >&5
2749echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002750 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 { echo "$as_me:$LINENO: result: unsupported" >&5
2752echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002754 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757esac
2758
John Criswell0c38eaf2003-09-10 15:17:25 +00002759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
Eric Christopherffee5722011-09-16 20:36:25 +00002766ac_ext=cpp
2767ac_cpp='$CXXCPP $CPPFLAGS'
2768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771if test -z "$CXX"; then
2772 if test -n "$CCC"; then
2773 CXX=$CCC
2774 else
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in clang++ llvm-g++ g++
2777 do
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782if test "${ac_cv_prog_CXX+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 if test -n "$CXX"; then
2786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CXX=$ac_cv_prog_CXX
2806if test -n "$CXX"; then
2807 { echo "$as_me:$LINENO: result: $CXX" >&5
2808echo "${ECHO_T}$CXX" >&6; }
2809else
2810 { echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6; }
2812fi
2813
2814
2815 test -n "$CXX" && break
2816 done
2817fi
2818if test -z "$CXX"; then
2819 ac_ct_CXX=$CXX
2820 for ac_prog in clang++ llvm-g++ g++
2821do
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
2824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829 if test -n "$ac_ct_CXX"; then
2830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
2844done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850if test -n "$ac_ct_CXX"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853else
2854 { echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6; }
2856fi
2857
2858
2859 test -n "$ac_ct_CXX" && break
2860done
2861
2862 if test "x$ac_ct_CXX" = x; then
2863 CXX="g++"
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866yes:)
2867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet. If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&5
2870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871whose name does not start with the host triplet. If you think this
2872configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875 CXX=$ac_ct_CXX
2876 fi
2877fi
2878
2879 fi
2880fi
2881# Provide some information about the compiler.
2882echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883ac_compiler=`set X $ac_compile; echo $2`
2884{ (ac_try="$ac_compiler --version >&5"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894{ (ac_try="$ac_compiler -v >&5"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904{ (ac_try="$ac_compiler -V >&5"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914
2915{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930#ifndef __GNUC__
2931 choke me
2932#endif
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (ac_try="$ac_compile"
2940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 ac_compiler_gnu=yes
2973else
2974 echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ac_compiler_gnu=no
2978fi
2979
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983fi
2984{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986GXX=`test $ac_compiler_gnu = yes && echo yes`
2987ac_test_CXXFLAGS=${CXXFLAGS+set}
2988ac_save_CXXFLAGS=$CXXFLAGS
2989{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991if test "${ac_cv_prog_cxx_g+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995 ac_cxx_werror_flag=yes
2996 ac_cv_prog_cxx_g=no
2997 CXXFLAGS="-g"
2998 cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h. */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h. */
3004
3005int
3006main ()
3007{
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
3014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_prog_cxx_g=yes
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 CXXFLAGS=""
3053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 :
3103else
3104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108 CXXFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cxx_g=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174fi
3175{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177if test "$ac_test_CXXFLAGS" = set; then
3178 CXXFLAGS=$ac_save_CXXFLAGS
3179elif test $ac_cv_prog_cxx_g = yes; then
3180 if test "$GXX" = yes; then
3181 CXXFLAGS="-g -O2"
3182 else
3183 CXXFLAGS="-g"
3184 fi
3185else
3186 if test "$GXX" = yes; then
3187 CXXFLAGS="-O2"
3188 else
3189 CXXFLAGS=
3190 fi
3191fi
3192ac_ext=c
3193ac_cpp='$CPP $CPPFLAGS'
3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003203{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205# On Suns, sometimes $CPP names a directory.
3206if test -n "$CPP" && test -d "$CPP"; then
3207 CPP=
3208fi
3209if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212else
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 do
3216 ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225 cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230/* end confdefs.h. */
3231#ifdef __STDC__
3232# include <limits.h>
3233#else
3234# include <assert.h>
3235#endif
3236 Syntax error
3237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003238if { (ac_try="$ac_cpp conftest.$ac_ext"
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 else
3255 ac_cpp_err=
3256 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258 ac_cpp_err=yes
3259fi
3260if test -z "$ac_cpp_err"; then
3261 :
3262else
3263 echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266 # Broken: fails on valid input.
3267continue
3268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270rm -f conftest.err conftest.$ac_ext
3271
Reid Spencera773bd52006-08-04 18:18:08 +00003272 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274 cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279/* end confdefs.h. */
3280#include <ac_nonexistent.h>
3281_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003282if { (ac_try="$ac_cpp conftest.$ac_ext"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298 else
3299 ac_cpp_err=
3300 fi
3301else
3302 ac_cpp_err=yes
3303fi
3304if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 # Broken: success on invalid input.
3306continue
3307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 # Passes both tests.
3312ac_preproc_ok=:
3313break
3314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 break
3323fi
3324
3325 done
3326 ac_cv_prog_CPP=$CPP
3327
3328fi
3329 CPP=$ac_cv_prog_CPP
3330else
3331 ac_cv_prog_CPP=$CPP
3332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333{ echo "$as_me:$LINENO: result: $CPP" >&5
3334echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344 cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349/* end confdefs.h. */
3350#ifdef __STDC__
3351# include <limits.h>
3352#else
3353# include <assert.h>
3354#endif
3355 Syntax error
3356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357if { (ac_try="$ac_cpp conftest.$ac_ext"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373 else
3374 ac_cpp_err=
3375 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377 ac_cpp_err=yes
3378fi
3379if test -z "$ac_cpp_err"; then
3380 :
3381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385 # Broken: fails on valid input.
3386continue
3387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389rm -f conftest.err conftest.$ac_ext
3390
Reid Spencera773bd52006-08-04 18:18:08 +00003391 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398/* end confdefs.h. */
3399#include <ac_nonexistent.h>
3400_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 else
3418 ac_cpp_err=
3419 fi
3420else
3421 ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424 # Broken: success on invalid input.
3425continue
3426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430 # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440if $ac_preproc_ok; then
3441 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448fi
3449
John Criswell7a73b802003-06-30 21:59:07 +00003450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
John Criswell7a73b802003-06-30 21:59:07 +00003456
Eric Christopherffee5722011-09-16 20:36:25 +00003457
3458
3459if test -d ${srcdir}/projects/llvm-gcc ; then
3460 subdirs="$subdirs projects/llvm-gcc"
3461
3462fi
3463
3464if test -d ${srcdir}/projects/test-suite ; then
3465 subdirs="$subdirs projects/test-suite"
3466
3467fi
3468
3469if test -d ${srcdir}/projects/llvm-test ; then
3470 subdirs="$subdirs projects/llvm-test"
3471
3472fi
3473
3474if test -d ${srcdir}/projects/poolalloc ; then
3475 subdirs="$subdirs projects/poolalloc"
3476
3477fi
3478
3479if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480 subdirs="$subdirs projects/llvm-poolalloc"
3481
3482fi
3483
3484for i in `ls ${srcdir}/projects`
3485do
3486 if test -d ${srcdir}/projects/${i} ; then
3487 case ${i} in
3488 sample) subdirs="$subdirs projects/sample"
3489 ;;
3490 privbracket) subdirs="$subdirs projects/privbracket"
3491 ;;
3492 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493 ;;
3494 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3495;;
3496 llvm-java) subdirs="$subdirs projects/llvm-java"
3497 ;;
3498 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3499 ;;
3500 safecode) subdirs="$subdirs projects/safecode"
3501 ;;
3502 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003504 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003505 llvm-gcc) ;;
3506 test-suite) ;;
3507 llvm-test) ;;
3508 poolalloc) ;;
3509 llvm-poolalloc) ;;
3510 *)
3511 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513 ;;
3514 esac
3515 fi
3516done
3517
3518# Check whether --enable-polly was given.
3519if test "${enable_polly+set}" = set; then
3520 enableval=$enable_polly;
3521else
3522 enableval=default
3523fi
3524
3525case "$enableval" in
3526 yes) ENABLE_POLLY=1
3527 ;;
3528 no) ENABLE_POLLY=0
3529 ;;
3530 default) ENABLE_POLLY=1
3531 ;;
3532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534 { (exit 1); exit 1; }; } ;;
3535esac
3536
3537
3538if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539 LLVM_HAS_POLLY=1
3540
3541 subdirs="$subdirs tools/polly"
3542
3543fi
3544
3545
3546# Make sure we can run config.sub.
3547$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550 { (exit 1); exit 1; }; }
3551
3552{ echo "$as_me:$LINENO: checking build system type" >&5
3553echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 ac_build_alias=$build_alias
3558test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560test "x$ac_build_alias" = x &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571echo "${ECHO_T}$ac_cv_build" >&6; }
3572case $ac_cv_build in
3573*-*-*) ;;
3574*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575echo "$as_me: error: invalid value of canonical build" >&2;}
3576 { (exit 1); exit 1; }; };;
3577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592{ echo "$as_me:$LINENO: checking host system type" >&5
3593echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594if test "${ac_cv_host+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3599else
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3604fi
3605
3606fi
3607{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608echo "${ECHO_T}$ac_cv_host" >&6; }
3609case $ac_cv_host in
3610*-*-*) ;;
3611*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612echo "$as_me: error: invalid value of canonical host" >&2;}
3613 { (exit 1); exit 1; }; };;
3614esac
3615host=$ac_cv_host
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_host
3618shift
3619host_cpu=$1
3620host_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624host_os=$*
3625IFS=$ac_save_IFS
3626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629{ echo "$as_me:$LINENO: checking target system type" >&5
3630echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631if test "${ac_cv_target+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634 if test "x$target_alias" = x; then
3635 ac_cv_target=$ac_cv_host
3636else
3637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3641fi
3642
3643fi
3644{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645echo "${ECHO_T}$ac_cv_target" >&6; }
3646case $ac_cv_target in
3647*-*-*) ;;
3648*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649echo "$as_me: error: invalid value of canonical target" >&2;}
3650 { (exit 1); exit 1; }; };;
3651esac
3652target=$ac_cv_target
3653ac_save_IFS=$IFS; IFS='-'
3654set x $ac_cv_target
3655shift
3656target_cpu=$1
3657target_vendor=$2
3658shift; shift
3659# Remember, the first character of IFS is used to create $*,
3660# except with old shells:
3661target_os=$*
3662IFS=$ac_save_IFS
3663case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666# The aliases save the names the user supplied, while $host etc.
3667# will get canonicalized.
3668test -n "$target_alias" &&
3669 test "$program_prefix$program_suffix$program_transform_name" = \
3670 NONENONEs,x,x, &&
3671 program_prefix=${target_alias}-
3672
3673{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675if test "${llvm_cv_os_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 case $host in
3679 *-*-aix*)
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="AIX"
3683 llvm_cv_platform_type="Unix" ;;
3684 *-*-irix*)
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="IRIX"
3688 llvm_cv_platform_type="Unix" ;;
3689 *-*-cygwin*)
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Cygwin"
3693 llvm_cv_platform_type="Unix" ;;
3694 *-*-darwin*)
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Darwin"
3698 llvm_cv_platform_type="Unix" ;;
3699 *-*-minix*)
3700 llvm_cv_link_all_option="-Wl,-all_load"
3701 llvm_cv_no_link_all_option="-Wl,-noall_load"
3702 llvm_cv_os_type="Minix"
3703 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003704 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="FreeBSD"
3708 llvm_cv_platform_type="Unix" ;;
3709 *-*-openbsd*)
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="OpenBSD"
3713 llvm_cv_platform_type="Unix" ;;
3714 *-*-netbsd*)
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="NetBSD"
3718 llvm_cv_platform_type="Unix" ;;
3719 *-*-dragonfly*)
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="DragonFly"
3723 llvm_cv_platform_type="Unix" ;;
3724 *-*-hpux*)
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="HP-UX"
3728 llvm_cv_platform_type="Unix" ;;
3729 *-*-interix*)
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Interix"
3733 llvm_cv_platform_type="Unix" ;;
3734 *-*-linux*)
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="Linux"
3738 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003739 *-*-gnu*)
3740 llvm_cv_link_all_option="-Wl,--whole-archive"
3741 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742 llvm_cv_os_type="GNU"
3743 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003744 *-*-solaris*)
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="SunOS"
3748 llvm_cv_platform_type="Unix" ;;
3749 *-*-auroraux*)
3750 llvm_cv_link_all_option="-Wl,-z,allextract"
3751 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752 llvm_cv_os_type="AuroraUX"
3753 llvm_cv_platform_type="Unix" ;;
3754 *-*-win32*)
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="Win32"
3758 llvm_cv_platform_type="Win32" ;;
3759 *-*-mingw*)
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="MingW"
3763 llvm_cv_platform_type="Win32" ;;
3764 *-*-haiku*)
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Haiku"
3768 llvm_cv_platform_type="Unix" ;;
3769 *-unknown-eabi*)
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3774 *-unknown-elf*)
3775 llvm_cv_link_all_option="-Wl,--whole-archive"
3776 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777 llvm_cv_os_type="Freestanding"
3778 llvm_cv_platform_type="Unix" ;;
3779 *)
3780 llvm_cv_link_all_option=""
3781 llvm_cv_no_link_all_option=""
3782 llvm_cv_os_type="Unknown"
3783 llvm_cv_platform_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791if test "${llvm_cv_target_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 case $target in
3795 *-*-aix*)
3796 llvm_cv_target_os_type="AIX" ;;
3797 *-*-irix*)
3798 llvm_cv_target_os_type="IRIX" ;;
3799 *-*-cygwin*)
3800 llvm_cv_target_os_type="Cygwin" ;;
3801 *-*-darwin*)
3802 llvm_cv_target_os_type="Darwin" ;;
3803 *-*-minix*)
3804 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003805 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003806 llvm_cv_target_os_type="FreeBSD" ;;
3807 *-*-openbsd*)
3808 llvm_cv_target_os_type="OpenBSD" ;;
3809 *-*-netbsd*)
3810 llvm_cv_target_os_type="NetBSD" ;;
3811 *-*-dragonfly*)
3812 llvm_cv_target_os_type="DragonFly" ;;
3813 *-*-hpux*)
3814 llvm_cv_target_os_type="HP-UX" ;;
3815 *-*-interix*)
3816 llvm_cv_target_os_type="Interix" ;;
3817 *-*-linux*)
3818 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003819 *-*-gnu*)
3820 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003821 *-*-solaris*)
3822 llvm_cv_target_os_type="SunOS" ;;
3823 *-*-auroraux*)
3824 llvm_cv_target_os_type="AuroraUX" ;;
3825 *-*-win32*)
3826 llvm_cv_target_os_type="Win32" ;;
3827 *-*-mingw*)
3828 llvm_cv_target_os_type="MingW" ;;
3829 *-*-haiku*)
3830 llvm_cv_target_os_type="Haiku" ;;
3831 *-*-rtems*)
3832 llvm_cv_target_os_type="RTEMS" ;;
3833 *-*-nacl*)
3834 llvm_cv_target_os_type="NativeClient" ;;
3835 *-unknown-eabi*)
3836 llvm_cv_target_os_type="Freestanding" ;;
3837 *)
3838 llvm_cv_target_os_type="Unknown" ;;
3839esac
3840fi
3841{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843
3844if test "$llvm_cv_os_type" = "Unknown" ; then
3845 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847 { (exit 1); exit 1; }; }
3848fi
3849
3850OS=$llvm_cv_os_type
3851
3852HOST_OS=$llvm_cv_os_type
3853
3854TARGET_OS=$llvm_cv_target_os_type
3855
3856
3857LINKALL=$llvm_cv_link_all_option
3858
3859NOLINKALL=$llvm_cv_no_link_all_option
3860
3861
3862case $llvm_cv_platform_type in
3863 Unix)
3864
3865cat >>confdefs.h <<\_ACEOF
3866#define LLVM_ON_UNIX 1
3867_ACEOF
3868
3869 LLVM_ON_UNIX=1
3870
3871 LLVM_ON_WIN32=0
3872
3873 ;;
3874 Win32)
3875
3876cat >>confdefs.h <<\_ACEOF
3877#define LLVM_ON_WIN32 1
3878_ACEOF
3879
3880 LLVM_ON_UNIX=0
3881
3882 LLVM_ON_WIN32=1
3883
3884 ;;
3885esac
3886
3887{ echo "$as_me:$LINENO: checking target architecture" >&5
3888echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889if test "${llvm_cv_target_arch+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 case $target in
3893 i?86-*) llvm_cv_target_arch="x86" ;;
3894 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3895 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3896 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003897 arm*-*) llvm_cv_target_arch="ARM" ;;
3898 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003899 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003900 xcore-*) llvm_cv_target_arch="XCore" ;;
3901 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003902 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003903 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003904 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003905 *) llvm_cv_target_arch="Unknown" ;;
3906esac
3907fi
3908{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3910
3911if test "$llvm_cv_target_arch" = "Unknown" ; then
3912 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914fi
3915
Eric Christopherffee5722011-09-16 20:36:25 +00003916case "$llvm_cv_target_arch" in
3917 x86) LLVM_NATIVE_ARCH="X86" ;;
3918 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3919 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920esac
3921
3922ARCH=$llvm_cv_target_arch
3923
3924
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003925case $host in
3926 i?86-*) host_arch="x86" ;;
3927 amd64-* | x86_64-*) host_arch="x86_64" ;;
3928 sparc*-*) host_arch="Sparc" ;;
3929 powerpc*-*) host_arch="PowerPC" ;;
3930 arm*-*) host_arch="ARM" ;;
3931 mips-*) host_arch="Mips" ;;
3932 mipsel-*) host_arch="Mips" ;;
3933 xcore-*) host_arch="XCore" ;;
3934 msp430-*) host_arch="MSP430" ;;
3935 hexagon-*) host_arch="Hexagon" ;;
3936 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003937 *) host_arch="Unknown" ;;
3938esac
3939
3940if test "$host_arch" = "Unknown" ; then
3941 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3942echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3943fi
3944
3945HOST_ARCH=$host_arch
3946
3947
Eric Christopherffee5722011-09-16 20:36:25 +00003948
3949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003950{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3951echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3952if test "${ac_cv_path_GREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955 # Extract the first word of "grep ggrep" to use in msg output
3956if test -z "$GREP"; then
3957set dummy grep ggrep; ac_prog_name=$2
3958if test "${ac_cv_path_GREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
Reid Spencera773bd52006-08-04 18:18:08 +00003961 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962# Loop through the user's path and test for each of PROGNAME-LIST
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003968 for ac_prog in grep ggrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3971 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3972 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003973 # Check for GNU $ac_path_GREP
3974case `"$ac_path_GREP" --version 2>&1` in
3975*GNU*)
3976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3977*)
3978 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003980 while :
3981 do
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003989 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_GREP="$ac_path_GREP"
3992 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003993 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3996 done
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998esac
3999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000
4001 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004002 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004003done
4004
4005done
Reid Spencera773bd52006-08-04 18:18:08 +00004006IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007
4008
4009fi
4010
4011GREP="$ac_cv_path_GREP"
4012if test -z "$GREP"; then
4013 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015 { (exit 1); exit 1; }; }
4016fi
4017
Reid Spencera773bd52006-08-04 18:18:08 +00004018else
4019 ac_cv_path_GREP=$GREP
4020fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022
Reid Spencera773bd52006-08-04 18:18:08 +00004023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4025echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004026 GREP="$ac_cv_path_GREP"
4027
4028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029{ echo "$as_me:$LINENO: checking for egrep" >&5
4030echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4031if test "${ac_cv_path_EGREP+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004033else
4034 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4035 then ac_cv_path_EGREP="$GREP -E"
4036 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037 # Extract the first word of "egrep" to use in msg output
4038if test -z "$EGREP"; then
4039set dummy egrep; ac_prog_name=$2
4040if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
Reid Spencera773bd52006-08-04 18:18:08 +00004043 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044# Loop through the user's path and test for each of PROGNAME-LIST
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004046for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050 for ac_prog in egrep; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4053 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4054 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004055 # Check for GNU $ac_path_EGREP
4056case `"$ac_path_EGREP" --version 2>&1` in
4057*GNU*)
4058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4059*)
4060 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004062 while :
4063 do
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_EGREP="$ac_path_EGREP"
4074 ac_path_EGREP_max=$ac_count
4075 fi
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4078 done
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080esac
4081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082
4083 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004084 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085done
4086
4087done
Reid Spencera773bd52006-08-04 18:18:08 +00004088IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089
4090
4091fi
4092
4093EGREP="$ac_cv_path_EGREP"
4094if test -z "$EGREP"; then
4095 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4096echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4097 { (exit 1); exit 1; }; }
4098fi
4099
Reid Spencera773bd52006-08-04 18:18:08 +00004100else
4101 ac_cv_path_EGREP=$EGREP
4102fi
4103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104
Reid Spencera773bd52006-08-04 18:18:08 +00004105 fi
4106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004107{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4108echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004109 EGREP="$ac_cv_path_EGREP"
4110
4111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4113echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4114if test "${ac_cv_header_stdc+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004117 cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004122/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004123#include <stdlib.h>
4124#include <stdarg.h>
4125#include <string.h>
4126#include <float.h>
4127
John Criswell0c38eaf2003-09-10 15:17:25 +00004128int
4129main ()
4130{
4131
4132 ;
4133 return 0;
4134}
John Criswell7a73b802003-06-30 21:59:07 +00004135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004136rm -f conftest.$ac_objext
4137if { (ac_try="$ac_compile"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004170 ac_cv_header_stdc=yes
4171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004172 echo "$as_me: failed program was:" >&5
4173sed 's/^/| /' conftest.$ac_ext >&5
4174
4175 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004177
Reid Spencera773bd52006-08-04 18:18:08 +00004178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004179
4180if test $ac_cv_header_stdc = yes; then
4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004188#include <string.h>
4189
4190_ACEOF
4191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192 $EGREP "memchr" >/dev/null 2>&1; then
4193 :
John Criswell7a73b802003-06-30 21:59:07 +00004194else
4195 ac_cv_header_stdc=no
4196fi
4197rm -f conftest*
4198
4199fi
4200
4201if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004209#include <stdlib.h>
4210
4211_ACEOF
4212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004213 $EGREP "free" >/dev/null 2>&1; then
4214 :
John Criswell7a73b802003-06-30 21:59:07 +00004215else
4216 ac_cv_header_stdc=no
4217fi
4218rm -f conftest*
4219
4220fi
4221
4222if test $ac_cv_header_stdc = yes; then
4223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004224 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004225 :
4226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004233#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004234#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004235#if ((' ' & 0x0FF) == 0x020)
4236# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004239# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004240 (('a' <= (c) && (c) <= 'i') \
4241 || ('j' <= (c) && (c) <= 'r') \
4242 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004243# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244#endif
4245
4246#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247int
4248main ()
4249{
4250 int i;
4251 for (i = 0; i < 256; i++)
4252 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004253 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004254 return 2;
4255 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004256}
4257_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258rm -f conftest$ac_exeext
4259if { (ac_try="$ac_link"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_link") 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 :
John Criswell7a73b802003-06-30 21:59:07 +00004279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004280 echo "$as_me: program exited with status $ac_status" >&5
4281echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284( exit $ac_status )
4285ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287rm -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 +00004288fi
4289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290
John Criswell7a73b802003-06-30 21:59:07 +00004291fi
4292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004293{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4294echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004295if test $ac_cv_header_stdc = yes; then
4296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004297cat >>confdefs.h <<\_ACEOF
4298#define STDC_HEADERS 1
4299_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004300
4301fi
4302
Reid Spencera773bd52006-08-04 18:18:08 +00004303# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004304
4305
4306
4307
4308
4309
4310
4311
4312
Reid Spencera773bd52006-08-04 18:18:08 +00004313for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4314 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004315do
4316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321else
4322 cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
4328$ac_includes_default
4329
4330#include <$ac_header>
4331_ACEOF
4332rm -f conftest.$ac_objext
4333if { (ac_try="$ac_compile"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_compile") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 eval "$as_ac_Header=yes"
4367else
4368 echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 eval "$as_ac_Header=no"
4372fi
4373
4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375fi
4376ac_res=`eval echo '${'$as_ac_Header'}'`
4377 { echo "$as_me:$LINENO: result: $ac_res" >&5
4378echo "${ECHO_T}$ac_res" >&6; }
4379if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004380 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004382_ACEOF
4383
4384fi
4385
4386done
4387
4388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4390echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4391if test "${ac_cv_c_bigendian+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394 # See if sys/param.h defines the BYTE_ORDER macro.
4395cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004400/* end confdefs.h. */
4401#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004403
4404int
4405main ()
4406{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4408 bogus endian macros
4409#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004410
4411 ;
4412 return 0;
4413}
4414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415rm -f conftest.$ac_objext
4416if { (ac_try="$ac_compile"
4417case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420esac
4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_compile") 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4430 { (case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_try") 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; } &&
4439 { ac_try='test -s conftest.$ac_objext'
4440 { (case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443esac
4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_try") 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004449 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h. */
4452_ACEOF
4453cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004455/* end confdefs.h. */
4456#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004458
4459int
4460main ()
4461{
4462#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463 not big endian
4464#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004465
4466 ;
4467 return 0;
4468}
4469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004470rm -f conftest.$ac_objext
4471if { (ac_try="$ac_compile"
4472case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488esac
4489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004504 ac_cv_c_bigendian=yes
4505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 ac_cv_c_bigendian=no
4510fi
4511
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513else
4514 echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 # It does not; compile a test program.
4518if test "$cross_compiling" = yes; then
4519 # try to guess the endianness by grepping values into an object file
4520 ac_cv_c_bigendian=unknown
4521 cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h. */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h. */
4527short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4528short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4529void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4530short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4531short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4532void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004533int
4534main ()
4535{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004536 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004537 ;
4538 return 0;
4539}
4540_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004541rm -f conftest.$ac_objext
4542if { (ac_try="$ac_compile"
4543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559esac
4560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest.$ac_objext'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004576 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577fi
4578if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4579 if test "$ac_cv_c_bigendian" = unknown; then
4580 ac_cv_c_bigendian=no
4581 else
4582 # finding both strings is unlikely to happen, but who knows?
4583 ac_cv_c_bigendian=unknown
4584 fi
4585fi
Reid Spencera773bd52006-08-04 18:18:08 +00004586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590
Torok Edwin871384f2010-01-26 08:50:50 +00004591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592
Reid Spencera773bd52006-08-04 18:18:08 +00004593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004600/* end confdefs.h. */
4601$ac_includes_default
4602int
4603main ()
4604{
4605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 /* Are we little or big endian? From Harbison&Steele. */
4607 union
4608 {
4609 long int l;
4610 char c[sizeof (long int)];
4611 } u;
4612 u.l = 1;
4613 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004614
4615 ;
4616 return 0;
4617}
4618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619rm -f conftest$ac_exeext
4620if { (ac_try="$ac_link"
4621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4630 { (case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_try") 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004639 ac_cv_c_bigendian=no
4640else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004641 echo "$as_me: program exited with status $ac_status" >&5
4642echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645( exit $ac_status )
4646ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648rm -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 +00004649fi
4650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651
Reid Spencera773bd52006-08-04 18:18:08 +00004652fi
4653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655fi
4656{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4657echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4658case $ac_cv_c_bigendian in
4659 yes)
4660 ENDIAN=big
4661 ;;
4662 no)
4663 ENDIAN=little
4664 ;;
4665 *)
4666 { { echo "$as_me:$LINENO: error: unknown endianness
4667presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4668echo "$as_me: error: unknown endianness
4669presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4671esac
Reid Spencera773bd52006-08-04 18:18:08 +00004672
4673
4674if test "$cross_compiling" = yes; then
4675 LLVM_CROSS_COMPILING=1
4676
4677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4679echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4680if test "${ac_cv_build_exeext+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004682else
4683 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4684 ac_cv_build_exeext=.exe
4685else
4686 ac_build_prefix=${build_alias}-
4687
4688 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4689set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004694else
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 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 +00004705 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004707 break 2
4708 fi
4709done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710done
Reid Spencera773bd52006-08-04 18:18:08 +00004711IFS=$as_save_IFS
4712
4713fi
4714fi
4715BUILD_CC=$ac_cv_prog_BUILD_CC
4716if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4718echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004722fi
4723
4724
4725 if test -z "$BUILD_CC"; then
4726 # Extract the first word of "gcc", so it can be a program name with args.
4727set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004732else
4733 if test -n "$BUILD_CC"; then
4734 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 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 +00004743 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004745 break 2
4746 fi
4747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748done
Reid Spencera773bd52006-08-04 18:18:08 +00004749IFS=$as_save_IFS
4750
4751fi
4752fi
4753BUILD_CC=$ac_cv_prog_BUILD_CC
4754if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4756echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004758 { echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004760fi
4761
4762
4763 if test -z "$BUILD_CC"; then
4764 # Extract the first word of "cc", so it can be a program name with args.
4765set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004770else
4771 if test -n "$BUILD_CC"; then
4772 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4773else
4774 ac_prog_rejected=no
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 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 +00004782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4783 ac_prog_rejected=yes
4784 continue
4785 fi
4786 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004788 break 2
4789 fi
4790done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791done
Reid Spencera773bd52006-08-04 18:18:08 +00004792IFS=$as_save_IFS
4793
4794if test $ac_prog_rejected = yes; then
4795 # We found a bogon in the path, so make sure we never use it.
4796 set dummy $ac_cv_prog_BUILD_CC
4797 shift
4798 if test $# != 0; then
4799 # We chose a different compiler from the bogus one.
4800 # However, it has the same basename, so the bogon will be chosen
4801 # first if we set BUILD_CC to just the basename; use the full file name.
4802 shift
4803 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4804 fi
4805fi
4806fi
4807fi
4808BUILD_CC=$ac_cv_prog_BUILD_CC
4809if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4811echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004813 { echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004815fi
4816
4817
4818 fi
4819 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004820 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4821echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4822 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004823 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4824 rm -f conftest*
4825 echo 'int main () { return 0; }' > conftest.$ac_ext
4826 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004828 (eval $ac_build_link) 2>&5
4829 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004832 for file in conftest.*; do
4833 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004834 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004835 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4836 esac
4837 done
4838 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4840echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4841 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004842 fi
4843 rm -f conftest*
4844 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4845fi
4846fi
4847
4848BUILD_EXEEXT=""
4849test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4851echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004852ac_build_exeext=$BUILD_EXEEXT
4853
Jim Grosbach673612e2008-10-02 22:56:44 +00004854 ac_build_prefix=${build_alias}-
4855 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4856set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004861else
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 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 +00004872 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004874 break 2
4875 fi
4876done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877done
Jim Grosbach673612e2008-10-02 22:56:44 +00004878IFS=$as_save_IFS
4879
4880fi
4881fi
4882BUILD_CXX=$ac_cv_prog_BUILD_CXX
4883if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4885echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887 { echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004889fi
4890
4891
4892 if test -z "$BUILD_CXX"; then
4893 # Extract the first word of "g++", so it can be a program name with args.
4894set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004899else
4900 if test -n "$BUILD_CXX"; then
4901 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4902else
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 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 +00004910 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004912 break 2
4913 fi
4914done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915done
Jim Grosbach673612e2008-10-02 22:56:44 +00004916IFS=$as_save_IFS
4917
4918fi
4919fi
4920BUILD_CXX=$ac_cv_prog_BUILD_CXX
4921if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4923echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925 { echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004927fi
4928
4929
4930 if test -z "$BUILD_CXX"; then
4931 # Extract the first word of "c++", so it can be a program name with args.
4932set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004937else
4938 if test -n "$BUILD_CXX"; then
4939 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4940else
4941 ac_prog_rejected=no
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 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 +00004949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4950 ac_prog_rejected=yes
4951 continue
4952 fi
4953 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004955 break 2
4956 fi
4957done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004958done
Jim Grosbach673612e2008-10-02 22:56:44 +00004959IFS=$as_save_IFS
4960
4961if test $ac_prog_rejected = yes; then
4962 # We found a bogon in the path, so make sure we never use it.
4963 set dummy $ac_cv_prog_BUILD_CXX
4964 shift
4965 if test $# != 0; then
4966 # We chose a different compiler from the bogus one.
4967 # However, it has the same basename, so the bogon will be chosen
4968 # first if we set BUILD_CXX to just the basename; use the full file name.
4969 shift
4970 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4971 fi
4972fi
4973fi
4974fi
4975BUILD_CXX=$ac_cv_prog_BUILD_CXX
4976if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4978echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004980 { echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004982fi
4983
4984
4985 fi
4986 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004987else
4988 LLVM_CROSS_COMPILING=0
4989
4990fi
4991
Dan Gohman56fb5f92010-08-04 16:25:01 +00004992if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004993 cvsbuild="yes"
4994 optimize="no"
4995 CVSBUILD=CVSBUILD=1
4996
4997else
4998 cvsbuild="no"
4999 optimize="yes"
5000fi
5001
5002
Eric Christopherbee515f2011-11-11 22:51:42 +00005003# Check whether --enable-libcpp was given.
5004if test "${enable_libcpp+set}" = set; then
5005 enableval=$enable_libcpp;
5006else
5007 enableval=default
5008fi
5009
5010case "$enableval" in
5011 yes) ENABLE_LIBCPP=1
5012 ;;
5013 no) ENABLE_LIBCPP=0
5014 ;;
5015 default) ENABLE_LIBCPP=0
5016;;
5017 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5018echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5019 { (exit 1); exit 1; }; } ;;
5020esac
5021
Reid Spencera773bd52006-08-04 18:18:08 +00005022# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005023if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005024 enableval=$enable_optimized;
5025else
5026 enableval=$optimize
5027fi
5028
5029if test ${enableval} = "no" ; then
5030 ENABLE_OPTIMIZED=
5031
5032else
5033 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5034
5035fi
5036
David Greene2a5a12c2009-04-17 14:50:39 +00005037# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005038if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005039 enableval=$enable_profiling;
5040else
5041 enableval="no"
5042fi
5043
5044if test ${enableval} = "no" ; then
5045 ENABLE_PROFILING=
5046
5047else
5048 ENABLE_PROFILING=ENABLE_PROFILING=1
5049
5050fi
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005053if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005054 enableval=$enable_assertions;
5055else
5056 enableval="yes"
5057fi
5058
5059if test ${enableval} = "yes" ; then
5060 DISABLE_ASSERTIONS=
5061
5062else
5063 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5064
5065fi
5066
David Greenea696d242007-06-28 19:36:08 +00005067# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005068if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005069 enableval=$enable_expensive_checks;
5070else
5071 enableval="no"
5072fi
5073
5074if test ${enableval} = "yes" ; then
5075 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5076
5077 EXPENSIVE_CHECKS=yes
5078
5079else
5080 ENABLE_EXPENSIVE_CHECKS=
5081
5082 EXPENSIVE_CHECKS=no
5083
5084fi
5085
Reid Spencer8b2e1412006-11-17 03:32:33 +00005086# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005087if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005088 enableval=$enable_debug_runtime;
5089else
5090 enableval=no
5091fi
5092
5093if test ${enableval} = "no" ; then
5094 DEBUG_RUNTIME=
5095
5096else
5097 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5098
5099fi
5100
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005101# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005103 enableval=$enable_debug_symbols;
5104else
5105 enableval=no
5106fi
5107
5108if test ${enableval} = "no" ; then
5109 DEBUG_SYMBOLS=
5110
5111else
5112 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5113
5114fi
5115
Reid Spencera773bd52006-08-04 18:18:08 +00005116# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005117if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005118 enableval=$enable_jit;
5119else
5120 enableval=default
5121fi
5122
5123if test ${enableval} = "no"
5124then
5125 JIT=
5126
5127else
5128 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005129 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005130 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005131 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005132 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005133 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005134 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005135 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005136 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005137 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005138 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005139 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005140 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005141 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005142 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005143 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005144 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005145 Hexagon) TARGET_HAS_JIT=0
5146 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005147 MBlaze) TARGET_HAS_JIT=0
5148 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005149 NVPTX) TARGET_HAS_JIT=0
5150 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005151 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005152 ;;
5153 esac
5154fi
5155
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005156# Check whether --enable-docs was given.
5157if test "${enable_docs+set}" = set; then
5158 enableval=$enable_docs;
5159else
5160 enableval=default
5161fi
5162
5163case "$enableval" in
5164 yes) ENABLE_DOCS=1
5165 ;;
5166 no) ENABLE_DOCS=0
5167 ;;
5168 default) ENABLE_DOCS=1
5169 ;;
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5171echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5173esac
5174
Reid Spencera773bd52006-08-04 18:18:08 +00005175# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005176if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005177 enableval=$enable_doxygen;
5178else
5179 enableval=default
5180fi
5181
5182case "$enableval" in
5183 yes) ENABLE_DOXYGEN=1
5184 ;;
5185 no) ENABLE_DOXYGEN=0
5186 ;;
5187 default) ENABLE_DOXYGEN=0
5188 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5190echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005192esac
5193
5194# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005196 enableval=$enable_threads;
5197else
Reid Spencer65c5d752006-11-05 17:08:18 +00005198 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005199fi
5200
5201case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005202 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005203 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005204 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005205 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005206 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005207 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5209echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5210 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005211esac
5212
Owen Andersona8603702009-05-19 22:18:56 +00005213cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005214#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005215_ACEOF
5216
5217
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005218# Check whether --enable-pthreads was given.
5219if test "${enable_pthreads+set}" = set; then
5220 enableval=$enable_pthreads;
5221else
5222 enableval=default
5223fi
5224
5225case "$enableval" in
5226 yes) ENABLE_PTHREADS=1
5227 ;;
5228 no) ENABLE_PTHREADS=0
5229 ;;
5230 default) ENABLE_PTHREADS=1
5231 ;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5233echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5235esac
5236
Reid Spencer89b0d992006-12-16 22:07:52 +00005237# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005239 enableval=$enable_pic;
5240else
5241 enableval=default
5242fi
5243
5244case "$enableval" in
5245 yes) ENABLE_PIC=1
5246 ;;
5247 no) ENABLE_PIC=0
5248 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005249 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005250 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5252echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005254esac
5255
5256cat >>confdefs.h <<_ACEOF
5257#define ENABLE_PIC $ENABLE_PIC
5258_ACEOF
5259
5260
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005261# Check whether --enable-shared was given.
5262if test "${enable_shared+set}" = set; then
5263 enableval=$enable_shared;
5264else
5265 enableval=default
5266fi
5267
5268case "$enableval" in
5269 yes) ENABLE_SHARED=1
5270 ;;
5271 no) ENABLE_SHARED=0
5272 ;;
5273 default) ENABLE_SHARED=0
5274 ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5276echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5278esac
5279
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005280# Check whether --enable-embed-stdcxx was given.
5281if test "${enable_embed_stdcxx+set}" = set; then
5282 enableval=$enable_embed_stdcxx;
5283else
5284 enableval=default
5285fi
5286
5287case "$enableval" in
5288 yes) ENABLE_EMBED_STDCXX=1
5289 ;;
5290 no) ENABLE_EMBED_STDCXX=0
5291 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005292 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005293 ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5295echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5297esac
5298
Daniel Dunbardd464df2010-05-10 20:11:56 +00005299# Check whether --enable-timestamps was given.
5300if test "${enable_timestamps+set}" = set; then
5301 enableval=$enable_timestamps;
5302else
5303 enableval=default
5304fi
5305
5306case "$enableval" in
5307 yes) ENABLE_TIMESTAMPS=1
5308 ;;
5309 no) ENABLE_TIMESTAMPS=0
5310 ;;
5311 default) ENABLE_TIMESTAMPS=1
5312 ;;
5313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5314echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5315 { (exit 1); exit 1; }; } ;;
5316esac
5317
5318cat >>confdefs.h <<_ACEOF
5319#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5320_ACEOF
5321
5322
Reid Spencera773bd52006-08-04 18:18:08 +00005323TARGETS_TO_BUILD=""
5324# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005325if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005326 enableval=$enable_targets;
5327else
5328 enableval=all
5329fi
5330
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005331if test "$enableval" = host-only ; then
5332 enableval=host
5333fi
Reid Spencera773bd52006-08-04 18:18:08 +00005334case "$enableval" in
Justin Holewinski42a0b482012-05-24 21:38:21 +00005335 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005336 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5337 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005338 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5339 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5340 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5341 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005342 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5343 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005344 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005345 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005346 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5347 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005348 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005349 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005350 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005351 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005352 host) case "$llvm_cv_target_arch" in
5353 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5356 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005357 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5358 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005359 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005360 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005361 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5362 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005363 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005364 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005365 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5366echo "$as_me: error: Can not set target to build" >&2;}
5367 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005368 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005369 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5370echo "$as_me: error: Unrecognized target $a_target" >&2;}
5371 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005372 esac
5373 done
5374 ;;
5375esac
Reid Spencera773bd52006-08-04 18:18:08 +00005376TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5377
5378
Douglas Gregor0711c302009-06-17 00:43:20 +00005379for a_target in $TARGETS_TO_BUILD; do
5380 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5381
5382cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005383#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5384_ACEOF
5385
5386 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5387 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005388 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005389 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005390 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5392 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005393 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5394 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5395 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005396
5397cat >>confdefs.h <<_ACEOF
5398#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005399_ACEOF
5400
5401
5402cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005403#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5404_ACEOF
5405
5406
5407cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005408#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005409_ACEOF
5410
5411
5412cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005413#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005414_ACEOF
5415
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005416 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005417
5418cat >>confdefs.h <<_ACEOF
5419#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5420_ACEOF
5421
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005422 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005423 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5424
5425cat >>confdefs.h <<_ACEOF
5426#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5427_ACEOF
5428
5429 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005430 fi
5431done
5432
Douglas Gregor1555a232009-06-16 20:12:29 +00005433LLVM_ENUM_TARGETS=""
5434LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005435LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005436LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005437for target_to_build in $TARGETS_TO_BUILD; do
5438 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005439 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005440 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5441 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005442 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5443 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5444 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005445 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5446 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5447 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005448done
5449
5450
5451
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005452
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005453
Reid Spencera773bd52006-08-04 18:18:08 +00005454
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005455# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005456if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005457 withval=$with_optimize_option;
5458else
5459 withval=default
5460fi
5461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005462{ echo "$as_me:$LINENO: checking optimization flags" >&5
5463echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005464case "$withval" in
5465 default)
5466 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005467 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005468 MingW) optimize_option=-O2 ;;
5469 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005470 esac ;;
5471 *) optimize_option="$withval" ;;
5472esac
5473OPTIMIZE_OPTION=$optimize_option
5474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005475{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5476echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005477
5478
Reid Spencera773bd52006-08-04 18:18:08 +00005479# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005481 withval=$with_extra_options;
5482else
5483 withval=default
5484fi
5485
5486case "$withval" in
5487 default) EXTRA_OPTIONS= ;;
5488 *) EXTRA_OPTIONS=$withval ;;
5489esac
5490EXTRA_OPTIONS=$EXTRA_OPTIONS
5491
5492
Daniel Dunbared344d22011-06-16 22:30:41 +00005493
5494# Check whether --with-extra-ld-options was given.
5495if test "${with_extra_ld_options+set}" = set; then
5496 withval=$with_extra_ld_options;
5497else
5498 withval=default
5499fi
5500
5501case "$withval" in
5502 default) EXTRA_LD_OPTIONS= ;;
5503 *) EXTRA_LD_OPTIONS=$withval ;;
5504esac
5505EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5506
5507
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005508# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005510 enableval=$enable_bindings;
5511else
5512 enableval=default
5513fi
5514
5515BINDINGS_TO_BUILD=""
5516case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005517 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005518 all ) BINDINGS_TO_BUILD="ocaml" ;;
5519 none | no) BINDINGS_TO_BUILD="" ;;
5520 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5521 case "$a_binding" in
5522 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005523 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5524echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5525 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005526 esac
5527 done
5528 ;;
5529esac
5530
Reid Spencera773bd52006-08-04 18:18:08 +00005531
Gordon Henriksenf0915682007-10-02 16:42:22 +00005532# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005533if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005534 withval=$with_ocaml_libdir;
5535else
5536 withval=auto
5537fi
5538
5539case "$withval" in
5540 auto) with_ocaml_libdir="$withval" ;;
5541 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005542 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5543echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5544 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005545esac
5546
5547
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005548# Check whether --with-clang-srcdir was given.
5549if test "${with_clang_srcdir+set}" = set; then
5550 withval=$with_clang_srcdir;
5551else
5552 withval="-"
5553fi
5554
5555case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005556 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005557 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5558 *) clang_src_root="$ac_pwd/$withval" ;;
5559esac
5560CLANG_SRC_ROOT=$clang_src_root
5561
5562
5563
Chandler Carruth6b241162010-10-19 08:21:25 +00005564# Check whether --with-clang-resource-dir was given.
5565if test "${with_clang_resource_dir+set}" = set; then
5566 withval=$with_clang_resource_dir;
5567else
5568 withval=""
5569fi
5570
5571
5572cat >>confdefs.h <<_ACEOF
5573#define CLANG_RESOURCE_DIR "$withval"
5574_ACEOF
5575
5576
5577
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005578# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005580 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005581else
5582 withval=""
5583fi
5584
5585
5586cat >>confdefs.h <<_ACEOF
5587#define C_INCLUDE_DIRS "$withval"
5588_ACEOF
5589
5590
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005591# Clang normally uses the system c++ headers and libraries. With this option,
5592# clang will use the ones provided by a gcc installation instead. This option should
5593# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005594
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005595# Check whether --with-gcc-toolchain was given.
5596if test "${with_gcc_toolchain+set}" = set; then
5597 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005598else
5599 withval=""
5600fi
5601
5602
5603cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005604#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005605_ACEOF
5606
5607
5608
Sebastian Pope4f1b372012-04-30 20:06:58 +00005609# Check whether --with-default-sysroot was given.
5610if test "${with_default_sysroot+set}" = set; then
5611 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005612else
5613 withval=""
5614fi
5615
5616
5617cat >>confdefs.h <<_ACEOF
5618#define DEFAULT_SYSROOT "$withval"
5619_ACEOF
5620
5621
5622
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005623# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005624if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005625 withval=$with_binutils_include;
5626else
5627 withval=default
5628fi
5629
5630case "$withval" in
5631 default) WITH_BINUTILS_INCDIR=default ;;
5632 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005633 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5634echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5635 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005636esac
5637if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5638 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5639
5640 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5641 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5643echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5644 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005645 fi
5646fi
5647
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005648
5649# Check whether --with-bug-report-url was given.
5650if test "${with_bug_report_url+set}" = set; then
5651 withval=$with_bug_report_url;
5652else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005653 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005654fi
5655
5656
5657cat >>confdefs.h <<_ACEOF
5658#define BUG_REPORT_URL "$withval"
5659_ACEOF
5660
5661
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005662# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005664 enableval=$enable_libffi; case "$enableval" in
5665 yes) llvm_cv_enable_libffi="yes" ;;
5666 no) llvm_cv_enable_libffi="no" ;;
5667 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5669 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005670 esac
5671else
5672 llvm_cv_enable_libffi=no
5673fi
5674
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005675
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005676
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005677# Check whether --with-internal-prefix was given.
5678if test "${with_internal_prefix+set}" = set; then
5679 withval=$with_internal_prefix;
5680else
5681 withval=""
5682fi
5683
5684INTERNAL_PREFIX=$withval
5685
5686
5687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5689echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5690if test "${lt_cv_path_NM+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005692else
5693 if test -n "$NM"; then
5694 # Let the user override the test.
5695 lt_cv_path_NM="$NM"
5696else
5697 lt_nm_to_check="${ac_tool_prefix}nm"
5698 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5699 lt_nm_to_check="$lt_nm_to_check nm"
5700 fi
5701 for lt_tmp_nm in $lt_nm_to_check; do
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5704 IFS="$lt_save_ifs"
5705 test -z "$ac_dir" && ac_dir=.
5706 tmp_nm="$ac_dir/$lt_tmp_nm"
5707 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5708 # Check to see if the nm accepts a BSD-compat flag.
5709 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5710 # nm: unknown option "B" ignored
5711 # Tru64's nm complains that /dev/null is an invalid object file
5712 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5713 */dev/null* | *'Invalid file or object type'*)
5714 lt_cv_path_NM="$tmp_nm -B"
5715 break
5716 ;;
5717 *)
5718 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5719 */dev/null*)
5720 lt_cv_path_NM="$tmp_nm -p"
5721 break
5722 ;;
5723 *)
5724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5725 continue # so that we can try to find one that supports BSD flags
5726 ;;
5727 esac
5728 ;;
5729 esac
5730 fi
5731 done
5732 IFS="$lt_save_ifs"
5733 done
5734 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5735fi
5736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5738echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005739NM="$lt_cv_path_NM"
5740
5741
5742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743{ echo "$as_me:$LINENO: checking for GNU make" >&5
5744echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5745if test "${llvm_cv_gnu_make_command+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005747else
5748 llvm_cv_gnu_make_command=''
5749 for a in "$MAKE" make gmake gnumake ; do
5750 if test -z "$a" ; then continue ; fi ;
5751 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5752 then
5753 llvm_cv_gnu_make_command=$a ;
5754 break;
5755 fi
5756 done
5757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5759echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005760 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5761 ifGNUmake='' ;
5762 else
5763 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5765echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005766 fi
5767
5768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5770echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005771LN_S=$as_ln_s
5772if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773 { echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5777echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005778fi
5779
5780# Extract the first word of "cmp", so it can be a program name with args.
5781set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5784if test "${ac_cv_path_CMP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005786else
5787 case $CMP in
5788 [\\/]* | ?:[\\/]*)
5789 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5790 ;;
5791 *)
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 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 +00005799 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005801 break 2
5802 fi
5803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804done
Reid Spencera773bd52006-08-04 18:18:08 +00005805IFS=$as_save_IFS
5806
5807 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5808 ;;
5809esac
5810fi
5811CMP=$ac_cv_path_CMP
5812if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813 { echo "$as_me:$LINENO: result: $CMP" >&5
5814echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816 { echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005818fi
5819
5820
5821# Extract the first word of "cp", so it can be a program name with args.
5822set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5825if test "${ac_cv_path_CP+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005827else
5828 case $CP in
5829 [\\/]* | ?:[\\/]*)
5830 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5831 ;;
5832 *)
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 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 +00005840 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005842 break 2
5843 fi
5844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845done
Reid Spencera773bd52006-08-04 18:18:08 +00005846IFS=$as_save_IFS
5847
5848 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5849 ;;
5850esac
5851fi
5852CP=$ac_cv_path_CP
5853if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 { echo "$as_me:$LINENO: result: $CP" >&5
5855echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857 { echo "$as_me:$LINENO: result: no" >&5
5858echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005859fi
5860
5861
5862# Extract the first word of "date", so it can be a program name with args.
5863set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866if test "${ac_cv_path_DATE+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005868else
5869 case $DATE in
5870 [\\/]* | ?:[\\/]*)
5871 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5872 ;;
5873 *)
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 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 +00005881 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005883 break 2
5884 fi
5885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886done
Reid Spencera773bd52006-08-04 18:18:08 +00005887IFS=$as_save_IFS
5888
5889 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5890 ;;
5891esac
5892fi
5893DATE=$ac_cv_path_DATE
5894if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 { echo "$as_me:$LINENO: result: $DATE" >&5
5896echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898 { echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005900fi
5901
5902
5903# Extract the first word of "find", so it can be a program name with args.
5904set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907if test "${ac_cv_path_FIND+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005909else
5910 case $FIND in
5911 [\\/]* | ?:[\\/]*)
5912 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5913 ;;
5914 *)
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 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 +00005922 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005924 break 2
5925 fi
5926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927done
Reid Spencera773bd52006-08-04 18:18:08 +00005928IFS=$as_save_IFS
5929
5930 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5931 ;;
5932esac
5933fi
5934FIND=$ac_cv_path_FIND
5935if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936 { echo "$as_me:$LINENO: result: $FIND" >&5
5937echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005938else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939 { echo "$as_me:$LINENO: result: no" >&5
5940echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005941fi
5942
5943
5944# Extract the first word of "grep", so it can be a program name with args.
5945set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948if test "${ac_cv_path_GREP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
5951 case $GREP in
5952 [\\/]* | ?:[\\/]*)
5953 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5954 ;;
5955 *)
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 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 +00005963 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005965 break 2
5966 fi
5967done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968done
Reid Spencera773bd52006-08-04 18:18:08 +00005969IFS=$as_save_IFS
5970
5971 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5972 ;;
5973esac
5974fi
5975GREP=$ac_cv_path_GREP
5976if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 { echo "$as_me:$LINENO: result: $GREP" >&5
5978echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980 { echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005982fi
5983
5984
5985# Extract the first word of "mkdir", so it can be a program name with args.
5986set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989if test "${ac_cv_path_MKDIR+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005991else
5992 case $MKDIR in
5993 [\\/]* | ?:[\\/]*)
5994 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5995 ;;
5996 *)
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 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 +00006004 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006006 break 2
6007 fi
6008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009done
Reid Spencera773bd52006-08-04 18:18:08 +00006010IFS=$as_save_IFS
6011
6012 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6013 ;;
6014esac
6015fi
6016MKDIR=$ac_cv_path_MKDIR
6017if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006018 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6019echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006023fi
6024
6025
6026# Extract the first word of "mv", so it can be a program name with args.
6027set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030if test "${ac_cv_path_MV+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
6033 case $MV in
6034 [\\/]* | ?:[\\/]*)
6035 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6036 ;;
6037 *)
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 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 +00006045 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006047 break 2
6048 fi
6049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050done
Reid Spencera773bd52006-08-04 18:18:08 +00006051IFS=$as_save_IFS
6052
6053 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6054 ;;
6055esac
6056fi
6057MV=$ac_cv_path_MV
6058if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 { echo "$as_me:$LINENO: result: $MV" >&5
6060echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006061else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 { echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006064fi
6065
6066
6067if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072if test "${ac_cv_prog_RANLIB+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006074else
6075 if test -n "$RANLIB"; then
6076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 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 +00006085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006087 break 2
6088 fi
6089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006090done
Reid Spencera773bd52006-08-04 18:18:08 +00006091IFS=$as_save_IFS
6092
6093fi
6094fi
6095RANLIB=$ac_cv_prog_RANLIB
6096if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6098echo "${ECHO_T}$RANLIB" >&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
6105fi
6106if test -z "$ac_cv_prog_RANLIB"; then
6107 ac_ct_RANLIB=$RANLIB
6108 # Extract the first word of "ranlib", so it can be a program name with args.
6109set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006114else
6115 if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006125 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006127 break 2
6128 fi
6129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130done
Reid Spencera773bd52006-08-04 18:18:08 +00006131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6138echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140 { echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006142fi
6143
6144 if test "x$ac_ct_RANLIB" = x; then
6145 RANLIB=":"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6150whose name does not start with the host triplet. If you think this
6151configuration is useful to you, please write to autoconf@gnu.org." >&5
6152echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6153whose name does not start with the host triplet. If you think this
6154configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006155ac_tool_warned=yes ;;
6156esac
6157 RANLIB=$ac_ct_RANLIB
6158 fi
6159else
6160 RANLIB="$ac_cv_prog_RANLIB"
6161fi
6162
Torok Edwin871384f2010-01-26 08:50:50 +00006163if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6165set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168if test "${ac_cv_prog_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006170else
6171 if test -n "$AR"; then
6172 ac_cv_prog_AR="$AR" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 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 +00006181 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006183 break 2
6184 fi
6185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186done
Torok Edwin871384f2010-01-26 08:50:50 +00006187IFS=$as_save_IFS
6188
6189fi
6190fi
6191AR=$ac_cv_prog_AR
6192if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 { echo "$as_me:$LINENO: result: $AR" >&5
6194echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 { echo "$as_me:$LINENO: result: no" >&5
6197echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006198fi
6199
6200
6201fi
6202if test -z "$ac_cv_prog_AR"; then
6203 ac_ct_AR=$AR
6204 # Extract the first word of "ar", so it can be a program name with args.
6205set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006210else
6211 if test -n "$ac_ct_AR"; then
6212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 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 +00006221 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006223 break 2
6224 fi
6225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226done
Torok Edwin871384f2010-01-26 08:50:50 +00006227IFS=$as_save_IFS
6228
6229fi
6230fi
6231ac_ct_AR=$ac_cv_prog_ac_ct_AR
6232if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6234echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236 { echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006238fi
6239
6240 if test "x$ac_ct_AR" = x; then
6241 AR="false"
6242 else
6243 case $cross_compiling:$ac_tool_warned in
6244yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6246whose name does not start with the host triplet. If you think this
6247configuration is useful to you, please write to autoconf@gnu.org." >&5
6248echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6249whose name does not start with the host triplet. If you think this
6250configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006251ac_tool_warned=yes ;;
6252esac
6253 AR=$ac_ct_AR
6254 fi
6255else
6256 AR="$ac_cv_prog_AR"
6257fi
6258
Reid Spencera773bd52006-08-04 18:18:08 +00006259# Extract the first word of "rm", so it can be a program name with args.
6260set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263if test "${ac_cv_path_RM+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006265else
6266 case $RM in
6267 [\\/]* | ?:[\\/]*)
6268 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6269 ;;
6270 *)
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 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 +00006278 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006280 break 2
6281 fi
6282done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283done
Reid Spencera773bd52006-08-04 18:18:08 +00006284IFS=$as_save_IFS
6285
6286 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6287 ;;
6288esac
6289fi
6290RM=$ac_cv_path_RM
6291if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: $RM" >&5
6293echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006297fi
6298
6299
6300# Extract the first word of "sed", so it can be a program name with args.
6301set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304if test "${ac_cv_path_SED+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
6307 case $SED in
6308 [\\/]* | ?:[\\/]*)
6309 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6310 ;;
6311 *)
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 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 +00006319 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006321 break 2
6322 fi
6323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324done
Reid Spencera773bd52006-08-04 18:18:08 +00006325IFS=$as_save_IFS
6326
6327 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6328 ;;
6329esac
6330fi
6331SED=$ac_cv_path_SED
6332if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 { echo "$as_me:$LINENO: result: $SED" >&5
6334echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336 { echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006338fi
6339
6340
6341# Extract the first word of "tar", so it can be a program name with args.
6342set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345if test "${ac_cv_path_TAR+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
6348 case $TAR in
6349 [\\/]* | ?:[\\/]*)
6350 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6351 ;;
6352 *)
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 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 +00006360 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006362 break 2
6363 fi
6364done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365done
Reid Spencera773bd52006-08-04 18:18:08 +00006366IFS=$as_save_IFS
6367
6368 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6369 ;;
6370esac
6371fi
6372TAR=$ac_cv_path_TAR
6373if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006374 { echo "$as_me:$LINENO: result: $TAR" >&5
6375echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377 { echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006379fi
6380
6381
6382# Extract the first word of "pwd", so it can be a program name with args.
6383set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_path_BINPWD+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
6389 case $BINPWD in
6390 [\\/]* | ?:[\\/]*)
6391 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6392 ;;
6393 *)
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 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 +00006401 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006403 break 2
6404 fi
6405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406done
Reid Spencera773bd52006-08-04 18:18:08 +00006407IFS=$as_save_IFS
6408
6409 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6410 ;;
6411esac
6412fi
6413BINPWD=$ac_cv_path_BINPWD
6414if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6416echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 { echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006420fi
6421
6422
6423
6424# Extract the first word of "Graphviz", so it can be a program name with args.
6425set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006430else
6431 case $GRAPHVIZ in
6432 [\\/]* | ?:[\\/]*)
6433 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6434 ;;
6435 *)
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 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 +00006443 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006445 break 2
6446 fi
6447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448done
Reid Spencera773bd52006-08-04 18:18:08 +00006449IFS=$as_save_IFS
6450
6451 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6452 ;;
6453esac
6454fi
6455GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6456if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6458echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460 { echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006462fi
6463
6464
6465if test "$GRAPHVIZ" != "echo Graphviz" ; then
6466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467cat >>confdefs.h <<\_ACEOF
6468#define HAVE_GRAPHVIZ 1
6469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006470
Jeff Cohen28783c32007-01-12 18:22:38 +00006471 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006472 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6473 fi
6474
6475cat >>confdefs.h <<_ACEOF
6476#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6477_ACEOF
6478
6479fi
6480# Extract the first word of "dot", so it can be a program name with args.
6481set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484if test "${ac_cv_path_DOT+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006486else
6487 case $DOT in
6488 [\\/]* | ?:[\\/]*)
6489 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6490 ;;
6491 *)
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 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 +00006499 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006501 break 2
6502 fi
6503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504done
Reid Spencera773bd52006-08-04 18:18:08 +00006505IFS=$as_save_IFS
6506
6507 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6508 ;;
6509esac
6510fi
6511DOT=$ac_cv_path_DOT
6512if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513 { echo "$as_me:$LINENO: result: $DOT" >&5
6514echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516 { echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006518fi
6519
6520
6521if test "$DOT" != "echo dot" ; then
6522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523cat >>confdefs.h <<\_ACEOF
6524#define HAVE_DOT 1
6525_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006526
Jeff Cohen28783c32007-01-12 18:22:38 +00006527 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006528 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6529 fi
6530
6531cat >>confdefs.h <<_ACEOF
6532#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6533_ACEOF
6534
6535fi
David Greenef0b9eff2009-07-09 17:16:26 +00006536# Extract the first word of "fdp", so it can be a program name with args.
6537set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540if test "${ac_cv_path_FDP+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006542else
6543 case $FDP in
6544 [\\/]* | ?:[\\/]*)
6545 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6546 ;;
6547 *)
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 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 +00006555 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006557 break 2
6558 fi
6559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560done
David Greenef0b9eff2009-07-09 17:16:26 +00006561IFS=$as_save_IFS
6562
6563 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6564 ;;
6565esac
6566fi
6567FDP=$ac_cv_path_FDP
6568if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569 { echo "$as_me:$LINENO: result: $FDP" >&5
6570echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572 { echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006574fi
6575
6576
6577if test "$FDP" != "echo fdp" ; then
6578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579cat >>confdefs.h <<\_ACEOF
6580#define HAVE_FDP 1
6581_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006582
6583 if test "$llvm_cv_os_type" = "MingW" ; then
6584 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6585 fi
6586
6587cat >>confdefs.h <<_ACEOF
6588#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6589_ACEOF
6590
6591fi
6592# Extract the first word of "neato", so it can be a program name with args.
6593set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596if test "${ac_cv_path_NEATO+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006598else
6599 case $NEATO in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6602 ;;
6603 *)
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 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 +00006611 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006613 break 2
6614 fi
6615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616done
David Greenef0b9eff2009-07-09 17:16:26 +00006617IFS=$as_save_IFS
6618
6619 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6620 ;;
6621esac
6622fi
6623NEATO=$ac_cv_path_NEATO
6624if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625 { echo "$as_me:$LINENO: result: $NEATO" >&5
6626echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628 { echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006630fi
6631
6632
6633if test "$NEATO" != "echo neato" ; then
6634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635cat >>confdefs.h <<\_ACEOF
6636#define HAVE_NEATO 1
6637_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006638
6639 if test "$llvm_cv_os_type" = "MingW" ; then
6640 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6641 fi
6642
6643cat >>confdefs.h <<_ACEOF
6644#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6645_ACEOF
6646
6647fi
6648# Extract the first word of "twopi", so it can be a program name with args.
6649set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652if test "${ac_cv_path_TWOPI+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006654else
6655 case $TWOPI in
6656 [\\/]* | ?:[\\/]*)
6657 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6658 ;;
6659 *)
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 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 +00006667 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006669 break 2
6670 fi
6671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672done
David Greenef0b9eff2009-07-09 17:16:26 +00006673IFS=$as_save_IFS
6674
6675 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6676 ;;
6677esac
6678fi
6679TWOPI=$ac_cv_path_TWOPI
6680if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6682echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684 { echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006686fi
6687
6688
6689if test "$TWOPI" != "echo twopi" ; then
6690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691cat >>confdefs.h <<\_ACEOF
6692#define HAVE_TWOPI 1
6693_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006694
6695 if test "$llvm_cv_os_type" = "MingW" ; then
6696 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6697 fi
6698
6699cat >>confdefs.h <<_ACEOF
6700#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6701_ACEOF
6702
6703fi
6704# Extract the first word of "circo", so it can be a program name with args.
6705set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_CIRCO+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006710else
6711 case $CIRCO in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 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 +00006723 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006725 break 2
6726 fi
6727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728done
David Greenef0b9eff2009-07-09 17:16:26 +00006729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6732 ;;
6733esac
6734fi
6735CIRCO=$ac_cv_path_CIRCO
6736if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6738echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006742fi
6743
6744
6745if test "$CIRCO" != "echo circo" ; then
6746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747cat >>confdefs.h <<\_ACEOF
6748#define HAVE_CIRCO 1
6749_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006750
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753 fi
6754
6755cat >>confdefs.h <<_ACEOF
6756#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6757_ACEOF
6758
6759fi
Reid Spencera773bd52006-08-04 18:18:08 +00006760for ac_prog in gv gsview32
6761do
6762 # Extract the first word of "$ac_prog", so it can be a program name with args.
6763set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_path_GV+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006768else
6769 case $GV in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6772 ;;
6773 *)
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 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 +00006781 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006783 break 2
6784 fi
6785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786done
Reid Spencera773bd52006-08-04 18:18:08 +00006787IFS=$as_save_IFS
6788
6789 ;;
6790esac
6791fi
6792GV=$ac_cv_path_GV
6793if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794 { echo "$as_me:$LINENO: result: $GV" >&5
6795echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797 { echo "$as_me:$LINENO: result: no" >&5
6798echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006799fi
6800
6801
6802 test -n "$GV" && break
6803done
6804test -n "$GV" || GV="echo gv"
6805
6806if test "$GV" != "echo gv" ; then
6807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808cat >>confdefs.h <<\_ACEOF
6809#define HAVE_GV 1
6810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006811
Jeff Cohen28783c32007-01-12 18:22:38 +00006812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006813 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 fi
6815
6816cat >>confdefs.h <<_ACEOF
6817#define LLVM_PATH_GV "$GV${EXEEXT}"
6818_ACEOF
6819
6820fi
6821# Extract the first word of "dotty", so it can be a program name with args.
6822set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825if test "${ac_cv_path_DOTTY+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006827else
6828 case $DOTTY in
6829 [\\/]* | ?:[\\/]*)
6830 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6831 ;;
6832 *)
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006840 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006842 break 2
6843 fi
6844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845done
Reid Spencera773bd52006-08-04 18:18:08 +00006846IFS=$as_save_IFS
6847
6848 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6849 ;;
6850esac
6851fi
6852DOTTY=$ac_cv_path_DOTTY
6853if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6855echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857 { echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006859fi
6860
6861
6862if test "$DOTTY" != "echo dotty" ; then
6863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864cat >>confdefs.h <<\_ACEOF
6865#define HAVE_DOTTY 1
6866_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006867
Jeff Cohen28783c32007-01-12 18:22:38 +00006868 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006869 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870 fi
6871
6872cat >>confdefs.h <<_ACEOF
6873#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6874_ACEOF
6875
6876fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006877# Extract the first word of "xdot.py", so it can be a program name with args.
6878set dummy xdot.py; ac_word=$2
6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_XDOT_PY+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 case $XDOT_PY in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
6902IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6905 ;;
6906esac
6907fi
6908XDOT_PY=$ac_cv_path_XDOT_PY
6909if test -n "$XDOT_PY"; then
6910 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6911echo "${ECHO_T}$XDOT_PY" >&6; }
6912else
6913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
6915fi
6916
6917
6918if test "$XDOT_PY" != "echo xdot.py" ; then
6919
6920cat >>confdefs.h <<\_ACEOF
6921#define HAVE_XDOT_PY 1
6922_ACEOF
6923
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926 fi
6927
6928cat >>confdefs.h <<_ACEOF
6929#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6930_ACEOF
6931
6932fi
Reid Spencera773bd52006-08-04 18:18:08 +00006933
Reid Spencera773bd52006-08-04 18:18:08 +00006934# Find a good install program. We prefer a C program (faster),
6935# so one script is as good as another. But avoid the broken or
6936# incompatible versions:
6937# SysV /etc/install, /usr/sbin/install
6938# SunOS /usr/etc/install
6939# IRIX /sbin/install
6940# AIX /bin/install
6941# AmigaOS /C/install, which installs bootblocks on floppy discs
6942# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6943# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6944# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6945# OS/2's system install, which has a completely different semantic
6946# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6948echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950if test "${ac_cv_path_install+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006952else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 # Account for people who put trailing slashes in PATH elements.
6959case $as_dir/ in
6960 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006961 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006963 /usr/ucb/* ) ;;
6964 *)
6965 # OSF1 and SCO ODT 3.0 have their own names for install.
6966 # Don't use installbsd from OSF since it installs stuff as root
6967 # by default.
6968 for ac_prog in ginstall scoinst install; do
6969 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970 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 +00006971 if test $ac_prog = install &&
6972 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6973 # AIX install. It has an incompatible calling convention.
6974 :
6975 elif test $ac_prog = install &&
6976 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6977 # program-specific install script used by HP pwplus--don't use.
6978 :
6979 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6981 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006982 fi
6983 fi
6984 done
6985 done
6986 ;;
6987esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988done
Reid Spencera773bd52006-08-04 18:18:08 +00006989IFS=$as_save_IFS
6990
6991
6992fi
6993 if test "${ac_cv_path_install+set}" = set; then
6994 INSTALL=$ac_cv_path_install
6995 else
6996 # As a last resort, use the slow shell script. Don't cache a
6997 # value for INSTALL within a source directory, because that will
6998 # break other packages using the cache if that directory is
6999 # removed, or if the value is a relative name.
7000 INSTALL=$ac_install_sh
7001 fi
7002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7004echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007005
7006# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7007# It thinks the first close brace ends the variable substitution.
7008test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7009
7010test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7011
7012test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7013
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007014case "$INSTALL" in
7015 [\\/$]* | ?:[\\/]* ) ;;
7016 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7017esac
Reid Spencera773bd52006-08-04 18:18:08 +00007018
7019# Extract the first word of "bzip2", so it can be a program name with args.
7020set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023if test "${ac_cv_path_BZIP2+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007025else
7026 case $BZIP2 in
7027 [\\/]* | ?:[\\/]*)
7028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7029 ;;
7030 *)
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 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 +00007038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007040 break 2
7041 fi
7042done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043done
Reid Spencera773bd52006-08-04 18:18:08 +00007044IFS=$as_save_IFS
7045
Reid Spencera773bd52006-08-04 18:18:08 +00007046 ;;
7047esac
7048fi
7049BZIP2=$ac_cv_path_BZIP2
7050if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7052echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 { echo "$as_me:$LINENO: result: no" >&5
7055echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007056fi
7057
7058
mike-m68cb3192010-05-06 23:45:43 +00007059# Extract the first word of "cat", so it can be a program name with args.
7060set dummy cat; ac_word=$2
7061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063if test "${ac_cv_path_CAT+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066 case $CAT in
7067 [\\/]* | ?:[\\/]*)
7068 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7069 ;;
7070 *)
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082done
7083done
7084IFS=$as_save_IFS
7085
7086 ;;
7087esac
7088fi
7089CAT=$ac_cv_path_CAT
7090if test -n "$CAT"; then
7091 { echo "$as_me:$LINENO: result: $CAT" >&5
7092echo "${ECHO_T}$CAT" >&6; }
7093else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6; }
7096fi
7097
7098
Reid Spencera773bd52006-08-04 18:18:08 +00007099# Extract the first word of "doxygen", so it can be a program name with args.
7100set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103if test "${ac_cv_path_DOXYGEN+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007105else
7106 case $DOXYGEN in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7109 ;;
7110 *)
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 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 +00007118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007120 break 2
7121 fi
7122done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123done
Reid Spencera773bd52006-08-04 18:18:08 +00007124IFS=$as_save_IFS
7125
Reid Spencera773bd52006-08-04 18:18:08 +00007126 ;;
7127esac
7128fi
7129DOXYGEN=$ac_cv_path_DOXYGEN
7130if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7132echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 { echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007136fi
7137
7138
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007139# Extract the first word of "groff", so it can be a program name with args.
7140set dummy groff; ac_word=$2
7141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143if test "${ac_cv_path_GROFF+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146 case $GROFF in
7147 [\\/]* | ?:[\\/]*)
7148 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7149 ;;
7150 *)
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162done
7163done
7164IFS=$as_save_IFS
7165
7166 ;;
7167esac
7168fi
7169GROFF=$ac_cv_path_GROFF
7170if test -n "$GROFF"; then
7171 { echo "$as_me:$LINENO: result: $GROFF" >&5
7172echo "${ECHO_T}$GROFF" >&6; }
7173else
7174 { echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6; }
7176fi
7177
7178
Reid Spencera773bd52006-08-04 18:18:08 +00007179# Extract the first word of "gzip", so it can be a program name with args.
7180set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007183if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
Eric Christopher031d3072010-12-10 01:31:51 +00007186 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007187 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007188 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 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 +00007198 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007200 break 2
7201 fi
7202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203done
Reid Spencera773bd52006-08-04 18:18:08 +00007204IFS=$as_save_IFS
7205
Reid Spencera773bd52006-08-04 18:18:08 +00007206 ;;
7207esac
7208fi
Eric Christopher031d3072010-12-10 01:31:51 +00007209GZIPBIN=$ac_cv_path_GZIPBIN
7210if test -n "$GZIPBIN"; then
7211 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7212echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007216fi
7217
7218
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007219# Extract the first word of "pdfroff", so it can be a program name with args.
7220set dummy pdfroff; ac_word=$2
7221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223if test "${ac_cv_path_PDFROFF+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 case $PDFROFF in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7229 ;;
7230 *)
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243done
7244IFS=$as_save_IFS
7245
7246 ;;
7247esac
7248fi
7249PDFROFF=$ac_cv_path_PDFROFF
7250if test -n "$PDFROFF"; then
7251 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7252echo "${ECHO_T}$PDFROFF" >&6; }
7253else
7254 { echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6; }
7256fi
7257
7258
7259# Extract the first word of "runtest", so it can be a program name with args.
7260set dummy runtest; ac_word=$2
7261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263if test "${ac_cv_path_RUNTEST+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 case $RUNTEST in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282done
7283done
7284IFS=$as_save_IFS
7285
7286 ;;
7287esac
7288fi
7289RUNTEST=$ac_cv_path_RUNTEST
7290if test -n "$RUNTEST"; then
7291 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7292echo "${ECHO_T}$RUNTEST" >&6; }
7293else
7294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
7296fi
7297
7298
Reid Spencera773bd52006-08-04 18:18:08 +00007299
7300no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7302echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007303
7304# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007306 withval=$with_tclinclude; with_tclinclude=${withval}
7307else
7308 with_tclinclude=''
7309fi
7310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311if test "${ac_cv_path_tclsh+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007313else
7314
7315if test x"${with_tclinclude}" != x ; then
7316 if test -f ${with_tclinclude}/tclsh ; then
7317 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7318 elif test -f ${with_tclinclude}/src/tclsh ; then
7319 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7320 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7322echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007324 fi
7325fi
Torok Edwin871384f2010-01-26 08:50:50 +00007326fi
7327
Reid Spencera773bd52006-08-04 18:18:08 +00007328
7329if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330 { echo "$as_me:$LINENO: result: none" >&5
7331echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007332 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7333do
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7338if test "${ac_cv_path_TCLSH+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007340else
7341 case $TCLSH in
7342 [\\/]* | ?:[\\/]*)
7343 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7344 ;;
7345 *)
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 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 +00007353 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007355 break 2
7356 fi
7357done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358done
Reid Spencera773bd52006-08-04 18:18:08 +00007359IFS=$as_save_IFS
7360
7361 ;;
7362esac
7363fi
7364TCLSH=$ac_cv_path_TCLSH
7365if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7367echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 { echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007371fi
7372
7373
7374 test -n "$TCLSH" && break
7375done
7376
7377 if test x"${TCLSH}" = x ; then
7378 ac_cv_path_tclsh='';
7379 else
7380 ac_cv_path_tclsh="${TCLSH}";
7381 fi
7382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7384echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007385 TCLSH="${ac_cv_path_tclsh}"
7386
7387fi
7388
Reid Spencera773bd52006-08-04 18:18:08 +00007389# Extract the first word of "zip", so it can be a program name with args.
7390set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393if test "${ac_cv_path_ZIP+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007395else
7396 case $ZIP in
7397 [\\/]* | ?:[\\/]*)
7398 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7399 ;;
7400 *)
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007408 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007410 break 2
7411 fi
7412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413done
Reid Spencera773bd52006-08-04 18:18:08 +00007414IFS=$as_save_IFS
7415
Reid Spencera773bd52006-08-04 18:18:08 +00007416 ;;
7417esac
7418fi
7419ZIP=$ac_cv_path_ZIP
7420if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 { echo "$as_me:$LINENO: result: $ZIP" >&5
7422echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424 { echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007426fi
7427
7428
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007429for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007430do
7431 # Extract the first word of "$ac_prog", so it can be a program name with args.
7432set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_path_OCAMLC+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007437else
7438 case $OCAMLC in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7441 ;;
7442 *)
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 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 +00007450 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007452 break 2
7453 fi
7454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007456IFS=$as_save_IFS
7457
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007458 ;;
7459esac
7460fi
7461OCAMLC=$ac_cv_path_OCAMLC
7462if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7464echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 { echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007468fi
7469
7470
Gordon Henriksene7072162008-03-07 18:20:01 +00007471 test -n "$OCAMLC" && break
7472done
7473
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007474for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007475do
7476 # Extract the first word of "$ac_prog", so it can be a program name with args.
7477set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007482else
7483 case $OCAMLOPT in
7484 [\\/]* | ?:[\\/]*)
7485 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7486 ;;
7487 *)
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 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 +00007495 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007497 break 2
7498 fi
7499done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007501IFS=$as_save_IFS
7502
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007503 ;;
7504esac
7505fi
7506OCAMLOPT=$ac_cv_path_OCAMLOPT
7507if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7509echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 { echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007513fi
7514
7515
Gordon Henriksene7072162008-03-07 18:20:01 +00007516 test -n "$OCAMLOPT" && break
7517done
7518
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007519for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007520do
7521 # Extract the first word of "$ac_prog", so it can be a program name with args.
7522set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7525if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007527else
7528 case $OCAMLDEP in
7529 [\\/]* | ?:[\\/]*)
7530 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7531 ;;
7532 *)
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 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 +00007540 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007542 break 2
7543 fi
7544done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007546IFS=$as_save_IFS
7547
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007548 ;;
7549esac
7550fi
7551OCAMLDEP=$ac_cv_path_OCAMLDEP
7552if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7554echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007555else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 { echo "$as_me:$LINENO: result: no" >&5
7557echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007558fi
7559
7560
Gordon Henriksene7072162008-03-07 18:20:01 +00007561 test -n "$OCAMLDEP" && break
7562done
7563
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007564for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007565do
7566 # Extract the first word of "$ac_prog", so it can be a program name with args.
7567set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7570if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007572else
7573 case $OCAMLDOC in
7574 [\\/]* | ?:[\\/]*)
7575 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7576 ;;
7577 *)
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579for as_dir in $PATH
7580do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 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 +00007585 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007587 break 2
7588 fi
7589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007591IFS=$as_save_IFS
7592
7593 ;;
7594esac
7595fi
7596OCAMLDOC=$ac_cv_path_OCAMLDOC
7597if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007598 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7599echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601 { echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007603fi
7604
7605
7606 test -n "$OCAMLDOC" && break
7607done
7608
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007609for ac_prog in gas as
7610do
7611 # Extract the first word of "$ac_prog", so it can be a program name with args.
7612set dummy $ac_prog; ac_word=$2
7613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615if test "${ac_cv_path_GAS+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618 case $GAS in
7619 [\\/]* | ?:[\\/]*)
7620 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7621 ;;
7622 *)
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634done
7635done
7636IFS=$as_save_IFS
7637
7638 ;;
7639esac
7640fi
7641GAS=$ac_cv_path_GAS
7642if test -n "$GAS"; then
7643 { echo "$as_me:$LINENO: result: $GAS" >&5
7644echo "${ECHO_T}$GAS" >&6; }
7645else
7646 { echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6; }
7648fi
7649
7650
7651 test -n "$GAS" && break
7652done
7653
Reid Spencera773bd52006-08-04 18:18:08 +00007654
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007655{ echo "$as_me:$LINENO: checking for linker version" >&5
7656echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7657if test "${llvm_cv_link_version+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660
7661 version_string="$(ld -v 2>&1 | head -1)"
7662
7663 # Check for ld64.
7664 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007665 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007666 else
7667 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7668 fi
7669
7670fi
7671{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7672echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7673
7674cat >>confdefs.h <<_ACEOF
7675#define HOST_LINK_VERSION "$llvm_cv_link_version"
7676_ACEOF
7677
7678
7679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7681echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7682if test "${llvm_cv_link_use_r+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007684else
7685 ac_ext=c
7686ac_cpp='$CPP $CPPFLAGS'
7687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691 oldcflags="$CFLAGS"
7692 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007698/* end confdefs.h. */
7699
7700int
7701main ()
7702{
Dan Gohman39ed6782010-04-25 00:12:20 +00007703
Reid Spencera773bd52006-08-04 18:18:08 +00007704 ;
7705 return 0;
7706}
7707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708rm -f conftest.$ac_objext conftest$ac_exeext
7709if { (ac_try="$ac_link"
7710case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713esac
7714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_link") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
7727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_try") 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007742 llvm_cv_link_use_r=yes
7743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744 echo "$as_me: failed program was:" >&5
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749
Bill Wendlingebcceee2009-04-18 11:20:33 +00007750rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007752 CFLAGS="$oldcflags"
7753 ac_ext=c
7754ac_cpp='$CPP $CPPFLAGS'
7755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758
7759
7760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7762echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007763if test "$llvm_cv_link_use_r" = yes ; then
7764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765cat >>confdefs.h <<\_ACEOF
7766#define HAVE_LINK_R 1
7767_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007768
7769 fi
7770
7771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7773echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7774if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007776else
7777 ac_ext=c
7778ac_cpp='$CPP $CPPFLAGS'
7779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782
7783 oldcflags="$CFLAGS"
7784 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007790/* end confdefs.h. */
7791
7792int
7793main ()
7794{
Dan Gohman39ed6782010-04-25 00:12:20 +00007795
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007796 ;
7797 return 0;
7798}
7799_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800rm -f conftest.$ac_objext conftest$ac_exeext
7801if { (ac_try="$ac_link"
7802case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805esac
7806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_link") 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7815 { (case "(($ac_try" in
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7818esac
7819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7820 (eval "$ac_try") 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828esac
7829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_try") 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007834 llvm_cv_link_use_export_dynamic=yes
7835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007841
Bill Wendlingebcceee2009-04-18 11:20:33 +00007842rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007844 CFLAGS="$oldcflags"
7845 ac_ext=c
7846ac_cpp='$CPP $CPPFLAGS'
7847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851
7852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007853{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7854echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007855if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007857cat >>confdefs.h <<\_ACEOF
7858#define HAVE_LINK_EXPORT_DYNAMIC 1
7859_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007860
7861 fi
7862
7863
Dan Gohmanda612d62010-06-01 14:56:56 +00007864{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7865echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7866if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868else
7869 ac_ext=c
7870ac_cpp='$CPP $CPPFLAGS'
7871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7873ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874
7875 oldcflags="$CFLAGS"
7876
7877 # The following code is from the autoconf manual,
7878 # "11.13: Limitations of Usual Tools".
7879 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7880 # Use mktemp if possible; otherwise fall back on mkdir,
7881 # with $RANDOM to make collisions less likely.
7882 : ${TMPDIR=/tmp}
7883 {
7884 tmp=`
7885 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7886 ` &&
7887 test -n "$tmp" && test -d "$tmp"
7888 } || {
7889 tmp=$TMPDIR/foo$$-$RANDOM
7890 (umask 077 && mkdir "$tmp")
7891 } || exit $?
7892
Dan Gohmanda612d62010-06-01 14:56:56 +00007893 echo "{" > "$tmp/export.map"
7894 echo " global: main;" >> "$tmp/export.map"
7895 echo " local: *;" >> "$tmp/export.map"
7896 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007897
Dan Gohmanda612d62010-06-01 14:56:56 +00007898 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007899 cat >conftest.$ac_ext <<_ACEOF
7900/* confdefs.h. */
7901_ACEOF
7902cat confdefs.h >>conftest.$ac_ext
7903cat >>conftest.$ac_ext <<_ACEOF
7904/* end confdefs.h. */
7905
7906int
7907main ()
7908{
Dan Gohman39ed6782010-04-25 00:12:20 +00007909
Dan Gohman391569c2010-04-16 22:59:06 +00007910 ;
7911 return 0;
7912}
7913_ACEOF
7914rm -f conftest.$ac_objext conftest$ac_exeext
7915if { (ac_try="$ac_link"
7916case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_link") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942esac
7943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_try") 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007948 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007949else
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
Dan Gohman943005e2010-06-01 16:22:27 +00007953 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007954fi
7955
7956rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007958 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007959 rmdir "$tmp"
7960 CFLAGS="$oldcflags"
7961 ac_ext=c
7962ac_cpp='$CPP $CPPFLAGS'
7963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965ac_compiler_gnu=$ac_cv_c_compiler_gnu
7966
7967
7968fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007969{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7970echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7971if test "$llvm_cv_link_use_version_script" = yes ; then
7972 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007973
7974 fi
7975
7976
Reid Spencera773bd52006-08-04 18:18:08 +00007977
7978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7980echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7981if test "${ac_cv_c_const+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007984 cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007989/* end confdefs.h. */
7990
7991int
7992main ()
7993{
7994/* FIXME: Include the comments suggested by Paul. */
7995#ifndef __cplusplus
7996 /* Ultrix mips cc rejects this. */
7997 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007999 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000 char const *const *ccp;
8001 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008002 /* NEC SVR4.0.2 mips cc rejects this. */
8003 struct point {int x, y;};
8004 static struct point const zero = {0,0};
8005 /* AIX XL C 1.02.0.0 rejects this.
8006 It does not let you subtract one const X* pointer from another in
8007 an arm of an if-expression whose if-part is not a constant
8008 expression */
8009 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008011 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012 ++ccp;
8013 p = (char**) ccp;
8014 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008015 { /* SCO 3.2v4 cc rejects this. */
8016 char *t;
8017 char const *s = 0 ? (char *) 0 : (char const *) 0;
8018
8019 *t++ = 0;
8020 if (s) return 0;
8021 }
8022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8023 int x[] = {25, 17};
8024 const int *foo = &x[0];
8025 ++foo;
8026 }
8027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8028 typedef const int *iptr;
8029 iptr p = 0;
8030 ++p;
8031 }
8032 { /* AIX XL C 1.02.0.0 rejects this saying
8033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8034 struct s { int j; const int *ap[3]; };
8035 struct s *b; b->j = 5;
8036 }
8037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038 const int foo = 10;
8039 if (!foo) return 0;
8040 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008042#endif
8043
8044 ;
8045 return 0;
8046}
8047_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048rm -f conftest.$ac_objext
8049if { (ac_try="$ac_compile"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008082 ac_cv_c_const=yes
8083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089
Reid Spencera773bd52006-08-04 18:18:08 +00008090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008092{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8093echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008094if test $ac_cv_c_const = no; then
8095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096cat >>confdefs.h <<\_ACEOF
8097#define const
8098_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008099
8100fi
8101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102
8103
8104
8105
8106
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008107ac_header_dirent=no
8108for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8110{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8111echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008120/* end confdefs.h. */
8121#include <sys/types.h>
8122#include <$ac_hdr>
8123
8124int
8125main ()
8126{
8127if ((DIR *) 0)
8128return 0;
8129 ;
8130 return 0;
8131}
8132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133rm -f conftest.$ac_objext
8134if { (ac_try="$ac_compile"
8135case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138esac
8139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151esac
8152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_try") 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest.$ac_objext'
8158 { (case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161esac
8162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_try") 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008167 eval "$as_ac_Header=yes"
8168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 echo "$as_me: failed program was:" >&5
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
8172 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174
Reid Spencera773bd52006-08-04 18:18:08 +00008175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008177ac_res=`eval echo '${'$as_ac_Header'}'`
8178 { echo "$as_me:$LINENO: result: $ac_res" >&5
8179echo "${ECHO_T}$ac_res" >&6; }
8180if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008181 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008183_ACEOF
8184
8185ac_header_dirent=$ac_hdr; break
8186fi
8187
8188done
8189# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8190if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008191 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8192echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8193if test "${ac_cv_search_opendir+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008195else
8196 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008202/* end confdefs.h. */
8203
Reid Spencera773bd52006-08-04 18:18:08 +00008204/* Override any GCC internal prototype to avoid an error.
8205 Use char because int might match the return type of a GCC
8206 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008207#ifdef __cplusplus
8208extern "C"
8209#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210char opendir ();
8211int
8212main ()
8213{
Reid Spencera773bd52006-08-04 18:18:08 +00008214return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008215 ;
8216 return 0;
8217}
8218_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008219for ac_lib in '' dir; do
8220 if test -z "$ac_lib"; then
8221 ac_res="none required"
8222 else
8223 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008225 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 rm -f conftest.$ac_objext conftest$ac_exeext
8227if { (ac_try="$ac_link"
8228case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8241 { (case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244esac
8245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_try") 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008260 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261else
8262 echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
8265
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267
Bill Wendlingebcceee2009-04-18 11:20:33 +00008268rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 conftest$ac_exeext
8270 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008271 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008272fi
John Criswell7a73b802003-06-30 21:59:07 +00008273done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274if test "${ac_cv_search_opendir+set}" = set; then
8275 :
Reid Spencera773bd52006-08-04 18:18:08 +00008276else
8277 ac_cv_search_opendir=no
8278fi
8279rm conftest.$ac_ext
8280LIBS=$ac_func_search_save_LIBS
8281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8283echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008284ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008287
Reid Spencera773bd52006-08-04 18:18:08 +00008288fi
8289
8290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008291 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8292echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8293if test "${ac_cv_search_opendir+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008295else
8296 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008302/* end confdefs.h. */
8303
8304/* Override any GCC internal prototype to avoid an error.
8305 Use char because int might match the return type of a GCC
8306 builtin and then its argument prototype would still apply. */
8307#ifdef __cplusplus
8308extern "C"
8309#endif
8310char opendir ();
8311int
8312main ()
8313{
8314return opendir ();
8315 ;
8316 return 0;
8317}
8318_ACEOF
8319for ac_lib in '' x; do
8320 if test -z "$ac_lib"; then
8321 ac_res="none required"
8322 else
8323 ac_res=-l$ac_lib
8324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8325 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 rm -f conftest.$ac_objext conftest$ac_exeext
8327if { (ac_try="$ac_link"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_link") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344esac
8345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008360 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008361else
8362 echo "$as_me: failed program was:" >&5
8363sed 's/^/| /' conftest.$ac_ext >&5
8364
8365
Reid Spencera773bd52006-08-04 18:18:08 +00008366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367
Bill Wendlingebcceee2009-04-18 11:20:33 +00008368rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 conftest$ac_exeext
8370 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008371 break
8372fi
8373done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374if test "${ac_cv_search_opendir+set}" = set; then
8375 :
Reid Spencera773bd52006-08-04 18:18:08 +00008376else
8377 ac_cv_search_opendir=no
8378fi
8379rm conftest.$ac_ext
8380LIBS=$ac_func_search_save_LIBS
8381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8383echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008384ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8387
8388fi
8389
8390fi
John Criswell7a73b802003-06-30 21:59:07 +00008391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392
John Criswell7a73b802003-06-30 21:59:07 +00008393for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394do
8395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401fi
8402ac_res=`eval echo '${'$as_ac_Header'}'`
8403 { echo "$as_me:$LINENO: result: $ac_res" >&5
8404echo "${ECHO_T}$ac_res" >&6; }
8405else
8406 # Is the header compilable?
8407{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8409cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
8415$ac_includes_default
8416#include <$ac_header>
8417_ACEOF
8418rm -f conftest.$ac_objext
8419if { (ac_try="$ac_compile"
8420case "(($ac_try" in
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8423esac
8424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compile") 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_header_compiler=yes
8453else
8454 echo "$as_me: failed program was:" >&5
8455sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 ac_header_compiler=no
8458fi
8459
8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462echo "${ECHO_T}$ac_header_compiler" >&6; }
8463
8464# Is the header present?
8465{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8467cat >conftest.$ac_ext <<_ACEOF
8468/* confdefs.h. */
8469_ACEOF
8470cat confdefs.h >>conftest.$ac_ext
8471cat >>conftest.$ac_ext <<_ACEOF
8472/* end confdefs.h. */
8473#include <$ac_header>
8474_ACEOF
8475if { (ac_try="$ac_cpp conftest.$ac_ext"
8476case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
8490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491 else
8492 ac_cpp_err=
8493 fi
8494else
8495 ac_cpp_err=yes
8496fi
8497if test -z "$ac_cpp_err"; then
8498 ac_header_preproc=yes
8499else
8500 echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_header_preproc=no
8504fi
8505
8506rm -f conftest.err conftest.$ac_ext
8507{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508echo "${ECHO_T}$ac_header_preproc" >&6; }
8509
8510# So? What about this header?
8511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512 yes:no: )
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517 ac_header_preproc=yes
8518 ;;
8519 no:yes:* )
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008533## ------------------------------------ ##
8534## Report this to http://llvm.org/bugs/ ##
8535## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536_ASBOX
8537 ) | sed "s/^/$as_me: WARNING: /" >&2
8538 ;;
8539esac
8540{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545 eval "$as_ac_Header=\$ac_header_preproc"
8546fi
8547ac_res=`eval echo '${'$as_ac_Header'}'`
8548 { echo "$as_me:$LINENO: result: $ac_res" >&5
8549echo "${ECHO_T}$ac_res" >&6; }
8550
8551fi
8552if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008553 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008555_ACEOF
8556
8557fi
8558
8559done
8560
Reid Spencera773bd52006-08-04 18:18:08 +00008561# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008563 enableval=$enable_ltdl_install;
8564fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008565
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008567
8568
8569if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008570 INSTALL_LTDL_TRUE=
8571 INSTALL_LTDL_FALSE='#'
8572else
8573 INSTALL_LTDL_TRUE='#'
8574 INSTALL_LTDL_FALSE=
8575fi
8576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577
8578
8579if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008580 CONVENIENCE_LTDL_TRUE=
8581 CONVENIENCE_LTDL_FALSE='#'
8582else
8583 CONVENIENCE_LTDL_TRUE='#'
8584 CONVENIENCE_LTDL_FALSE=
8585fi
8586
8587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8589echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008590library_names_spec=
8591libname_spec='lib$name'
8592soname_spec=
8593shrext_cmds=".so"
8594postinstall_cmds=
8595postuninstall_cmds=
8596finish_cmds=
8597finish_eval=
8598shlibpath_var=
8599shlibpath_overrides_runpath=unknown
8600version_type=none
8601dynamic_linker="$host_os ld.so"
8602sys_lib_dlsearch_path_spec="/lib /usr/lib"
8603if test "$GCC" = yes; then
8604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8606 # if the path contains ";" then we assume it to be the separator
8607 # otherwise default to the standard path separator (i.e. ":") - it is
8608 # assumed that no part of a normal pathname contains ";" but that should
8609 # okay in the real world where ";" in dirpaths is itself problematic.
8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611 else
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8613 fi
8614else
8615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8616fi
8617need_lib_prefix=unknown
8618hardcode_into_libs=no
8619
8620# when you set need_version to no, make sure it does not cause -set_version
8621# flags to be left without arguments
8622need_version=unknown
8623
8624case $host_os in
8625aix3*)
8626 version_type=linux
8627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8628 shlibpath_var=LIBPATH
8629
8630 # AIX 3 has no versioning support, so we append a major version to the name.
8631 soname_spec='${libname}${release}${shared_ext}$major'
8632 ;;
8633
8634aix4* | aix5*)
8635 version_type=linux
8636 need_lib_prefix=no
8637 need_version=no
8638 hardcode_into_libs=yes
8639 if test "$host_cpu" = ia64; then
8640 # AIX 5 supports IA64
8641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 else
8644 # With GCC up to 2.95.x, collect2 would create an import file
8645 # for dependence libraries. The import file would start with
8646 # the line `#! .'. This would cause the generated library to
8647 # depend on `.', always an invalid library. This was fixed in
8648 # development snapshots of GCC prior to 3.0.
8649 case $host_os in
8650 aix4 | aix4.[01] | aix4.[01].*)
8651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8652 echo ' yes '
8653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8654 :
8655 else
8656 can_build_shared=no
8657 fi
8658 ;;
8659 esac
8660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8661 # soname into executable. Probably we can add versioning support to
8662 # collect2, so additional links can be useful in future.
8663 if test "$aix_use_runtimelinking" = yes; then
8664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8665 # instead of lib<name>.a to let people know that these are not
8666 # typical AIX shared libraries.
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668 else
8669 # We preserve .a as extension for shared libraries through AIX4.2
8670 # and later when we are not doing run time linking.
8671 library_names_spec='${libname}${release}.a $libname.a'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 fi
8674 shlibpath_var=LIBPATH
8675 fi
8676 ;;
8677
8678amigaos*)
8679 library_names_spec='$libname.ixlibrary $libname.a'
8680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8681 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'
8682 ;;
8683
8684beos*)
8685 library_names_spec='${libname}${shared_ext}'
8686 dynamic_linker="$host_os ld.so"
8687 shlibpath_var=LIBRARY_PATH
8688 ;;
8689
8690bsdi[45]*)
8691 version_type=linux
8692 need_version=no
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8696 shlibpath_var=LD_LIBRARY_PATH
8697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8699 # the default ld.so.conf also contains /usr/contrib/lib and
8700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8701 # libtool to hard-code these into programs
8702 ;;
8703
8704cygwin* | mingw* | pw32*)
8705 version_type=windows
8706 shrext_cmds=".dll"
8707 need_version=no
8708 need_lib_prefix=no
8709
8710 case $GCC,$host_os in
8711 yes,cygwin* | yes,mingw* | yes,pw32*)
8712 library_names_spec='$libname.dll.a'
8713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8714 postinstall_cmds='base_file=`basename \${file}`~
8715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8716 dldir=$destdir/`dirname \$dlpath`~
8717 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008718 $install_prog $dir/$dlname \$dldir/$dlname~
8719 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8721 dlpath=$dir/\$dldll~
8722 $rm \$dlpath'
8723 shlibpath_overrides_runpath=yes
8724
8725 case $host_os in
8726 cygwin*)
8727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8730 ;;
8731 mingw*)
8732 # MinGW DLLs use traditional 'lib' prefix
8733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8736 # It is most probably a Windows format PATH printed by
8737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8738 # path with ; separators, and with drive letters. We can handle the
8739 # drive letters (cygwin fileutils understands them), so leave them,
8740 # especially as we might pass files found there to a mingw objdump,
8741 # which wouldn't understand a cygwinified path. Ahh.
8742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8743 else
8744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8745 fi
8746 ;;
8747 pw32*)
8748 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008749 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 +00008750 ;;
8751 esac
8752 ;;
8753
8754 *)
8755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8756 ;;
8757 esac
8758 dynamic_linker='Win32 ld.exe'
8759 # FIXME: first we should search . and the directory the executable is in
8760 shlibpath_var=PATH
8761 ;;
8762
8763darwin* | rhapsody*)
8764 dynamic_linker="$host_os dyld"
8765 version_type=darwin
8766 need_lib_prefix=no
8767 need_version=no
8768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8769 soname_spec='${libname}${release}${major}$shared_ext'
8770 shlibpath_overrides_runpath=yes
8771 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008772 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8774 if test "$GCC" = yes; then
8775 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"`
8776 else
8777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8778 fi
8779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8780 ;;
8781
8782dgux*)
8783 version_type=linux
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 shlibpath_var=LD_LIBRARY_PATH
8789 ;;
8790
Eric Christopher360fa9a2011-10-26 00:42:12 +00008791freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792 dynamic_linker=no
8793 ;;
8794
8795kfreebsd*-gnu)
8796 version_type=linux
8797 need_lib_prefix=no
8798 need_version=no
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=no
8803 hardcode_into_libs=yes
8804 dynamic_linker='GNU ld.so'
8805 ;;
8806
Reid Spencera773bd52006-08-04 18:18:08 +00008807freebsd* | dragonfly*)
8808 # DragonFly does not have aout. When/if they implement a new
8809 # versioning mechanism, adjust this.
8810 if test -x /usr/bin/objformat; then
8811 objformat=`/usr/bin/objformat`
8812 else
8813 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008814 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008815 *) objformat=elf ;;
8816 esac
8817 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008818 version_type=freebsd-$objformat
8819 case $version_type in
8820 freebsd-elf*)
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822 need_version=no
8823 need_lib_prefix=no
8824 ;;
8825 freebsd-*)
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827 need_version=yes
8828 ;;
8829 esac
8830 shlibpath_var=LD_LIBRARY_PATH
8831 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008832 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008833 shlibpath_overrides_runpath=yes
8834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008835 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008844 freebsd*) # from 4.6 on
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8847 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848 esac
8849 ;;
8850
8851gnu*)
8852 version_type=linux
8853 need_lib_prefix=no
8854 need_version=no
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 hardcode_into_libs=yes
8859 ;;
8860
8861hpux9* | hpux10* | hpux11*)
8862 # Give a soname corresponding to the major version so that dld.sl refuses to
8863 # link against other versions.
8864 version_type=sunos
8865 need_lib_prefix=no
8866 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008867 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868 ia64*)
8869 shrext_cmds='.so'
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.so"
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 if test "X$HPUX_IA64_MODE" = X32; then
8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8878 else
8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8880 fi
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 ;;
8883 hppa*64*)
8884 shrext_cmds='.sl'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.sl"
8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893 ;;
8894 *)
8895 shrext_cmds='.sl'
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=SHLIB_PATH
8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 ;;
8902 esac
8903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904 postinstall_cmds='chmod 555 $lib'
8905 ;;
8906
Reid Spencera773bd52006-08-04 18:18:08 +00008907interix3*)
8908 version_type=linux
8909 need_lib_prefix=no
8910 need_version=no
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 ;;
8918
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008919irix5* | irix6* | nonstopux*)
8920 case $host_os in
8921 nonstopux*) version_type=nonstopux ;;
8922 *)
8923 if test "$lt_cv_prog_gnu_ld" = yes; then
8924 version_type=linux
8925 else
8926 version_type=irix
8927 fi ;;
8928 esac
8929 need_lib_prefix=no
8930 need_version=no
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8933 case $host_os in
8934 irix5* | nonstopux*)
8935 libsuff= shlibsuff=
8936 ;;
8937 *)
8938 case $LD in # libtool.m4 will add one of these switches to LD
8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940 libsuff= shlibsuff= libmagic=32-bit;;
8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942 libsuff=32 shlibsuff=N32 libmagic=N32;;
8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945 *) libsuff= shlibsuff= libmagic=never-match;;
8946 esac
8947 ;;
8948 esac
8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950 shlibpath_overrides_runpath=no
8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953 hardcode_into_libs=yes
8954 ;;
8955
8956# No shared lib support for Linux oldld, aout, or coff.
8957linux*oldld* | linux*aout* | linux*coff*)
8958 dynamic_linker=no
8959 ;;
8960
8961# This must be Linux ELF.
8962linux*)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 # This implies no fast_install, which is unacceptable.
8972 # Some rework will be needed to allow for fast_install
8973 # before this can be enabled.
8974 hardcode_into_libs=yes
8975
8976 # Append ld.so.conf contents to the search path
8977 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008978 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 +00008979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8980 fi
8981
8982 # We used to test for /lib/ld.so.1 and disable shared libraries on
8983 # powerpc, because MkLinux only supported shared libraries with the
8984 # GNU dynamic linker. Since this was broken with cross compilers,
8985 # most powerpc-linux boxes support dynamic linking these days and
8986 # people can always --disable-shared, the test was removed, and we
8987 # assume the GNU/Linux dynamic linker is in use.
8988 dynamic_linker='GNU/Linux ld.so'
8989 ;;
8990
8991knetbsd*-gnu)
8992 version_type=linux
8993 need_lib_prefix=no
8994 need_version=no
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9000 dynamic_linker='GNU ld.so'
9001 ;;
9002
9003netbsd*)
9004 version_type=sunos
9005 need_lib_prefix=no
9006 need_version=no
9007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9010 dynamic_linker='NetBSD (a.out) ld.so'
9011 else
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 dynamic_linker='NetBSD ld.elf_so'
9015 fi
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 ;;
9020
9021newsos6)
9022 version_type=linux
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9026 ;;
9027
9028nto-qnx*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9036 ;;
9037
9038openbsd*)
9039 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009040 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009041 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9043 case $host_os in
9044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9045 *) need_version=no ;;
9046 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9051 case $host_os in
9052 openbsd2.[89] | openbsd2.[89].*)
9053 shlibpath_overrides_runpath=no
9054 ;;
9055 *)
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058 esac
9059 else
9060 shlibpath_overrides_runpath=yes
9061 fi
9062 ;;
9063
9064os2*)
9065 libname_spec='$name'
9066 shrext_cmds=".dll"
9067 need_lib_prefix=no
9068 library_names_spec='$libname${shared_ext} $libname.a'
9069 dynamic_linker='OS/2 ld.exe'
9070 shlibpath_var=LIBPATH
9071 ;;
9072
9073osf3* | osf4* | osf5*)
9074 version_type=osf
9075 need_lib_prefix=no
9076 need_version=no
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9082 ;;
9083
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084solaris*)
9085 version_type=linux
9086 need_lib_prefix=no
9087 need_version=no
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes
9092 hardcode_into_libs=yes
9093 # ldd complains unless libraries are executable
9094 postinstall_cmds='chmod +x $lib'
9095 ;;
9096
9097sunos4*)
9098 version_type=sunos
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9103 if test "$with_gnu_ld" = yes; then
9104 need_lib_prefix=no
9105 fi
9106 need_version=yes
9107 ;;
9108
Reid Spencera773bd52006-08-04 18:18:08 +00009109sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009110 version_type=linux
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 case $host_vendor in
9115 sni)
9116 shlibpath_overrides_runpath=no
9117 need_lib_prefix=no
9118 export_dynamic_flag_spec='${wl}-Blargedynsym'
9119 runpath_var=LD_RUN_PATH
9120 ;;
9121 siemens)
9122 need_lib_prefix=no
9123 ;;
9124 motorola)
9125 need_lib_prefix=no
9126 need_version=no
9127 shlibpath_overrides_runpath=no
9128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9129 ;;
9130 esac
9131 ;;
9132
9133sysv4*MP*)
9134 if test -d /usr/nec ;then
9135 version_type=linux
9136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9137 soname_spec='$libname${shared_ext}.$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 fi
9140 ;;
9141
Reid Spencera773bd52006-08-04 18:18:08 +00009142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9143 version_type=freebsd-elf
9144 need_lib_prefix=no
9145 need_version=no
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 hardcode_into_libs=yes
9150 if test "$with_gnu_ld" = yes; then
9151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9152 shlibpath_overrides_runpath=no
9153 else
9154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9155 shlibpath_overrides_runpath=yes
9156 case $host_os in
9157 sco3.2v5*)
9158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9159 ;;
9160 esac
9161 fi
9162 sys_lib_dlsearch_path_spec='/usr/lib'
9163 ;;
9164
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165uts4*)
9166 version_type=linux
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 ;;
9171
9172*)
9173 dynamic_linker=no
9174 ;;
9175esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009176{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9177echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009178test "$dynamic_linker" = no && can_build_shared=no
9179
Reid Spencera773bd52006-08-04 18:18:08 +00009180variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9181if test "$GCC" = yes; then
9182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9183fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184
Reid Spencera773bd52006-08-04 18:18:08 +00009185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009186{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9187echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9188if test "${libltdl_cv_shlibext+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190else
9191
9192module=yes
9193eval libltdl_cv_shlibext=$shrext_cmds
9194
9195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9197echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198if test -n "$libltdl_cv_shlibext"; then
9199
9200cat >>confdefs.h <<_ACEOF
9201#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9202_ACEOF
9203
9204fi
9205
9206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009207{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9208echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9209if test "${libltdl_cv_shlibpath_var+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211else
9212 libltdl_cv_shlibpath_var="$shlibpath_var"
9213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009214{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9215echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216if test -n "$libltdl_cv_shlibpath_var"; then
9217
9218cat >>confdefs.h <<_ACEOF
9219#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9220_ACEOF
9221
9222fi
9223
9224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009225{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9226echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9227if test "${libltdl_cv_sys_search_path+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229else
9230 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009232{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9233echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234if test -n "$libltdl_cv_sys_search_path"; then
9235 sys_search_path=
9236 for dir in $libltdl_cv_sys_search_path; do
9237 if test -z "$sys_search_path"; then
9238 sys_search_path="$dir"
9239 else
9240 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9241 fi
9242 done
9243
9244cat >>confdefs.h <<_ACEOF
9245#define LTDL_SYSSEARCHPATH "$sys_search_path"
9246_ACEOF
9247
9248fi
9249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009250{ echo "$as_me:$LINENO: checking for objdir" >&5
9251echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9252if test "${libltdl_cv_objdir+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254else
9255 libltdl_cv_objdir="$objdir"
9256 if test -n "$objdir"; then
9257 :
9258 else
9259 rm -f .libs 2>/dev/null
9260 mkdir .libs 2>/dev/null
9261 if test -d .libs; then
9262 libltdl_cv_objdir=.libs
9263 else
9264 # MS-DOS does not allow filenames that begin with a dot.
9265 libltdl_cv_objdir=_libs
9266 fi
9267 rmdir .libs 2>/dev/null
9268 fi
9269
9270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009271{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9272echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273
9274cat >>confdefs.h <<_ACEOF
9275#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9276_ACEOF
9277
9278
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279
9280
9281
9282
9283# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009284{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9285echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9286if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288else
9289
9290# These are sane defaults that work on at least a few old systems.
9291# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9292
9293# Character class describing NM global symbol codes.
9294symcode='[BCDEGRST]'
9295
9296# Regexp to match symbols that can be accessed directly from C.
9297sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9298
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299# Transform an extracted symbol line into a proper C declaration
9300lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9301
9302# Transform an extracted symbol line into symbol name and symbol address
9303lt_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'"
9304
9305# Define system-specific variables.
9306case $host_os in
9307aix*)
9308 symcode='[BCDT]'
9309 ;;
9310cygwin* | mingw* | pw32*)
9311 symcode='[ABCDGISTW]'
9312 ;;
9313hpux*) # Its linker distinguishes data from code symbols
9314 if test "$host_cpu" = ia64; then
9315 symcode='[ABCDEGRST]'
9316 fi
9317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318 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'"
9319 ;;
9320linux*)
9321 if test "$host_cpu" = ia64; then
9322 symcode='[ABCDGIRSTW]'
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324 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'"
9325 fi
9326 ;;
9327irix* | nonstopux*)
9328 symcode='[BCDEGRST]'
9329 ;;
9330osf*)
9331 symcode='[BCDEGQRST]'
9332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009333solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334 symcode='[BDRT]'
9335 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009336sco3.2v5*)
9337 symcode='[DT]'
9338 ;;
9339sysv4.2uw2*)
9340 symcode='[DT]'
9341 ;;
9342sysv5* | sco5v6* | unixware* | OpenUNIX*)
9343 symcode='[ABDT]'
9344 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009345sysv4)
9346 symcode='[DFNSTU]'
9347 ;;
9348esac
9349
9350# Handle CRLF in mingw tool chain
9351opt_cr=
9352case $build_os in
9353mingw*)
9354 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9355 ;;
9356esac
9357
9358# If we're using GNU nm, then use its standard symbol codes.
9359case `$NM -V 2>&1` in
9360*GNU* | *'with BFD'*)
9361 symcode='[ABCDGIRSTW]' ;;
9362esac
9363
9364# Try without a prefix undercore, then with it.
9365for ac_symprfx in "" "_"; do
9366
Reid Spencera773bd52006-08-04 18:18:08 +00009367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9368 symxfrm="\\1 $ac_symprfx\\2 \\2"
9369
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009371 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 +00009372
9373 # Check to see that the pipe works correctly.
9374 pipe_works=no
9375
9376 rm -f conftest*
9377 cat > conftest.$ac_ext <<EOF
9378#ifdef __cplusplus
9379extern "C" {
9380#endif
9381char nm_test_var;
9382void nm_test_func(){}
9383#ifdef __cplusplus
9384}
9385#endif
9386int main(){nm_test_var='a';nm_test_func();return(0);}
9387EOF
9388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390 (eval $ac_compile) 2>&5
9391 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394 # Now try to grab the symbols.
9395 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396 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 +00009397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9398 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401 # Try sorting and uniquifying the output.
9402 if sort "$nlist" | uniq > "$nlist"T; then
9403 mv -f "$nlist"T "$nlist"
9404 else
9405 rm -f "$nlist"T
9406 fi
9407
9408 # Make sure that we snagged all the symbols we need.
9409 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9410 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9411 cat <<EOF > conftest.$ac_ext
9412#ifdef __cplusplus
9413extern "C" {
9414#endif
9415
9416EOF
9417 # Now generate the symbol file.
9418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9419
9420 cat <<EOF >> conftest.$ac_ext
9421#if defined (__STDC__) && __STDC__
9422# define lt_ptr_t void *
9423#else
9424# define lt_ptr_t char *
9425# define const
9426#endif
9427
9428/* The mapping between symbol names and symbols. */
9429const struct {
9430 const char *name;
9431 lt_ptr_t address;
9432}
9433lt_preloaded_symbols[] =
9434{
9435EOF
9436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9437 cat <<\EOF >> conftest.$ac_ext
9438 {0, (lt_ptr_t) 0}
9439};
9440
9441#ifdef __cplusplus
9442}
9443#endif
9444EOF
9445 # Now try linking the two files.
9446 mv conftest.$ac_objext conftstm.$ac_objext
9447 lt_save_LIBS="$LIBS"
9448 lt_save_CFLAGS="$CFLAGS"
9449 LIBS="conftstm.$ac_objext"
9450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452 (eval $ac_link) 2>&5
9453 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456 pipe_works=yes
9457 fi
9458 LIBS="$lt_save_LIBS"
9459 CFLAGS="$lt_save_CFLAGS"
9460 else
9461 echo "cannot find nm_test_func in $nlist" >&5
9462 fi
9463 else
9464 echo "cannot find nm_test_var in $nlist" >&5
9465 fi
9466 else
9467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9468 fi
9469 else
9470 echo "$progname: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9472 fi
9473 rm -f conftest* conftst*
9474
9475 # Do not use the global_symbol_pipe unless it works.
9476 if test "$pipe_works" = yes; then
9477 break
9478 else
9479 lt_cv_sys_global_symbol_pipe=
9480 fi
9481done
9482
9483fi
9484
9485if test -z "$lt_cv_sys_global_symbol_pipe"; then
9486 lt_cv_sys_global_symbol_to_cdecl=
9487fi
9488if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009489 { echo "$as_me:$LINENO: result: failed" >&5
9490echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009492 { echo "$as_me:$LINENO: result: ok" >&5
9493echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494fi
9495
9496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009497{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9498echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9499if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501else
9502 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9503 libltdl_cv_preloaded_symbols=yes
9504 else
9505 libltdl_cv_preloaded_symbols=no
9506 fi
9507
9508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9510echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009513cat >>confdefs.h <<\_ACEOF
9514#define HAVE_PRELOADED_SYMBOLS 1
9515_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516
9517fi
9518
9519LIBADD_DL=
9520
9521ac_ext=c
9522ac_cpp='$CPP $CPPFLAGS'
9523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525ac_compiler_gnu=$ac_cv_c_compiler_gnu
9526
9527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009528{ echo "$as_me:$LINENO: checking for shl_load" >&5
9529echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9530if test "${ac_cv_func_shl_load+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h. */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h. */
9539/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9541#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543/* System header to define __stub macros and hopefully few prototypes,
9544 which can conflict with char shl_load (); below.
9545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9546 <limits.h> exists even on freestanding compilers. */
9547
9548#ifdef __STDC__
9549# include <limits.h>
9550#else
9551# include <assert.h>
9552#endif
9553
9554#undef shl_load
9555
9556/* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559#ifdef __cplusplus
9560extern "C"
9561#endif
9562char shl_load ();
9563/* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
9566#if defined __stub_shl_load || defined __stub___shl_load
9567choke me
9568#endif
9569
9570int
9571main ()
9572{
9573return shl_load ();
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext conftest$ac_exeext
9579if { (ac_try="$ac_link"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest$ac_exeext'
9603 { (case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_try") 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_func_shl_load=yes
9613else
9614 echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_func_shl_load=no
9618fi
9619
9620rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622fi
9623{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9624echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9625if test $ac_cv_func_shl_load = yes; then
9626
9627cat >>confdefs.h <<\_ACEOF
9628#define HAVE_SHL_LOAD 1
9629_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630
9631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009632 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9633echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9634if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636else
9637 ac_check_lib_save_LIBS=$LIBS
9638LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644/* end confdefs.h. */
9645
Reid Spencera773bd52006-08-04 18:18:08 +00009646/* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649#ifdef __cplusplus
9650extern "C"
9651#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652char shl_load ();
9653int
9654main ()
9655{
Reid Spencera773bd52006-08-04 18:18:08 +00009656return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657 ;
9658 return 0;
9659}
9660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009661rm -f conftest.$ac_objext conftest$ac_exeext
9662if { (ac_try="$ac_link"
9663case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666esac
9667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_link") 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679esac
9680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_try") 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695 ac_cv_lib_dld_shl_load=yes
9696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009702
Bill Wendlingebcceee2009-04-18 11:20:33 +00009703rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009704 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705LIBS=$ac_check_lib_save_LIBS
9706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009707{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9708echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9709if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009711cat >>confdefs.h <<\_ACEOF
9712#define HAVE_SHL_LOAD 1
9713_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009714
9715 LIBADD_DL="$LIBADD_DL -ldld"
9716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009717 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9719if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009721else
9722 ac_check_lib_save_LIBS=$LIBS
9723LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009724cat >conftest.$ac_ext <<_ACEOF
9725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009729/* end confdefs.h. */
9730
Reid Spencera773bd52006-08-04 18:18:08 +00009731/* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734#ifdef __cplusplus
9735extern "C"
9736#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009737char dlopen ();
9738int
9739main ()
9740{
Reid Spencera773bd52006-08-04 18:18:08 +00009741return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742 ;
9743 return 0;
9744}
9745_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009746rm -f conftest.$ac_objext conftest$ac_exeext
9747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (case "(($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_try") 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780 ac_cv_lib_dl_dlopen=yes
9781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009782 echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009787
Bill Wendlingebcceee2009-04-18 11:20:33 +00009788rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790LIBS=$ac_check_lib_save_LIBS
9791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009792{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009796cat >>confdefs.h <<\_ACEOF
9797#define HAVE_LIBDL 1
9798_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799
9800 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009802 cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807/* end confdefs.h. */
9808#if HAVE_DLFCN_H
9809# include <dlfcn.h>
9810#endif
9811
9812int
9813main ()
9814{
9815dlopen(0, 0);
9816 ;
9817 return 0;
9818}
9819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (ac_try="$ac_link"
9822case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009855cat >>confdefs.h <<\_ACEOF
9856#define HAVE_LIBDL 1
9857_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858 libltdl_cv_func_dlopen="yes"
9859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009860 echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9864echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9865if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867else
9868 ac_check_lib_save_LIBS=$LIBS
9869LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875/* end confdefs.h. */
9876
Reid Spencera773bd52006-08-04 18:18:08 +00009877/* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880#ifdef __cplusplus
9881extern "C"
9882#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883char dlopen ();
9884int
9885main ()
9886{
Reid Spencera773bd52006-08-04 18:18:08 +00009887return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888 ;
9889 return 0;
9890}
9891_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 ac_cv_lib_svld_dlopen=yes
9927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009933
Bill Wendlingebcceee2009-04-18 11:20:33 +00009934rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009935 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936LIBS=$ac_check_lib_save_LIBS
9937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009938{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9939echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9940if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009942cat >>confdefs.h <<\_ACEOF
9943#define HAVE_LIBDL 1
9944_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945
9946 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9949echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9950if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009952else
9953 ac_check_lib_save_LIBS=$LIBS
9954LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009955cat >conftest.$ac_ext <<_ACEOF
9956/* confdefs.h. */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960/* end confdefs.h. */
9961
Reid Spencera773bd52006-08-04 18:18:08 +00009962/* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965#ifdef __cplusplus
9966extern "C"
9967#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968char dld_link ();
9969int
9970main ()
9971{
Reid Spencera773bd52006-08-04 18:18:08 +00009972return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973 ;
9974 return 0;
9975}
9976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 ac_cv_lib_dld_dld_link=yes
10012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010013 echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010018
Bill Wendlingebcceee2009-04-18 11:20:33 +000010019rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010020 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021LIBS=$ac_check_lib_save_LIBS
10022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010023{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10024echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10025if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010027cat >>confdefs.h <<\_ACEOF
10028#define HAVE_DLD 1
10029_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030
10031 LIBADD_DL="$LIBADD_DL -ldld"
10032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010033 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10034echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10035if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037else
10038 cat >conftest.$ac_ext <<_ACEOF
10039/* confdefs.h. */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h. */
10044/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10046#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010048/* System header to define __stub macros and hopefully few prototypes,
10049 which can conflict with char _dyld_func_lookup (); below.
10050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10051 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010053#ifdef __STDC__
10054# include <limits.h>
10055#else
10056# include <assert.h>
10057#endif
10058
10059#undef _dyld_func_lookup
10060
10061/* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
10064#ifdef __cplusplus
10065extern "C"
10066#endif
10067char _dyld_func_lookup ();
10068/* The GNU C library defines this for functions which it implements
10069 to always fail with ENOSYS. Some functions are actually named
10070 something starting with __ and the normal name is an alias. */
10071#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10072choke me
10073#endif
10074
10075int
10076main ()
10077{
10078return _dyld_func_lookup ();
10079 ;
10080 return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext conftest$ac_exeext
10084if { (ac_try="$ac_link"
10085case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088esac
10089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_link") 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098 { (case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_try") 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_func__dyld_func_lookup=yes
10118else
10119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
10122 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123fi
Reid Spencera773bd52006-08-04 18:18:08 +000010124
Bill Wendlingebcceee2009-04-18 11:20:33 +000010125rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010126 conftest$ac_exeext conftest.$ac_ext
10127fi
10128{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10129echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10130if test $ac_cv_func__dyld_func_lookup = yes; then
10131
10132cat >>confdefs.h <<\_ACEOF
10133#define HAVE_DYLD 1
10134_ACEOF
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144
10145fi
10146
10147rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149
10150fi
10151
10152
10153fi
10154
10155
10156fi
10157
10158
10159if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10160then
10161 lt_save_LIBS="$LIBS"
10162 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010163
10164for ac_func in dlerror
10165do
10166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172 cat >conftest.$ac_ext <<_ACEOF
10173/* confdefs.h. */
10174_ACEOF
10175cat confdefs.h >>conftest.$ac_ext
10176cat >>conftest.$ac_ext <<_ACEOF
10177/* end confdefs.h. */
10178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10180#define $ac_func innocuous_$ac_func
10181
10182/* System header to define __stub macros and hopefully few prototypes,
10183 which can conflict with char $ac_func (); below.
10184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10185 <limits.h> exists even on freestanding compilers. */
10186
10187#ifdef __STDC__
10188# include <limits.h>
10189#else
10190# include <assert.h>
10191#endif
10192
10193#undef $ac_func
10194
10195/* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10198#ifdef __cplusplus
10199extern "C"
10200#endif
10201char $ac_func ();
10202/* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
10205#if defined __stub_$ac_func || defined __stub___$ac_func
10206choke me
10207#endif
10208
10209int
10210main ()
10211{
10212return $ac_func ();
10213 ;
10214 return 0;
10215}
10216_ACEOF
10217rm -f conftest.$ac_objext conftest$ac_exeext
10218if { (ac_try="$ac_link"
10219case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10232 { (case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_try") 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 eval "$as_ac_var=yes"
10252else
10253 echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
10255
10256 eval "$as_ac_var=no"
10257fi
10258
10259rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261fi
10262ac_res=`eval echo '${'$as_ac_var'}'`
10263 { echo "$as_me:$LINENO: result: $ac_res" >&5
10264echo "${ECHO_T}$ac_res" >&6; }
10265if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268_ACEOF
10269
10270fi
10271done
10272
10273 LIBS="$lt_save_LIBS"
10274fi
10275ac_ext=c
10276ac_cpp='$CPP $CPPFLAGS'
10277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10279ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280
10281
10282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010283{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10284echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10285if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287else
10288 ac_cv_sys_symbol_underscore=no
10289 cat > conftest.$ac_ext <<EOF
10290void nm_test_func(){}
10291int main(){nm_test_func;return 0;}
10292EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010294 (eval $ac_compile) 2>&5
10295 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298 # Now try to grab the symbols.
10299 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010300 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 +000010301 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10302 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305 # See whether the symbols have a leading underscore.
10306 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10307 ac_cv_sys_symbol_underscore=yes
10308 else
10309 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10310 :
10311 else
10312 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10313 fi
10314 fi
10315 else
10316 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10317 fi
10318 else
10319 echo "configure: failed program was:" >&5
10320 cat conftest.c >&5
10321 fi
10322 rm -rf conftest*
10323
10324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010325{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10326echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327
10328
10329if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10330 if test x"$libltdl_cv_func_dlopen" = xyes ||
10331 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010332 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10333echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10334if test "${libltdl_cv_need_uscore+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336else
10337 libltdl_cv_need_uscore=unknown
10338 save_LIBS="$LIBS"
10339 LIBS="$LIBS $LIBADD_DL"
10340 if test "$cross_compiling" = yes; then :
10341 libltdl_cv_need_uscore=cross
10342else
10343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10344 lt_status=$lt_dlunknown
10345 cat > conftest.$ac_ext <<EOF
Justin Holewinski42a0b482012-05-24 21:38:21 +000010346#line 10346 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347#include "confdefs.h"
10348
10349#if HAVE_DLFCN_H
10350#include <dlfcn.h>
10351#endif
10352
10353#include <stdio.h>
10354
10355#ifdef RTLD_GLOBAL
10356# define LT_DLGLOBAL RTLD_GLOBAL
10357#else
10358# ifdef DL_GLOBAL
10359# define LT_DLGLOBAL DL_GLOBAL
10360# else
10361# define LT_DLGLOBAL 0
10362# endif
10363#endif
10364
10365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10366 find out it does not work in some platform. */
10367#ifndef LT_DLLAZY_OR_NOW
10368# ifdef RTLD_LAZY
10369# define LT_DLLAZY_OR_NOW RTLD_LAZY
10370# else
10371# ifdef DL_LAZY
10372# define LT_DLLAZY_OR_NOW DL_LAZY
10373# else
10374# ifdef RTLD_NOW
10375# define LT_DLLAZY_OR_NOW RTLD_NOW
10376# else
10377# ifdef DL_NOW
10378# define LT_DLLAZY_OR_NOW DL_NOW
10379# else
10380# define LT_DLLAZY_OR_NOW 0
10381# endif
10382# endif
10383# endif
10384# endif
10385#endif
10386
10387#ifdef __cplusplus
10388extern "C" void exit (int);
10389#endif
10390
10391void fnord() { int i=42;}
10392int main ()
10393{
10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10395 int status = $lt_dlunknown;
10396
10397 if (self)
10398 {
10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 /* dlclose (self); */
10402 }
Reid Spencera773bd52006-08-04 18:18:08 +000010403 else
10404 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405
10406 exit (status);
10407}
10408EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410 (eval $ac_link) 2>&5
10411 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010414 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 lt_status=$?
10416 case x$lt_status in
10417 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10418 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010419 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420 esac
10421 else :
10422 # compilation failed
10423
10424 fi
10425fi
10426rm -fr conftest*
10427
10428 LIBS="$save_LIBS"
10429
10430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10432echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433 fi
10434fi
10435
10436if test x"$libltdl_cv_need_uscore" = xyes; then
10437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438cat >>confdefs.h <<\_ACEOF
10439#define NEED_USCORE 1
10440_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441
10442fi
10443
10444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10446echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10447if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449else
10450 # PORTME does your system automatically load deplibs for dlopen?
10451 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10452 # For now, we just catch OSes we know something about -- in the
10453 # future, we'll try test this programmatically.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10455 case "$host_os" in
10456 aix3*|aix4.1.*|aix4.2.*)
10457 # Unknown whether this is true for these versions of AIX, but
10458 # we want this `case' here to explicitly catch those versions.
10459 libltdl_cv_sys_dlopen_deplibs=unknown
10460 ;;
10461 aix[45]*)
10462 libltdl_cv_sys_dlopen_deplibs=yes
10463 ;;
10464 darwin*)
10465 # Assuming the user has installed a libdl from somewhere, this is true
10466 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
10469 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10470 # GNU and its variants, using gnu ld.so (Glibc)
10471 libltdl_cv_sys_dlopen_deplibs=yes
10472 ;;
10473 hpux10*|hpux11*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010476 interix*)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 irix[12345]*|irix6.[01]*)
10480 # Catch all versions of IRIX before 6.2, and indicate that we don't
10481 # know how it worked for any of those versions.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10483 ;;
10484 irix*)
10485 # The case above catches anything before 6.2, and it's known that
10486 # at 6.2 and later dlopen does load deplibs.
10487 libltdl_cv_sys_dlopen_deplibs=yes
10488 ;;
10489 netbsd*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10491 ;;
10492 openbsd*)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 osf[1234]*)
10496 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10497 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010498 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499 libltdl_cv_sys_dlopen_deplibs=no
10500 ;;
10501 osf5.0|osf5.0a|osf5.1)
10502 # dlopen *does* load deplibs and with the right loader patch applied
10503 # it even uses RPATH in a shared library to search for shared objects
10504 # that the library depends on, but there's no easy way to know if that
10505 # patch is installed. Since this is the case, all we can really
10506 # say is unknown -- it depends on the patch being installed. If
10507 # it is, this changes to `yes'. Without it, it would be `no'.
10508 libltdl_cv_sys_dlopen_deplibs=unknown
10509 ;;
10510 osf*)
10511 # the two cases above should catch all versions of osf <= 5.1. Read
10512 # the comments above for what we know about them.
10513 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10514 # is used to find them so we can finally say `yes'.
10515 libltdl_cv_sys_dlopen_deplibs=yes
10516 ;;
10517 solaris*)
10518 libltdl_cv_sys_dlopen_deplibs=yes
10519 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523 esac
10524
10525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010526{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10527echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010530cat >>confdefs.h <<\_ACEOF
10531#define LTDL_DLOPEN_DEPLIBS 1
10532_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533
10534fi
10535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010536
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010538do
10539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545fi
10546ac_res=`eval echo '${'$as_ac_Header'}'`
10547 { echo "$as_me:$LINENO: result: $ac_res" >&5
10548echo "${ECHO_T}$ac_res" >&6; }
10549else
10550 # Is the header compilable?
10551{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10553cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559$ac_includes_default
10560#include <$ac_header>
10561_ACEOF
10562rm -f conftest.$ac_objext
10563if { (ac_try="$ac_compile"
10564case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567esac
10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_compile") 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } &&
10576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580esac
10581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 ac_header_compiler=yes
10597else
10598 echo "$as_me: failed program was:" >&5
10599sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 ac_header_compiler=no
10602fi
10603
10604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606echo "${ECHO_T}$ac_header_compiler" >&6; }
10607
10608# Is the header present?
10609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h. */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h. */
10617#include <$ac_header>
10618_ACEOF
10619if { (ac_try="$ac_cpp conftest.$ac_ext"
10620case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null; then
10632 if test -s conftest.err; then
10633 ac_cpp_err=$ac_c_preproc_warn_flag
10634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10635 else
10636 ac_cpp_err=
10637 fi
10638else
10639 ac_cpp_err=yes
10640fi
10641if test -z "$ac_cpp_err"; then
10642 ac_header_preproc=yes
10643else
10644 echo "$as_me: failed program was:" >&5
10645sed 's/^/| /' conftest.$ac_ext >&5
10646
10647 ac_header_preproc=no
10648fi
10649
10650rm -f conftest.err conftest.$ac_ext
10651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10652echo "${ECHO_T}$ac_header_preproc" >&6; }
10653
10654# So? What about this header?
10655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10656 yes:no: )
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10661 ac_header_preproc=yes
10662 ;;
10663 no:yes:* )
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10676 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010677## ------------------------------------ ##
10678## Report this to http://llvm.org/bugs/ ##
10679## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680_ASBOX
10681 ) | sed "s/^/$as_me: WARNING: /" >&2
10682 ;;
10683esac
10684{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 eval "$as_ac_Header=\$ac_header_preproc"
10690fi
10691ac_res=`eval echo '${'$as_ac_Header'}'`
10692 { echo "$as_me:$LINENO: result: $ac_res" >&5
10693echo "${ECHO_T}$ac_res" >&6; }
10694
10695fi
10696if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699_ACEOF
10700
10701fi
10702
10703done
10704
10705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010706{ echo "$as_me:$LINENO: checking for error_t" >&5
10707echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10708if test "${ac_cv_type_error_t+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 cat >conftest.$ac_ext <<_ACEOF
10712/* confdefs.h. */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h. */
10717#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718# include <argz.h>
10719#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010720
10721typedef error_t ac__type_new_;
10722int
10723main ()
10724{
10725if ((ac__type_new_ *) 0)
10726 return 0;
10727if (sizeof (ac__type_new_))
10728 return 0;
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733rm -f conftest.$ac_objext
10734if { (ac_try="$ac_compile"
10735case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738esac
10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_try") 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest.$ac_objext'
10758 { (case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761esac
10762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_try") 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_type_error_t=yes
10768else
10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_cv_type_error_t=no
10773fi
10774
10775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776fi
10777{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10778echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10779if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780
10781cat >>confdefs.h <<_ACEOF
10782#define HAVE_ERROR_T 1
10783_ACEOF
10784
10785
10786else
10787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010788cat >>confdefs.h <<\_ACEOF
10789#define error_t int
10790_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791
10792fi
10793
10794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010795
10796
10797
10798
10799
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010800for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010801do
10802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
10808 cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816#define $ac_func innocuous_$ac_func
10817
10818/* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char $ac_func (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10822
10823#ifdef __STDC__
10824# include <limits.h>
10825#else
10826# include <assert.h>
10827#endif
10828
10829#undef $ac_func
10830
10831/* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834#ifdef __cplusplus
10835extern "C"
10836#endif
10837char $ac_func ();
10838/* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841#if defined __stub_$ac_func || defined __stub___$ac_func
10842choke me
10843#endif
10844
10845int
10846main ()
10847{
10848return $ac_func ();
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext conftest$ac_exeext
10854if { (ac_try="$ac_link"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_var=yes"
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 eval "$as_ac_var=no"
10893fi
10894
10895rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897fi
10898ac_res=`eval echo '${'$as_ac_var'}'`
10899 { echo "$as_me:$LINENO: result: $ac_res" >&5
10900echo "${ECHO_T}$ac_res" >&6; }
10901if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904_ACEOF
10905
10906fi
10907done
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010928
10929
10930
10931
10932
10933
10934
10935
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10937 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010938do
10939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945fi
10946ac_res=`eval echo '${'$as_ac_Header'}'`
10947 { echo "$as_me:$LINENO: result: $ac_res" >&5
10948echo "${ECHO_T}$ac_res" >&6; }
10949else
10950 # Is the header compilable?
10951{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10953cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h. */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h. */
10959$ac_includes_default
10960#include <$ac_header>
10961_ACEOF
10962rm -f conftest.$ac_objext
10963if { (ac_try="$ac_compile"
10964case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967esac
10968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980esac
10981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_try") 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_header_compiler=yes
10997else
10998 echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_header_compiler=no
11002fi
11003
11004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11006echo "${ECHO_T}$ac_header_compiler" >&6; }
11007
11008# Is the header present?
11009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11011cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h. */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h. */
11017#include <$ac_header>
11018_ACEOF
11019if { (ac_try="$ac_cpp conftest.$ac_ext"
11020case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null; then
11032 if test -s conftest.err; then
11033 ac_cpp_err=$ac_c_preproc_warn_flag
11034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11035 else
11036 ac_cpp_err=
11037 fi
11038else
11039 ac_cpp_err=yes
11040fi
11041if test -z "$ac_cpp_err"; then
11042 ac_header_preproc=yes
11043else
11044 echo "$as_me: failed program was:" >&5
11045sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 ac_header_preproc=no
11048fi
11049
11050rm -f conftest.err conftest.$ac_ext
11051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052echo "${ECHO_T}$ac_header_preproc" >&6; }
11053
11054# So? What about this header?
11055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11056 yes:no: )
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11062 ;;
11063 no:yes:* )
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11076 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011077## ------------------------------------ ##
11078## Report this to http://llvm.org/bugs/ ##
11079## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011080_ASBOX
11081 ) | sed "s/^/$as_me: WARNING: /" >&2
11082 ;;
11083esac
11084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088else
11089 eval "$as_ac_Header=\$ac_header_preproc"
11090fi
11091ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093echo "${ECHO_T}$ac_res" >&6; }
11094
11095fi
11096if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011097 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099_ACEOF
11100
11101fi
11102
11103done
11104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011105
11106
11107
11108
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011110do
11111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117fi
11118ac_res=`eval echo '${'$as_ac_Header'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120echo "${ECHO_T}$ac_res" >&6; }
11121else
11122 # Is the header compilable?
11123{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11125cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131$ac_includes_default
11132#include <$ac_header>
11133_ACEOF
11134rm -f conftest.$ac_objext
11135if { (ac_try="$ac_compile"
11136case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_compile") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152esac
11153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest.$ac_objext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_header_compiler=yes
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_header_compiler=no
11174fi
11175
11176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178echo "${ECHO_T}$ac_header_compiler" >&6; }
11179
11180# Is the header present?
11181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189#include <$ac_header>
11190_ACEOF
11191if { (ac_try="$ac_cpp conftest.$ac_ext"
11192case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } >/dev/null; then
11204 if test -s conftest.err; then
11205 ac_cpp_err=$ac_c_preproc_warn_flag
11206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11207 else
11208 ac_cpp_err=
11209 fi
11210else
11211 ac_cpp_err=yes
11212fi
11213if test -z "$ac_cpp_err"; then
11214 ac_header_preproc=yes
11215else
11216 echo "$as_me: failed program was:" >&5
11217sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_header_preproc=no
11220fi
11221
11222rm -f conftest.err conftest.$ac_ext
11223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11224echo "${ECHO_T}$ac_header_preproc" >&6; }
11225
11226# So? What about this header?
11227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11228 yes:no: )
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11233 ac_header_preproc=yes
11234 ;;
11235 no:yes:* )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11248 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011249## ------------------------------------ ##
11250## Report this to http://llvm.org/bugs/ ##
11251## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252_ASBOX
11253 ) | sed "s/^/$as_me: WARNING: /" >&2
11254 ;;
11255esac
11256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260else
11261 eval "$as_ac_Header=\$ac_header_preproc"
11262fi
11263ac_res=`eval echo '${'$as_ac_Header'}'`
11264 { echo "$as_me:$LINENO: result: $ac_res" >&5
11265echo "${ECHO_T}$ac_res" >&6; }
11266
11267fi
11268if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011271_ACEOF
11272
11273fi
11274
11275done
11276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011277
11278
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011280do
11281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287fi
11288ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290echo "${ECHO_T}$ac_res" >&6; }
11291else
11292 # Is the header compilable?
11293{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11295cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h. */
11301$ac_includes_default
11302#include <$ac_header>
11303_ACEOF
11304rm -f conftest.$ac_objext
11305if { (ac_try="$ac_compile"
11306case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_compile") 2>conftest.er1
11312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_header_compiler=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_header_compiler=no
11344fi
11345
11346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11348echo "${ECHO_T}$ac_header_compiler" >&6; }
11349
11350# Is the header present?
11351{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11353cat >conftest.$ac_ext <<_ACEOF
11354/* confdefs.h. */
11355_ACEOF
11356cat confdefs.h >>conftest.$ac_ext
11357cat >>conftest.$ac_ext <<_ACEOF
11358/* end confdefs.h. */
11359#include <$ac_header>
11360_ACEOF
11361if { (ac_try="$ac_cpp conftest.$ac_ext"
11362case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11377 else
11378 ac_cpp_err=
11379 fi
11380else
11381 ac_cpp_err=yes
11382fi
11383if test -z "$ac_cpp_err"; then
11384 ac_header_preproc=yes
11385else
11386 echo "$as_me: failed program was:" >&5
11387sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 ac_header_preproc=no
11390fi
11391
11392rm -f conftest.err conftest.$ac_ext
11393{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394echo "${ECHO_T}$ac_header_preproc" >&6; }
11395
11396# So? What about this header?
11397case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398 yes:no: )
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11404 ;;
11405 no:yes:* )
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011419## ------------------------------------ ##
11420## Report this to http://llvm.org/bugs/ ##
11421## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422_ASBOX
11423 ) | sed "s/^/$as_me: WARNING: /" >&2
11424 ;;
11425esac
11426{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 eval "$as_ac_Header=\$ac_header_preproc"
11432fi
11433ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435echo "${ECHO_T}$ac_res" >&6; }
11436
11437fi
11438if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011441_ACEOF
11442 break
11443fi
11444
11445done
11446
11447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011448
11449
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011451do
11452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11453{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11466#define $ac_func innocuous_$ac_func
11467
11468/* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11472
11473#ifdef __STDC__
11474# include <limits.h>
11475#else
11476# include <assert.h>
11477#endif
11478
11479#undef $ac_func
11480
11481/* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484#ifdef __cplusplus
11485extern "C"
11486#endif
11487char $ac_func ();
11488/* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491#if defined __stub_$ac_func || defined __stub___$ac_func
11492choke me
11493#endif
11494
11495int
11496main ()
11497{
11498return $ac_func ();
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext conftest$ac_exeext
11504if { (ac_try="$ac_link"
11505case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_link") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521esac
11522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_try") 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 eval "$as_ac_var=yes"
11538else
11539 echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
11542 eval "$as_ac_var=no"
11543fi
11544
11545rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547fi
11548ac_res=`eval echo '${'$as_ac_var'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550echo "${ECHO_T}$ac_res" >&6; }
11551if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554_ACEOF
11555 break
11556fi
11557done
11558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011559
11560
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011562do
11563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11564{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11566if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568else
11569 cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
11575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11577#define $ac_func innocuous_$ac_func
11578
11579/* System header to define __stub macros and hopefully few prototypes,
11580 which can conflict with char $ac_func (); below.
11581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582 <limits.h> exists even on freestanding compilers. */
11583
11584#ifdef __STDC__
11585# include <limits.h>
11586#else
11587# include <assert.h>
11588#endif
11589
11590#undef $ac_func
11591
11592/* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11595#ifdef __cplusplus
11596extern "C"
11597#endif
11598char $ac_func ();
11599/* The GNU C library defines this for functions which it implements
11600 to always fail with ENOSYS. Some functions are actually named
11601 something starting with __ and the normal name is an alias. */
11602#if defined __stub_$ac_func || defined __stub___$ac_func
11603choke me
11604#endif
11605
11606int
11607main ()
11608{
11609return $ac_func ();
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext conftest$ac_exeext
11615if { (ac_try="$ac_link"
11616case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632esac
11633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_try") 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 eval "$as_ac_var=yes"
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 eval "$as_ac_var=no"
11654fi
11655
11656rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658fi
11659ac_res=`eval echo '${'$as_ac_var'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661echo "${ECHO_T}$ac_res" >&6; }
11662if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665_ACEOF
11666 break
11667fi
11668done
11669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011670
11671
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011673do
11674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11675{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679else
11680 cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
11686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11688#define $ac_func innocuous_$ac_func
11689
11690/* System header to define __stub macros and hopefully few prototypes,
11691 which can conflict with char $ac_func (); below.
11692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11693 <limits.h> exists even on freestanding compilers. */
11694
11695#ifdef __STDC__
11696# include <limits.h>
11697#else
11698# include <assert.h>
11699#endif
11700
11701#undef $ac_func
11702
11703/* Override any GCC internal prototype to avoid an error.
11704 Use char because int might match the return type of a GCC
11705 builtin and then its argument prototype would still apply. */
11706#ifdef __cplusplus
11707extern "C"
11708#endif
11709char $ac_func ();
11710/* The GNU C library defines this for functions which it implements
11711 to always fail with ENOSYS. Some functions are actually named
11712 something starting with __ and the normal name is an alias. */
11713#if defined __stub_$ac_func || defined __stub___$ac_func
11714choke me
11715#endif
11716
11717int
11718main ()
11719{
11720return $ac_func ();
11721 ;
11722 return 0;
11723}
11724_ACEOF
11725rm -f conftest.$ac_objext conftest$ac_exeext
11726if { (ac_try="$ac_link"
11727case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730esac
11731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_link") 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11740 { (case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743esac
11744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_try") 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest$ac_exeext'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 eval "$as_ac_var=yes"
11760else
11761 echo "$as_me: failed program was:" >&5
11762sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 eval "$as_ac_var=no"
11765fi
11766
11767rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769fi
11770ac_res=`eval echo '${'$as_ac_var'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772echo "${ECHO_T}$ac_res" >&6; }
11773if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776_ACEOF
11777 break
11778fi
11779done
11780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011781
11782
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011784do
11785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
11797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799#define $ac_func innocuous_$ac_func
11800
11801/* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11805
11806#ifdef __STDC__
11807# include <limits.h>
11808#else
11809# include <assert.h>
11810#endif
11811
11812#undef $ac_func
11813
11814/* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11817#ifdef __cplusplus
11818extern "C"
11819#endif
11820char $ac_func ();
11821/* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824#if defined __stub_$ac_func || defined __stub___$ac_func
11825choke me
11826#endif
11827
11828int
11829main ()
11830{
11831return $ac_func ();
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext conftest$ac_exeext
11837if { (ac_try="$ac_link"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 eval "$as_ac_var=no"
11876fi
11877
11878rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880fi
11881ac_res=`eval echo '${'$as_ac_var'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883echo "${ECHO_T}$ac_res" >&6; }
11884if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011885 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887_ACEOF
11888
11889fi
11890done
11891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011892
11893
11894
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011896do
11897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 cat >conftest.$ac_ext <<_ACEOF
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911#define $ac_func innocuous_$ac_func
11912
11913/* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11917
11918#ifdef __STDC__
11919# include <limits.h>
11920#else
11921# include <assert.h>
11922#endif
11923
11924#undef $ac_func
11925
11926/* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932char $ac_func ();
11933/* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936#if defined __stub_$ac_func || defined __stub___$ac_func
11937choke me
11938#endif
11939
11940int
11941main ()
11942{
11943return $ac_func ();
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext conftest$ac_exeext
11949if { (ac_try="$ac_link"
11950case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_try") 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 eval "$as_ac_var=yes"
11983else
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 eval "$as_ac_var=no"
11988fi
11989
11990rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992fi
11993ac_res=`eval echo '${'$as_ac_var'}'`
11994 { echo "$as_me:$LINENO: result: $ac_res" >&5
11995echo "${ECHO_T}$ac_res" >&6; }
11996if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999_ACEOF
12000
12001fi
12002done
12003
12004
Douglas Gregor01746742009-05-11 18:05:52 +000012005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012006{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12007echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012008
Reid Spencer86901802004-12-08 23:07:27 +000012009ICC=no
12010IXX=no
12011case $CC in
12012 icc*|icpc*)
12013 ICC=yes
12014 IXX=yes
12015 ;;
12016 *)
12017 ;;
12018esac
12019
Duraid Madina937c60a2006-02-15 07:57:42 +000012020if test "$GCC" != "yes" && test "$ICC" != "yes"
12021then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012022 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12023echo "$as_me: error: gcc|icc required but not found" >&2;}
12024 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012025fi
12026
12027if test "$GXX" != "yes" && test "$IXX" != "yes"
12028then
Eric Christopher73e36da2010-12-08 02:02:14 +000012029 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12030echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012031 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012032fi
12033
Reid Spencer86901802004-12-08 23:07:27 +000012034if test "$GCC" = "yes"
12035then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012036 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012037#if !defined(__GNUC__) || __GNUC__ < 3
12038#error Unsupported GCC version
12039#endif
12040
12041_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012042rm -f conftest.$ac_objext
12043if { (ac_try="$ac_compile"
12044case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060esac
12061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12082echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12083 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012085
Chris Lattner399c7c72008-02-05 19:43:53 +000012086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012087fi
12088
12089if test -z "$llvm_cv_gnu_make_command"
12090then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012091 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12092echo "$as_me: error: GNU Make required but not found" >&2;}
12093 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012094fi
12095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012096{ echo "$as_me:$LINENO: result: ok" >&5
12097echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012099{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12100echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012101NO_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 +000012102
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012103NO_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 +000012104
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012105COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12106
12107{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12108echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012109
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012111
12112{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12113echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12114if test "${ac_cv_lib_m_sin+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012116else
12117 ac_check_lib_save_LIBS=$LIBS
12118LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012119cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012124/* end confdefs.h. */
12125
Reid Spencera773bd52006-08-04 18:18:08 +000012126/* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012129#ifdef __cplusplus
12130extern "C"
12131#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012132char sin ();
12133int
12134main ()
12135{
Reid Spencera773bd52006-08-04 18:18:08 +000012136return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012137 ;
12138 return 0;
12139}
12140_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012141rm -f conftest.$ac_objext conftest$ac_exeext
12142if { (ac_try="$ac_link"
12143case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146esac
12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012175 ac_cv_lib_m_sin=yes
12176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012177 echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012182
Bill Wendlingebcceee2009-04-18 11:20:33 +000012183rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012184 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012185LIBS=$ac_check_lib_save_LIBS
12186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012187{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12188echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12189if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012190 cat >>confdefs.h <<_ACEOF
12191#define HAVE_LIBM 1
12192_ACEOF
12193
12194 LIBS="-lm $LIBS"
12195
12196fi
12197
Jeff Cohen28783c32007-01-12 18:22:38 +000012198if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012199
12200{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12201echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12202if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012204else
12205 ac_check_lib_save_LIBS=$LIBS
12206LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012207cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012212/* end confdefs.h. */
12213
Reid Spencer48fdf912006-06-01 19:03:21 +000012214
Reid Spencer484fc8e2006-06-01 16:55:59 +000012215int
12216main ()
12217{
Reid Spencera773bd52006-08-04 18:18:08 +000012218return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012219 ;
12220 return 0;
12221}
12222_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012223rm -f conftest.$ac_objext conftest$ac_exeext
12224if { (ac_try="$ac_link"
12225case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238 { (case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_try") 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } &&
12247 { ac_try='test -s conftest$ac_exeext'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012257 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259 echo "$as_me: failed program was:" >&5
12260sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012264
Bill Wendlingebcceee2009-04-18 11:20:33 +000012265rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012266 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012267LIBS=$ac_check_lib_save_LIBS
12268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012269{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12270echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12271if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012272 cat >>confdefs.h <<_ACEOF
12273#define HAVE_LIBIMAGEHLP 1
12274_ACEOF
12275
12276 LIBS="-limagehlp $LIBS"
12277
12278fi
12279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012280
12281{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12282echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12283if test "${ac_cv_lib_psapi_main+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012285else
12286 ac_check_lib_save_LIBS=$LIBS
12287LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012288cat >conftest.$ac_ext <<_ACEOF
12289/* confdefs.h. */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012293/* end confdefs.h. */
12294
Reid Spencer48fdf912006-06-01 19:03:21 +000012295
Reid Spencer484fc8e2006-06-01 16:55:59 +000012296int
12297main ()
12298{
Reid Spencera773bd52006-08-04 18:18:08 +000012299return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012300 ;
12301 return 0;
12302}
12303_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012304rm -f conftest.$ac_objext conftest$ac_exeext
12305if { (ac_try="$ac_link"
12306case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_link") 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319 { (case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322esac
12323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_try") 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332esac
12333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012338 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012340 echo "$as_me: failed program was:" >&5
12341sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012345
Bill Wendlingebcceee2009-04-18 11:20:33 +000012346rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012347 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012348LIBS=$ac_check_lib_save_LIBS
12349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012350{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12351echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12352if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012353 cat >>confdefs.h <<_ACEOF
12354#define HAVE_LIBPSAPI 1
12355_ACEOF
12356
12357 LIBS="-lpsapi $LIBS"
12358
12359fi
12360
12361fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012363{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12364echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12365if test "${ac_cv_search_dlopen+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012367else
12368 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012375
Reid Spencera773bd52006-08-04 18:18:08 +000012376/* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012379#ifdef __cplusplus
12380extern "C"
12381#endif
John Criswell7a73b802003-06-30 21:59:07 +000012382char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012383int
12384main ()
12385{
Reid Spencera773bd52006-08-04 18:18:08 +000012386return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012387 ;
12388 return 0;
12389}
12390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012391for ac_lib in '' dl; do
12392 if test -z "$ac_lib"; then
12393 ac_res="none required"
12394 else
12395 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012397 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012398 rm -f conftest.$ac_objext conftest$ac_exeext
12399if { (ac_try="$ac_link"
12400case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403esac
12404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416esac
12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_try") 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012432 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437
John Criswell7a73b802003-06-30 21:59:07 +000012438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012439
Bill Wendlingebcceee2009-04-18 11:20:33 +000012440rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012441 conftest$ac_exeext
12442 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012443 break
John Criswell7a73b802003-06-30 21:59:07 +000012444fi
Reid Spencera773bd52006-08-04 18:18:08 +000012445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012446if test "${ac_cv_search_dlopen+set}" = set; then
12447 :
Reid Spencera773bd52006-08-04 18:18:08 +000012448else
12449 ac_cv_search_dlopen=no
12450fi
12451rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012452LIBS=$ac_func_search_save_LIBS
12453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012454{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12455echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012456ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012457if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460cat >>confdefs.h <<\_ACEOF
12461#define HAVE_DLOPEN 1
12462_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012463
12464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12466echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012467fi
12468
12469
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012470if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12472echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12473if test "${ac_cv_search_ffi_call+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012475else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012476 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012482/* end confdefs.h. */
12483
12484/* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487#ifdef __cplusplus
12488extern "C"
12489#endif
12490char ffi_call ();
12491int
12492main ()
12493{
12494return ffi_call ();
12495 ;
12496 return 0;
12497}
12498_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012499for ac_lib in '' ffi; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12502 else
12503 ac_res=-l$ac_lib
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12505 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012506 rm -f conftest.$ac_objext conftest$ac_exeext
12507if { (ac_try="$ac_link"
12508case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012540 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012547
Bill Wendlingebcceee2009-04-18 11:20:33 +000012548rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549 conftest$ac_exeext
12550 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012551 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012552fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012554if test "${ac_cv_search_ffi_call+set}" = set; then
12555 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012556else
12557 ac_cv_search_ffi_call=no
12558fi
12559rm conftest.$ac_ext
12560LIBS=$ac_func_search_save_LIBS
12561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12563echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012564ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568cat >>confdefs.h <<\_ACEOF
12569#define HAVE_FFI_CALL 1
12570_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012571
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012572else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012573 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12574echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12575 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012576fi
12577
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012578fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012580{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12581echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12582if test "${ac_cv_search_mallinfo+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012584else
12585 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012592
Reid Spencera773bd52006-08-04 18:18:08 +000012593/* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012596#ifdef __cplusplus
12597extern "C"
12598#endif
John Criswell7a73b802003-06-30 21:59:07 +000012599char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012600int
12601main ()
12602{
Reid Spencera773bd52006-08-04 18:18:08 +000012603return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012604 ;
12605 return 0;
12606}
12607_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012608for ac_lib in '' malloc; do
12609 if test -z "$ac_lib"; then
12610 ac_res="none required"
12611 else
12612 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012614 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012615 rm -f conftest.$ac_objext conftest$ac_exeext
12616if { (ac_try="$ac_link"
12617case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620esac
12621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_link") 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633esac
12634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012649 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012650else
12651 echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
12654
John Criswell7a73b802003-06-30 21:59:07 +000012655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656
Bill Wendlingebcceee2009-04-18 11:20:33 +000012657rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658 conftest$ac_exeext
12659 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012660 break
John Criswell7a73b802003-06-30 21:59:07 +000012661fi
Reid Spencera773bd52006-08-04 18:18:08 +000012662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012663if test "${ac_cv_search_mallinfo+set}" = set; then
12664 :
Reid Spencera773bd52006-08-04 18:18:08 +000012665else
12666 ac_cv_search_mallinfo=no
12667fi
12668rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012669LIBS=$ac_func_search_save_LIBS
12670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012671{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12672echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012673ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012674if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012677cat >>confdefs.h <<\_ACEOF
12678#define HAVE_MALLINFO 1
12679_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012680
12681fi
12682
12683
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012684if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685
12686{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12687echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12688if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012690else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012691 ac_check_lib_save_LIBS=$LIBS
12692LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012698/* end confdefs.h. */
12699
Reid Spencera773bd52006-08-04 18:18:08 +000012700/* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012703#ifdef __cplusplus
12704extern "C"
12705#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012706char pthread_mutex_init ();
12707int
12708main ()
12709{
Reid Spencera773bd52006-08-04 18:18:08 +000012710return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012711 ;
12712 return 0;
12713}
12714_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715rm -f conftest.$ac_objext conftest$ac_exeext
12716if { (ac_try="$ac_link"
12717case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720esac
12721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733esac
12734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012749 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012756
Bill Wendlingebcceee2009-04-18 11:20:33 +000012757rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012758 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012759LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012761{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12762echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12763if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012764 cat >>confdefs.h <<_ACEOF
12765#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012766_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012767
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012768 LIBS="-lpthread $LIBS"
12769
Reid Spencer22177fe2005-07-12 15:24:20 +000012770fi
12771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012772 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12773echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12774if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012776else
12777 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778cat >conftest.$ac_ext <<_ACEOF
12779/* confdefs.h. */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012783/* end confdefs.h. */
12784
Reid Spencera773bd52006-08-04 18:18:08 +000012785/* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012788#ifdef __cplusplus
12789extern "C"
12790#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012791char pthread_mutex_lock ();
12792int
12793main ()
12794{
Reid Spencera773bd52006-08-04 18:18:08 +000012795return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012796 ;
12797 return 0;
12798}
12799_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012800for ac_lib in '' pthread; do
12801 if test -z "$ac_lib"; then
12802 ac_res="none required"
12803 else
12804 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012806 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012807 rm -f conftest.$ac_objext conftest$ac_exeext
12808if { (ac_try="$ac_link"
12809case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812esac
12813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822 { (case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825esac
12826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_try") 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest$ac_exeext'
12832 { (case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_try") 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012841 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012842else
12843 echo "$as_me: failed program was:" >&5
12844sed 's/^/| /' conftest.$ac_ext >&5
12845
12846
Brian Gaeke5f268f72003-12-05 19:29:01 +000012847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848
Bill Wendlingebcceee2009-04-18 11:20:33 +000012849rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850 conftest$ac_exeext
12851 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012852 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012853fi
Reid Spencera773bd52006-08-04 18:18:08 +000012854done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012855if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12856 :
Reid Spencera773bd52006-08-04 18:18:08 +000012857else
12858 ac_cv_search_pthread_mutex_lock=no
12859fi
12860rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012861LIBS=$ac_func_search_save_LIBS
12862fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012863{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12864echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012865ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869cat >>confdefs.h <<\_ACEOF
12870#define HAVE_PTHREAD_MUTEX_LOCK 1
12871_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012872
12873fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012875 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12876echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12877if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012879else
12880 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881cat >conftest.$ac_ext <<_ACEOF
12882/* confdefs.h. */
12883_ACEOF
12884cat confdefs.h >>conftest.$ac_ext
12885cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012886/* end confdefs.h. */
12887
12888/* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12891#ifdef __cplusplus
12892extern "C"
12893#endif
12894char pthread_rwlock_init ();
12895int
12896main ()
12897{
12898return pthread_rwlock_init ();
12899 ;
12900 return 0;
12901}
12902_ACEOF
12903for ac_lib in '' pthread; do
12904 if test -z "$ac_lib"; then
12905 ac_res="none required"
12906 else
12907 ac_res=-l$ac_lib
12908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12909 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012910 rm -f conftest.$ac_objext conftest$ac_exeext
12911if { (ac_try="$ac_link"
12912case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938esac
12939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012944 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949
Owen Andersonde8aed22009-06-16 18:20:20 +000012950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012951
Owen Andersonde8aed22009-06-16 18:20:20 +000012952rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953 conftest$ac_exeext
12954 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012955 break
12956fi
12957done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12959 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012960else
12961 ac_cv_search_pthread_rwlock_init=no
12962fi
12963rm conftest.$ac_ext
12964LIBS=$ac_func_search_save_LIBS
12965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12967echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012968ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012972cat >>confdefs.h <<\_ACEOF
12973#define HAVE_PTHREAD_RWLOCK_INIT 1
12974_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012975
12976fi
12977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012978 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12979echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12980if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012982else
12983 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h. */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012989/* end confdefs.h. */
12990
12991/* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply. */
12994#ifdef __cplusplus
12995extern "C"
12996#endif
12997char pthread_getspecific ();
12998int
12999main ()
13000{
13001return pthread_getspecific ();
13002 ;
13003 return 0;
13004}
13005_ACEOF
13006for ac_lib in '' pthread; do
13007 if test -z "$ac_lib"; then
13008 ac_res="none required"
13009 else
13010 ac_res=-l$ac_lib
13011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13012 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013013 rm -f conftest.$ac_objext conftest$ac_exeext
13014if { (ac_try="$ac_link"
13015case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_link") 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028 { (case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031esac
13032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_try") 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013047 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013048else
13049 echo "$as_me: failed program was:" >&5
13050sed 's/^/| /' conftest.$ac_ext >&5
13051
13052
Owen Anderson27fcfe12009-06-25 23:10:26 +000013053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054
Owen Anderson27fcfe12009-06-25 23:10:26 +000013055rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056 conftest$ac_exeext
13057 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013058 break
13059fi
13060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13062 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013063else
13064 ac_cv_search_pthread_getspecific=no
13065fi
13066rm conftest.$ac_ext
13067LIBS=$ac_func_search_save_LIBS
13068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13070echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013071ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075cat >>confdefs.h <<\_ACEOF
13076#define HAVE_PTHREAD_GETSPECIFIC 1
13077_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013078
13079fi
13080
Reid Spencer0a262ba2005-08-24 10:07:20 +000013081fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013082
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013083
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013084# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013086 withval=$with_udis86;
13087 USE_UDIS86=1
13088
13089 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013090 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013091 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13092 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093
13094{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13095echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13096if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013098else
13099 ac_check_lib_save_LIBS=$LIBS
13100LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101cat >conftest.$ac_ext <<_ACEOF
13102/* confdefs.h. */
13103_ACEOF
13104cat confdefs.h >>conftest.$ac_ext
13105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013106/* end confdefs.h. */
13107
13108/* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13111#ifdef __cplusplus
13112extern "C"
13113#endif
13114char ud_init ();
13115int
13116main ()
13117{
13118return ud_init ();
13119 ;
13120 return 0;
13121}
13122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123rm -f conftest.$ac_objext conftest$ac_exeext
13124if { (ac_try="$ac_link"
13125case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128esac
13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013157 ac_cv_lib_udis86_ud_init=yes
13158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164
Bill Wendlingebcceee2009-04-18 11:20:33 +000013165rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013166 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013167LIBS=$ac_check_lib_save_LIBS
13168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13170echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13171if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013172 cat >>confdefs.h <<_ACEOF
13173#define HAVE_LIBUDIS86 1
13174_ACEOF
13175
13176 LIBS="-ludis86 $LIBS"
13177
13178else
13179
13180 echo "Error! You need to have libudis86 around."
13181 exit -1
13182
13183fi
13184
13185
13186else
13187 USE_UDIS86=0
13188
13189fi
13190
13191
13192cat >>confdefs.h <<_ACEOF
13193#define USE_UDIS86 $USE_UDIS86
13194_ACEOF
13195
13196
13197
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013198# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013199if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013200 withval=$with_oprofile;
13201 USE_OPROFILE=1
13202
13203 case "$withval" in
13204 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013205 no) llvm_cv_oppath=
13206 USE_OPROFILE=0
13207 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013208 *) llvm_cv_oppath="${withval}/lib/oprofile"
13209 CPPFLAGS="-I${withval}/include";;
13210 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013211 case $llvm_cv_os_type in
13212 Linux)
13213 if test -n "$llvm_cv_oppath" ; then
13214 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13215 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13217if test "${ac_cv_search_bfd_init+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013219else
13220 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013221cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013226/* end confdefs.h. */
13227
13228/* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13231#ifdef __cplusplus
13232extern "C"
13233#endif
13234char bfd_init ();
13235int
13236main ()
13237{
13238return bfd_init ();
13239 ;
13240 return 0;
13241}
13242_ACEOF
13243for ac_lib in '' bfd; do
13244 if test -z "$ac_lib"; then
13245 ac_res="none required"
13246 else
13247 ac_res=-l$ac_lib
13248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13249 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250 rm -f conftest.$ac_objext conftest$ac_exeext
13251if { (ac_try="$ac_link"
13252case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_link") 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013284 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285else
13286 echo "$as_me: failed program was:" >&5
13287sed 's/^/| /' conftest.$ac_ext >&5
13288
13289
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013292rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 conftest$ac_exeext
13294 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013295 break
13296fi
13297done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013298if test "${ac_cv_search_bfd_init+set}" = set; then
13299 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013300else
13301 ac_cv_search_bfd_init=no
13302fi
13303rm conftest.$ac_ext
13304LIBS=$ac_func_search_save_LIBS
13305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013306{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13307echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013308ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13311
13312fi
13313
Eli Bendersky61b18512012-03-13 08:33:15 +000013314 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013315echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13316if test "${ac_cv_search_op_open_agent+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013318else
13319 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013325/* end confdefs.h. */
13326
13327/* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13330#ifdef __cplusplus
13331extern "C"
13332#endif
13333char op_open_agent ();
13334int
13335main ()
13336{
13337return op_open_agent ();
13338 ;
13339 return 0;
13340}
13341_ACEOF
13342for ac_lib in '' opagent; do
13343 if test -z "$ac_lib"; then
13344 ac_res="none required"
13345 else
13346 ac_res=-l$ac_lib
13347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13348 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349 rm -f conftest.$ac_objext conftest$ac_exeext
13350if { (ac_try="$ac_link"
13351case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013383 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013384else
13385 echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013391rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 conftest$ac_exeext
13393 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013394 break
13395fi
13396done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397if test "${ac_cv_search_op_open_agent+set}" = set; then
13398 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013399else
13400 ac_cv_search_op_open_agent=no
13401fi
13402rm conftest.$ac_ext
13403LIBS=$ac_func_search_save_LIBS
13404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13406echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013407ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13410
13411else
13412
Eli Bendersky61b18512012-03-13 08:33:15 +000013413 echo "Error! You need to have libopagent around."
13414 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013415
13416fi
13417
Eli Bendersky61b18512012-03-13 08:33:15 +000013418 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013419 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13420echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13421if test "${ac_cv_header_opagent_h+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423fi
13424{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13425echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13426else
13427 # Is the header compilable?
13428{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13429echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13430cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436$ac_includes_default
13437#include <opagent.h>
13438_ACEOF
13439rm -f conftest.$ac_objext
13440if { (ac_try="$ac_compile"
13441case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444esac
13445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_compile") 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest.$ac_objext'
13464 { (case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467esac
13468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_try") 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_header_compiler=yes
13474else
13475 echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478 ac_header_compiler=no
13479fi
13480
13481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483echo "${ECHO_T}$ac_header_compiler" >&6; }
13484
13485# Is the header present?
13486{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13487echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13488cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494#include <opagent.h>
13495_ACEOF
13496if { (ac_try="$ac_cpp conftest.$ac_ext"
13497case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_c_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13512 else
13513 ac_cpp_err=
13514 fi
13515else
13516 ac_cpp_err=yes
13517fi
13518if test -z "$ac_cpp_err"; then
13519 ac_header_preproc=yes
13520else
13521 echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 ac_header_preproc=no
13525fi
13526
13527rm -f conftest.err conftest.$ac_ext
13528{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13529echo "${ECHO_T}$ac_header_preproc" >&6; }
13530
13531# So? What about this header?
13532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13533 yes:no: )
13534 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13535echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13536 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13537echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13538 ac_header_preproc=yes
13539 ;;
13540 no:yes:* )
13541 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13542echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13544echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13546echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13548echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13550echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13552echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13553 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013554## ------------------------------------ ##
13555## Report this to http://llvm.org/bugs/ ##
13556## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557_ASBOX
13558 ) | sed "s/^/$as_me: WARNING: /" >&2
13559 ;;
13560esac
13561{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13562echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563if test "${ac_cv_header_opagent_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 ac_cv_header_opagent_h=$ac_header_preproc
13567fi
13568{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13569echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13570
13571fi
13572if test $ac_cv_header_opagent_h = yes; then
13573 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013574else
13575
Eli Bendersky61b18512012-03-13 08:33:15 +000013576 echo "Error! You need to have opagent.h around."
13577 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013578
13579fi
13580
13581
Eli Bendersky61b18512012-03-13 08:33:15 +000013582 fi ;;
13583 *)
13584 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13585echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13586 { (exit 1); exit 1; }; } ;;
13587 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013588
13589else
13590
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013591 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013592
13593
13594fi
13595
13596
13597cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013598#define LLVM_USE_OPROFILE $USE_OPROFILE
13599_ACEOF
13600
13601
13602
13603# Check whether --with-intel-jitevents was given.
13604if test "${with_intel_jitevents+set}" = set; then
13605 withval=$with_intel_jitevents;
13606 case $llvm_cv_os_type in
13607 Linux|Win32|Cygwin|MingW) ;;
13608 *)
13609 { { echo "$as_me:$LINENO: error:
13610 Intel JIT API support is available on Linux and Windows only.\"" >&5
13611echo "$as_me: error:
13612 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13613 { (exit 1); exit 1; }; } ;;
13614 esac
13615
13616 USE_INTEL_JITEVENTS=1
13617
13618 case "$llvm_cv_target_arch" in
13619 x86) llvm_intel_jitevents_archdir="lib32";;
13620 x86_64) llvm_intel_jitevents_archdir="lib64";;
13621 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13622 exit -1;;
13623 esac
13624 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13625 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13626 case "$withval" in
13627 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13628 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13629 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013630 esac
13631
13632
13633
13634
13635 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13636 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13637
13638 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13639echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13640if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
13643 ac_func_search_save_LIBS=$LIBS
13644cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
13649/* end confdefs.h. */
13650
13651/* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654#ifdef __cplusplus
13655extern "C"
13656#endif
13657char iJIT_IsProfilingActive ();
13658int
13659main ()
13660{
13661return iJIT_IsProfilingActive ();
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666for ac_lib in '' jitprofiling; do
13667 if test -z "$ac_lib"; then
13668 ac_res="none required"
13669 else
13670 ac_res=-l$ac_lib
13671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13672 fi
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674if { (ac_try="$ac_link"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691esac
13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13708else
13709 echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5
13711
13712
13713fi
13714
13715rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext
13717 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13718 break
13719fi
13720done
13721if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13722 :
13723else
13724 ac_cv_search_iJIT_IsProfilingActive=no
13725fi
13726rm conftest.$ac_ext
13727LIBS=$ac_func_search_save_LIBS
13728fi
13729{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13730echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13731ac_res=$ac_cv_search_iJIT_IsProfilingActive
13732if test "$ac_res" != no; then
13733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13734
13735else
13736
13737 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13738 exit -1
13739
13740fi
13741
13742 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13743 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13744echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13745if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747fi
13748{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13749echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13750else
13751 # Is the header compilable?
13752{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13753echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13754cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760$ac_includes_default
13761#include <jitprofiling.h>
13762_ACEOF
13763rm -f conftest.$ac_objext
13764if { (ac_try="$ac_compile"
13765case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768esac
13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_compile") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
13777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791esac
13792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_try") 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_header_compiler=yes
13798else
13799 echo "$as_me: failed program was:" >&5
13800sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 ac_header_compiler=no
13803fi
13804
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13807echo "${ECHO_T}$ac_header_compiler" >&6; }
13808
13809# Is the header present?
13810{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13811echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13812cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h. */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
13817/* end confdefs.h. */
13818#include <jitprofiling.h>
13819_ACEOF
13820if { (ac_try="$ac_cpp conftest.$ac_ext"
13821case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } >/dev/null; then
13833 if test -s conftest.err; then
13834 ac_cpp_err=$ac_c_preproc_warn_flag
13835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13836 else
13837 ac_cpp_err=
13838 fi
13839else
13840 ac_cpp_err=yes
13841fi
13842if test -z "$ac_cpp_err"; then
13843 ac_header_preproc=yes
13844else
13845 echo "$as_me: failed program was:" >&5
13846sed 's/^/| /' conftest.$ac_ext >&5
13847
13848 ac_header_preproc=no
13849fi
13850
13851rm -f conftest.err conftest.$ac_ext
13852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13853echo "${ECHO_T}$ac_header_preproc" >&6; }
13854
13855# So? What about this header?
13856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13857 yes:no: )
13858 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13859echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13861echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13862 ac_header_preproc=yes
13863 ;;
13864 no:yes:* )
13865 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13866echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13868echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13870echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13872echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13874echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13876echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13877 ( cat <<\_ASBOX
13878## ------------------------------------ ##
13879## Report this to http://llvm.org/bugs/ ##
13880## ------------------------------------ ##
13881_ASBOX
13882 ) | sed "s/^/$as_me: WARNING: /" >&2
13883 ;;
13884esac
13885{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13886echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13887if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 ac_cv_header_jitprofiling_h=$ac_header_preproc
13891fi
13892{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13893echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13894
13895fi
13896if test $ac_cv_header_jitprofiling_h = yes; then
13897 :
13898else
13899
13900 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13901 exit -1
13902
13903fi
13904
13905
13906
13907
13908else
13909
13910 USE_INTEL_JITEVENTS=0
13911
13912
13913fi
13914
13915
13916cat >>confdefs.h <<_ACEOF
13917#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013918_ACEOF
13919
13920
13921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013922
13923
13924
13925
13926
Reid Spencer59473af2004-12-25 07:31:29 +000013927ac_header_dirent=no
13928for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13930{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13931echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935 cat >conftest.$ac_ext <<_ACEOF
13936/* confdefs.h. */
13937_ACEOF
13938cat confdefs.h >>conftest.$ac_ext
13939cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013940/* end confdefs.h. */
13941#include <sys/types.h>
13942#include <$ac_hdr>
13943
13944int
13945main ()
13946{
13947if ((DIR *) 0)
13948return 0;
13949 ;
13950 return 0;
13951}
13952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953rm -f conftest.$ac_objext
13954if { (ac_try="$ac_compile"
13955case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958esac
13959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_compile") 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13968 { (case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971esac
13972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_try") 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981esac
13982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_try") 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013987 eval "$as_ac_Header=yes"
13988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989 echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994
Reid Spencera773bd52006-08-04 18:18:08 +000013995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997ac_res=`eval echo '${'$as_ac_Header'}'`
13998 { echo "$as_me:$LINENO: result: $ac_res" >&5
13999echo "${ECHO_T}$ac_res" >&6; }
14000if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014001 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014003_ACEOF
14004
14005ac_header_dirent=$ac_hdr; break
14006fi
14007
14008done
14009# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14010if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014011 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14012echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14013if test "${ac_cv_search_opendir+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014015else
14016 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017cat >conftest.$ac_ext <<_ACEOF
14018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014022/* end confdefs.h. */
14023
Reid Spencera773bd52006-08-04 18:18:08 +000014024/* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014027#ifdef __cplusplus
14028extern "C"
14029#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014030char opendir ();
14031int
14032main ()
14033{
Reid Spencera773bd52006-08-04 18:18:08 +000014034return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014035 ;
14036 return 0;
14037}
14038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014039for ac_lib in '' dir; do
14040 if test -z "$ac_lib"; then
14041 ac_res="none required"
14042 else
14043 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014045 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014046 rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (ac_try="$ac_link"
14048case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
14052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_link") 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061 { (case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064esac
14065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_try") 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest$ac_exeext'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014080 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081else
14082 echo "$as_me: failed program was:" >&5
14083sed 's/^/| /' conftest.$ac_ext >&5
14084
14085
Reid Spencer59473af2004-12-25 07:31:29 +000014086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014087
Bill Wendlingebcceee2009-04-18 11:20:33 +000014088rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014089 conftest$ac_exeext
14090 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014091 break
Reid Spencer59473af2004-12-25 07:31:29 +000014092fi
Reid Spencera773bd52006-08-04 18:18:08 +000014093done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094if test "${ac_cv_search_opendir+set}" = set; then
14095 :
Reid Spencera773bd52006-08-04 18:18:08 +000014096else
14097 ac_cv_search_opendir=no
14098fi
14099rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014100LIBS=$ac_func_search_save_LIBS
14101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014102{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14103echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014104ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014107
14108fi
14109
14110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14112echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14113if test "${ac_cv_search_opendir+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014115else
14116 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117cat >conftest.$ac_ext <<_ACEOF
14118/* confdefs.h. */
14119_ACEOF
14120cat confdefs.h >>conftest.$ac_ext
14121cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014122/* end confdefs.h. */
14123
Reid Spencera773bd52006-08-04 18:18:08 +000014124/* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014127#ifdef __cplusplus
14128extern "C"
14129#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014130char opendir ();
14131int
14132main ()
14133{
Reid Spencera773bd52006-08-04 18:18:08 +000014134return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014135 ;
14136 return 0;
14137}
14138_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014139for ac_lib in '' x; do
14140 if test -z "$ac_lib"; then
14141 ac_res="none required"
14142 else
14143 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014145 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146 rm -f conftest.$ac_objext conftest$ac_exeext
14147if { (ac_try="$ac_link"
14148case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151esac
14152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_link") 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
14165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014180 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185
Reid Spencer59473af2004-12-25 07:31:29 +000014186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187
Bill Wendlingebcceee2009-04-18 11:20:33 +000014188rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189 conftest$ac_exeext
14190 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014191 break
Reid Spencer59473af2004-12-25 07:31:29 +000014192fi
Reid Spencera773bd52006-08-04 18:18:08 +000014193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194if test "${ac_cv_search_opendir+set}" = set; then
14195 :
Reid Spencera773bd52006-08-04 18:18:08 +000014196else
14197 ac_cv_search_opendir=no
14198fi
14199rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014200LIBS=$ac_func_search_save_LIBS
14201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014202{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14203echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014204ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014205if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014207
14208fi
14209
14210fi
14211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14213echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14214if test "${ac_cv_header_mmap_anon+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014216else
14217 ac_ext=c
14218ac_cpp='$CPP $CPPFLAGS'
14219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14221ac_compiler_gnu=$ac_cv_c_compiler_gnu
14222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223 cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014228/* end confdefs.h. */
14229#include <sys/mman.h>
14230#include <unistd.h>
14231#include <fcntl.h>
14232int
14233main ()
14234{
14235mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14236 ;
14237 return 0;
14238}
14239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240rm -f conftest.$ac_objext
14241if { (ac_try="$ac_compile"
14242case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245esac
14246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_compile") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14255 { (case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258esac
14259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_try") 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest.$ac_objext'
14265 { (case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268esac
14269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_try") 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014274 ac_cv_header_mmap_anon=yes
14275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276 echo "$as_me: failed program was:" >&5
14277sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014281
Reid Spencera773bd52006-08-04 18:18:08 +000014282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014283 ac_ext=c
14284ac_cpp='$CPP $CPPFLAGS'
14285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14287ac_compiler_gnu=$ac_cv_c_compiler_gnu
14288
14289
14290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014291{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14292echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014293if test "$ac_cv_header_mmap_anon" = yes; then
14294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295cat >>confdefs.h <<\_ACEOF
14296#define HAVE_MMAP_ANONYMOUS 1
14297_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014298
14299fi
14300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14302echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14303if test "${ac_cv_header_stat_broken+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014306 cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014311/* end confdefs.h. */
14312#include <sys/types.h>
14313#include <sys/stat.h>
14314
Reid Spencera773bd52006-08-04 18:18:08 +000014315#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316# if S_ISBLK (S_IFDIR)
14317You lose.
14318# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014319#endif
14320
Reid Spencera773bd52006-08-04 18:18:08 +000014321#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322# if S_ISBLK (S_IFCHR)
14323You lose.
14324# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014325#endif
14326
Reid Spencera773bd52006-08-04 18:18:08 +000014327#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328# if S_ISLNK (S_IFREG)
14329You lose.
14330# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014331#endif
14332
Reid Spencera773bd52006-08-04 18:18:08 +000014333#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334# if S_ISSOCK (S_IFREG)
14335You lose.
14336# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014337#endif
14338
14339_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014342 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014343else
14344 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346rm -f conftest*
14347
Reid Spencer59473af2004-12-25 07:31:29 +000014348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14350echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014351if test $ac_cv_header_stat_broken = yes; then
14352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353cat >>confdefs.h <<\_ACEOF
14354#define STAT_MACROS_BROKEN 1
14355_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014356
14357fi
14358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14360echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14361if test "${ac_cv_header_sys_wait_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364 cat >conftest.$ac_ext <<_ACEOF
14365/* confdefs.h. */
14366_ACEOF
14367cat confdefs.h >>conftest.$ac_ext
14368cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014370#include <sys/types.h>
14371#include <sys/wait.h>
14372#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014373# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014374#endif
14375#ifndef WIFEXITED
14376# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14377#endif
14378
John Criswell7a73b802003-06-30 21:59:07 +000014379int
14380main ()
14381{
14382 int s;
14383 wait (&s);
14384 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14385 ;
14386 return 0;
14387}
14388_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389rm -f conftest.$ac_objext
14390if { (ac_try="$ac_compile"
14391case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_compile") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest.$ac_objext'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417esac
14418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014423 ac_cv_header_sys_wait_h=yes
14424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014430
Reid Spencera773bd52006-08-04 18:18:08 +000014431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014433{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14434echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014435if test $ac_cv_header_sys_wait_h = yes; then
14436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437cat >>confdefs.h <<\_ACEOF
14438#define HAVE_SYS_WAIT_H 1
14439_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014440
14441fi
14442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14444echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14445if test "${ac_cv_header_time+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014448 cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014453/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014454#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014455#include <sys/time.h>
14456#include <time.h>
14457
14458int
14459main ()
14460{
14461if ((struct tm *) 0)
14462return 0;
14463 ;
14464 return 0;
14465}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014467rm -f conftest.$ac_objext
14468if { (ac_try="$ac_compile"
14469case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472esac
14473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_compile") 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014501 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508
Reid Spencera773bd52006-08-04 18:18:08 +000014509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014511{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14512echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014513if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515cat >>confdefs.h <<\_ACEOF
14516#define TIME_WITH_SYS_TIME 1
14517_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014518
14519fi
14520
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522
14523
14524
14525
14526
14527
Reid Spencer59473af2004-12-25 07:31:29 +000014528for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014529do
14530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536fi
14537ac_res=`eval echo '${'$as_ac_Header'}'`
14538 { echo "$as_me:$LINENO: result: $ac_res" >&5
14539echo "${ECHO_T}$ac_res" >&6; }
14540else
14541 # Is the header compilable?
14542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550$ac_includes_default
14551#include <$ac_header>
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (ac_try="$ac_compile"
14555case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558esac
14559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571esac
14572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_header_compiler=yes
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ac_header_compiler=no
14593fi
14594
14595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597echo "${ECHO_T}$ac_header_compiler" >&6; }
14598
14599# Is the header present?
14600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h. */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
14607/* end confdefs.h. */
14608#include <$ac_header>
14609_ACEOF
14610if { (ac_try="$ac_cpp conftest.$ac_ext"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } >/dev/null; then
14623 if test -s conftest.err; then
14624 ac_cpp_err=$ac_c_preproc_warn_flag
14625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14626 else
14627 ac_cpp_err=
14628 fi
14629else
14630 ac_cpp_err=yes
14631fi
14632if test -z "$ac_cpp_err"; then
14633 ac_header_preproc=yes
14634else
14635 echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_header_preproc=no
14639fi
14640
14641rm -f conftest.err conftest.$ac_ext
14642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643echo "${ECHO_T}$ac_header_preproc" >&6; }
14644
14645# So? What about this header?
14646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14647 yes:no: )
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652 ac_header_preproc=yes
14653 ;;
14654 no:yes:* )
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14667 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014668## ------------------------------------ ##
14669## Report this to http://llvm.org/bugs/ ##
14670## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014671_ASBOX
14672 ) | sed "s/^/$as_me: WARNING: /" >&2
14673 ;;
14674esac
14675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679else
14680 eval "$as_ac_Header=\$ac_header_preproc"
14681fi
14682ac_res=`eval echo '${'$as_ac_Header'}'`
14683 { echo "$as_me:$LINENO: result: $ac_res" >&5
14684echo "${ECHO_T}$ac_res" >&6; }
14685
14686fi
14687if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014688 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014690_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014691
14692fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014693
Reid Spencer59473af2004-12-25 07:31:29 +000014694done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696
14697
14698
14699
14700
14701
Douglas Gregor071d73d2009-05-18 17:21:34 +000014702for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703do
14704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710fi
14711ac_res=`eval echo '${'$as_ac_Header'}'`
14712 { echo "$as_me:$LINENO: result: $ac_res" >&5
14713echo "${ECHO_T}$ac_res" >&6; }
14714else
14715 # Is the header compilable?
14716{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14718cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
14723/* end confdefs.h. */
14724$ac_includes_default
14725#include <$ac_header>
14726_ACEOF
14727rm -f conftest.$ac_objext
14728if { (ac_try="$ac_compile"
14729case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732esac
14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_compile") 2>conftest.er1
14735 ac_status=$?
14736 grep -v '^ *+' conftest.er1 >conftest.err
14737 rm -f conftest.er1
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14742 { (case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14745esac
14746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_try") 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755esac
14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14762else
14763 echo "$as_me: failed program was:" >&5
14764sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 ac_header_compiler=no
14767fi
14768
14769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771echo "${ECHO_T}$ac_header_compiler" >&6; }
14772
14773# Is the header present?
14774{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14776cat >conftest.$ac_ext <<_ACEOF
14777/* confdefs.h. */
14778_ACEOF
14779cat confdefs.h >>conftest.$ac_ext
14780cat >>conftest.$ac_ext <<_ACEOF
14781/* end confdefs.h. */
14782#include <$ac_header>
14783_ACEOF
14784if { (ac_try="$ac_cpp conftest.$ac_ext"
14785case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } >/dev/null; then
14797 if test -s conftest.err; then
14798 ac_cpp_err=$ac_c_preproc_warn_flag
14799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14800 else
14801 ac_cpp_err=
14802 fi
14803else
14804 ac_cpp_err=yes
14805fi
14806if test -z "$ac_cpp_err"; then
14807 ac_header_preproc=yes
14808else
14809 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_header_preproc=no
14813fi
14814
14815rm -f conftest.err conftest.$ac_ext
14816{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817echo "${ECHO_T}$ac_header_preproc" >&6; }
14818
14819# So? What about this header?
14820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821 yes:no: )
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14827 ;;
14828 no:yes:* )
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14841 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014842## ------------------------------------ ##
14843## Report this to http://llvm.org/bugs/ ##
14844## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014845_ASBOX
14846 ) | sed "s/^/$as_me: WARNING: /" >&2
14847 ;;
14848esac
14849{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853else
14854 eval "$as_ac_Header=\$ac_header_preproc"
14855fi
14856ac_res=`eval echo '${'$as_ac_Header'}'`
14857 { echo "$as_me:$LINENO: result: $ac_res" >&5
14858echo "${ECHO_T}$ac_res" >&6; }
14859
14860fi
14861if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014862 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014864_ACEOF
14865
14866fi
14867
14868done
14869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014870
14871
Douglas Gregor071d73d2009-05-18 17:21:34 +000014872for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014873do
14874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880fi
14881ac_res=`eval echo '${'$as_ac_Header'}'`
14882 { echo "$as_me:$LINENO: result: $ac_res" >&5
14883echo "${ECHO_T}$ac_res" >&6; }
14884else
14885 # Is the header compilable?
14886{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14888cat >conftest.$ac_ext <<_ACEOF
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
14894$ac_includes_default
14895#include <$ac_header>
14896_ACEOF
14897rm -f conftest.$ac_objext
14898if { (ac_try="$ac_compile"
14899case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902esac
14903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915esac
14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_try") 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925esac
14926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_header_compiler=yes
14932else
14933 echo "$as_me: failed program was:" >&5
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 ac_header_compiler=no
14937fi
14938
14939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941echo "${ECHO_T}$ac_header_compiler" >&6; }
14942
14943# Is the header present?
14944{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14946cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952#include <$ac_header>
14953_ACEOF
14954if { (ac_try="$ac_cpp conftest.$ac_ext"
14955case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null; then
14967 if test -s conftest.err; then
14968 ac_cpp_err=$ac_c_preproc_warn_flag
14969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14970 else
14971 ac_cpp_err=
14972 fi
14973else
14974 ac_cpp_err=yes
14975fi
14976if test -z "$ac_cpp_err"; then
14977 ac_header_preproc=yes
14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_header_preproc=no
14983fi
14984
14985rm -f conftest.err conftest.$ac_ext
14986{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987echo "${ECHO_T}$ac_header_preproc" >&6; }
14988
14989# So? What about this header?
14990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 yes:no: )
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14997 ;;
14998 no:yes:* )
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015012## ------------------------------------ ##
15013## Report this to http://llvm.org/bugs/ ##
15014## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015015_ASBOX
15016 ) | sed "s/^/$as_me: WARNING: /" >&2
15017 ;;
15018esac
15019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023else
15024 eval "$as_ac_Header=\$ac_header_preproc"
15025fi
15026ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028echo "${ECHO_T}$ac_res" >&6; }
15029
15030fi
15031if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015034_ACEOF
15035
15036fi
15037
15038done
Reid Spencer59473af2004-12-25 07:31:29 +000015039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015040
15041
15042
15043
Daniel Dunbar3e462932011-02-03 02:40:02 +000015044
15045for 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 +000015046do
15047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053fi
15054ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056echo "${ECHO_T}$ac_res" >&6; }
15057else
15058 # Is the header compilable?
15059{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15061cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
15066/* end confdefs.h. */
15067$ac_includes_default
15068#include <$ac_header>
15069_ACEOF
15070rm -f conftest.$ac_objext
15071if { (ac_try="$ac_compile"
15072case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075esac
15076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088esac
15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_header_compiler=yes
15105else
15106 echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
15109 ac_header_compiler=no
15110fi
15111
15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114echo "${ECHO_T}$ac_header_compiler" >&6; }
15115
15116# Is the header present?
15117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15119cat >conftest.$ac_ext <<_ACEOF
15120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
15125#include <$ac_header>
15126_ACEOF
15127if { (ac_try="$ac_cpp conftest.$ac_ext"
15128case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } >/dev/null; then
15140 if test -s conftest.err; then
15141 ac_cpp_err=$ac_c_preproc_warn_flag
15142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15143 else
15144 ac_cpp_err=
15145 fi
15146else
15147 ac_cpp_err=yes
15148fi
15149if test -z "$ac_cpp_err"; then
15150 ac_header_preproc=yes
15151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 ac_header_preproc=no
15156fi
15157
15158rm -f conftest.err conftest.$ac_ext
15159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15160echo "${ECHO_T}$ac_header_preproc" >&6; }
15161
15162# So? What about this header?
15163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15164 yes:no: )
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15169 ac_header_preproc=yes
15170 ;;
15171 no:yes:* )
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15184 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015185## ------------------------------------ ##
15186## Report this to http://llvm.org/bugs/ ##
15187## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015188_ASBOX
15189 ) | sed "s/^/$as_me: WARNING: /" >&2
15190 ;;
15191esac
15192{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196else
15197 eval "$as_ac_Header=\$ac_header_preproc"
15198fi
15199ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201echo "${ECHO_T}$ac_res" >&6; }
15202
15203fi
15204if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015205 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015207_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015208
15209fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015210
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015211done
15212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015213
15214
15215
15216
Douglas Gregor01746742009-05-11 18:05:52 +000015217for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015218do
15219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225fi
15226ac_res=`eval echo '${'$as_ac_Header'}'`
15227 { echo "$as_me:$LINENO: result: $ac_res" >&5
15228echo "${ECHO_T}$ac_res" >&6; }
15229else
15230 # Is the header compilable?
15231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239$ac_includes_default
15240#include <$ac_header>
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (ac_try="$ac_compile"
15244case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_compile") 2>conftest.er1
15250 ac_status=$?
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260esac
15261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest.$ac_objext'
15267 { (case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15270esac
15271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_try") 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_header_compiler=yes
15277else
15278 echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281 ac_header_compiler=no
15282fi
15283
15284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286echo "${ECHO_T}$ac_header_compiler" >&6; }
15287
15288# Is the header present?
15289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297#include <$ac_header>
15298_ACEOF
15299if { (ac_try="$ac_cpp conftest.$ac_ext"
15300case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306 ac_status=$?
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null; then
15312 if test -s conftest.err; then
15313 ac_cpp_err=$ac_c_preproc_warn_flag
15314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315 else
15316 ac_cpp_err=
15317 fi
15318else
15319 ac_cpp_err=yes
15320fi
15321if test -z "$ac_cpp_err"; then
15322 ac_header_preproc=yes
15323else
15324 echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_header_preproc=no
15328fi
15329
15330rm -f conftest.err conftest.$ac_ext
15331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332echo "${ECHO_T}$ac_header_preproc" >&6; }
15333
15334# So? What about this header?
15335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336 yes:no: )
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341 ac_header_preproc=yes
15342 ;;
15343 no:yes:* )
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015357## ------------------------------------ ##
15358## Report this to http://llvm.org/bugs/ ##
15359## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360_ASBOX
15361 ) | sed "s/^/$as_me: WARNING: /" >&2
15362 ;;
15363esac
15364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 eval "$as_ac_Header=\$ac_header_preproc"
15370fi
15371ac_res=`eval echo '${'$as_ac_Header'}'`
15372 { echo "$as_me:$LINENO: result: $ac_res" >&5
15373echo "${ECHO_T}$ac_res" >&6; }
15374
15375fi
15376if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015377 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015379_ACEOF
15380
15381fi
15382
15383done
15384
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015385
15386for ac_header in valgrind/valgrind.h
15387do
15388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394fi
15395ac_res=`eval echo '${'$as_ac_Header'}'`
15396 { echo "$as_me:$LINENO: result: $ac_res" >&5
15397echo "${ECHO_T}$ac_res" >&6; }
15398else
15399 # Is the header compilable?
15400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408$ac_includes_default
15409#include <$ac_header>
15410_ACEOF
15411rm -f conftest.$ac_objext
15412if { (ac_try="$ac_compile"
15413case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_header_compiler=yes
15446else
15447 echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ac_header_compiler=no
15451fi
15452
15453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455echo "${ECHO_T}$ac_header_compiler" >&6; }
15456
15457# Is the header present?
15458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
15466#include <$ac_header>
15467_ACEOF
15468if { (ac_try="$ac_cpp conftest.$ac_ext"
15469case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } >/dev/null; then
15481 if test -s conftest.err; then
15482 ac_cpp_err=$ac_c_preproc_warn_flag
15483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15484 else
15485 ac_cpp_err=
15486 fi
15487else
15488 ac_cpp_err=yes
15489fi
15490if test -z "$ac_cpp_err"; then
15491 ac_header_preproc=yes
15492else
15493 echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 ac_header_preproc=no
15497fi
15498
15499rm -f conftest.err conftest.$ac_ext
15500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501echo "${ECHO_T}$ac_header_preproc" >&6; }
15502
15503# So? What about this header?
15504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505 yes:no: )
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510 ac_header_preproc=yes
15511 ;;
15512 no:yes:* )
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015526## ------------------------------------ ##
15527## Report this to http://llvm.org/bugs/ ##
15528## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015529_ASBOX
15530 ) | sed "s/^/$as_me: WARNING: /" >&2
15531 ;;
15532esac
15533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537else
15538 eval "$as_ac_Header=\$ac_header_preproc"
15539fi
15540ac_res=`eval echo '${'$as_ac_Header'}'`
15541 { echo "$as_me:$LINENO: result: $ac_res" >&5
15542echo "${ECHO_T}$ac_res" >&6; }
15543
15544fi
15545if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546 cat >>confdefs.h <<_ACEOF
15547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15548_ACEOF
15549
15550fi
15551
15552done
15553
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015554
15555for ac_header in fenv.h
15556do
15557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563fi
15564ac_res=`eval echo '${'$as_ac_Header'}'`
15565 { echo "$as_me:$LINENO: result: $ac_res" >&5
15566echo "${ECHO_T}$ac_res" >&6; }
15567else
15568 # Is the header compilable?
15569{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15571cat >conftest.$ac_ext <<_ACEOF
15572/* confdefs.h. */
15573_ACEOF
15574cat confdefs.h >>conftest.$ac_ext
15575cat >>conftest.$ac_ext <<_ACEOF
15576/* end confdefs.h. */
15577$ac_includes_default
15578#include <$ac_header>
15579_ACEOF
15580rm -f conftest.$ac_objext
15581if { (ac_try="$ac_compile"
15582case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585esac
15586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_compile") 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
15594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15595 { (case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598esac
15599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_try") 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
15605 { (case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608esac
15609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_try") 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_header_compiler=yes
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 ac_header_compiler=no
15620fi
15621
15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624echo "${ECHO_T}$ac_header_compiler" >&6; }
15625
15626# Is the header present?
15627{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15629cat >conftest.$ac_ext <<_ACEOF
15630/* confdefs.h. */
15631_ACEOF
15632cat confdefs.h >>conftest.$ac_ext
15633cat >>conftest.$ac_ext <<_ACEOF
15634/* end confdefs.h. */
15635#include <$ac_header>
15636_ACEOF
15637if { (ac_try="$ac_cpp conftest.$ac_ext"
15638case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641esac
15642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } >/dev/null; then
15650 if test -s conftest.err; then
15651 ac_cpp_err=$ac_c_preproc_warn_flag
15652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15653 else
15654 ac_cpp_err=
15655 fi
15656else
15657 ac_cpp_err=yes
15658fi
15659if test -z "$ac_cpp_err"; then
15660 ac_header_preproc=yes
15661else
15662 echo "$as_me: failed program was:" >&5
15663sed 's/^/| /' conftest.$ac_ext >&5
15664
15665 ac_header_preproc=no
15666fi
15667
15668rm -f conftest.err conftest.$ac_ext
15669{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15670echo "${ECHO_T}$ac_header_preproc" >&6; }
15671
15672# So? What about this header?
15673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15674 yes:no: )
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15676echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15678echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15679 ac_header_preproc=yes
15680 ;;
15681 no:yes:* )
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15687echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15689echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15693echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15694 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015695## ------------------------------------ ##
15696## Report this to http://llvm.org/bugs/ ##
15697## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015698_ASBOX
15699 ) | sed "s/^/$as_me: WARNING: /" >&2
15700 ;;
15701esac
15702{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706else
15707 eval "$as_ac_Header=\$ac_header_preproc"
15708fi
15709ac_res=`eval echo '${'$as_ac_Header'}'`
15710 { echo "$as_me:$LINENO: result: $ac_res" >&5
15711echo "${ECHO_T}$ac_res" >&6; }
15712
15713fi
15714if test `eval echo '${'$as_ac_Header'}'` = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15717_ACEOF
15718
15719fi
15720
15721done
15722
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015723if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015724
15725for ac_header in pthread.h
15726do
15727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733fi
15734ac_res=`eval echo '${'$as_ac_Header'}'`
15735 { echo "$as_me:$LINENO: result: $ac_res" >&5
15736echo "${ECHO_T}$ac_res" >&6; }
15737else
15738 # Is the header compilable?
15739{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15741cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747$ac_includes_default
15748#include <$ac_header>
15749_ACEOF
15750rm -f conftest.$ac_objext
15751if { (ac_try="$ac_compile"
15752case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755esac
15756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_compile") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } &&
15764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15765 { (case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768esac
15769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_try") 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
15775 { (case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778esac
15779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_try") 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_header_compiler=yes
15785else
15786 echo "$as_me: failed program was:" >&5
15787sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 ac_header_compiler=no
15790fi
15791
15792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15794echo "${ECHO_T}$ac_header_compiler" >&6; }
15795
15796# Is the header present?
15797{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15799cat >conftest.$ac_ext <<_ACEOF
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805#include <$ac_header>
15806_ACEOF
15807if { (ac_try="$ac_cpp conftest.$ac_ext"
15808case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15811esac
15812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev/null; then
15820 if test -s conftest.err; then
15821 ac_cpp_err=$ac_c_preproc_warn_flag
15822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15823 else
15824 ac_cpp_err=
15825 fi
15826else
15827 ac_cpp_err=yes
15828fi
15829if test -z "$ac_cpp_err"; then
15830 ac_header_preproc=yes
15831else
15832 echo "$as_me: failed program was:" >&5
15833sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 ac_header_preproc=no
15836fi
15837
15838rm -f conftest.err conftest.$ac_ext
15839{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15840echo "${ECHO_T}$ac_header_preproc" >&6; }
15841
15842# So? What about this header?
15843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844 yes:no: )
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15849 ac_header_preproc=yes
15850 ;;
15851 no:yes:* )
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15864 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015865## ------------------------------------ ##
15866## Report this to http://llvm.org/bugs/ ##
15867## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015868_ASBOX
15869 ) | sed "s/^/$as_me: WARNING: /" >&2
15870 ;;
15871esac
15872{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876else
15877 eval "$as_ac_Header=\$ac_header_preproc"
15878fi
15879ac_res=`eval echo '${'$as_ac_Header'}'`
15880 { echo "$as_me:$LINENO: result: $ac_res" >&5
15881echo "${ECHO_T}$ac_res" >&6; }
15882
15883fi
15884if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015885 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015887_ACEOF
15888 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015889
15890else
15891 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015892
15893fi
15894
Reid Spencerbe3e4192007-08-17 05:45:26 +000015895done
Reid Spencer1000b732006-12-01 00:37:14 +000015896
15897else
15898 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015899
15900fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015901
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015902if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015903
15904
15905for ac_header in ffi.h ffi/ffi.h
15906do
15907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913fi
15914ac_res=`eval echo '${'$as_ac_Header'}'`
15915 { echo "$as_me:$LINENO: result: $ac_res" >&5
15916echo "${ECHO_T}$ac_res" >&6; }
15917else
15918 # Is the header compilable?
15919{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15921cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927$ac_includes_default
15928#include <$ac_header>
15929_ACEOF
15930rm -f conftest.$ac_objext
15931if { (ac_try="$ac_compile"
15932case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15935esac
15936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948esac
15949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15958esac
15959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15965else
15966 echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ac_header_compiler=no
15970fi
15971
15972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974echo "${ECHO_T}$ac_header_compiler" >&6; }
15975
15976# Is the header present?
15977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985#include <$ac_header>
15986_ACEOF
15987if { (ac_try="$ac_cpp conftest.$ac_ext"
15988case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991esac
15992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003 else
16004 ac_cpp_err=
16005 fi
16006else
16007 ac_cpp_err=yes
16008fi
16009if test -z "$ac_cpp_err"; then
16010 ac_header_preproc=yes
16011else
16012 echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ac_header_preproc=no
16016fi
16017
16018rm -f conftest.err conftest.$ac_ext
16019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020echo "${ECHO_T}$ac_header_preproc" >&6; }
16021
16022# So? What about this header?
16023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16024 yes:no: )
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029 ac_header_preproc=yes
16030 ;;
16031 no:yes:* )
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16044 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016045## ------------------------------------ ##
16046## Report this to http://llvm.org/bugs/ ##
16047## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016048_ASBOX
16049 ) | sed "s/^/$as_me: WARNING: /" >&2
16050 ;;
16051esac
16052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056else
16057 eval "$as_ac_Header=\$ac_header_preproc"
16058fi
16059ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061echo "${ECHO_T}$ac_res" >&6; }
16062
16063fi
16064if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016065 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016067_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016068
16069fi
16070
16071done
16072
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016073fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016074
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016075
Eric Christopher654dee42010-06-22 21:01:04 +000016076for ac_header in CrashReporterClient.h
16077do
16078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084fi
16085ac_res=`eval echo '${'$as_ac_Header'}'`
16086 { echo "$as_me:$LINENO: result: $ac_res" >&5
16087echo "${ECHO_T}$ac_res" >&6; }
16088else
16089 # Is the header compilable?
16090{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16092cat >conftest.$ac_ext <<_ACEOF
16093/* confdefs.h. */
16094_ACEOF
16095cat confdefs.h >>conftest.$ac_ext
16096cat >>conftest.$ac_ext <<_ACEOF
16097/* end confdefs.h. */
16098$ac_includes_default
16099#include <$ac_header>
16100_ACEOF
16101rm -f conftest.$ac_objext
16102if { (ac_try="$ac_compile"
16103case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106esac
16107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_compile") 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119esac
16120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129esac
16130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_try") 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_header_compiler=yes
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ac_header_compiler=no
16141fi
16142
16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145echo "${ECHO_T}$ac_header_compiler" >&6; }
16146
16147# Is the header present?
16148{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16150cat >conftest.$ac_ext <<_ACEOF
16151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
16156#include <$ac_header>
16157_ACEOF
16158if { (ac_try="$ac_cpp conftest.$ac_ext"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null; then
16171 if test -s conftest.err; then
16172 ac_cpp_err=$ac_c_preproc_warn_flag
16173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16174 else
16175 ac_cpp_err=
16176 fi
16177else
16178 ac_cpp_err=yes
16179fi
16180if test -z "$ac_cpp_err"; then
16181 ac_header_preproc=yes
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 ac_header_preproc=no
16187fi
16188
16189rm -f conftest.err conftest.$ac_ext
16190{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16191echo "${ECHO_T}$ac_header_preproc" >&6; }
16192
16193# So? What about this header?
16194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16195 yes:no: )
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16200 ac_header_preproc=yes
16201 ;;
16202 no:yes:* )
16203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16210echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16215 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016216## ------------------------------------ ##
16217## Report this to http://llvm.org/bugs/ ##
16218## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016219_ASBOX
16220 ) | sed "s/^/$as_me: WARNING: /" >&2
16221 ;;
16222esac
16223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227else
16228 eval "$as_ac_Header=\$ac_header_preproc"
16229fi
16230ac_res=`eval echo '${'$as_ac_Header'}'`
16231 { echo "$as_me:$LINENO: result: $ac_res" >&5
16232echo "${ECHO_T}$ac_res" >&6; }
16233
16234fi
16235if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16238_ACEOF
16239
16240fi
16241
16242done
16243
16244
Eric Christopher51e57132010-12-07 02:05:42 +000016245{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16246echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016247cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016253extern const char *__crashreporter_info__;
16254 int main() {
16255 __crashreporter_info__ = "test";
16256 return 0;
16257 }
Eric Christopher481d4022010-12-03 07:45:22 +000016258
Eric Christopher481d4022010-12-03 07:45:22 +000016259_ACEOF
16260rm -f conftest.$ac_objext conftest$ac_exeext
16261if { (ac_try="$ac_link"
16262case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_link") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275 { (case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16278esac
16279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_try") 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16288esac
16289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016294 { echo "$as_me:$LINENO: result: yes" >&5
16295echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016296
16297cat >>confdefs.h <<\_ACEOF
16298#define HAVE_CRASHREPORTER_INFO 1
16299_ACEOF
16300
Eric Christopher51e57132010-12-07 02:05:42 +000016301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 { echo "$as_me:$LINENO: result: no" >&5
16306echo "${ECHO_T}no" >&6; }
16307
16308cat >>confdefs.h <<\_ACEOF
16309#define HAVE_CRASHREPORTER_INFO 0
16310_ACEOF
16311
Eric Christopher481d4022010-12-03 07:45:22 +000016312fi
Eric Christopher654dee42010-06-22 21:01:04 +000016313
Eric Christopher51e57132010-12-07 02:05:42 +000016314rm -f core conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16316
16317
Reid Spencer8085cff2005-01-16 02:58:39 +000016318
Torok Edwin871384f2010-01-26 08:50:50 +000016319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016320 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16321echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16322if test "${ac_cv_huge_val_sanity+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016324else
16325
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016326 ac_ext=cpp
16327ac_cpp='$CXXCPP $CPPFLAGS'
16328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016331
Eric Christopherc7718502010-03-02 05:06:54 +000016332 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016333 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016334 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016335 ac_cv_huge_val_sanity=yes
16336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016337 cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016342/* end confdefs.h. */
16343#include <math.h>
16344int
16345main ()
16346{
16347double x = HUGE_VAL; return x != x;
16348 ;
16349 return 0;
16350}
16351_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016352rm -f conftest$ac_exeext
16353if { (ac_try="$ac_link"
16354case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_link") 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016372 ac_cv_huge_val_sanity=yes
16373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016374 echo "$as_me: program exited with status $ac_status" >&5
16375echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
16378( exit $ac_status )
16379ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016381rm -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 +000016382fi
16383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016384
Eric Christopherc7718502010-03-02 05:06:54 +000016385 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016386 ac_ext=c
16387ac_cpp='$CPP $CPPFLAGS'
16388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390ac_compiler_gnu=$ac_cv_c_compiler_gnu
16391
16392
16393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016394{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16395echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016396 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16397
16398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016399{ echo "$as_me:$LINENO: checking for pid_t" >&5
16400echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16401if test "${ac_cv_type_pid_t+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16403else
16404 cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h. */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
16409/* end confdefs.h. */
16410$ac_includes_default
16411typedef pid_t ac__type_new_;
16412int
16413main ()
16414{
16415if ((ac__type_new_ *) 0)
16416 return 0;
16417if (sizeof (ac__type_new_))
16418 return 0;
16419 ;
16420 return 0;
16421}
16422_ACEOF
16423rm -f conftest.$ac_objext
16424if { (ac_try="$ac_compile"
16425case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428esac
16429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_compile") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441esac
16442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451esac
16452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_cv_type_pid_t=yes
16458else
16459 echo "$as_me: failed program was:" >&5
16460sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016462 ac_cv_type_pid_t=no
16463fi
16464
16465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466fi
16467{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16468echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16469if test $ac_cv_type_pid_t = yes; then
16470 :
John Criswell7a73b802003-06-30 21:59:07 +000016471else
16472
16473cat >>confdefs.h <<_ACEOF
16474#define pid_t int
16475_ACEOF
16476
16477fi
16478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016479{ echo "$as_me:$LINENO: checking for size_t" >&5
16480echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16481if test "${ac_cv_type_size_t+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
16484 cat >conftest.$ac_ext <<_ACEOF
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490$ac_includes_default
16491typedef size_t ac__type_new_;
16492int
16493main ()
16494{
16495if ((ac__type_new_ *) 0)
16496 return 0;
16497if (sizeof (ac__type_new_))
16498 return 0;
16499 ;
16500 return 0;
16501}
16502_ACEOF
16503rm -f conftest.$ac_objext
16504if { (ac_try="$ac_compile"
16505case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_compile") 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521esac
16522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16524 ac_status=$?
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; } &&
16527 { ac_try='test -s conftest.$ac_objext'
16528 { (case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16531esac
16532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_try") 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_type_size_t=yes
16538else
16539 echo "$as_me: failed program was:" >&5
16540sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016542 ac_cv_type_size_t=no
16543fi
16544
16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546fi
16547{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16548echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16549if test $ac_cv_type_size_t = yes; then
16550 :
John Criswell7a73b802003-06-30 21:59:07 +000016551else
16552
16553cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016554#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016555_ACEOF
16556
16557fi
16558
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016559
16560cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016561#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016562_ACEOF
16563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016564{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16565echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16566if test "${ac_cv_struct_tm+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016569 cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016574/* end confdefs.h. */
16575#include <sys/types.h>
16576#include <time.h>
16577
16578int
16579main ()
16580{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016581struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016582 ;
16583 return 0;
16584}
16585_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016586rm -f conftest.$ac_objext
16587if { (ac_try="$ac_compile"
16588case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_compile") 2>conftest.er1
16594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
16611 { (case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_try") 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016620 ac_cv_struct_tm=time.h
16621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016622 echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016627
Reid Spencera773bd52006-08-04 18:18:08 +000016628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016630{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16631echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016632if test $ac_cv_struct_tm = sys/time.h; then
16633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016634cat >>confdefs.h <<\_ACEOF
16635#define TM_IN_SYS_TIME 1
16636_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016637
16638fi
16639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640{ echo "$as_me:$LINENO: checking for int64_t" >&5
16641echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16642if test "${ac_cv_type_int64_t+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 cat >conftest.$ac_ext <<_ACEOF
16646/* confdefs.h. */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h. */
16651$ac_includes_default
16652typedef int64_t ac__type_new_;
16653int
16654main ()
16655{
16656if ((ac__type_new_ *) 0)
16657 return 0;
16658if (sizeof (ac__type_new_))
16659 return 0;
16660 ;
16661 return 0;
16662}
16663_ACEOF
16664rm -f conftest.$ac_objext
16665if { (ac_try="$ac_compile"
16666case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669esac
16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679 { (case "(($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_try") 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692esac
16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_type_int64_t=yes
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 ac_cv_type_int64_t=no
16704fi
16705
16706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16707fi
16708{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16709echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16710if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016711
16712cat >>confdefs.h <<_ACEOF
16713#define HAVE_INT64_T 1
16714_ACEOF
16715
16716
16717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016718 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16719echo "$as_me: error: Type int64_t required but not found" >&2;}
16720 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016721fi
16722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016723{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16724echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16725if test "${ac_cv_type_uint64_t+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16727else
16728 cat >conftest.$ac_ext <<_ACEOF
16729/* confdefs.h. */
16730_ACEOF
16731cat confdefs.h >>conftest.$ac_ext
16732cat >>conftest.$ac_ext <<_ACEOF
16733/* end confdefs.h. */
16734$ac_includes_default
16735typedef uint64_t ac__type_new_;
16736int
16737main ()
16738{
16739if ((ac__type_new_ *) 0)
16740 return 0;
16741if (sizeof (ac__type_new_))
16742 return 0;
16743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext
16748if { (ac_try="$ac_compile"
16749case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775esac
16776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_cv_type_uint64_t=yes
16782else
16783 echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 ac_cv_type_uint64_t=no
16787fi
16788
16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790fi
16791{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16792echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16793if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016794
16795cat >>confdefs.h <<_ACEOF
16796#define HAVE_UINT64_T 1
16797_ACEOF
16798
16799
16800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016801 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16802echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16803if test "${ac_cv_type_u_int64_t+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805else
16806 cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812$ac_includes_default
16813typedef u_int64_t ac__type_new_;
16814int
16815main ()
16816{
16817if ((ac__type_new_ *) 0)
16818 return 0;
16819if (sizeof (ac__type_new_))
16820 return 0;
16821 ;
16822 return 0;
16823}
16824_ACEOF
16825rm -f conftest.$ac_objext
16826if { (ac_try="$ac_compile"
16827case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_compile") 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853esac
16854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_type_u_int64_t=yes
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ac_cv_type_u_int64_t=no
16865fi
16866
16867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868fi
16869{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16870echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16871if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016872
16873cat >>confdefs.h <<_ACEOF
16874#define HAVE_U_INT64_T 1
16875_ACEOF
16876
16877
Misha Brukmanceca9042004-09-02 23:02:30 +000016878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016879 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16880echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16881 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016882fi
16883
John Criswell679ff312004-09-02 18:44:44 +000016884fi
16885
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016886
16887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016888
16889
16890
16891
16892
16893
16894
Reid Spencerdf3be822006-01-23 08:15:53 +000016895for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016896do
16897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902else
16903 cat >conftest.$ac_ext <<_ACEOF
16904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
16909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911#define $ac_func innocuous_$ac_func
16912
16913/* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16917
16918#ifdef __STDC__
16919# include <limits.h>
16920#else
16921# include <assert.h>
16922#endif
16923
16924#undef $ac_func
16925
16926/* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16929#ifdef __cplusplus
16930extern "C"
16931#endif
16932char $ac_func ();
16933/* The GNU C library defines this for functions which it implements
16934 to always fail with ENOSYS. Some functions are actually named
16935 something starting with __ and the normal name is an alias. */
16936#if defined __stub_$ac_func || defined __stub___$ac_func
16937choke me
16938#endif
16939
16940int
16941main ()
16942{
16943return $ac_func ();
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest.$ac_objext conftest$ac_exeext
16949if { (ac_try="$ac_link"
16950case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_link") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963 { (case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966esac
16967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_try") 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest$ac_exeext'
16973 { (case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976esac
16977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_try") 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 eval "$as_ac_var=yes"
16983else
16984 echo "$as_me: failed program was:" >&5
16985sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 eval "$as_ac_var=no"
16988fi
16989
16990rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992fi
16993ac_res=`eval echo '${'$as_ac_var'}'`
16994 { echo "$as_me:$LINENO: result: $ac_res" >&5
16995echo "${ECHO_T}$ac_res" >&6; }
16996if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016999_ACEOF
17000
17001fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017002done
John Criswell7a73b802003-06-30 21:59:07 +000017003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017004
17005
17006
17007
Reid Spencer96cf5872007-07-13 10:05:30 +000017008for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017009do
17010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
17022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17024#define $ac_func innocuous_$ac_func
17025
17026/* System header to define __stub macros and hopefully few prototypes,
17027 which can conflict with char $ac_func (); below.
17028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029 <limits.h> exists even on freestanding compilers. */
17030
17031#ifdef __STDC__
17032# include <limits.h>
17033#else
17034# include <assert.h>
17035#endif
17036
17037#undef $ac_func
17038
17039/* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char $ac_func ();
17046/* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049#if defined __stub_$ac_func || defined __stub___$ac_func
17050choke me
17051#endif
17052
17053int
17054main ()
17055{
17056return $ac_func ();
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
17062if { (ac_try="$ac_link"
17063case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079esac
17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 eval "$as_ac_var=yes"
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 eval "$as_ac_var=no"
17101fi
17102
17103rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105fi
17106ac_res=`eval echo '${'$as_ac_var'}'`
17107 { echo "$as_me:$LINENO: result: $ac_res" >&5
17108echo "${ECHO_T}$ac_res" >&6; }
17109if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017110 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017112_ACEOF
17113
17114fi
17115done
17116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017117
17118
17119
17120
17121
Reid Spencerb90645c2007-02-16 19:17:20 +000017122for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017123do
17124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129else
17130 cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138#define $ac_func innocuous_$ac_func
17139
17140/* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17144
17145#ifdef __STDC__
17146# include <limits.h>
17147#else
17148# include <assert.h>
17149#endif
17150
17151#undef $ac_func
17152
17153/* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17156#ifdef __cplusplus
17157extern "C"
17158#endif
17159char $ac_func ();
17160/* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163#if defined __stub_$ac_func || defined __stub___$ac_func
17164choke me
17165#endif
17166
17167int
17168main ()
17169{
17170return $ac_func ();
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
17176if { (ac_try="$ac_link"
17177case "(($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_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 eval "$as_ac_var=yes"
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 eval "$as_ac_var=no"
17215fi
17216
17217rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219fi
17220ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222echo "${ECHO_T}$ac_res" >&6; }
17223if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017224 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017226_ACEOF
17227
17228fi
17229done
17230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017231
17232
17233
Reid Spencerb90645c2007-02-16 19:17:20 +000017234for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017235do
17236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241else
17242 cat >conftest.$ac_ext <<_ACEOF
17243/* confdefs.h. */
17244_ACEOF
17245cat confdefs.h >>conftest.$ac_ext
17246cat >>conftest.$ac_ext <<_ACEOF
17247/* end confdefs.h. */
17248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17250#define $ac_func innocuous_$ac_func
17251
17252/* System header to define __stub macros and hopefully few prototypes,
17253 which can conflict with char $ac_func (); below.
17254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17255 <limits.h> exists even on freestanding compilers. */
17256
17257#ifdef __STDC__
17258# include <limits.h>
17259#else
17260# include <assert.h>
17261#endif
17262
17263#undef $ac_func
17264
17265/* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17268#ifdef __cplusplus
17269extern "C"
17270#endif
17271char $ac_func ();
17272/* The GNU C library defines this for functions which it implements
17273 to always fail with ENOSYS. Some functions are actually named
17274 something starting with __ and the normal name is an alias. */
17275#if defined __stub_$ac_func || defined __stub___$ac_func
17276choke me
17277#endif
17278
17279int
17280main ()
17281{
17282return $ac_func ();
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
17288if { (ac_try="$ac_link"
17289case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292esac
17293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17302 { (case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305esac
17306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_try") 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 eval "$as_ac_var=yes"
17322else
17323 echo "$as_me: failed program was:" >&5
17324sed 's/^/| /' conftest.$ac_ext >&5
17325
17326 eval "$as_ac_var=no"
17327fi
17328
17329rm -f core conftest.err conftest.$ac_objext \
17330 conftest$ac_exeext conftest.$ac_ext
17331fi
17332ac_res=`eval echo '${'$as_ac_var'}'`
17333 { echo "$as_me:$LINENO: result: $ac_res" >&5
17334echo "${ECHO_T}$ac_res" >&6; }
17335if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017336 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017338_ACEOF
17339
17340fi
17341done
17342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017343
17344
17345
17346
17347
Eric Christophere4291822010-04-16 05:14:21 +000017348
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017349
17350for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017351do
17352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17353{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357else
17358 cat >conftest.$ac_ext <<_ACEOF
17359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
17364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17366#define $ac_func innocuous_$ac_func
17367
17368/* System header to define __stub macros and hopefully few prototypes,
17369 which can conflict with char $ac_func (); below.
17370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17371 <limits.h> exists even on freestanding compilers. */
17372
17373#ifdef __STDC__
17374# include <limits.h>
17375#else
17376# include <assert.h>
17377#endif
17378
17379#undef $ac_func
17380
17381/* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17384#ifdef __cplusplus
17385extern "C"
17386#endif
17387char $ac_func ();
17388/* The GNU C library defines this for functions which it implements
17389 to always fail with ENOSYS. Some functions are actually named
17390 something starting with __ and the normal name is an alias. */
17391#if defined __stub_$ac_func || defined __stub___$ac_func
17392choke me
17393#endif
17394
17395int
17396main ()
17397{
17398return $ac_func ();
17399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (ac_try="$ac_link"
17405case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 eval "$as_ac_var=yes"
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 eval "$as_ac_var=no"
17443fi
17444
17445rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447fi
17448ac_res=`eval echo '${'$as_ac_var'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450echo "${ECHO_T}$ac_res" >&6; }
17451if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017454_ACEOF
17455
17456fi
17457done
Reid Spencerdf3be822006-01-23 08:15:53 +000017458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017459
17460
17461
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017462
17463for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017464do
17465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17466{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17468if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470else
17471 cat >conftest.$ac_ext <<_ACEOF
17472/* confdefs.h. */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h. */
17477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17479#define $ac_func innocuous_$ac_func
17480
17481/* System header to define __stub macros and hopefully few prototypes,
17482 which can conflict with char $ac_func (); below.
17483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17484 <limits.h> exists even on freestanding compilers. */
17485
17486#ifdef __STDC__
17487# include <limits.h>
17488#else
17489# include <assert.h>
17490#endif
17491
17492#undef $ac_func
17493
17494/* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17497#ifdef __cplusplus
17498extern "C"
17499#endif
17500char $ac_func ();
17501/* The GNU C library defines this for functions which it implements
17502 to always fail with ENOSYS. Some functions are actually named
17503 something starting with __ and the normal name is an alias. */
17504#if defined __stub_$ac_func || defined __stub___$ac_func
17505choke me
17506#endif
17507
17508int
17509main ()
17510{
17511return $ac_func ();
17512 ;
17513 return 0;
17514}
17515_ACEOF
17516rm -f conftest.$ac_objext conftest$ac_exeext
17517if { (ac_try="$ac_link"
17518case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521esac
17522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534esac
17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest$ac_exeext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544esac
17545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 eval "$as_ac_var=yes"
17551else
17552 echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 eval "$as_ac_var=no"
17556fi
17557
17558rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17560fi
17561ac_res=`eval echo '${'$as_ac_var'}'`
17562 { echo "$as_me:$LINENO: result: $ac_res" >&5
17563echo "${ECHO_T}$ac_res" >&6; }
17564if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017565 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017567_ACEOF
17568
17569fi
17570done
17571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017572
17573
17574
17575
Chris Lattner511f11d2005-11-14 07:25:50 +000017576for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017577do
17578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583else
17584 cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h. */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h. */
17590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17592#define $ac_func innocuous_$ac_func
17593
17594/* System header to define __stub macros and hopefully few prototypes,
17595 which can conflict with char $ac_func (); below.
17596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17597 <limits.h> exists even on freestanding compilers. */
17598
17599#ifdef __STDC__
17600# include <limits.h>
17601#else
17602# include <assert.h>
17603#endif
17604
17605#undef $ac_func
17606
17607/* Override any GCC internal prototype to avoid an error.
17608 Use char because int might match the return type of a GCC
17609 builtin and then its argument prototype would still apply. */
17610#ifdef __cplusplus
17611extern "C"
17612#endif
17613char $ac_func ();
17614/* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617#if defined __stub_$ac_func || defined __stub___$ac_func
17618choke me
17619#endif
17620
17621int
17622main ()
17623{
17624return $ac_func ();
17625 ;
17626 return 0;
17627}
17628_ACEOF
17629rm -f conftest.$ac_objext conftest$ac_exeext
17630if { (ac_try="$ac_link"
17631case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17634esac
17635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647esac
17648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
17654 { (case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17657esac
17658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_try") 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 eval "$as_ac_var=yes"
17664else
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 eval "$as_ac_var=no"
17669fi
17670
17671rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17673fi
17674ac_res=`eval echo '${'$as_ac_var'}'`
17675 { echo "$as_me:$LINENO: result: $ac_res" >&5
17676echo "${ECHO_T}$ac_res" >&6; }
17677if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017678 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017680_ACEOF
17681
17682fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017683done
John Criswell7a73b802003-06-30 21:59:07 +000017684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017685
17686
17687
17688
Daniel Dunbar3e462932011-02-03 02:40:02 +000017689
17690for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017691do
17692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17697else
17698 cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
17704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706#define $ac_func innocuous_$ac_func
17707
17708/* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17712
17713#ifdef __STDC__
17714# include <limits.h>
17715#else
17716# include <assert.h>
17717#endif
17718
17719#undef $ac_func
17720
17721/* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17724#ifdef __cplusplus
17725extern "C"
17726#endif
17727char $ac_func ();
17728/* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731#if defined __stub_$ac_func || defined __stub___$ac_func
17732choke me
17733#endif
17734
17735int
17736main ()
17737{
17738return $ac_func ();
17739 ;
17740 return 0;
17741}
17742_ACEOF
17743rm -f conftest.$ac_objext conftest$ac_exeext
17744if { (ac_try="$ac_link"
17745case "(($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_link") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761esac
17762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 eval "$as_ac_var=yes"
17778else
17779 echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 eval "$as_ac_var=no"
17783fi
17784
17785rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787fi
17788ac_res=`eval echo '${'$as_ac_var'}'`
17789 { echo "$as_me:$LINENO: result: $ac_res" >&5
17790echo "${ECHO_T}$ac_res" >&6; }
17791if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017792 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017794_ACEOF
17795
17796fi
17797done
17798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017799{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17800echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17801if test "${llvm_cv_c_printf_a+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017803else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017804 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017805ac_cpp='$CPP $CPPFLAGS'
17806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17808ac_compiler_gnu=$ac_cv_c_compiler_gnu
17809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017810 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017811 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017813 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017815 /* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017820
John Criswella0137d32003-10-13 16:22:01 +000017821#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017822#include <stdlib.h>
17823
John Criswella0137d32003-10-13 16:22:01 +000017824int
17825main ()
17826{
17827
Reid Spencer2706f8c2004-09-19 23:53:36 +000017828volatile double A, B;
17829char Buffer[100];
17830A = 1;
17831A /= 10.0;
17832sprintf(Buffer, "%a", A);
17833B = atof(Buffer);
17834if (A != B)
17835 return (1);
17836if (A != 0x1.999999999999ap-4)
17837 return (1);
17838return (0);
John Criswella0137d32003-10-13 16:22:01 +000017839 ;
17840 return 0;
17841}
17842_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843rm -f conftest$ac_exeext
17844if { (ac_try="$ac_link"
17845case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848esac
17849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_link") 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857esac
17858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017863 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017865 echo "$as_me: program exited with status $ac_status" >&5
17866echo "$as_me: failed program was:" >&5
17867sed 's/^/| /' conftest.$ac_ext >&5
17868
17869( exit $ac_status )
17870llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017872rm -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 +000017873fi
Reid Spencera773bd52006-08-04 18:18:08 +000017874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017875
Reid Spencer2706f8c2004-09-19 23:53:36 +000017876 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017877ac_cpp='$CPP $CPPFLAGS'
17878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880ac_compiler_gnu=$ac_cv_c_compiler_gnu
17881
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017883{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17884echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017885 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017887cat >>confdefs.h <<\_ACEOF
17888#define HAVE_PRINTF_A 1
17889_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017890
Reid Spencer2706f8c2004-09-19 23:53:36 +000017891 fi
John Criswella0137d32003-10-13 16:22:01 +000017892
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017894{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17895echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17896if test "${ac_cv_func_rand48+set}" = set; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017898else
Reid Spencera773bd52006-08-04 18:18:08 +000017899 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017900ac_cpp='$CXXCPP $CPPFLAGS'
17901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017905 cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017910/* end confdefs.h. */
17911#include <stdlib.h>
17912int
17913main ()
17914{
17915srand48(0);lrand48();drand48();
17916 ;
17917 return 0;
17918}
17919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017920rm -f conftest.$ac_objext
17921if { (ac_try="$ac_compile"
17922case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_compile") 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938esac
17939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
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 Spencer5e1d9a52004-11-25 04:51:04 +000017954 ac_cv_func_rand48=yes
17955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017956 echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017961
Reid Spencera773bd52006-08-04 18:18:08 +000017962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017963 ac_ext=c
17964ac_cpp='$CPP $CPPFLAGS'
17965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17967ac_compiler_gnu=$ac_cv_c_compiler_gnu
17968
17969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017970{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17971echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017972
17973if test "$ac_cv_func_rand48" = "yes" ; then
17974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017975cat >>confdefs.h <<\_ACEOF
17976#define HAVE_RAND48 1
17977_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017978
17979fi
John Criswell0021c312004-02-13 21:57:29 +000017980
17981
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017982{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17983echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17984if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986else
17987 cat >conftest.$ac_ext <<_ACEOF
17988/* confdefs.h. */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h. */
17993$ac_includes_default
17994int
17995main ()
17996{
17997#ifndef strerror_s
17998 char *p = (char *) strerror_s;
17999 return !p;
18000#endif
18001
18002 ;
18003 return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext
18007if { (ac_try="$ac_compile"
18008case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_compile") 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034esac
18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_have_decl_strerror_s=yes
18041else
18042 echo "$as_me: failed program was:" >&5
18043sed 's/^/| /' conftest.$ac_ext >&5
18044
18045 ac_cv_have_decl_strerror_s=no
18046fi
18047
18048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049fi
18050{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18051echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18052if test $ac_cv_have_decl_strerror_s = yes; then
18053
18054cat >>confdefs.h <<_ACEOF
18055#define HAVE_DECL_STRERROR_S 1
18056_ACEOF
18057
18058
18059else
18060 cat >>confdefs.h <<_ACEOF
18061#define HAVE_DECL_STRERROR_S 0
18062_ACEOF
18063
18064
18065fi
18066
18067
18068
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018069if test "$llvm_cv_os_type" = "MingW" ; then
18070 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18071echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18072if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075 ac_check_lib_save_LIBS=$LIBS
18076LIBS="-lgcc $LIBS"
18077cat >conftest.$ac_ext <<_ACEOF
18078/* confdefs.h. */
18079_ACEOF
18080cat confdefs.h >>conftest.$ac_ext
18081cat >>conftest.$ac_ext <<_ACEOF
18082/* end confdefs.h. */
18083
18084/* Override any GCC internal prototype to avoid an error.
18085 Use char because int might match the return type of a GCC
18086 builtin and then its argument prototype would still apply. */
18087#ifdef __cplusplus
18088extern "C"
18089#endif
18090char _alloca ();
18091int
18092main ()
18093{
18094return _alloca ();
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext conftest$ac_exeext
18100if { (ac_try="$ac_link"
18101case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_lib_gcc__alloca=yes
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 ac_cv_lib_gcc__alloca=no
18139fi
18140
18141rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143LIBS=$ac_check_lib_save_LIBS
18144fi
18145{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18146echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18147if test $ac_cv_lib_gcc__alloca = yes; then
18148
18149cat >>confdefs.h <<\_ACEOF
18150#define HAVE__ALLOCA 1
18151_ACEOF
18152
18153fi
18154
18155 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18156echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18157if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159else
18160 ac_check_lib_save_LIBS=$LIBS
18161LIBS="-lgcc $LIBS"
18162cat >conftest.$ac_ext <<_ACEOF
18163/* confdefs.h. */
18164_ACEOF
18165cat confdefs.h >>conftest.$ac_ext
18166cat >>conftest.$ac_ext <<_ACEOF
18167/* end confdefs.h. */
18168
18169/* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18172#ifdef __cplusplus
18173extern "C"
18174#endif
18175char __alloca ();
18176int
18177main ()
18178{
18179return __alloca ();
18180 ;
18181 return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext conftest$ac_exeext
18185if { (ac_try="$ac_link"
18186case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189esac
18190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18212esac
18213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_gcc___alloca=yes
18219else
18220 echo "$as_me: failed program was:" >&5
18221sed 's/^/| /' conftest.$ac_ext >&5
18222
18223 ac_cv_lib_gcc___alloca=no
18224fi
18225
18226rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228LIBS=$ac_check_lib_save_LIBS
18229fi
18230{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18231echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18232if test $ac_cv_lib_gcc___alloca = yes; then
18233
18234cat >>confdefs.h <<\_ACEOF
18235#define HAVE___ALLOCA 1
18236_ACEOF
18237
18238fi
18239
18240 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18241echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18242if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18244else
18245 ac_check_lib_save_LIBS=$LIBS
18246LIBS="-lgcc $LIBS"
18247cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h. */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h. */
18253
18254/* Override any GCC internal prototype to avoid an error.
18255 Use char because int might match the return type of a GCC
18256 builtin and then its argument prototype would still apply. */
18257#ifdef __cplusplus
18258extern "C"
18259#endif
18260char __chkstk ();
18261int
18262main ()
18263{
18264return __chkstk ();
18265 ;
18266 return 0;
18267}
18268_ACEOF
18269rm -f conftest.$ac_objext conftest$ac_exeext
18270if { (ac_try="$ac_link"
18271case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274esac
18275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_link") 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287esac
18288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest$ac_exeext'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_lib_gcc___chkstk=yes
18304else
18305 echo "$as_me: failed program was:" >&5
18306sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_cv_lib_gcc___chkstk=no
18309fi
18310
18311rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313LIBS=$ac_check_lib_save_LIBS
18314fi
18315{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18316echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18317if test $ac_cv_lib_gcc___chkstk = yes; then
18318
18319cat >>confdefs.h <<\_ACEOF
18320#define HAVE___CHKSTK 1
18321_ACEOF
18322
18323fi
18324
18325 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18326echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18327if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18329else
18330 ac_check_lib_save_LIBS=$LIBS
18331LIBS="-lgcc $LIBS"
18332cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338
18339/* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18342#ifdef __cplusplus
18343extern "C"
18344#endif
18345char ___chkstk ();
18346int
18347main ()
18348{
18349return ___chkstk ();
18350 ;
18351 return 0;
18352}
18353_ACEOF
18354rm -f conftest.$ac_objext conftest$ac_exeext
18355if { (ac_try="$ac_link"
18356case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18359esac
18360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_link") 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18369 { (case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18372esac
18373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_try") 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest$ac_exeext'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382esac
18383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_gcc____chkstk=yes
18389else
18390 echo "$as_me: failed program was:" >&5
18391sed 's/^/| /' conftest.$ac_ext >&5
18392
18393 ac_cv_lib_gcc____chkstk=no
18394fi
18395
18396rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398LIBS=$ac_check_lib_save_LIBS
18399fi
18400{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18401echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18402if test $ac_cv_lib_gcc____chkstk = yes; then
18403
18404cat >>confdefs.h <<\_ACEOF
18405#define HAVE____CHKSTK 1
18406_ACEOF
18407
18408fi
18409
18410
18411 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18412echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18413if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18415else
18416 ac_check_lib_save_LIBS=$LIBS
18417LIBS="-lgcc $LIBS"
18418cat >conftest.$ac_ext <<_ACEOF
18419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
18424
18425/* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431char __ashldi3 ();
18432int
18433main ()
18434{
18435return __ashldi3 ();
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
18441if { (ac_try="$ac_link"
18442case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_lib_gcc___ashldi3=yes
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 ac_cv_lib_gcc___ashldi3=no
18480fi
18481
18482rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484LIBS=$ac_check_lib_save_LIBS
18485fi
18486{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18487echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18488if test $ac_cv_lib_gcc___ashldi3 = yes; then
18489
18490cat >>confdefs.h <<\_ACEOF
18491#define HAVE___ASHLDI3 1
18492_ACEOF
18493
18494fi
18495
18496 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18497echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18498if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500else
18501 ac_check_lib_save_LIBS=$LIBS
18502LIBS="-lgcc $LIBS"
18503cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h. */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h. */
18509
18510/* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18513#ifdef __cplusplus
18514extern "C"
18515#endif
18516char __ashrdi3 ();
18517int
18518main ()
18519{
18520return __ashrdi3 ();
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525rm -f conftest.$ac_objext conftest$ac_exeext
18526if { (ac_try="$ac_link"
18527case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18543esac
18544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_lib_gcc___ashrdi3=yes
18560else
18561 echo "$as_me: failed program was:" >&5
18562sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ac_cv_lib_gcc___ashrdi3=no
18565fi
18566
18567rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569LIBS=$ac_check_lib_save_LIBS
18570fi
18571{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18572echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18573if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18574
18575cat >>confdefs.h <<\_ACEOF
18576#define HAVE___ASHRDI3 1
18577_ACEOF
18578
18579fi
18580
18581 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18582echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18583if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18585else
18586 ac_check_lib_save_LIBS=$LIBS
18587LIBS="-lgcc $LIBS"
18588cat >conftest.$ac_ext <<_ACEOF
18589/* confdefs.h. */
18590_ACEOF
18591cat confdefs.h >>conftest.$ac_ext
18592cat >>conftest.$ac_ext <<_ACEOF
18593/* end confdefs.h. */
18594
18595/* Override any GCC internal prototype to avoid an error.
18596 Use char because int might match the return type of a GCC
18597 builtin and then its argument prototype would still apply. */
18598#ifdef __cplusplus
18599extern "C"
18600#endif
18601char __divdi3 ();
18602int
18603main ()
18604{
18605return __divdi3 ();
18606 ;
18607 return 0;
18608}
18609_ACEOF
18610rm -f conftest.$ac_objext conftest$ac_exeext
18611if { (ac_try="$ac_link"
18612case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_lib_gcc___divdi3=yes
18645else
18646 echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649 ac_cv_lib_gcc___divdi3=no
18650fi
18651
18652rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18654LIBS=$ac_check_lib_save_LIBS
18655fi
18656{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18657echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18658if test $ac_cv_lib_gcc___divdi3 = yes; then
18659
18660cat >>confdefs.h <<\_ACEOF
18661#define HAVE___DIVDI3 1
18662_ACEOF
18663
18664fi
18665
18666 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18667echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18668if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671 ac_check_lib_save_LIBS=$LIBS
18672LIBS="-lgcc $LIBS"
18673cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679
18680/* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18683#ifdef __cplusplus
18684extern "C"
18685#endif
18686char __fixdfdi ();
18687int
18688main ()
18689{
18690return __fixdfdi ();
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext conftest$ac_exeext
18696if { (ac_try="$ac_link"
18697case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713esac
18714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723esac
18724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_lib_gcc___fixdfdi=yes
18730else
18731 echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_cv_lib_gcc___fixdfdi=no
18735fi
18736
18737rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18742echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18743if test $ac_cv_lib_gcc___fixdfdi = yes; then
18744
18745cat >>confdefs.h <<\_ACEOF
18746#define HAVE___FIXDFDI 1
18747_ACEOF
18748
18749fi
18750
18751 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18752echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18753if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18755else
18756 ac_check_lib_save_LIBS=$LIBS
18757LIBS="-lgcc $LIBS"
18758cat >conftest.$ac_ext <<_ACEOF
18759/* confdefs.h. */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h. */
18764
18765/* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18768#ifdef __cplusplus
18769extern "C"
18770#endif
18771char __fixsfdi ();
18772int
18773main ()
18774{
18775return __fixsfdi ();
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext conftest$ac_exeext
18781if { (ac_try="$ac_link"
18782case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18788 ac_status=$?
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798esac
18799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_lib_gcc___fixsfdi=yes
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 ac_cv_lib_gcc___fixsfdi=no
18820fi
18821
18822rm -f core conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18824LIBS=$ac_check_lib_save_LIBS
18825fi
18826{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18827echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18828if test $ac_cv_lib_gcc___fixsfdi = yes; then
18829
18830cat >>confdefs.h <<\_ACEOF
18831#define HAVE___FIXSFDI 1
18832_ACEOF
18833
18834fi
18835
18836 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18837echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18838if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18840else
18841 ac_check_lib_save_LIBS=$LIBS
18842LIBS="-lgcc $LIBS"
18843cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h. */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h. */
18849
18850/* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856char __floatdidf ();
18857int
18858main ()
18859{
18860return __floatdidf ();
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865rm -f conftest.$ac_objext conftest$ac_exeext
18866if { (ac_try="$ac_link"
18867case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880 { (case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_try") 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_lib_gcc___floatdidf=yes
18900else
18901 echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 ac_cv_lib_gcc___floatdidf=no
18905fi
18906
18907rm -f core conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909LIBS=$ac_check_lib_save_LIBS
18910fi
18911{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18912echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18913if test $ac_cv_lib_gcc___floatdidf = yes; then
18914
18915cat >>confdefs.h <<\_ACEOF
18916#define HAVE___FLOATDIDF 1
18917_ACEOF
18918
18919fi
18920
18921 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18922echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18923if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926 ac_check_lib_save_LIBS=$LIBS
18927LIBS="-lgcc $LIBS"
18928cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934
18935/* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941char __lshrdi3 ();
18942int
18943main ()
18944{
18945return __lshrdi3 ();
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext conftest$ac_exeext
18951if { (ac_try="$ac_link"
18952case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18958 ac_status=$?
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965 { (case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18968esac
18969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_try") 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest$ac_exeext'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978esac
18979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_lib_gcc___lshrdi3=yes
18985else
18986 echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 ac_cv_lib_gcc___lshrdi3=no
18990fi
18991
18992rm -f core conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994LIBS=$ac_check_lib_save_LIBS
18995fi
18996{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18997echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18998if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18999
19000cat >>confdefs.h <<\_ACEOF
19001#define HAVE___LSHRDI3 1
19002_ACEOF
19003
19004fi
19005
19006 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19007echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19008if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011 ac_check_lib_save_LIBS=$LIBS
19012LIBS="-lgcc $LIBS"
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19023#ifdef __cplusplus
19024extern "C"
19025#endif
19026char __moddi3 ();
19027int
19028main ()
19029{
19030return __moddi3 ();
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053esac
19054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_lib_gcc___moddi3=yes
19070else
19071 echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 ac_cv_lib_gcc___moddi3=no
19075fi
19076
19077rm -f core conftest.err conftest.$ac_objext \
19078 conftest$ac_exeext conftest.$ac_ext
19079LIBS=$ac_check_lib_save_LIBS
19080fi
19081{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19082echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19083if test $ac_cv_lib_gcc___moddi3 = yes; then
19084
19085cat >>confdefs.h <<\_ACEOF
19086#define HAVE___MODDI3 1
19087_ACEOF
19088
19089fi
19090
19091 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19092echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19093if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095else
19096 ac_check_lib_save_LIBS=$LIBS
19097LIBS="-lgcc $LIBS"
19098cat >conftest.$ac_ext <<_ACEOF
19099/* confdefs.h. */
19100_ACEOF
19101cat confdefs.h >>conftest.$ac_ext
19102cat >>conftest.$ac_ext <<_ACEOF
19103/* end confdefs.h. */
19104
19105/* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19108#ifdef __cplusplus
19109extern "C"
19110#endif
19111char __udivdi3 ();
19112int
19113main ()
19114{
19115return __udivdi3 ();
19116 ;
19117 return 0;
19118}
19119_ACEOF
19120rm -f conftest.$ac_objext conftest$ac_exeext
19121if { (ac_try="$ac_link"
19122case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125esac
19126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19135 { (case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138esac
19139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_try") 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest$ac_exeext'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148esac
19149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_gcc___udivdi3=yes
19155else
19156 echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_cv_lib_gcc___udivdi3=no
19160fi
19161
19162rm -f core conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19164LIBS=$ac_check_lib_save_LIBS
19165fi
19166{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19167echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19168if test $ac_cv_lib_gcc___udivdi3 = yes; then
19169
19170cat >>confdefs.h <<\_ACEOF
19171#define HAVE___UDIVDI3 1
19172_ACEOF
19173
19174fi
19175
19176 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19177echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19178if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19180else
19181 ac_check_lib_save_LIBS=$LIBS
19182LIBS="-lgcc $LIBS"
19183cat >conftest.$ac_ext <<_ACEOF
19184/* confdefs.h. */
19185_ACEOF
19186cat confdefs.h >>conftest.$ac_ext
19187cat >>conftest.$ac_ext <<_ACEOF
19188/* end confdefs.h. */
19189
19190/* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19193#ifdef __cplusplus
19194extern "C"
19195#endif
19196char __umoddi3 ();
19197int
19198main ()
19199{
19200return __umoddi3 ();
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext conftest$ac_exeext
19206if { (ac_try="$ac_link"
19207case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210esac
19211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_link") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223esac
19224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233esac
19234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_gcc___umoddi3=yes
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_cv_lib_gcc___umoddi3=no
19245fi
19246
19247rm -f core conftest.err conftest.$ac_objext \
19248 conftest$ac_exeext conftest.$ac_ext
19249LIBS=$ac_check_lib_save_LIBS
19250fi
19251{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19252echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19253if test $ac_cv_lib_gcc___umoddi3 = yes; then
19254
19255cat >>confdefs.h <<\_ACEOF
19256#define HAVE___UMODDI3 1
19257_ACEOF
19258
19259fi
19260
19261
19262 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19263echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19264if test "${ac_cv_lib_gcc___main+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267 ac_check_lib_save_LIBS=$LIBS
19268LIBS="-lgcc $LIBS"
19269cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
19275
19276/* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282char __main ();
19283int
19284main ()
19285{
19286return __main ();
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext conftest$ac_exeext
19292if { (ac_try="$ac_link"
19293case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_link") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19306 { (case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309esac
19310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_try") 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest$ac_exeext'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319esac
19320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_lib_gcc___main=yes
19326else
19327 echo "$as_me: failed program was:" >&5
19328sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 ac_cv_lib_gcc___main=no
19331fi
19332
19333rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335LIBS=$ac_check_lib_save_LIBS
19336fi
19337{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19338echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19339if test $ac_cv_lib_gcc___main = yes; then
19340
19341cat >>confdefs.h <<\_ACEOF
19342#define HAVE___MAIN 1
19343_ACEOF
19344
19345fi
19346
19347 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19348echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19349if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19351else
19352 ac_check_lib_save_LIBS=$LIBS
19353LIBS="-lgcc $LIBS"
19354cat >conftest.$ac_ext <<_ACEOF
19355/* confdefs.h. */
19356_ACEOF
19357cat confdefs.h >>conftest.$ac_ext
19358cat >>conftest.$ac_ext <<_ACEOF
19359/* end confdefs.h. */
19360
19361/* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19364#ifdef __cplusplus
19365extern "C"
19366#endif
19367char __cmpdi2 ();
19368int
19369main ()
19370{
19371return __cmpdi2 ();
19372 ;
19373 return 0;
19374}
19375_ACEOF
19376rm -f conftest.$ac_objext conftest$ac_exeext
19377if { (ac_try="$ac_link"
19378case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_link") 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
19390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394esac
19395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest$ac_exeext'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404esac
19405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 ac_cv_lib_gcc___cmpdi2=yes
19411else
19412 echo "$as_me: failed program was:" >&5
19413sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 ac_cv_lib_gcc___cmpdi2=no
19416fi
19417
19418rm -f core conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420LIBS=$ac_check_lib_save_LIBS
19421fi
19422{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19423echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19424if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19425
19426cat >>confdefs.h <<\_ACEOF
19427#define HAVE___CMPDI2 1
19428_ACEOF
19429
19430fi
19431
19432fi
19433
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019434if test "$llvm_cv_os_type" = "MingW" ; then
19435 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19436echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19437 cat >conftest.$ac_ext <<_ACEOF
19438#include <windows.h>
19439#include <imagehlp.h>
19440extern void foo(PENUMLOADED_MODULES_CALLBACK);
19441extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19442_ACEOF
19443rm -f conftest.$ac_objext
19444if { (ac_try="$ac_compile"
19445case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448esac
19449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_compile") 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461esac
19462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; } &&
19467 { ac_try='test -s conftest.$ac_objext'
19468 { (case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471esac
19472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_try") 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477
19478 { echo "$as_me:$LINENO: result: yes" >&5
19479echo "${ECHO_T}yes" >&6; }
19480 llvm_cv_win32_elmcb_pcstr="PCSTR"
19481
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486
19487 { echo "$as_me:$LINENO: result: no" >&5
19488echo "${ECHO_T}no" >&6; }
19489 llvm_cv_win32_elmcb_pcstr="PSTR"
19490
19491fi
19492
19493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494
19495cat >>confdefs.h <<_ACEOF
19496#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19497_ACEOF
19498
19499fi
19500
Torok Edwin871384f2010-01-26 08:50:50 +000019501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19503echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19504if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019506else
Reid Spencera773bd52006-08-04 18:18:08 +000019507 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019508ac_cpp='$CXXCPP $CPPFLAGS'
19509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019513 cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019518/* end confdefs.h. */
19519#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019520int
19521main ()
19522{
19523float f; isnan(f);
19524 ;
19525 return 0;
19526}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019527_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019528rm -f conftest.$ac_objext
19529if { (ac_try="$ac_compile"
19530case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19536 ac_status=$?
19537 grep -v '^ *+' conftest.er1 >conftest.err
19538 rm -f conftest.er1
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543 { (case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19546esac
19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_try") 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019562 ac_cv_func_isnan_in_math_h=yes
19563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569
Reid Spencera773bd52006-08-04 18:18:08 +000019570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019571 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019572ac_cpp='$CPP $CPPFLAGS'
19573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019578{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19579echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019580
19581
19582if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584cat >>confdefs.h <<\_ACEOF
19585#define HAVE_ISNAN_IN_MATH_H 1
19586_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019587
Reid Spencerabec8f92004-10-27 23:03:44 +000019588fi
19589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19591echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19592if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019594else
Reid Spencera773bd52006-08-04 18:18:08 +000019595 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019596ac_cpp='$CXXCPP $CPPFLAGS'
19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019601 cat >conftest.$ac_ext <<_ACEOF
19602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019606/* end confdefs.h. */
19607#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019608int
19609main ()
19610{
19611float f; isnan(f);
19612 ;
19613 return 0;
19614}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616rm -f conftest.$ac_objext
19617if { (ac_try="$ac_compile"
19618case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019650 ac_cv_func_isnan_in_cmath=yes
19651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019652 echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657
Reid Spencera773bd52006-08-04 18:18:08 +000019658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019659 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019660ac_cpp='$CPP $CPPFLAGS'
19661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019666{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19667echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019668
19669if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671cat >>confdefs.h <<\_ACEOF
19672#define HAVE_ISNAN_IN_CMATH 1
19673_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019674
Reid Spencerabec8f92004-10-27 23:03:44 +000019675fi
19676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019677{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19678echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19679if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019681else
Reid Spencera773bd52006-08-04 18:18:08 +000019682 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019683ac_cpp='$CXXCPP $CPPFLAGS'
19684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019688 cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019693/* end confdefs.h. */
19694#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019695int
19696main ()
19697{
19698float f; std::isnan(f);
19699 ;
19700 return 0;
19701}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019702_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019703rm -f conftest.$ac_objext
19704if { (ac_try="$ac_compile"
19705case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_compile") 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718 { (case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721esac
19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_try") 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; } &&
19727 { ac_try='test -s conftest.$ac_objext'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731esac
19732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019737 ac_cv_func_std_isnan_in_cmath=yes
19738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739 echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744
Reid Spencera773bd52006-08-04 18:18:08 +000019745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019746 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019747ac_cpp='$CPP $CPPFLAGS'
19748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019753{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19754echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019755
19756if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758cat >>confdefs.h <<\_ACEOF
19759#define HAVE_STD_ISNAN_IN_CMATH 1
19760_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019761
Reid Spencerabec8f92004-10-27 23:03:44 +000019762fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019763
19764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019765{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19766echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19767if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019769else
Reid Spencera773bd52006-08-04 18:18:08 +000019770 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019771ac_cpp='$CXXCPP $CPPFLAGS'
19772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019781/* end confdefs.h. */
19782#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019783int
19784main ()
19785{
19786float f; isinf(f);
19787 ;
19788 return 0;
19789}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019791rm -f conftest.$ac_objext
19792if { (ac_try="$ac_compile"
19793case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19796esac
19797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_compile") 2>conftest.er1
19799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
19805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19806 { (case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809esac
19810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_try") 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819esac
19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019825 ac_cv_func_isinf_in_math_h=yes
19826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019827 echo "$as_me: failed program was:" >&5
19828sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019832
Reid Spencera773bd52006-08-04 18:18:08 +000019833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019834 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019835ac_cpp='$CPP $CPPFLAGS'
19836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838ac_compiler_gnu=$ac_cv_c_compiler_gnu
19839
19840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019841{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19842echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019843
19844if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019846cat >>confdefs.h <<\_ACEOF
19847#define HAVE_ISINF_IN_MATH_H 1
19848_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019849
Reid Spencerabec8f92004-10-27 23:03:44 +000019850fi
19851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019852{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19853echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19854if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019856else
Reid Spencera773bd52006-08-04 18:18:08 +000019857 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019858ac_cpp='$CXXCPP $CPPFLAGS'
19859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019863 cat >conftest.$ac_ext <<_ACEOF
19864/* confdefs.h. */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019868/* end confdefs.h. */
19869#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019870int
19871main ()
19872{
19873float f; isinf(f);
19874 ;
19875 return 0;
19876}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019878rm -f conftest.$ac_objext
19879if { (ac_try="$ac_compile"
19880case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019912 ac_cv_func_isinf_in_cmath=yes
19913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019914 echo "$as_me: failed program was:" >&5
19915sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019919
Reid Spencera773bd52006-08-04 18:18:08 +000019920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019921 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019922ac_cpp='$CPP $CPPFLAGS'
19923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19925ac_compiler_gnu=$ac_cv_c_compiler_gnu
19926
19927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019928{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19929echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019930
19931if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019933cat >>confdefs.h <<\_ACEOF
19934#define HAVE_ISINF_IN_CMATH 1
19935_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019936
Reid Spencerabec8f92004-10-27 23:03:44 +000019937fi
19938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019939{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19940echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19941if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019943else
Reid Spencera773bd52006-08-04 18:18:08 +000019944 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019945ac_cpp='$CXXCPP $CPPFLAGS'
19946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019950 cat >conftest.$ac_ext <<_ACEOF
19951/* confdefs.h. */
19952_ACEOF
19953cat confdefs.h >>conftest.$ac_ext
19954cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019955/* end confdefs.h. */
19956#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019957int
19958main ()
19959{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019960float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019961 ;
19962 return 0;
19963}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019964_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019965rm -f conftest.$ac_objext
19966if { (ac_try="$ac_compile"
19967case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970esac
19971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_compile") 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983esac
19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
19990 { (case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993esac
19994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_try") 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019999 ac_cv_func_std_isinf_in_cmath=yes
20000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020001 echo "$as_me: failed program was:" >&5
20002sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006
Reid Spencera773bd52006-08-04 18:18:08 +000020007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020008 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020009ac_cpp='$CPP $CPPFLAGS'
20010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20012ac_compiler_gnu=$ac_cv_c_compiler_gnu
20013
20014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020015{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20016echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020017
20018if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020cat >>confdefs.h <<\_ACEOF
20021#define HAVE_STD_ISINF_IN_CMATH 1
20022_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020023
Reid Spencerabec8f92004-10-27 23:03:44 +000020024fi
20025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020026{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20027echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20028if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020030else
Reid Spencera773bd52006-08-04 18:18:08 +000020031 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020032ac_cpp='$CXXCPP $CPPFLAGS'
20033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020037 cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h. */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020042/* end confdefs.h. */
20043#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020044int
20045main ()
20046{
20047float f; finite(f);
20048 ;
20049 return 0;
20050}
Brian Gaeked59a6472004-07-21 03:33:58 +000020051_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020052rm -f conftest.$ac_objext
20053if { (ac_try="$ac_compile"
20054case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057esac
20058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20070esac
20071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080esac
20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_try") 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020086 ac_cv_func_finite_in_ieeefp_h=yes
20087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088 echo "$as_me: failed program was:" >&5
20089sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020093
Reid Spencera773bd52006-08-04 18:18:08 +000020094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020095 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020096ac_cpp='$CPP $CPPFLAGS'
20097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099ac_compiler_gnu=$ac_cv_c_compiler_gnu
20100
20101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20103echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020104
Brian Gaeke6802b552004-10-28 05:06:45 +000020105if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020107cat >>confdefs.h <<\_ACEOF
20108#define HAVE_FINITE_IN_IEEEFP_H 1
20109_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020110
Reid Spencerabec8f92004-10-27 23:03:44 +000020111fi
20112
20113
20114
Reid Spencer30fe5262007-01-20 07:48:49 +000020115if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020116
20117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020118for ac_header in stdlib.h unistd.h
20119do
20120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126fi
20127ac_res=`eval echo '${'$as_ac_Header'}'`
20128 { echo "$as_me:$LINENO: result: $ac_res" >&5
20129echo "${ECHO_T}$ac_res" >&6; }
20130else
20131 # Is the header compilable?
20132{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20133echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20134cat >conftest.$ac_ext <<_ACEOF
20135/* confdefs.h. */
20136_ACEOF
20137cat confdefs.h >>conftest.$ac_ext
20138cat >>conftest.$ac_ext <<_ACEOF
20139/* end confdefs.h. */
20140$ac_includes_default
20141#include <$ac_header>
20142_ACEOF
20143rm -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_c_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
20177 ac_header_compiler=yes
20178else
20179 echo "$as_me: failed program was:" >&5
20180sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020182 ac_header_compiler=no
20183fi
20184
20185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20187echo "${ECHO_T}$ac_header_compiler" >&6; }
20188
20189# Is the header present?
20190{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20192cat >conftest.$ac_ext <<_ACEOF
20193/* confdefs.h. */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h. */
20198#include <$ac_header>
20199_ACEOF
20200if { (ac_try="$ac_cpp conftest.$ac_ext"
20201case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20204esac
20205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20207 ac_status=$?
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } >/dev/null; then
20213 if test -s conftest.err; then
20214 ac_cpp_err=$ac_c_preproc_warn_flag
20215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20216 else
20217 ac_cpp_err=
20218 fi
20219else
20220 ac_cpp_err=yes
20221fi
20222if test -z "$ac_cpp_err"; then
20223 ac_header_preproc=yes
20224else
20225 echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_header_preproc=no
20229fi
20230
20231rm -f conftest.err conftest.$ac_ext
20232{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20233echo "${ECHO_T}$ac_header_preproc" >&6; }
20234
20235# So? What about this header?
20236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20237 yes:no: )
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20242 ac_header_preproc=yes
20243 ;;
20244 no:yes:* )
20245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20257 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020258## ------------------------------------ ##
20259## Report this to http://llvm.org/bugs/ ##
20260## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020261_ASBOX
20262 ) | sed "s/^/$as_me: WARNING: /" >&2
20263 ;;
20264esac
20265{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269else
20270 eval "$as_ac_Header=\$ac_header_preproc"
20271fi
20272ac_res=`eval echo '${'$as_ac_Header'}'`
20273 { echo "$as_me:$LINENO: result: $ac_res" >&5
20274echo "${ECHO_T}$ac_res" >&6; }
20275
20276fi
20277if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020278 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020280_ACEOF
20281
20282fi
20283
20284done
20285
20286
20287for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288do
20289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20294else
20295 cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
20301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20303#define $ac_func innocuous_$ac_func
20304
20305/* System header to define __stub macros and hopefully few prototypes,
20306 which can conflict with char $ac_func (); below.
20307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20308 <limits.h> exists even on freestanding compilers. */
20309
20310#ifdef __STDC__
20311# include <limits.h>
20312#else
20313# include <assert.h>
20314#endif
20315
20316#undef $ac_func
20317
20318/* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20321#ifdef __cplusplus
20322extern "C"
20323#endif
20324char $ac_func ();
20325/* The GNU C library defines this for functions which it implements
20326 to always fail with ENOSYS. Some functions are actually named
20327 something starting with __ and the normal name is an alias. */
20328#if defined __stub_$ac_func || defined __stub___$ac_func
20329choke me
20330#endif
20331
20332int
20333main ()
20334{
20335return $ac_func ();
20336 ;
20337 return 0;
20338}
20339_ACEOF
20340rm -f conftest.$ac_objext conftest$ac_exeext
20341if { (ac_try="$ac_link"
20342case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20345esac
20346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_link") 2>conftest.er1
20348 ac_status=$?
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355 { (case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358esac
20359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_try") 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest$ac_exeext'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 eval "$as_ac_var=yes"
20375else
20376 echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 eval "$as_ac_var=no"
20380fi
20381
20382rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext conftest.$ac_ext
20384fi
20385ac_res=`eval echo '${'$as_ac_var'}'`
20386 { echo "$as_me:$LINENO: result: $ac_res" >&5
20387echo "${ECHO_T}$ac_res" >&6; }
20388if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020391_ACEOF
20392
20393fi
20394done
20395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396{ echo "$as_me:$LINENO: checking for working mmap" >&5
20397echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20398if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020401 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020402 ac_cv_func_mmap_fixed_mapped=no
20403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404 cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h. */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020410$ac_includes_default
20411/* malloc might have been renamed as rpl_malloc. */
20412#undef malloc
20413
20414/* Thanks to Mike Haertel and Jim Avera for this test.
20415 Here is a matrix of mmap possibilities:
20416 mmap private not fixed
20417 mmap private fixed at somewhere currently unmapped
20418 mmap private fixed at somewhere already mapped
20419 mmap shared not fixed
20420 mmap shared fixed at somewhere currently unmapped
20421 mmap shared fixed at somewhere already mapped
20422 For private mappings, we should verify that changes cannot be read()
20423 back from the file, nor mmap's back from the file at a different
20424 address. (There have been systems where private was not correctly
20425 implemented like the infamous i386 svr4.0, and systems where the
20426 VM page cache was not coherent with the file system buffer cache
20427 like early versions of FreeBSD and possibly contemporary NetBSD.)
20428 For shared mappings, we should conversely verify that changes get
20429 propagated back to all the places they're supposed to be.
20430
20431 Grep wants private fixed already mapped.
20432 The main things grep needs to know about mmap are:
20433 * does it exist and is it safe to write into the mmap'd area
20434 * how to use it (BSD variants) */
20435
20436#include <fcntl.h>
20437#include <sys/mman.h>
20438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020440char *malloc ();
20441#endif
20442
20443/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444#if !HAVE_GETPAGESIZE
20445/* Assume that all systems that can run configure have sys/param.h. */
20446# if !HAVE_SYS_PARAM_H
20447# define HAVE_SYS_PARAM_H 1
20448# endif
20449
John Criswell7a73b802003-06-30 21:59:07 +000020450# ifdef _SC_PAGESIZE
20451# define getpagesize() sysconf(_SC_PAGESIZE)
20452# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020454# include <sys/param.h>
20455# ifdef EXEC_PAGESIZE
20456# define getpagesize() EXEC_PAGESIZE
20457# else /* no EXEC_PAGESIZE */
20458# ifdef NBPG
20459# define getpagesize() NBPG * CLSIZE
20460# ifndef CLSIZE
20461# define CLSIZE 1
20462# endif /* no CLSIZE */
20463# else /* no NBPG */
20464# ifdef NBPC
20465# define getpagesize() NBPC
20466# else /* no NBPC */
20467# ifdef PAGESIZE
20468# define getpagesize() PAGESIZE
20469# endif /* PAGESIZE */
20470# endif /* no NBPC */
20471# endif /* no NBPG */
20472# endif /* no EXEC_PAGESIZE */
20473# else /* no HAVE_SYS_PARAM_H */
20474# define getpagesize() 8192 /* punt totally */
20475# endif /* no HAVE_SYS_PARAM_H */
20476# endif /* no _SC_PAGESIZE */
20477
20478#endif /* no HAVE_GETPAGESIZE */
20479
20480int
20481main ()
20482{
20483 char *data, *data2, *data3;
20484 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020486
20487 pagesize = getpagesize ();
20488
20489 /* First, make a file with some known garbage in it. */
20490 data = (char *) malloc (pagesize);
20491 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020492 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020493 for (i = 0; i < pagesize; ++i)
20494 *(data + i) = rand ();
20495 umask (0);
20496 fd = creat ("conftest.mmap", 0600);
20497 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020499 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020500 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020501 close (fd);
20502
20503 /* Next, try to mmap the file at a fixed address which already has
20504 something else allocated at it. If we can, also make sure that
20505 we see the same garbage. */
20506 fd = open ("conftest.mmap", O_RDWR);
20507 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020508 return 1;
20509 data2 = (char *) malloc (2 * pagesize);
20510 if (!data2)
20511 return 1;
20512 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020513 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020514 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020516 for (i = 0; i < pagesize; ++i)
20517 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020519
20520 /* Finally, make sure that changes to the mapped area do not
20521 percolate back to the file as seen by read(). (This is a bug on
20522 some variants of i386 svr4.0.) */
20523 for (i = 0; i < pagesize; ++i)
20524 *(data2 + i) = *(data2 + i) + 1;
20525 data3 = (char *) malloc (pagesize);
20526 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020527 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020528 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020529 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020530 for (i = 0; i < pagesize; ++i)
20531 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020533 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020534 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020535}
20536_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537rm -f conftest$ac_exeext
20538if { (ac_try="$ac_link"
20539case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020557 ac_cv_func_mmap_fixed_mapped=yes
20558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559 echo "$as_me: program exited with status $ac_status" >&5
20560echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
20562
20563( exit $ac_status )
20564ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566rm -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 +000020567fi
Reid Spencera773bd52006-08-04 18:18:08 +000020568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569
John Criswell7a73b802003-06-30 21:59:07 +000020570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20572echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020573if test $ac_cv_func_mmap_fixed_mapped = yes; then
20574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575cat >>confdefs.h <<\_ACEOF
20576#define HAVE_MMAP 1
20577_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020578
20579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020580rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020582 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20583echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20584if test "${ac_cv_func_mmap_file+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020586else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020587 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020588ac_cpp='$CPP $CPPFLAGS'
20589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020594 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598 /* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020603
John Criswell7a73b802003-06-30 21:59:07 +000020604#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020605#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020606#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020607
20608int
20609main ()
20610{
John Criswell7a73b802003-06-30 21:59:07 +000020611
20612 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020613 fd = creat ("foo",0777);
20614 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20615 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020616 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020617 ;
20618 return 0;
20619}
John Criswell7a73b802003-06-30 21:59:07 +000020620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621rm -f conftest$ac_exeext
20622if { (ac_try="$ac_link"
20623case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20632 { (case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20635esac
20636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_try") 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020641 ac_cv_func_mmap_file=yes
20642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643 echo "$as_me: program exited with status $ac_status" >&5
20644echo "$as_me: failed program was:" >&5
20645sed 's/^/| /' conftest.$ac_ext >&5
20646
20647( exit $ac_status )
20648ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650rm -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 +000020651fi
Reid Spencera773bd52006-08-04 18:18:08 +000020652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653
John Criswell7a73b802003-06-30 21:59:07 +000020654 ac_ext=c
20655ac_cpp='$CPP $CPPFLAGS'
20656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659
20660
20661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20663echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020664if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666cat >>confdefs.h <<\_ACEOF
20667#define HAVE_MMAP_FILE
20668_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020669
20670 MMAP_FILE=yes
20671
20672fi
20673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20675echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20676if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020678else
Reid Spencer582a23c2004-12-29 07:07:57 +000020679 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020680 ac_cv_need_dev_zero_for_mmap=yes
20681 else
20682 ac_cv_need_dev_zero_for_mmap=no
20683 fi
20684
20685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20687echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020688if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020690cat >>confdefs.h <<\_ACEOF
20691#define NEED_DEV_ZERO_FOR_MMAP 1
20692_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020693
20694fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020695
Reid Spencer30fe5262007-01-20 07:48:49 +000020696 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20697 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20699echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020700 fi
20701 if test "$ac_cv_func_mmap_file" = "no"
20702 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20704echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020705 fi
John Criswellb13092b2003-07-22 21:00:24 +000020706fi
John Criswell7a73b802003-06-30 21:59:07 +000020707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20709echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020710ac_ext=cpp
20711ac_cpp='$CXXCPP $CPPFLAGS'
20712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716cat >conftest.$ac_ext <<_ACEOF
20717/* confdefs.h. */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020721/* end confdefs.h. */
20722int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020723 volatile unsigned long val = 1;
20724 __sync_synchronize();
20725 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020726 __sync_add_and_fetch(&val, 1);
20727 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020728 return 0;
20729 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020730
20731_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020732rm -f conftest.$ac_objext conftest$ac_exeext
20733if { (ac_try="$ac_link"
20734case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737esac
20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_link") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20750esac
20751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; } &&
20756 { ac_try='test -s conftest$ac_exeext'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760esac
20761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020766 ac_ext=c
20767ac_cpp='$CPP $CPPFLAGS'
20768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20770ac_compiler_gnu=$ac_cv_c_compiler_gnu
20771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772 { echo "$as_me:$LINENO: result: yes" >&5
20773echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020775cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020776#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020778
Owen Andersond4b272b2009-05-18 23:58:51 +000020779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780 echo "$as_me: failed program was:" >&5
20781sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783 { echo "$as_me:$LINENO: result: no" >&5
20784echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020787#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020788_ACEOF
20789
20790 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20791echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020793
Owen Andersond4b272b2009-05-18 23:58:51 +000020794rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020795 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020796
John Criswell7a73b802003-06-30 21:59:07 +000020797
Nick Lewycky4372e692009-09-29 06:18:23 +000020798if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20800echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20801if test "${llvm_cv_linux_mixed+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020803else
20804 ac_ext=c
20805ac_cpp='$CPP $CPPFLAGS'
20806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808ac_compiler_gnu=$ac_cv_c_compiler_gnu
20809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810 cat >conftest.$ac_ext <<_ACEOF
20811/* confdefs.h. */
20812_ACEOF
20813cat confdefs.h >>conftest.$ac_ext
20814cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020815/* end confdefs.h. */
20816#ifndef __x86_64__
20817 error: Not x86-64 even if uname says so!
20818 #endif
20819
20820int
20821main ()
20822{
20823
20824 ;
20825 return 0;
20826}
20827_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828rm -f conftest.$ac_objext
20829if { (ac_try="$ac_compile"
20830case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833esac
20834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_compile") 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20843 { (case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20846esac
20847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_try") 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest.$ac_objext'
20853 { (case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20856esac
20857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_try") 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020862 llvm_cv_linux_mixed=no
20863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864 echo "$as_me: failed program was:" >&5
20865sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869
Nick Lewycky4372e692009-09-29 06:18:23 +000020870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871 ac_ext=c
20872ac_cpp='$CPP $CPPFLAGS'
20873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875ac_compiler_gnu=$ac_cv_c_compiler_gnu
20876
20877
20878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020879{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20880echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020881
20882 if test "$llvm_cv_linux_mixed" = "yes"; then
20883 llvm_cv_target_arch="x86"
20884 ARCH="x86"
20885 fi
20886fi
20887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888
Reid Spencer9372f152007-07-30 20:13:24 +000020889for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020890do
20891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20892{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20896else
20897 cat >conftest.$ac_ext <<_ACEOF
20898/* confdefs.h. */
20899_ACEOF
20900cat confdefs.h >>conftest.$ac_ext
20901cat >>conftest.$ac_ext <<_ACEOF
20902/* end confdefs.h. */
20903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20905#define $ac_func innocuous_$ac_func
20906
20907/* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func (); below.
20909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910 <limits.h> exists even on freestanding compilers. */
20911
20912#ifdef __STDC__
20913# include <limits.h>
20914#else
20915# include <assert.h>
20916#endif
20917
20918#undef $ac_func
20919
20920/* Override any GCC internal prototype to avoid an error.
20921 Use char because int might match the return type of a GCC
20922 builtin and then its argument prototype would still apply. */
20923#ifdef __cplusplus
20924extern "C"
20925#endif
20926char $ac_func ();
20927/* The GNU C library defines this for functions which it implements
20928 to always fail with ENOSYS. Some functions are actually named
20929 something starting with __ and the normal name is an alias. */
20930#if defined __stub_$ac_func || defined __stub___$ac_func
20931choke me
20932#endif
20933
20934int
20935main ()
20936{
20937return $ac_func ();
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942rm -f conftest.$ac_objext conftest$ac_exeext
20943if { (ac_try="$ac_link"
20944case "(($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_link") 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } &&
20956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20957 { (case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960esac
20961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_try") 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest$ac_exeext'
20967 { (case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20970esac
20971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_try") 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 eval "$as_ac_var=yes"
20977else
20978 echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 eval "$as_ac_var=no"
20982fi
20983
20984rm -f core conftest.err conftest.$ac_objext \
20985 conftest$ac_exeext conftest.$ac_ext
20986fi
20987ac_res=`eval echo '${'$as_ac_var'}'`
20988 { echo "$as_me:$LINENO: result: $ac_res" >&5
20989echo "${ECHO_T}$ac_res" >&6; }
20990if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020991 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020993_ACEOF
20994
20995fi
20996done
20997
20998
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020999SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021000
21001
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021002SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21003
21004
Jeff Cohen28783c32007-01-12 18:22:38 +000021005if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021006 prefix="/usr/local"
21007fi
Reid Spencere9de0912004-08-20 09:03:57 +000021008eval LLVM_PREFIX="${prefix}";
21009eval LLVM_BINDIR="${prefix}/bin";
21010eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021011eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021012eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021013eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021014eval LLVM_INCLUDEDIR="${prefix}/include";
21015eval LLVM_INFODIR="${prefix}/info";
21016eval LLVM_MANDIR="${prefix}/man";
21017LLVM_CONFIGTIME=`date`
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021029if test "${ENABLE_TIMESTAMPS}" = "0"; then
21030 LLVM_CONFIGTIME="(timestamp not enabled)"
21031fi
21032
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021033
Reid Spencere9de0912004-08-20 09:03:57 +000021034cat >>confdefs.h <<_ACEOF
21035#define LLVM_PREFIX "$LLVM_PREFIX"
21036_ACEOF
21037
21038
21039cat >>confdefs.h <<_ACEOF
21040#define LLVM_BINDIR "$LLVM_BINDIR"
21041_ACEOF
21042
21043
21044cat >>confdefs.h <<_ACEOF
21045#define LLVM_LIBDIR "$LLVM_LIBDIR"
21046_ACEOF
21047
21048
21049cat >>confdefs.h <<_ACEOF
21050#define LLVM_DATADIR "$LLVM_DATADIR"
21051_ACEOF
21052
21053
21054cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021055#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021056_ACEOF
21057
21058
21059cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021060#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021061_ACEOF
21062
21063
21064cat >>confdefs.h <<_ACEOF
21065#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21066_ACEOF
21067
21068
21069cat >>confdefs.h <<_ACEOF
21070#define LLVM_INFODIR "$LLVM_INFODIR"
21071_ACEOF
21072
21073
21074cat >>confdefs.h <<_ACEOF
21075#define LLVM_MANDIR "$LLVM_MANDIR"
21076_ACEOF
21077
21078
21079cat >>confdefs.h <<_ACEOF
21080#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21081_ACEOF
21082
21083
Eric Christopher790e11c2007-12-01 00:34:39 +000021084cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021085#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021086_ACEOF
21087
21088
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021089if test "$BINDINGS_TO_BUILD" = auto ; then
21090 BINDINGS_TO_BUILD=""
21091 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21092 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21093 fi
21094fi
21095BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21096
21097
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021098ALL_BINDINGS=ocaml
21099
21100
Gordon Henriksenf0915682007-10-02 16:42:22 +000021101binding_prereqs_failed=0
21102for a_binding in $BINDINGS_TO_BUILD ; do
21103 case "$a_binding" in
21104 ocaml)
21105 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021106 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21107echo "$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 +000021108 binding_prereqs_failed=1
21109 fi
21110 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21112echo "$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 +000021113 binding_prereqs_failed=1
21114 fi
21115 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021116 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21117echo "$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 +000021118 fi
21119 if test "x$with_ocaml_libdir" != xauto ; then
21120 OCAML_LIBDIR=$with_ocaml_libdir
21121
21122 else
21123 ocaml_stdlib="`"$OCAMLC" -where`"
21124 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21125 then
21126 # ocaml stdlib is beneath our prefix; use stdlib
21127 OCAML_LIBDIR=$ocaml_stdlib
21128
21129 else
21130 # ocaml stdlib is outside our prefix; use libdir/ocaml
21131 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21132
21133 fi
21134 fi
21135 ;;
21136 esac
21137done
21138if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021139 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21140echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21141 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021142fi
21143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021144{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21145echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21146if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021148else
21149 ac_ext=cpp
21150ac_cpp='$CXXCPP $CPPFLAGS'
21151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021156 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021157 cat >conftest.$ac_ext <<_ACEOF
21158/* confdefs.h. */
21159_ACEOF
21160cat confdefs.h >>conftest.$ac_ext
21161cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021162/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021163template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021164int
21165main ()
21166{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021167X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021168 ;
21169 return 0;
21170}
21171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021172rm -f conftest.$ac_objext
21173if { (ac_try="$ac_compile"
21174case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21177esac
21178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21187 { (case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190esac
21191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_try") 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21200esac
21201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_try") 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021206 llvm_cv_cxx_visibility_inlines_hidden=yes
21207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208 echo "$as_me: failed program was:" >&5
21209sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 CXXFLAGS="$oldcxxflags"
21216 ac_ext=c
21217ac_cpp='$CPP $CPPFLAGS'
21218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220ac_compiler_gnu=$ac_cv_c_compiler_gnu
21221
21222
21223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021224{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21225echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021226if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21227 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21228
21229else
21230 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21231
21232fi
21233
Gordon Henriksenf0915682007-10-02 16:42:22 +000021234
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021235if test "$llvm_cv_link_use_r" = "yes" ; then
21236 RPATH="-Wl,-R"
21237else
21238 RPATH="-Wl,-rpath"
21239fi
21240
21241
21242if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21243 RDYNAMIC="-Wl,-export-dynamic"
21244else
21245 RDYNAMIC=""
21246fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021247
21248
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021249
Eric Christophera1cba682010-08-08 02:44:25 +000021250ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021251
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021252
21253
21254
21255
21256
Douglas Gregor1555a232009-06-16 20:12:29 +000021257ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21258
21259ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21260
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021261ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21262
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021263ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21264
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021265ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021266
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021267
Reid Spencera773bd52006-08-04 18:18:08 +000021268ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021269
Eric Christopher360fa9a2011-10-26 00:42:12 +000021270
Reid Spencerea949cf2006-08-16 00:45:38 +000021271ac_config_files="$ac_config_files llvm.spec"
21272
21273
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021274ac_config_files="$ac_config_files docs/doxygen.cfg"
21275
Eric Christopher63c09512012-02-02 00:16:55 +000021276
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021277if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021278 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021279fi
Eric Christopher63c09512012-02-02 00:16:55 +000021280if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021281 configh="include/clang/Config/config.h"
21282 doxy="docs/doxygen.cfg"
21283 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021284
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021285 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021286
21287fi
21288
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021289ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021290
Eric Christopher360fa9a2011-10-26 00:42:12 +000021291
Reid Spencera773bd52006-08-04 18:18:08 +000021292ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021293
Reid Spencera773bd52006-08-04 18:18:08 +000021294ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021295
21296
Reid Spencera773bd52006-08-04 18:18:08 +000021297ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021298
21299
Reid Spencera773bd52006-08-04 18:18:08 +000021300ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021301
21302
Reid Spencera773bd52006-08-04 18:18:08 +000021303ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021304
21305
Reid Spencer8b2e1412006-11-17 03:32:33 +000021306ac_config_commands="$ac_config_commands runtime/Makefile"
21307
21308
Reid Spencera773bd52006-08-04 18:18:08 +000021309ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021310
21311
Reid Spencera773bd52006-08-04 18:18:08 +000021312ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021313
21314
Bill Wendlingf24eb392009-01-04 23:12:30 +000021315ac_config_commands="$ac_config_commands unittests/Makefile"
21316
21317
Reid Spencera773bd52006-08-04 18:18:08 +000021318ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021319
21320
Reid Spencera773bd52006-08-04 18:18:08 +000021321ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021322
21323
Reid Spencera773bd52006-08-04 18:18:08 +000021324ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
21326
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021327ac_config_commands="$ac_config_commands bindings/Makefile"
21328
21329
21330ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21331
21332
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021333
John Criswell7a73b802003-06-30 21:59:07 +000021334cat >confcache <<\_ACEOF
21335# This file is a shell script that caches the results of configure
21336# tests run on this system so they can be shared between configure
21337# scripts and configure runs, see configure's option --config-cache.
21338# It is not useful on other systems. If it contains results you don't
21339# want to keep, you may remove or edit it.
21340#
21341# config.status only pays attention to the cache file if you give it
21342# the --recheck option to rerun configure.
21343#
John Criswell0c38eaf2003-09-10 15:17:25 +000021344# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021345# loading this file, other *unset* `ac_cv_foo' will be assigned the
21346# following values.
21347
21348_ACEOF
21349
21350# The following way of writing the cache mishandles newlines in values,
21351# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021352# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021353# Ultrix sh set writes to stderr and can't be redirected directly,
21354# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021355(
21356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21357 eval ac_val=\$$ac_var
21358 case $ac_val in #(
21359 *${as_nl}*)
21360 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21362echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021363 esac
21364 case $ac_var in #(
21365 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021367 esac ;;
21368 esac
21369 done
21370
John Criswell7a73b802003-06-30 21:59:07 +000021371 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21373 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374 # `set' does not quote correctly, so add quotes (double-quote
21375 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021376 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021377 "s/'/'\\\\''/g;
21378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021379 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021380 *)
21381 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021384 esac |
21385 sort
21386) |
John Criswell7a73b802003-06-30 21:59:07 +000021387 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021388 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021389 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021390 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21392 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21394 :end' >>confcache
21395if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21396 if test -w "$cache_file"; then
21397 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21399echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021400 cat confcache >$cache_file
21401 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021402 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21403echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021404 fi
21405fi
21406rm -f confcache
21407
21408test "x$prefix" = xNONE && prefix=$ac_default_prefix
21409# Let make expand exec_prefix.
21410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21411
John Criswell7a73b802003-06-30 21:59:07 +000021412DEFS=-DHAVE_CONFIG_H
21413
John Criswell0c38eaf2003-09-10 15:17:25 +000021414ac_libobjs=
21415ac_ltlibobjs=
21416for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21417 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21421 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021422 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21423 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021424done
21425LIBOBJS=$ac_libobjs
21426
21427LTLIBOBJS=$ac_ltlibobjs
21428
21429
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021430if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21432Usually this means the macro was only invoked conditionally." >&5
21433echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21434Usually this means the macro was only invoked conditionally." >&2;}
21435 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021436fi
21437if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021438 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21439Usually this means the macro was only invoked conditionally." >&5
21440echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21441Usually this means the macro was only invoked conditionally." >&2;}
21442 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021443fi
John Criswell7a73b802003-06-30 21:59:07 +000021444
21445: ${CONFIG_STATUS=./config.status}
21446ac_clean_files_save=$ac_clean_files
21447ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21449echo "$as_me: creating $CONFIG_STATUS" >&6;}
21450cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021451#! $SHELL
21452# Generated by $as_me.
21453# Run this file to recreate the current configuration.
21454# Compiler output produced by configure, useful for debugging
21455# configure, is in config.log if it exists.
21456
21457debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021458ac_cs_recheck=false
21459ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021460SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021463cat >>$CONFIG_STATUS <<\_ACEOF
21464## --------------------- ##
21465## M4sh Initialization. ##
21466## --------------------- ##
21467
21468# Be Bourne compatible
21469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021470 emulate sh
21471 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021473 # is contrary to our usage. Disable this feature.
21474 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021475 setopt NO_GLOB_SUBST
21476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021479BIN_SH=xpg4; export BIN_SH # for Tru64
21480DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021481
John Criswell7a73b802003-06-30 21:59:07 +000021482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483# PATH needs CR
21484# Avoid depending upon Character Ranges.
21485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21488as_cr_digits='0123456789'
21489as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021490
21491# The user is always right.
21492if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493 echo "#! /bin/sh" >conf$$.sh
21494 echo "exit 0" >>conf$$.sh
21495 chmod +x conf$$.sh
21496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21497 PATH_SEPARATOR=';'
21498 else
21499 PATH_SEPARATOR=:
21500 fi
21501 rm -f conf$$.sh
21502fi
21503
21504# Support unset when possible.
21505if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21506 as_unset=unset
21507else
21508 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021509fi
John Criswell7a73b802003-06-30 21:59:07 +000021510
Reid Spencera773bd52006-08-04 18:18:08 +000021511
21512# IFS
21513# We need space, tab and new line, in precisely that order. Quoting is
21514# there to prevent editors from complaining about space-tab.
21515# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21516# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517as_nl='
21518'
Reid Spencera773bd52006-08-04 18:18:08 +000021519IFS=" "" $as_nl"
21520
21521# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021523 *[\\/]* ) as_myself=$0 ;;
21524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021525for as_dir in $PATH
21526do
21527 IFS=$as_save_IFS
21528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21530done
Reid Spencera773bd52006-08-04 18:18:08 +000021531IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021532
Reid Spencera773bd52006-08-04 18:18:08 +000021533 ;;
21534esac
21535# We did not find ourselves, most probably we were run as `sh COMMAND'
21536# in which case we are not to be found in the path.
21537if test "x$as_myself" = x; then
21538 as_myself=$0
21539fi
21540if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21542 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021543fi
21544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545# Work around bugs in pre-3.0 UWIN ksh.
21546for as_var in ENV MAIL MAILPATH
21547do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021548done
21549PS1='$ '
21550PS2='> '
21551PS4='+ '
21552
21553# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554for as_var in \
21555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21557 LC_TELEPHONE LC_TIME
21558do
21559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21560 eval $as_var=C; export $as_var
21561 else
21562 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021563 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564done
Torok Edwin871384f2010-01-26 08:50:50 +000021565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021566# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021567if expr a : '\(a\)' >/dev/null 2>&1 &&
21568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21569 as_expr=expr
21570else
21571 as_expr=false
21572fi
21573
21574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21575 as_basename=basename
21576else
21577 as_basename=false
21578fi
21579
21580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021582as_me=`$as_basename -- "$0" ||
21583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21584 X"$0" : 'X\(//\)$' \| \
21585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021587 sed '/^.*\/\([^/][^/]*\)\/*$/{
21588 s//\1/
21589 q
21590 }
21591 /^X\/\(\/\/\)$/{
21592 s//\1/
21593 q
21594 }
21595 /^X\/\(\/\).*/{
21596 s//\1/
21597 q
21598 }
21599 s/.*/./; q'`
21600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021601# CDPATH.
21602$as_unset CDPATH
21603
21604
21605
21606 as_lineno_1=$LINENO
21607 as_lineno_2=$LINENO
21608 test "x$as_lineno_1" != "x$as_lineno_2" &&
21609 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21610
21611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21612 # uniformly replaced by the line number. The first 'sed' inserts a
21613 # line-number line after each line using $LINENO; the second 'sed'
21614 # does the real work. The second script uses 'N' to pair each
21615 # line-number line with the line containing $LINENO, and appends
21616 # trailing '-' during substitution so that $LINENO is not a special
21617 # case at line end.
21618 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21619 # scripts with optimization help from Paolo Bonzini. Blame Lee
21620 # E. McMahon (1931-1989) for sed's syntax. :-)
21621 sed -n '
21622 p
21623 /[$]LINENO/=
21624 ' <$as_myself |
21625 sed '
21626 s/[$]LINENO.*/&-/
21627 t lineno
21628 b
21629 :lineno
21630 N
21631 :loop
21632 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21633 t loop
21634 s/-\n.*//
21635 ' >$as_me.lineno &&
21636 chmod +x "$as_me.lineno" ||
21637 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21638 { (exit 1); exit 1; }; }
21639
21640 # Don't try to exec as it changes $[0], causing all sort of problems
21641 # (the dirname of $[0] is not the place where we might find the
21642 # original and so on. Autoconf is especially sensitive to this).
21643 . "./$as_me.lineno"
21644 # Exit status is that of the last command.
21645 exit
21646}
21647
21648
21649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21650 as_dirname=dirname
21651else
21652 as_dirname=false
21653fi
Reid Spencera773bd52006-08-04 18:18:08 +000021654
21655ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021656case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021657-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021659 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021661 esac;;
21662*)
21663 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021664esac
21665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666if expr a : '\(a\)' >/dev/null 2>&1 &&
21667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21668 as_expr=expr
21669else
21670 as_expr=false
21671fi
21672
John Criswell7a73b802003-06-30 21:59:07 +000021673rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021674if test -d conf$$.dir; then
21675 rm -f conf$$.dir/conf$$.file
21676else
21677 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680echo >conf$$.file
21681if ln -s conf$$.file conf$$ 2>/dev/null; then
21682 as_ln_s='ln -s'
21683 # ... but there are two gotchas:
21684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21686 # In both cases, we have to default to `cp -p'.
21687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021688 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689elif ln conf$$.file conf$$ 2>/dev/null; then
21690 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021691else
21692 as_ln_s='cp -p'
21693fi
Reid Spencera773bd52006-08-04 18:18:08 +000021694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21695rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021696
John Criswell0c38eaf2003-09-10 15:17:25 +000021697if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021699else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021700 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021701 as_mkdir_p=false
21702fi
21703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021704# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21705# systems may use methods other than mode bits to determine executability.
21706cat >conf$$.file <<_ASEOF
21707#! /bin/sh
21708exit 0
21709_ASEOF
21710chmod +x conf$$.file
21711if test -x conf$$.file >/dev/null 2>&1; then
21712 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021717
21718# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021720
21721# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021723
21724
John Criswell7a73b802003-06-30 21:59:07 +000021725exec 6>&1
21726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021728# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021729# values after options handling.
21730ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021731This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021733
21734 CONFIG_FILES = $CONFIG_FILES
21735 CONFIG_HEADERS = $CONFIG_HEADERS
21736 CONFIG_LINKS = $CONFIG_LINKS
21737 CONFIG_COMMANDS = $CONFIG_COMMANDS
21738 $ $0 $@
21739
Reid Spencera773bd52006-08-04 18:18:08 +000021740on `(hostname || uname -n) 2>/dev/null | sed 1q`
21741"
21742
John Criswell7a73b802003-06-30 21:59:07 +000021743_ACEOF
21744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021746# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021747config_files="$ac_config_files"
21748config_headers="$ac_config_headers"
21749config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021750
Reid Spencera773bd52006-08-04 18:18:08 +000021751_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021753cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021754ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755\`$as_me' instantiates files from templates according to the
21756current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021759
21760 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 -V, --version print version number, then exit
21762 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021763 -d, --debug don't remove temporary files
21764 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765 --file=FILE[:TEMPLATE]
21766 instantiate the configuration file FILE
21767 --header=FILE[:TEMPLATE]
21768 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021769
21770Configuration files:
21771$config_files
21772
21773Configuration headers:
21774$config_headers
21775
John Criswellc764fbc2003-09-06 15:17:13 +000021776Configuration commands:
21777$config_commands
21778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021779Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021780
Reid Spencera773bd52006-08-04 18:18:08 +000021781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021783ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021784LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785configured by $0, generated by GNU Autoconf 2.60,
21786 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021789This config.status script is free software; the Free Software Foundation
21790gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021791
21792ac_pwd='$ac_pwd'
21793srcdir='$srcdir'
21794INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021795_ACEOF
21796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797cat >>$CONFIG_STATUS <<\_ACEOF
21798# If no file are specified by the user, then we need to provide default
21799# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021800ac_need_defaults=:
21801while test $# != 0
21802do
21803 case $1 in
21804 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021807 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021809 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021810 ac_option=$1
21811 ac_optarg=$2
21812 ac_shift=shift
21813 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021814 esac
21815
John Criswell0c38eaf2003-09-10 15:17:25 +000021816 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021817 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21819 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021822 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021823 debug=: ;;
21824 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021825 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021827 ac_need_defaults=false;;
21828 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021829 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021831 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021832 --he | --h)
21833 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021834 { echo "$as_me: error: ambiguous option: $1
21835Try \`$0 --help' for more information." >&2
21836 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021837 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21841 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021842
21843 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844 -*) { echo "$as_me: error: unrecognized option: $1
21845Try \`$0 --help' for more information." >&2
21846 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021849 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021850
21851 esac
21852 shift
21853done
21854
John Criswell0c38eaf2003-09-10 15:17:25 +000021855ac_configure_extra_args=
21856
21857if $ac_cs_silent; then
21858 exec 6>/dev/null
21859 ac_configure_extra_args="$ac_configure_extra_args --silent"
21860fi
21861
21862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021864if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21866 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021867 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021869fi
21870
John Criswell7a73b802003-06-30 21:59:07 +000021871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021873exec 5>>config.log
21874{
21875 echo
21876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21877## Running $as_me. ##
21878_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021880} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021881
Reid Spencera773bd52006-08-04 18:18:08 +000021882_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021884#
Reid Spencera773bd52006-08-04 18:18:08 +000021885# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021886#
Reid Spencerc0682832005-02-24 19:05:19 +000021887llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021888
21889_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021892
21893# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021894for ac_config_target in $ac_config_targets
21895do
Reid Spencera773bd52006-08-04 18:18:08 +000021896 case $ac_config_target in
21897 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021898 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021899 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21900 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021901 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021902 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021903 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021904 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021905 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021906 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021907 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21908 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021909 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021910 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21911 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21912 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21913 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21914 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021915 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021916 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21917 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021918 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021919 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21920 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21921 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021922 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21923 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21926echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21927 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021928 esac
21929done
21930
Reid Spencera773bd52006-08-04 18:18:08 +000021931
John Criswell7a73b802003-06-30 21:59:07 +000021932# If the user did not use the arguments to specify the items to instantiate,
21933# then the envvar interface is used. Set only those that are not.
21934# We use the long form for the default assignment because of an extremely
21935# bizarre bug on SunOS 4.1.3.
21936if $ac_need_defaults; then
21937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021940fi
21941
John Criswell0c38eaf2003-09-10 15:17:25 +000021942# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021943# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021944# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021945# Hook for its removal unless debugging.
21946# Note that there is a small window in which the directory will not be cleaned:
21947# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021948$debug ||
21949{
Reid Spencera773bd52006-08-04 18:18:08 +000021950 tmp=
21951 trap 'exit_status=$?
21952 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21953' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021955}
John Criswell7a73b802003-06-30 21:59:07 +000021956# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021957
John Criswell7a73b802003-06-30 21:59:07 +000021958{
Reid Spencera773bd52006-08-04 18:18:08 +000021959 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021960 test -n "$tmp" && test -d "$tmp"
21961} ||
21962{
Reid Spencera773bd52006-08-04 18:18:08 +000021963 tmp=./conf$$-$RANDOM
21964 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021965} ||
21966{
21967 echo "$me: cannot create a temporary directory in ." >&2
21968 { (exit 1); exit 1; }
21969}
John Criswell7a73b802003-06-30 21:59:07 +000021970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971#
21972# Set up the sed scripts for CONFIG_FILES section.
21973#
21974
21975# No need to generate the scripts if there are no CONFIG_FILES.
21976# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021977if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021978
21979_ACEOF
21980
Reid Spencera773bd52006-08-04 18:18:08 +000021981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982
Reid Spencera773bd52006-08-04 18:18:08 +000021983ac_delim='%!_!# '
21984for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985 cat >conf$$subs.sed <<_ACEOF
21986SHELL!$SHELL$ac_delim
21987PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21988PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21989PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21990PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21991PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21992PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21993exec_prefix!$exec_prefix$ac_delim
21994prefix!$prefix$ac_delim
21995program_transform_name!$program_transform_name$ac_delim
21996bindir!$bindir$ac_delim
21997sbindir!$sbindir$ac_delim
21998libexecdir!$libexecdir$ac_delim
21999datarootdir!$datarootdir$ac_delim
22000datadir!$datadir$ac_delim
22001sysconfdir!$sysconfdir$ac_delim
22002sharedstatedir!$sharedstatedir$ac_delim
22003localstatedir!$localstatedir$ac_delim
22004includedir!$includedir$ac_delim
22005oldincludedir!$oldincludedir$ac_delim
22006docdir!$docdir$ac_delim
22007infodir!$infodir$ac_delim
22008htmldir!$htmldir$ac_delim
22009dvidir!$dvidir$ac_delim
22010pdfdir!$pdfdir$ac_delim
22011psdir!$psdir$ac_delim
22012libdir!$libdir$ac_delim
22013localedir!$localedir$ac_delim
22014mandir!$mandir$ac_delim
22015DEFS!$DEFS$ac_delim
22016ECHO_C!$ECHO_C$ac_delim
22017ECHO_N!$ECHO_N$ac_delim
22018ECHO_T!$ECHO_T$ac_delim
22019LIBS!$LIBS$ac_delim
22020build_alias!$build_alias$ac_delim
22021host_alias!$host_alias$ac_delim
22022target_alias!$target_alias$ac_delim
22023LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022024CC!$CC$ac_delim
22025CFLAGS!$CFLAGS$ac_delim
22026LDFLAGS!$LDFLAGS$ac_delim
22027CPPFLAGS!$CPPFLAGS$ac_delim
22028ac_ct_CC!$ac_ct_CC$ac_delim
22029EXEEXT!$EXEEXT$ac_delim
22030OBJEXT!$OBJEXT$ac_delim
22031CXX!$CXX$ac_delim
22032CXXFLAGS!$CXXFLAGS$ac_delim
22033ac_ct_CXX!$ac_ct_CXX$ac_delim
22034CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022036ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22037LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022038build!$build$ac_delim
22039build_cpu!$build_cpu$ac_delim
22040build_vendor!$build_vendor$ac_delim
22041build_os!$build_os$ac_delim
22042host!$host$ac_delim
22043host_cpu!$host_cpu$ac_delim
22044host_vendor!$host_vendor$ac_delim
22045host_os!$host_os$ac_delim
22046target!$target$ac_delim
22047target_cpu!$target_cpu$ac_delim
22048target_vendor!$target_vendor$ac_delim
22049target_os!$target_os$ac_delim
22050OS!$OS$ac_delim
22051HOST_OS!$HOST_OS$ac_delim
22052TARGET_OS!$TARGET_OS$ac_delim
22053LINKALL!$LINKALL$ac_delim
22054NOLINKALL!$NOLINKALL$ac_delim
22055LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22056LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22057ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022058HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022060GREP!$GREP$ac_delim
22061EGREP!$EGREP$ac_delim
22062LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22063BUILD_CC!$BUILD_CC$ac_delim
22064BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22065BUILD_CXX!$BUILD_CXX$ac_delim
22066CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022067ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22069ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22070DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22071ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22072EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22073DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22074DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22075JIT!$JIT$ac_delim
22076TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022077ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022078ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022079LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022080ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022081ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022082ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022083_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022085 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022086 break
22087 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022088 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22089echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22090 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022091 else
22092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022093 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022094done
22095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22097if test -n "$ac_eof"; then
22098 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22099 ac_eof=`expr $ac_eof + 1`
22100fi
22101
22102cat >>$CONFIG_STATUS <<_ACEOF
22103cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106sed '
22107s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22108s/^/s,@/; s/!/@,|#_!!_#|/
22109:n
22110t n
22111s/'"$ac_delim"'$/,g/; t
22112s/$/\\/; p
22113N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22114' >>$CONFIG_STATUS <conf$$subs.sed
22115rm -f conf$$subs.sed
22116cat >>$CONFIG_STATUS <<_ACEOF
22117CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022119
22120
22121ac_delim='%!_!# '
22122for ac_last_try in false false false false false :; do
22123 cat >conf$$subs.sed <<_ACEOF
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022124ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022125ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022126TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22127LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22128LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022129LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022130LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022131OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022132EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022133EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022134CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022135BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022136INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022137NM!$NM$ac_delim
22138ifGNUmake!$ifGNUmake$ac_delim
22139LN_S!$LN_S$ac_delim
22140CMP!$CMP$ac_delim
22141CP!$CP$ac_delim
22142DATE!$DATE$ac_delim
22143FIND!$FIND$ac_delim
22144MKDIR!$MKDIR$ac_delim
22145MV!$MV$ac_delim
22146RANLIB!$RANLIB$ac_delim
22147AR!$AR$ac_delim
22148RM!$RM$ac_delim
22149SED!$SED$ac_delim
22150TAR!$TAR$ac_delim
22151BINPWD!$BINPWD$ac_delim
22152GRAPHVIZ!$GRAPHVIZ$ac_delim
22153DOT!$DOT$ac_delim
22154FDP!$FDP$ac_delim
22155NEATO!$NEATO$ac_delim
22156TWOPI!$TWOPI$ac_delim
22157CIRCO!$CIRCO$ac_delim
22158GV!$GV$ac_delim
22159DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022160XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22162INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22163INSTALL_DATA!$INSTALL_DATA$ac_delim
22164BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022165CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022167GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022168GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022169PDFROFF!$PDFROFF$ac_delim
22170RUNTEST!$RUNTEST$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022171TCLSH!$TCLSH$ac_delim
22172ZIP!$ZIP$ac_delim
22173OCAMLC!$OCAMLC$ac_delim
22174OCAMLOPT!$OCAMLOPT$ac_delim
22175OCAMLDEP!$OCAMLDEP$ac_delim
22176OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022177GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022178HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022179INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22180INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22181CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22182CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22183LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022184NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22185NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022186COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022187USE_UDIS86!$USE_UDIS86$ac_delim
22188USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022189USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22190INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22191INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022192HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22193HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22194MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022196SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022197LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22198LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22199LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22200LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22201LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22202LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22203LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22204LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22205LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22206LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22207BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22208ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022209OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22210ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22211RPATH!$RPATH$ac_delim
22212RDYNAMIC!$RDYNAMIC$ac_delim
22213LIBOBJS!$LIBOBJS$ac_delim
22214LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022215_ACEOF
22216
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022218 break
22219 elif $ac_last_try; then
22220 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22221echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22222 { (exit 1); exit 1; }; }
22223 else
22224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22225 fi
22226done
22227
22228ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22229if test -n "$ac_eof"; then
22230 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22231 ac_eof=`expr $ac_eof + 1`
22232fi
22233
22234cat >>$CONFIG_STATUS <<_ACEOF
22235cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22237_ACEOF
22238sed '
22239s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22240s/^/s,@/; s/!/@,|#_!!_#|/
22241:n
22242t n
22243s/'"$ac_delim"'$/,g/; t
22244s/$/\\/; p
22245N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22246' >>$CONFIG_STATUS <conf$$subs.sed
22247rm -f conf$$subs.sed
22248cat >>$CONFIG_STATUS <<_ACEOF
22249:end
22250s/|#_!!_#|//g
22251CEOF$ac_eof
22252_ACEOF
22253
22254
Reid Spencera773bd52006-08-04 18:18:08 +000022255# VPATH may cause trouble with some makes, so we remove $(srcdir),
22256# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22257# trailing colons and then remove the whole line if VPATH becomes empty
22258# (actually we leave an empty line to preserve line numbers).
22259if test "x$srcdir" = x.; then
22260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22261s/:*\$(srcdir):*/:/
22262s/:*\${srcdir}:*/:/
22263s/:*@srcdir@:*/:/
22264s/^\([^=]*=[ ]*\):*/\1/
22265s/:*$//
22266s/^[^=]*=[ ]*$//
22267}'
22268fi
22269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022271fi # test -n "$CONFIG_FILES"
22272
Reid Spencera773bd52006-08-04 18:18:08 +000022273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022275do
22276 case $ac_tag in
22277 :[FHLC]) ac_mode=$ac_tag; continue;;
22278 esac
22279 case $ac_mode$ac_tag in
22280 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022281 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22282echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22283 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022284 :[FH]-) ac_tag=-:-;;
22285 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22286 esac
22287 ac_save_IFS=$IFS
22288 IFS=:
22289 set x $ac_tag
22290 IFS=$ac_save_IFS
22291 shift
22292 ac_file=$1
22293 shift
22294
22295 case $ac_mode in
22296 :L) ac_source=$1;;
22297 :[FH])
22298 ac_file_inputs=
22299 for ac_f
22300 do
22301 case $ac_f in
22302 -) ac_f="$tmp/stdin";;
22303 *) # Look for the file first in the build tree, then in the source tree
22304 # (if the path is not absolute). The absolute path cannot be DOS-style,
22305 # because $ac_f cannot contain `:'.
22306 test -f "$ac_f" ||
22307 case $ac_f in
22308 [\\/$]*) false;;
22309 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22310 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022311 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22312echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22313 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022314 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022315 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022316 done
22317
22318 # Let's still pretend it is `configure' which instantiates (i.e., don't
22319 # use $as_me), people would be surprised to read:
22320 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 configure_input="Generated from "`IFS=:
22322 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022323 if test x"$ac_file" != x-; then
22324 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022325 { echo "$as_me:$LINENO: creating $ac_file" >&5
22326echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022327 fi
22328
22329 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022330 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022331 esac
22332 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022333 esac
22334
Reid Spencera773bd52006-08-04 18:18:08 +000022335 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022336$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022337 X"$ac_file" : 'X\(//\)[^/]' \| \
22338 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022340echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22342 s//\1/
22343 q
22344 }
22345 /^X\(\/\/\)[^/].*/{
22346 s//\1/
22347 q
22348 }
22349 /^X\(\/\/\)$/{
22350 s//\1/
22351 q
22352 }
22353 /^X\(\/\).*/{
22354 s//\1/
22355 q
22356 }
22357 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358 { as_dir="$ac_dir"
22359 case $as_dir in #(
22360 -*) as_dir=./$as_dir;;
22361 esac
22362 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22363 as_dirs=
22364 while :; do
22365 case $as_dir in #(
22366 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22367 *) as_qdir=$as_dir;;
22368 esac
22369 as_dirs="'$as_qdir' $as_dirs"
22370 as_dir=`$as_dirname -- "$as_dir" ||
22371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22372 X"$as_dir" : 'X\(//\)[^/]' \| \
22373 X"$as_dir" : 'X\(//\)$' \| \
22374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22375echo X"$as_dir" |
22376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22377 s//\1/
22378 q
22379 }
22380 /^X\(\/\/\)[^/].*/{
22381 s//\1/
22382 q
22383 }
22384 /^X\(\/\/\)$/{
22385 s//\1/
22386 q
22387 }
22388 /^X\(\/\).*/{
22389 s//\1/
22390 q
22391 }
22392 s/.*/./; q'`
22393 test -d "$as_dir" && break
22394 done
22395 test -z "$as_dirs" || eval "mkdir $as_dirs"
22396 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22397echo "$as_me: error: cannot create directory $as_dir" >&2;}
22398 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022399 ac_builddir=.
22400
Reid Spencera773bd52006-08-04 18:18:08 +000022401case "$ac_dir" in
22402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22403*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022405 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022407 case $ac_top_builddir_sub in
22408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22410 esac ;;
22411esac
22412ac_abs_top_builddir=$ac_pwd
22413ac_abs_builddir=$ac_pwd$ac_dir_suffix
22414# for backward compatibility:
22415ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022416
22417case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022418 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022419 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022420 ac_top_srcdir=$ac_top_builddir_sub
22421 ac_abs_top_srcdir=$ac_pwd ;;
22422 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022423 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022424 ac_top_srcdir=$srcdir
22425 ac_abs_top_srcdir=$srcdir ;;
22426 *) # Relative name.
22427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22428 ac_top_srcdir=$ac_top_build_prefix$srcdir
22429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022430esac
Reid Spencera773bd52006-08-04 18:18:08 +000022431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022432
John Criswell7a73b802003-06-30 21:59:07 +000022433
Reid Spencera773bd52006-08-04 18:18:08 +000022434 case $ac_mode in
22435 :F)
22436 #
22437 # CONFIG_FILE
22438 #
John Criswell7a73b802003-06-30 21:59:07 +000022439
22440 case $INSTALL in
22441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022443 esac
John Criswell7a73b802003-06-30 21:59:07 +000022444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022446cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022447# If the template does not know about datarootdir, expand it.
22448# FIXME: This hack should be removed a few years after 2.60.
22449ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022450
22451case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022452 p
22453 q
22454}
22455/@datadir@/p
22456/@docdir@/p
22457/@infodir@/p
22458/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022459/@mandir@/p
22460' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022461*datarootdir*) ac_datarootdir_seen=yes;;
22462*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022463 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22464echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022466cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022467 ac_datarootdir_hack='
22468 s&@datadir@&$datadir&g
22469 s&@docdir@&$docdir&g
22470 s&@infodir@&$infodir&g
22471 s&@localedir@&$localedir&g
22472 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022473 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022474esac
22475_ACEOF
22476
22477# Neutralize VPATH when `$srcdir' = `.'.
22478# Shell code in configure.ac might set extrasub.
22479# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022480cat >>$CONFIG_STATUS <<_ACEOF
22481 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022482$extrasub
22483_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022484cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022485:t
22486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022487s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022488s&@top_builddir@&$ac_top_builddir_sub&;t t
22489s&@srcdir@&$ac_srcdir&;t t
22490s&@abs_srcdir@&$ac_abs_srcdir&;t t
22491s&@top_srcdir@&$ac_top_srcdir&;t t
22492s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22493s&@builddir@&$ac_builddir&;t t
22494s&@abs_builddir@&$ac_abs_builddir&;t t
22495s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22496s&@INSTALL@&$ac_INSTALL&;t t
22497$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022498" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022499
Reid Spencera773bd52006-08-04 18:18:08 +000022500test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022504which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022505echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022506which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022507
Reid Spencera773bd52006-08-04 18:18:08 +000022508 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022509 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022510 -) cat "$tmp/out"; rm -f "$tmp/out";;
22511 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22512 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022513 ;;
22514 :H)
22515 #
22516 # CONFIG_HEADER
22517 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022518_ACEOF
22519
22520# Transform confdefs.h into a sed script `conftest.defines', that
22521# substitutes the proper values into config.h.in to produce config.h.
22522rm -f conftest.defines conftest.tail
22523# First, append a space to every undef/define line, to ease matching.
22524echo 's/$/ /' >conftest.defines
22525# Then, protect against being on the right side of a sed subst, or in
22526# an unquoted here document, in config.status. If some macros were
22527# called several times there might be several #defines for the same
22528# symbol, which is useless. But do not sort them, since the last
22529# AC_DEFINE must be honored.
22530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22531# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22532# NAME is the cpp macro being defined, VALUE is the value it is being given.
22533# PARAMS is the parameter list in the macro definition--in most cases, it's
22534# just an empty string.
22535ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22536ac_dB='\\)[ (].*,\\1define\\2'
22537ac_dC=' '
22538ac_dD=' ,'
22539
22540uniq confdefs.h |
22541 sed -n '
22542 t rset
22543 :rset
22544 s/^[ ]*#[ ]*define[ ][ ]*//
22545 t ok
22546 d
22547 :ok
22548 s/[\\&,]/\\&/g
22549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22551 ' >>conftest.defines
22552
22553# Remove the space that was appended to ease matching.
22554# Then replace #undef with comments. This is necessary, for
22555# example, in the case of _POSIX_SOURCE, which is predefined and required
22556# on some systems where configure will not decide to define it.
22557# (The regexp can be short, since the line contains either #define or #undef.)
22558echo 's/ $//
22559s,^[ #]*u.*,/* & */,' >>conftest.defines
22560
22561# Break up conftest.defines:
22562ac_max_sed_lines=50
22563
22564# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22565# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22566# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22567# et cetera.
22568ac_in='$ac_file_inputs'
22569ac_out='"$tmp/out1"'
22570ac_nxt='"$tmp/out2"'
22571
22572while :
22573do
22574 # Write a here document:
22575 cat >>$CONFIG_STATUS <<_ACEOF
22576 # First, check the format of the line:
22577 cat >"\$tmp/defines.sed" <<\\CEOF
22578/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22579/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22580b
22581:def
22582_ACEOF
22583 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22584 echo 'CEOF
22585 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22586 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22587 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22588 grep . conftest.tail >/dev/null || break
22589 rm -f conftest.defines
22590 mv conftest.tail conftest.defines
22591done
22592rm -f conftest.defines conftest.tail
22593
22594echo "ac_result=$ac_in" >>$CONFIG_STATUS
22595cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022596 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022597 echo "/* $configure_input */" >"$tmp/config.h"
22598 cat "$ac_result" >>"$tmp/config.h"
22599 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22601echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022602 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022603 rm -f $ac_file
22604 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022605 fi
22606 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022607 echo "/* $configure_input */"
22608 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022609 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022611 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22614echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022615 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022616 esac
John Criswell7a73b802003-06-30 21:59:07 +000022617
Reid Spencera773bd52006-08-04 18:18:08 +000022618
22619 case $ac_file$ac_mode in
22620 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022622 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022624 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022626 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022628 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022630 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022632 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022634 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022636 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022638 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022640 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022642 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022644 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022645 ${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 +000022646
22647 esac
22648done # for ac_tag
22649
John Criswell7a73b802003-06-30 21:59:07 +000022650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022651{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022653chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022654ac_clean_files=$ac_clean_files_save
22655
22656
22657# configure is writing to config.log, and then calls config.status.
22658# config.status does its own redirection, appending to config.log.
22659# Unfortunately, on DOS this fails, as config.log is still kept open
22660# by configure, so config.status won't be able to write to it; its
22661# output is simply discarded. So we exec the FD to /dev/null,
22662# effectively closing config.log, so it can be properly (re)opened and
22663# appended to by config.status. When coming back to configure, we
22664# need to make the FD available again.
22665if test "$no_create" != yes; then
22666 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022667 ac_config_status_args=
22668 test "$silent" = yes &&
22669 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022670 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022672 exec 5>>config.log
22673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22674 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022675 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022676fi
22677
John Criswell12399a12003-09-30 15:55:44 +000022678#
22679# CONFIG_SUBDIRS section.
22680#
22681if test "$no_recursion" != yes; then
22682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022683 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022684 ac_sub_configure_args=
22685 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022686 eval "set x $ac_configure_args"
22687 shift
22688 for ac_arg
22689 do
John Criswell12399a12003-09-30 15:55:44 +000022690 if test -n "$ac_prev"; then
22691 ac_prev=
22692 continue
22693 fi
22694 case $ac_arg in
22695 -cache-file | --cache-file | --cache-fil | --cache-fi \
22696 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22697 ac_prev=cache_file ;;
22698 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22699 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22700 | --c=*)
22701 ;;
22702 --config-cache | -C)
22703 ;;
22704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22705 ac_prev=srcdir ;;
22706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22707 ;;
22708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22709 ac_prev=prefix ;;
22710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22711 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022712 *)
22713 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022714 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022715 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022716 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022717 esac
22718 done
22719
22720 # Always prepend --prefix to ensure using the same prefix
22721 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022722 ac_arg="--prefix=$prefix"
22723 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022724 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022725 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022726 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022727
22728 ac_popdir=`pwd`
22729 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22730
22731 # Do not complain, so a configure script can configure whichever
22732 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022733 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022734
Reid Spencera773bd52006-08-04 18:18:08 +000022735 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022736 echo "$as_me:$LINENO: $ac_msg" >&5
22737 echo "$ac_msg" >&6
22738 { as_dir="$ac_dir"
22739 case $as_dir in #(
22740 -*) as_dir=./$as_dir;;
22741 esac
22742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22743 as_dirs=
22744 while :; do
22745 case $as_dir in #(
22746 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22747 *) as_qdir=$as_dir;;
22748 esac
22749 as_dirs="'$as_qdir' $as_dirs"
22750 as_dir=`$as_dirname -- "$as_dir" ||
22751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22752 X"$as_dir" : 'X\(//\)[^/]' \| \
22753 X"$as_dir" : 'X\(//\)$' \| \
22754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22755echo X"$as_dir" |
22756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22757 s//\1/
22758 q
22759 }
22760 /^X\(\/\/\)[^/].*/{
22761 s//\1/
22762 q
22763 }
22764 /^X\(\/\/\)$/{
22765 s//\1/
22766 q
22767 }
22768 /^X\(\/\).*/{
22769 s//\1/
22770 q
22771 }
22772 s/.*/./; q'`
22773 test -d "$as_dir" && break
22774 done
22775 test -z "$as_dirs" || eval "mkdir $as_dirs"
22776 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22777echo "$as_me: error: cannot create directory $as_dir" >&2;}
22778 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022779 ac_builddir=.
22780
Reid Spencera773bd52006-08-04 18:18:08 +000022781case "$ac_dir" in
22782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22783*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022785 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022786 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022787 case $ac_top_builddir_sub in
22788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22790 esac ;;
22791esac
22792ac_abs_top_builddir=$ac_pwd
22793ac_abs_builddir=$ac_pwd$ac_dir_suffix
22794# for backward compatibility:
22795ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022796
22797case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022798 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022799 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022800 ac_top_srcdir=$ac_top_builddir_sub
22801 ac_abs_top_srcdir=$ac_pwd ;;
22802 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022803 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022804 ac_top_srcdir=$srcdir
22805 ac_abs_top_srcdir=$srcdir ;;
22806 *) # Relative name.
22807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22808 ac_top_srcdir=$ac_top_build_prefix$srcdir
22809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022810esac
Reid Spencera773bd52006-08-04 18:18:08 +000022811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022812
22813
Reid Spencera773bd52006-08-04 18:18:08 +000022814 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022815
22816 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022817 if test -f "$ac_srcdir/configure.gnu"; then
22818 ac_sub_configure=$ac_srcdir/configure.gnu
22819 elif test -f "$ac_srcdir/configure"; then
22820 ac_sub_configure=$ac_srcdir/configure
22821 elif test -f "$ac_srcdir/configure.in"; then
22822 # This should be Cygnus configure.
22823 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022824 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022825 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22826echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022827 ac_sub_configure=
22828 fi
22829
22830 # The recursion is here.
22831 if test -n "$ac_sub_configure"; then
22832 # Make the cache file name correct relative to the subdirectory.
22833 case $cache_file in
22834 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022835 *) # Relative name.
22836 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022837 esac
22838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022839 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22840echo "$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 +000022841 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022842 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22843 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022844 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22845echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22846 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022847 fi
22848
Reid Spencera773bd52006-08-04 18:18:08 +000022849 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022850 done
22851fi
22852