blob: 2dfd66d77b9eb974837f5d40a38b04077f4b1a1a [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherf33ab862011-12-21 00:52:44 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
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'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_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
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000713INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000742CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743DOXYGEN
744GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000745GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746POD2HTML
747POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000748PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766USE_UDIS86
767USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000768USE_INTEL_JITEVENTS
769INTEL_JITEVENTS_INCDIR
770INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000775SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000794ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000802CXX
803CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000804CCC
805CPP'
John Criswell0157f502010-03-19 21:31:39 +0000806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000813projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-java
816projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000817projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000818projects/llvm-kernel
819tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001321\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001387 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001394 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001395 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
David Greenea696d242007-06-28 19:36:08 +00001400 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001407 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001408 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001409 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001410 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001411 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001412 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001413 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001414 --enable-shared Build a shared library and link tools against it
1415 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001417 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001418 --enable-timestamps Enable embedding timestamp information in build
1419 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, cbe, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001426 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001427 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001428
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001432 --with-optimize-option Select the compiler options to use for optimized
1433 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001434 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001435 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001438 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1441 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001442 --with-c-include-dirs Colon separated list of directories clang will
1443 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001444 --with-gcc-toolchain Directory where gcc is installed.
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
Eric Christopherf33ab862011-12-21 00:52:44 +00001534LLVM configure 3.1svn
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
Eric Christopherf33ab862011-12-21 00:52:44 +00001550It was created by LLVM $as_me 3.1svn, 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
1910#define LLVM_VERSION_MINOR 1
1911_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" ;;
3805 *-*-freebsd*)
3806 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" ;;
3819 *-*-solaris*)
3820 llvm_cv_target_os_type="SunOS" ;;
3821 *-*-auroraux*)
3822 llvm_cv_target_os_type="AuroraUX" ;;
3823 *-*-win32*)
3824 llvm_cv_target_os_type="Win32" ;;
3825 *-*-mingw*)
3826 llvm_cv_target_os_type="MingW" ;;
3827 *-*-haiku*)
3828 llvm_cv_target_os_type="Haiku" ;;
3829 *-*-rtems*)
3830 llvm_cv_target_os_type="RTEMS" ;;
3831 *-*-nacl*)
3832 llvm_cv_target_os_type="NativeClient" ;;
3833 *-unknown-eabi*)
3834 llvm_cv_target_os_type="Freestanding" ;;
3835 *)
3836 llvm_cv_target_os_type="Unknown" ;;
3837esac
3838fi
3839{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3840echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3841
3842if test "$llvm_cv_os_type" = "Unknown" ; then
3843 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3844echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3845 { (exit 1); exit 1; }; }
3846fi
3847
3848OS=$llvm_cv_os_type
3849
3850HOST_OS=$llvm_cv_os_type
3851
3852TARGET_OS=$llvm_cv_target_os_type
3853
3854
3855LINKALL=$llvm_cv_link_all_option
3856
3857NOLINKALL=$llvm_cv_no_link_all_option
3858
3859
3860case $llvm_cv_platform_type in
3861 Unix)
3862
3863cat >>confdefs.h <<\_ACEOF
3864#define LLVM_ON_UNIX 1
3865_ACEOF
3866
3867 LLVM_ON_UNIX=1
3868
3869 LLVM_ON_WIN32=0
3870
3871 ;;
3872 Win32)
3873
3874cat >>confdefs.h <<\_ACEOF
3875#define LLVM_ON_WIN32 1
3876_ACEOF
3877
3878 LLVM_ON_UNIX=0
3879
3880 LLVM_ON_WIN32=1
3881
3882 ;;
3883esac
3884
3885{ echo "$as_me:$LINENO: checking target architecture" >&5
3886echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3887if test "${llvm_cv_target_arch+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890 case $target in
3891 i?86-*) llvm_cv_target_arch="x86" ;;
3892 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3893 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3894 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003895 arm*-*) llvm_cv_target_arch="ARM" ;;
3896 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003897 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003898 xcore-*) llvm_cv_target_arch="XCore" ;;
3899 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003900 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003901 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3902 ptx-*) llvm_cv_target_arch="PTX" ;;
3903 *) llvm_cv_target_arch="Unknown" ;;
3904esac
3905fi
3906{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3907echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3908
3909if test "$llvm_cv_target_arch" = "Unknown" ; then
3910 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3911echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3912fi
3913
Eric Christopherffee5722011-09-16 20:36:25 +00003914case "$llvm_cv_target_arch" in
3915 x86) LLVM_NATIVE_ARCH="X86" ;;
3916 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3917 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3918esac
3919
3920ARCH=$llvm_cv_target_arch
3921
3922
3923
3924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003925{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3926echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3927if test "${ac_cv_path_GREP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003929else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003930 # Extract the first word of "grep ggrep" to use in msg output
3931if test -z "$GREP"; then
3932set dummy grep ggrep; ac_prog_name=$2
3933if test "${ac_cv_path_GREP+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
Reid Spencera773bd52006-08-04 18:18:08 +00003936 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937# Loop through the user's path and test for each of PROGNAME-LIST
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003939for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 for ac_prog in grep ggrep; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3946 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3947 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003948 # Check for GNU $ac_path_GREP
3949case `"$ac_path_GREP" --version 2>&1` in
3950*GNU*)
3951 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3952*)
3953 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003955 while :
3956 do
3957 cat "conftest.in" "conftest.in" >"conftest.tmp"
3958 mv "conftest.tmp" "conftest.in"
3959 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003961 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003964 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3965 # Best one so far, save it but keep looking for a better one
3966 ac_cv_path_GREP="$ac_path_GREP"
3967 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003968 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003969 # 10*(2^10) chars as input seems more than enough
3970 test $ac_count -gt 10 && break
3971 done
3972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3973esac
3974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975
3976 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003977 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003978done
3979
3980done
Reid Spencera773bd52006-08-04 18:18:08 +00003981IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982
3983
3984fi
3985
3986GREP="$ac_cv_path_GREP"
3987if test -z "$GREP"; then
3988 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3989echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3990 { (exit 1); exit 1; }; }
3991fi
3992
Reid Spencera773bd52006-08-04 18:18:08 +00003993else
3994 ac_cv_path_GREP=$GREP
3995fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997
Reid Spencera773bd52006-08-04 18:18:08 +00003998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4000echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004001 GREP="$ac_cv_path_GREP"
4002
4003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004{ echo "$as_me:$LINENO: checking for egrep" >&5
4005echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4006if test "${ac_cv_path_EGREP+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004008else
4009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4010 then ac_cv_path_EGREP="$GREP -E"
4011 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012 # Extract the first word of "egrep" to use in msg output
4013if test -z "$EGREP"; then
4014set dummy egrep; ac_prog_name=$2
4015if test "${ac_cv_path_EGREP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
Reid Spencera773bd52006-08-04 18:18:08 +00004018 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019# Loop through the user's path and test for each of PROGNAME-LIST
4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025 for ac_prog in egrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4029 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004030 # Check for GNU $ac_path_EGREP
4031case `"$ac_path_EGREP" --version 2>&1` in
4032*GNU*)
4033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034*)
4035 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004037 while :
4038 do
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004042 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP="$ac_path_EGREP"
4049 ac_path_EGREP_max=$ac_count
4050 fi
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4053 done
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055esac
4056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057
4058 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004059 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060done
4061
4062done
Reid Spencera773bd52006-08-04 18:18:08 +00004063IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064
4065
4066fi
4067
4068EGREP="$ac_cv_path_EGREP"
4069if test -z "$EGREP"; then
4070 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4072 { (exit 1); exit 1; }; }
4073fi
4074
Reid Spencera773bd52006-08-04 18:18:08 +00004075else
4076 ac_cv_path_EGREP=$EGREP
4077fi
4078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079
Reid Spencera773bd52006-08-04 18:18:08 +00004080 fi
4081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4083echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004084 EGREP="$ac_cv_path_EGREP"
4085
4086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4088echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4089if test "${ac_cv_header_stdc+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004092 cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004098#include <stdlib.h>
4099#include <stdarg.h>
4100#include <string.h>
4101#include <float.h>
4102
John Criswell0c38eaf2003-09-10 15:17:25 +00004103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
John Criswell7a73b802003-06-30 21:59:07 +00004110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111rm -f conftest.$ac_objext
4112if { (ac_try="$ac_compile"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004145 ac_cv_header_stdc=yes
4146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147 echo "$as_me: failed program was:" >&5
4148sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152
Reid Spencera773bd52006-08-04 18:18:08 +00004153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004154
4155if test $ac_cv_header_stdc = yes; then
4156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004157 cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h. */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004163#include <string.h>
4164
4165_ACEOF
4166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004167 $EGREP "memchr" >/dev/null 2>&1; then
4168 :
John Criswell7a73b802003-06-30 21:59:07 +00004169else
4170 ac_cv_header_stdc=no
4171fi
4172rm -f conftest*
4173
4174fi
4175
4176if test $ac_cv_header_stdc = yes; then
4177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004178 cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h. */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004184#include <stdlib.h>
4185
4186_ACEOF
4187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004188 $EGREP "free" >/dev/null 2>&1; then
4189 :
John Criswell7a73b802003-06-30 21:59:07 +00004190else
4191 ac_cv_header_stdc=no
4192fi
4193rm -f conftest*
4194
4195fi
4196
4197if test $ac_cv_header_stdc = yes; then
4198 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004199 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004200 :
4201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004208#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004209#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004210#if ((' ' & 0x0FF) == 0x020)
4211# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4212# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4213#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004214# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004215 (('a' <= (c) && (c) <= 'i') \
4216 || ('j' <= (c) && (c) <= 'r') \
4217 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004218# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4219#endif
4220
4221#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4222int
4223main ()
4224{
4225 int i;
4226 for (i = 0; i < 256; i++)
4227 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004228 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004229 return 2;
4230 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004231}
4232_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004233rm -f conftest$ac_exeext
4234if { (ac_try="$ac_link"
4235case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_link") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4244 { (case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_try") 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 :
John Criswell7a73b802003-06-30 21:59:07 +00004254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255 echo "$as_me: program exited with status $ac_status" >&5
4256echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259( exit $ac_status )
4260ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262rm -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 +00004263fi
4264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265
John Criswell7a73b802003-06-30 21:59:07 +00004266fi
4267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004268{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4269echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004270if test $ac_cv_header_stdc = yes; then
4271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272cat >>confdefs.h <<\_ACEOF
4273#define STDC_HEADERS 1
4274_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004275
4276fi
4277
Reid Spencera773bd52006-08-04 18:18:08 +00004278# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004279
4280
4281
4282
4283
4284
4285
4286
4287
Reid Spencera773bd52006-08-04 18:18:08 +00004288for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4289 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290do
4291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4292{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297 cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h. */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h. */
4303$ac_includes_default
4304
4305#include <$ac_header>
4306_ACEOF
4307rm -f conftest.$ac_objext
4308if { (ac_try="$ac_compile"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
4313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_compile") 2>conftest.er1
4315 ac_status=$?
4316 grep -v '^ *+' conftest.er1 >conftest.err
4317 rm -f conftest.er1
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } &&
4321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4322 { (case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_try") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 eval "$as_ac_Header=yes"
4342else
4343 echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 eval "$as_ac_Header=no"
4347fi
4348
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351ac_res=`eval echo '${'$as_ac_Header'}'`
4352 { echo "$as_me:$LINENO: result: $ac_res" >&5
4353echo "${ECHO_T}$ac_res" >&6; }
4354if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004355 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004357_ACEOF
4358
4359fi
4360
4361done
4362
4363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004364{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4365echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4366if test "${ac_cv_c_bigendian+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369 # See if sys/param.h defines the BYTE_ORDER macro.
4370cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004375/* end confdefs.h. */
4376#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004378
4379int
4380main ()
4381{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004382#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4383 bogus endian macros
4384#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004385
4386 ;
4387 return 0;
4388}
4389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390rm -f conftest.$ac_objext
4391if { (ac_try="$ac_compile"
4392case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_compile") 2>conftest.er1
4398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418esac
4419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004424 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004430/* end confdefs.h. */
4431#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004432#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004433
4434int
4435main ()
4436{
4437#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 not big endian
4439#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004440
4441 ;
4442 return 0;
4443}
4444_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445rm -f conftest.$ac_objext
4446if { (ac_try="$ac_compile"
4447case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460 { (case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463esac
4464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_try") 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004479 ac_cv_c_bigendian=yes
4480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 ac_cv_c_bigendian=no
4485fi
4486
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488else
4489 echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 # It does not; compile a test program.
4493if test "$cross_compiling" = yes; then
4494 # try to guess the endianness by grepping values into an object file
4495 ac_cv_c_bigendian=unknown
4496 cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h. */
4502short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4503short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4504void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4505short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4506short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4507void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004508int
4509main ()
4510{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004512 ;
4513 return 0;
4514}
4515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516rm -f conftest.$ac_objext
4517if { (ac_try="$ac_compile"
4518case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521esac
4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_compile") 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4531 { (case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_try") 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544esac
4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004551 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552fi
4553if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4554 if test "$ac_cv_c_bigendian" = unknown; then
4555 ac_cv_c_bigendian=no
4556 else
4557 # finding both strings is unlikely to happen, but who knows?
4558 ac_cv_c_bigendian=unknown
4559 fi
4560fi
Reid Spencera773bd52006-08-04 18:18:08 +00004561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565
Torok Edwin871384f2010-01-26 08:50:50 +00004566fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567
Reid Spencera773bd52006-08-04 18:18:08 +00004568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 cat >conftest.$ac_ext <<_ACEOF
4571/* confdefs.h. */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004575/* end confdefs.h. */
4576$ac_includes_default
4577int
4578main ()
4579{
4580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581 /* Are we little or big endian? From Harbison&Steele. */
4582 union
4583 {
4584 long int l;
4585 char c[sizeof (long int)];
4586 } u;
4587 u.l = 1;
4588 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004589
4590 ;
4591 return 0;
4592}
4593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594rm -f conftest$ac_exeext
4595if { (ac_try="$ac_link"
4596case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
4600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_link") 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
4609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004614 ac_cv_c_bigendian=no
4615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616 echo "$as_me: program exited with status $ac_status" >&5
4617echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620( exit $ac_status )
4621ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623rm -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 +00004624fi
4625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626
Reid Spencera773bd52006-08-04 18:18:08 +00004627fi
4628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630fi
4631{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4632echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4633case $ac_cv_c_bigendian in
4634 yes)
4635 ENDIAN=big
4636 ;;
4637 no)
4638 ENDIAN=little
4639 ;;
4640 *)
4641 { { echo "$as_me:$LINENO: error: unknown endianness
4642presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4643echo "$as_me: error: unknown endianness
4644presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4645 { (exit 1); exit 1; }; } ;;
4646esac
Reid Spencera773bd52006-08-04 18:18:08 +00004647
4648
4649if test "$cross_compiling" = yes; then
4650 LLVM_CROSS_COMPILING=1
4651
4652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4654echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4655if test "${ac_cv_build_exeext+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004657else
4658 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4659 ac_cv_build_exeext=.exe
4660else
4661 ac_build_prefix=${build_alias}-
4662
4663 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4664set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004669else
4670 if test -n "$BUILD_CC"; then
4671 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 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 +00004680 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004682 break 2
4683 fi
4684done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685done
Reid Spencera773bd52006-08-04 18:18:08 +00004686IFS=$as_save_IFS
4687
4688fi
4689fi
4690BUILD_CC=$ac_cv_prog_BUILD_CC
4691if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004692 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4693echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695 { echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004697fi
4698
4699
4700 if test -z "$BUILD_CC"; then
4701 # Extract the first word of "gcc", so it can be a program name with args.
4702set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004707else
4708 if test -n "$BUILD_CC"; then
4709 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4710else
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 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 +00004718 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004720 break 2
4721 fi
4722done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723done
Reid Spencera773bd52006-08-04 18:18:08 +00004724IFS=$as_save_IFS
4725
4726fi
4727fi
4728BUILD_CC=$ac_cv_prog_BUILD_CC
4729if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4731echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733 { echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004735fi
4736
4737
4738 if test -z "$BUILD_CC"; then
4739 # Extract the first word of "cc", so it can be a program name with args.
4740set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004745else
4746 if test -n "$BUILD_CC"; then
4747 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4748else
4749 ac_prog_rejected=no
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 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 +00004757 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4758 ac_prog_rejected=yes
4759 continue
4760 fi
4761 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004763 break 2
4764 fi
4765done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004766done
Reid Spencera773bd52006-08-04 18:18:08 +00004767IFS=$as_save_IFS
4768
4769if test $ac_prog_rejected = yes; then
4770 # We found a bogon in the path, so make sure we never use it.
4771 set dummy $ac_cv_prog_BUILD_CC
4772 shift
4773 if test $# != 0; then
4774 # We chose a different compiler from the bogus one.
4775 # However, it has the same basename, so the bogon will be chosen
4776 # first if we set BUILD_CC to just the basename; use the full file name.
4777 shift
4778 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4779 fi
4780fi
4781fi
4782fi
4783BUILD_CC=$ac_cv_prog_BUILD_CC
4784if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4786echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 { echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004790fi
4791
4792
4793 fi
4794 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4796echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4797 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004798 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4799 rm -f conftest*
4800 echo 'int main () { return 0; }' > conftest.$ac_ext
4801 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004802 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004803 (eval $ac_build_link) 2>&5
4804 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004807 for file in conftest.*; do
4808 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004809 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004810 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4811 esac
4812 done
4813 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004814 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4815echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4816 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004817 fi
4818 rm -f conftest*
4819 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4820fi
4821fi
4822
4823BUILD_EXEEXT=""
4824test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4826echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004827ac_build_exeext=$BUILD_EXEEXT
4828
Jim Grosbach673612e2008-10-02 22:56:44 +00004829 ac_build_prefix=${build_alias}-
4830 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4831set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004836else
4837 if test -n "$BUILD_CXX"; then
4838 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4839else
4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 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 +00004847 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004849 break 2
4850 fi
4851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852done
Jim Grosbach673612e2008-10-02 22:56:44 +00004853IFS=$as_save_IFS
4854
4855fi
4856fi
4857BUILD_CXX=$ac_cv_prog_BUILD_CXX
4858if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4860echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862 { echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004864fi
4865
4866
4867 if test -z "$BUILD_CXX"; then
4868 # Extract the first word of "g++", so it can be a program name with args.
4869set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004874else
4875 if test -n "$BUILD_CXX"; then
4876 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4877else
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 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 +00004885 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004887 break 2
4888 fi
4889done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004890done
Jim Grosbach673612e2008-10-02 22:56:44 +00004891IFS=$as_save_IFS
4892
4893fi
4894fi
4895BUILD_CXX=$ac_cv_prog_BUILD_CXX
4896if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4898echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900 { echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004902fi
4903
4904
4905 if test -z "$BUILD_CXX"; then
4906 # Extract the first word of "c++", so it can be a program name with args.
4907set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004912else
4913 if test -n "$BUILD_CXX"; then
4914 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4915else
4916 ac_prog_rejected=no
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 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 +00004924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4925 ac_prog_rejected=yes
4926 continue
4927 fi
4928 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004930 break 2
4931 fi
4932done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933done
Jim Grosbach673612e2008-10-02 22:56:44 +00004934IFS=$as_save_IFS
4935
4936if test $ac_prog_rejected = yes; then
4937 # We found a bogon in the path, so make sure we never use it.
4938 set dummy $ac_cv_prog_BUILD_CXX
4939 shift
4940 if test $# != 0; then
4941 # We chose a different compiler from the bogus one.
4942 # However, it has the same basename, so the bogon will be chosen
4943 # first if we set BUILD_CXX to just the basename; use the full file name.
4944 shift
4945 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4946 fi
4947fi
4948fi
4949fi
4950BUILD_CXX=$ac_cv_prog_BUILD_CXX
4951if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4953echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004955 { echo "$as_me:$LINENO: result: no" >&5
4956echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004957fi
4958
4959
4960 fi
4961 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004962else
4963 LLVM_CROSS_COMPILING=0
4964
4965fi
4966
Dan Gohman56fb5f92010-08-04 16:25:01 +00004967if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004968 cvsbuild="yes"
4969 optimize="no"
4970 CVSBUILD=CVSBUILD=1
4971
4972else
4973 cvsbuild="no"
4974 optimize="yes"
4975fi
4976
4977
Eric Christopherbee515f2011-11-11 22:51:42 +00004978# Check whether --enable-libcpp was given.
4979if test "${enable_libcpp+set}" = set; then
4980 enableval=$enable_libcpp;
4981else
4982 enableval=default
4983fi
4984
4985case "$enableval" in
4986 yes) ENABLE_LIBCPP=1
4987 ;;
4988 no) ENABLE_LIBCPP=0
4989 ;;
4990 default) ENABLE_LIBCPP=0
4991;;
4992 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4993echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4995esac
4996
Reid Spencera773bd52006-08-04 18:18:08 +00004997# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004998if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004999 enableval=$enable_optimized;
5000else
5001 enableval=$optimize
5002fi
5003
5004if test ${enableval} = "no" ; then
5005 ENABLE_OPTIMIZED=
5006
5007else
5008 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5009
5010fi
5011
David Greene2a5a12c2009-04-17 14:50:39 +00005012# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005013if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005014 enableval=$enable_profiling;
5015else
5016 enableval="no"
5017fi
5018
5019if test ${enableval} = "no" ; then
5020 ENABLE_PROFILING=
5021
5022else
5023 ENABLE_PROFILING=ENABLE_PROFILING=1
5024
5025fi
5026
Reid Spencera773bd52006-08-04 18:18:08 +00005027# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005028if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005029 enableval=$enable_assertions;
5030else
5031 enableval="yes"
5032fi
5033
5034if test ${enableval} = "yes" ; then
5035 DISABLE_ASSERTIONS=
5036
5037else
5038 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5039
5040fi
5041
David Greenea696d242007-06-28 19:36:08 +00005042# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005043if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005044 enableval=$enable_expensive_checks;
5045else
5046 enableval="no"
5047fi
5048
5049if test ${enableval} = "yes" ; then
5050 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5051
5052 EXPENSIVE_CHECKS=yes
5053
5054else
5055 ENABLE_EXPENSIVE_CHECKS=
5056
5057 EXPENSIVE_CHECKS=no
5058
5059fi
5060
Reid Spencer8b2e1412006-11-17 03:32:33 +00005061# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005062if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005063 enableval=$enable_debug_runtime;
5064else
5065 enableval=no
5066fi
5067
5068if test ${enableval} = "no" ; then
5069 DEBUG_RUNTIME=
5070
5071else
5072 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5073
5074fi
5075
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005076# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005077if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005078 enableval=$enable_debug_symbols;
5079else
5080 enableval=no
5081fi
5082
5083if test ${enableval} = "no" ; then
5084 DEBUG_SYMBOLS=
5085
5086else
5087 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5088
5089fi
5090
Reid Spencera773bd52006-08-04 18:18:08 +00005091# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005092if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005093 enableval=$enable_jit;
5094else
5095 enableval=default
5096fi
5097
5098if test ${enableval} = "no"
5099then
5100 JIT=
5101
5102else
5103 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005104 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005105 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005106 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005107 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005111 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005112 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005113 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005114 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005115 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005116 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005117 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005118 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005119 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005120 Hexagon) TARGET_HAS_JIT=0
5121 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005122 MBlaze) TARGET_HAS_JIT=0
5123 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005124 PTX) TARGET_HAS_JIT=0
5125 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005126 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005127 ;;
5128 esac
5129fi
5130
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005131# Check whether --enable-docs was given.
5132if test "${enable_docs+set}" = set; then
5133 enableval=$enable_docs;
5134else
5135 enableval=default
5136fi
5137
5138case "$enableval" in
5139 yes) ENABLE_DOCS=1
5140 ;;
5141 no) ENABLE_DOCS=0
5142 ;;
5143 default) ENABLE_DOCS=1
5144 ;;
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5146echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5148esac
5149
Reid Spencera773bd52006-08-04 18:18:08 +00005150# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005151if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005152 enableval=$enable_doxygen;
5153else
5154 enableval=default
5155fi
5156
5157case "$enableval" in
5158 yes) ENABLE_DOXYGEN=1
5159 ;;
5160 no) ENABLE_DOXYGEN=0
5161 ;;
5162 default) ENABLE_DOXYGEN=0
5163 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5165echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005167esac
5168
5169# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005170if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005171 enableval=$enable_threads;
5172else
Reid Spencer65c5d752006-11-05 17:08:18 +00005173 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005174fi
5175
5176case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005177 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005178 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005179 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005180 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005181 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005182 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5184echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005186esac
5187
Owen Andersona8603702009-05-19 22:18:56 +00005188cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005189#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005190_ACEOF
5191
5192
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005193# Check whether --enable-pthreads was given.
5194if test "${enable_pthreads+set}" = set; then
5195 enableval=$enable_pthreads;
5196else
5197 enableval=default
5198fi
5199
5200case "$enableval" in
5201 yes) ENABLE_PTHREADS=1
5202 ;;
5203 no) ENABLE_PTHREADS=0
5204 ;;
5205 default) ENABLE_PTHREADS=1
5206 ;;
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5208echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5210esac
5211
Reid Spencer89b0d992006-12-16 22:07:52 +00005212# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005214 enableval=$enable_pic;
5215else
5216 enableval=default
5217fi
5218
5219case "$enableval" in
5220 yes) ENABLE_PIC=1
5221 ;;
5222 no) ENABLE_PIC=0
5223 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005224 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005225 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005229esac
5230
5231cat >>confdefs.h <<_ACEOF
5232#define ENABLE_PIC $ENABLE_PIC
5233_ACEOF
5234
5235
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005236# Check whether --enable-shared was given.
5237if test "${enable_shared+set}" = set; then
5238 enableval=$enable_shared;
5239else
5240 enableval=default
5241fi
5242
5243case "$enableval" in
5244 yes) ENABLE_SHARED=1
5245 ;;
5246 no) ENABLE_SHARED=0
5247 ;;
5248 default) ENABLE_SHARED=0
5249 ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253esac
5254
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005255# Check whether --enable-embed-stdcxx was given.
5256if test "${enable_embed_stdcxx+set}" = set; then
5257 enableval=$enable_embed_stdcxx;
5258else
5259 enableval=default
5260fi
5261
5262case "$enableval" in
5263 yes) ENABLE_EMBED_STDCXX=1
5264 ;;
5265 no) ENABLE_EMBED_STDCXX=0
5266 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005267 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005268 ;;
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5272esac
5273
Daniel Dunbardd464df2010-05-10 20:11:56 +00005274# Check whether --enable-timestamps was given.
5275if test "${enable_timestamps+set}" = set; then
5276 enableval=$enable_timestamps;
5277else
5278 enableval=default
5279fi
5280
5281case "$enableval" in
5282 yes) ENABLE_TIMESTAMPS=1
5283 ;;
5284 no) ENABLE_TIMESTAMPS=0
5285 ;;
5286 default) ENABLE_TIMESTAMPS=1
5287 ;;
5288 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290 { (exit 1); exit 1; }; } ;;
5291esac
5292
5293cat >>confdefs.h <<_ACEOF
5294#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295_ACEOF
5296
5297
Reid Spencera773bd52006-08-04 18:18:08 +00005298TARGETS_TO_BUILD=""
5299# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005300if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005301 enableval=$enable_targets;
5302else
5303 enableval=all
5304fi
5305
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005306if test "$enableval" = host-only ; then
5307 enableval=host
5308fi
Reid Spencera773bd52006-08-04 18:18:08 +00005309case "$enableval" in
Eric Christophera443e5b2012-03-23 05:50:46 +00005310 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005311 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5312 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005313 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5314 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5315 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5316 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005317 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5318 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005319 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005320 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005321 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5322 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005323 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005324 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005325 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005326 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005327 host) case "$llvm_cv_target_arch" in
5328 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005332 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005334 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005335 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005336 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005338 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005339 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005340 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5341echo "$as_me: error: Can not set target to build" >&2;}
5342 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005343 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005344 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5345echo "$as_me: error: Unrecognized target $a_target" >&2;}
5346 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005347 esac
5348 done
5349 ;;
5350esac
Reid Spencera773bd52006-08-04 18:18:08 +00005351TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5352
5353
Douglas Gregor0711c302009-06-17 00:43:20 +00005354for a_target in $TARGETS_TO_BUILD; do
5355 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5356
5357cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005358#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5359_ACEOF
5360
5361 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5362 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005363 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005364 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005365 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5366 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5367 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005368
5369cat >>confdefs.h <<_ACEOF
5370#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005371_ACEOF
5372
5373
5374cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005375#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5376_ACEOF
5377
5378
5379cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005380#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005381_ACEOF
5382
5383
5384cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005385#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005386_ACEOF
5387
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005388 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005389
5390cat >>confdefs.h <<_ACEOF
5391#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5392_ACEOF
5393
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005394 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005395 fi
5396done
5397
Douglas Gregor1555a232009-06-16 20:12:29 +00005398LLVM_ENUM_TARGETS=""
5399LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005400LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005401LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005402for target_to_build in $TARGETS_TO_BUILD; do
5403 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005404 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005405 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5406 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005407 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5408 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5409 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005410 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5411 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5412 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005413done
5414
5415
5416
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005417
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005418
Reid Spencera773bd52006-08-04 18:18:08 +00005419
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005420# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005421if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005422 withval=$with_optimize_option;
5423else
5424 withval=default
5425fi
5426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005427{ echo "$as_me:$LINENO: checking optimization flags" >&5
5428echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005429case "$withval" in
5430 default)
5431 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005432 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005433 MingW) optimize_option=-O2 ;;
5434 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005435 esac ;;
5436 *) optimize_option="$withval" ;;
5437esac
5438OPTIMIZE_OPTION=$optimize_option
5439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005440{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5441echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005442
5443
Reid Spencera773bd52006-08-04 18:18:08 +00005444# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005446 withval=$with_extra_options;
5447else
5448 withval=default
5449fi
5450
5451case "$withval" in
5452 default) EXTRA_OPTIONS= ;;
5453 *) EXTRA_OPTIONS=$withval ;;
5454esac
5455EXTRA_OPTIONS=$EXTRA_OPTIONS
5456
5457
Daniel Dunbared344d22011-06-16 22:30:41 +00005458
5459# Check whether --with-extra-ld-options was given.
5460if test "${with_extra_ld_options+set}" = set; then
5461 withval=$with_extra_ld_options;
5462else
5463 withval=default
5464fi
5465
5466case "$withval" in
5467 default) EXTRA_LD_OPTIONS= ;;
5468 *) EXTRA_LD_OPTIONS=$withval ;;
5469esac
5470EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5471
5472
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005473# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005475 enableval=$enable_bindings;
5476else
5477 enableval=default
5478fi
5479
5480BINDINGS_TO_BUILD=""
5481case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005482 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005483 all ) BINDINGS_TO_BUILD="ocaml" ;;
5484 none | no) BINDINGS_TO_BUILD="" ;;
5485 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5486 case "$a_binding" in
5487 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005488 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5489echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5490 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005491 esac
5492 done
5493 ;;
5494esac
5495
Reid Spencera773bd52006-08-04 18:18:08 +00005496
Gordon Henriksenf0915682007-10-02 16:42:22 +00005497# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005499 withval=$with_ocaml_libdir;
5500else
5501 withval=auto
5502fi
5503
5504case "$withval" in
5505 auto) with_ocaml_libdir="$withval" ;;
5506 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005507 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5508echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5509 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005510esac
5511
5512
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005513# Check whether --with-clang-srcdir was given.
5514if test "${with_clang_srcdir+set}" = set; then
5515 withval=$with_clang_srcdir;
5516else
5517 withval="-"
5518fi
5519
5520case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005521 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005522 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5523 *) clang_src_root="$ac_pwd/$withval" ;;
5524esac
5525CLANG_SRC_ROOT=$clang_src_root
5526
5527
5528
Chandler Carruth6b241162010-10-19 08:21:25 +00005529# Check whether --with-clang-resource-dir was given.
5530if test "${with_clang_resource_dir+set}" = set; then
5531 withval=$with_clang_resource_dir;
5532else
5533 withval=""
5534fi
5535
5536
5537cat >>confdefs.h <<_ACEOF
5538#define CLANG_RESOURCE_DIR "$withval"
5539_ACEOF
5540
5541
5542
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005543# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005545 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005546else
5547 withval=""
5548fi
5549
5550
5551cat >>confdefs.h <<_ACEOF
5552#define C_INCLUDE_DIRS "$withval"
5553_ACEOF
5554
5555
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005556# Clang normally uses the system c++ headers and libraries. With this option,
5557# clang will use the ones provided by a gcc installation instead. This option should
5558# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005559
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005560# Check whether --with-gcc-toolchain was given.
5561if test "${with_gcc_toolchain+set}" = set; then
5562 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005563else
5564 withval=""
5565fi
5566
5567
5568cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005569#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005570_ACEOF
5571
5572
5573
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005574# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005576 withval=$with_binutils_include;
5577else
5578 withval=default
5579fi
5580
5581case "$withval" in
5582 default) WITH_BINUTILS_INCDIR=default ;;
5583 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5585echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5586 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005587esac
5588if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5589 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5590
5591 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5592 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005593 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5594echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5595 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005596 fi
5597fi
5598
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005599
5600# Check whether --with-bug-report-url was given.
5601if test "${with_bug_report_url+set}" = set; then
5602 withval=$with_bug_report_url;
5603else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005604 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005605fi
5606
5607
5608cat >>confdefs.h <<_ACEOF
5609#define BUG_REPORT_URL "$withval"
5610_ACEOF
5611
5612
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005613# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005615 enableval=$enable_libffi; case "$enableval" in
5616 yes) llvm_cv_enable_libffi="yes" ;;
5617 no) llvm_cv_enable_libffi="no" ;;
5618 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005619echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5620 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005621 esac
5622else
5623 llvm_cv_enable_libffi=no
5624fi
5625
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005626
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005627
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005628# Check whether --with-internal-prefix was given.
5629if test "${with_internal_prefix+set}" = set; then
5630 withval=$with_internal_prefix;
5631else
5632 withval=""
5633fi
5634
5635INTERNAL_PREFIX=$withval
5636
5637
5638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5640echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5641if test "${lt_cv_path_NM+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005643else
5644 if test -n "$NM"; then
5645 # Let the user override the test.
5646 lt_cv_path_NM="$NM"
5647else
5648 lt_nm_to_check="${ac_tool_prefix}nm"
5649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5650 lt_nm_to_check="$lt_nm_to_check nm"
5651 fi
5652 for lt_tmp_nm in $lt_nm_to_check; do
5653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5655 IFS="$lt_save_ifs"
5656 test -z "$ac_dir" && ac_dir=.
5657 tmp_nm="$ac_dir/$lt_tmp_nm"
5658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5659 # Check to see if the nm accepts a BSD-compat flag.
5660 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5661 # nm: unknown option "B" ignored
5662 # Tru64's nm complains that /dev/null is an invalid object file
5663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5664 */dev/null* | *'Invalid file or object type'*)
5665 lt_cv_path_NM="$tmp_nm -B"
5666 break
5667 ;;
5668 *)
5669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5670 */dev/null*)
5671 lt_cv_path_NM="$tmp_nm -p"
5672 break
5673 ;;
5674 *)
5675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5676 continue # so that we can try to find one that supports BSD flags
5677 ;;
5678 esac
5679 ;;
5680 esac
5681 fi
5682 done
5683 IFS="$lt_save_ifs"
5684 done
5685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5686fi
5687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5689echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005690NM="$lt_cv_path_NM"
5691
5692
5693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005694{ echo "$as_me:$LINENO: checking for GNU make" >&5
5695echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5696if test "${llvm_cv_gnu_make_command+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005698else
5699 llvm_cv_gnu_make_command=''
5700 for a in "$MAKE" make gmake gnumake ; do
5701 if test -z "$a" ; then continue ; fi ;
5702 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5703 then
5704 llvm_cv_gnu_make_command=$a ;
5705 break;
5706 fi
5707 done
5708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5710echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005711 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5712 ifGNUmake='' ;
5713 else
5714 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5716echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005717 fi
5718
5719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005720{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5721echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005722LN_S=$as_ln_s
5723if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724 { echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5728echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005729fi
5730
5731# Extract the first word of "cmp", so it can be a program name with args.
5732set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5735if test "${ac_cv_path_CMP+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005737else
5738 case $CMP in
5739 [\\/]* | ?:[\\/]*)
5740 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5741 ;;
5742 *)
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744for as_dir in $PATH
5745do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 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 +00005750 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005752 break 2
5753 fi
5754done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755done
Reid Spencera773bd52006-08-04 18:18:08 +00005756IFS=$as_save_IFS
5757
5758 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5759 ;;
5760esac
5761fi
5762CMP=$ac_cv_path_CMP
5763if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764 { echo "$as_me:$LINENO: result: $CMP" >&5
5765echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767 { echo "$as_me:$LINENO: result: no" >&5
5768echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005769fi
5770
5771
5772# Extract the first word of "cp", so it can be a program name with args.
5773set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776if test "${ac_cv_path_CP+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005778else
5779 case $CP in
5780 [\\/]* | ?:[\\/]*)
5781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5782 ;;
5783 *)
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 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 +00005791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005793 break 2
5794 fi
5795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796done
Reid Spencera773bd52006-08-04 18:18:08 +00005797IFS=$as_save_IFS
5798
5799 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5800 ;;
5801esac
5802fi
5803CP=$ac_cv_path_CP
5804if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805 { echo "$as_me:$LINENO: result: $CP" >&5
5806echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005808 { echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005810fi
5811
5812
5813# Extract the first word of "date", so it can be a program name with args.
5814set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817if test "${ac_cv_path_DATE+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005819else
5820 case $DATE in
5821 [\\/]* | ?:[\\/]*)
5822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5823 ;;
5824 *)
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 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 +00005832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005834 break 2
5835 fi
5836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837done
Reid Spencera773bd52006-08-04 18:18:08 +00005838IFS=$as_save_IFS
5839
5840 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5841 ;;
5842esac
5843fi
5844DATE=$ac_cv_path_DATE
5845if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005846 { echo "$as_me:$LINENO: result: $DATE" >&5
5847echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 { echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005851fi
5852
5853
5854# Extract the first word of "find", so it can be a program name with args.
5855set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858if test "${ac_cv_path_FIND+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005860else
5861 case $FIND in
5862 [\\/]* | ?:[\\/]*)
5863 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5864 ;;
5865 *)
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867for as_dir in $PATH
5868do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 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 +00005873 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005875 break 2
5876 fi
5877done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878done
Reid Spencera773bd52006-08-04 18:18:08 +00005879IFS=$as_save_IFS
5880
5881 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5882 ;;
5883esac
5884fi
5885FIND=$ac_cv_path_FIND
5886if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005887 { echo "$as_me:$LINENO: result: $FIND" >&5
5888echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005890 { echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005892fi
5893
5894
5895# Extract the first word of "grep", so it can be a program name with args.
5896set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899if test "${ac_cv_path_GREP+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005901else
5902 case $GREP in
5903 [\\/]* | ?:[\\/]*)
5904 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5905 ;;
5906 *)
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 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 +00005914 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005916 break 2
5917 fi
5918done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919done
Reid Spencera773bd52006-08-04 18:18:08 +00005920IFS=$as_save_IFS
5921
5922 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5923 ;;
5924esac
5925fi
5926GREP=$ac_cv_path_GREP
5927if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005928 { echo "$as_me:$LINENO: result: $GREP" >&5
5929echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931 { echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005933fi
5934
5935
5936# Extract the first word of "mkdir", so it can be a program name with args.
5937set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940if test "${ac_cv_path_MKDIR+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005942else
5943 case $MKDIR in
5944 [\\/]* | ?:[\\/]*)
5945 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5946 ;;
5947 *)
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 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 +00005955 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005957 break 2
5958 fi
5959done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960done
Reid Spencera773bd52006-08-04 18:18:08 +00005961IFS=$as_save_IFS
5962
5963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5964 ;;
5965esac
5966fi
5967MKDIR=$ac_cv_path_MKDIR
5968if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5970echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005972 { echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005974fi
5975
5976
5977# Extract the first word of "mv", so it can be a program name with args.
5978set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981if test "${ac_cv_path_MV+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005983else
5984 case $MV in
5985 [\\/]* | ?:[\\/]*)
5986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5987 ;;
5988 *)
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 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 +00005996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005998 break 2
5999 fi
6000done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001done
Reid Spencera773bd52006-08-04 18:18:08 +00006002IFS=$as_save_IFS
6003
6004 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6005 ;;
6006esac
6007fi
6008MV=$ac_cv_path_MV
6009if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010 { echo "$as_me:$LINENO: result: $MV" >&5
6011echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006013 { echo "$as_me:$LINENO: result: no" >&5
6014echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006015fi
6016
6017
6018if test -n "$ac_tool_prefix"; then
6019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6020set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023if test "${ac_cv_prog_RANLIB+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006025else
6026 if test -n "$RANLIB"; then
6027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6028else
6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030for as_dir in $PATH
6031do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 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 +00006036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006038 break 2
6039 fi
6040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041done
Reid Spencera773bd52006-08-04 18:18:08 +00006042IFS=$as_save_IFS
6043
6044fi
6045fi
6046RANLIB=$ac_cv_prog_RANLIB
6047if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6049echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051 { echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006053fi
6054
6055
6056fi
6057if test -z "$ac_cv_prog_RANLIB"; then
6058 ac_ct_RANLIB=$RANLIB
6059 # Extract the first word of "ranlib", so it can be a program name with args.
6060set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006065else
6066 if test -n "$ac_ct_RANLIB"; then
6067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 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 +00006076 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006078 break 2
6079 fi
6080done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081done
Reid Spencera773bd52006-08-04 18:18:08 +00006082IFS=$as_save_IFS
6083
6084fi
6085fi
6086ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6087if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6089echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091 { echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006093fi
6094
6095 if test "x$ac_ct_RANLIB" = x; then
6096 RANLIB=":"
6097 else
6098 case $cross_compiling:$ac_tool_warned in
6099yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6101whose name does not start with the host triplet. If you think this
6102configuration is useful to you, please write to autoconf@gnu.org." >&5
6103echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6104whose name does not start with the host triplet. If you think this
6105configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006106ac_tool_warned=yes ;;
6107esac
6108 RANLIB=$ac_ct_RANLIB
6109 fi
6110else
6111 RANLIB="$ac_cv_prog_RANLIB"
6112fi
6113
Torok Edwin871384f2010-01-26 08:50:50 +00006114if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6116set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119if test "${ac_cv_prog_AR+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006121else
6122 if test -n "$AR"; then
6123 ac_cv_prog_AR="$AR" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 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 +00006132 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006134 break 2
6135 fi
6136done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137done
Torok Edwin871384f2010-01-26 08:50:50 +00006138IFS=$as_save_IFS
6139
6140fi
6141fi
6142AR=$ac_cv_prog_AR
6143if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 { echo "$as_me:$LINENO: result: $AR" >&5
6145echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 { echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006149fi
6150
6151
6152fi
6153if test -z "$ac_cv_prog_AR"; then
6154 ac_ct_AR=$AR
6155 # Extract the first word of "ar", so it can be a program name with args.
6156set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006161else
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 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 +00006172 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006174 break 2
6175 fi
6176done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177done
Torok Edwin871384f2010-01-26 08:50:50 +00006178IFS=$as_save_IFS
6179
6180fi
6181fi
6182ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6185echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187 { echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006189fi
6190
6191 if test "x$ac_ct_AR" = x; then
6192 AR="false"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6197whose name does not start with the host triplet. If you think this
6198configuration is useful to you, please write to autoconf@gnu.org." >&5
6199echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6200whose name does not start with the host triplet. If you think this
6201configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006202ac_tool_warned=yes ;;
6203esac
6204 AR=$ac_ct_AR
6205 fi
6206else
6207 AR="$ac_cv_prog_AR"
6208fi
6209
Reid Spencera773bd52006-08-04 18:18:08 +00006210# Extract the first word of "rm", so it can be a program name with args.
6211set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214if test "${ac_cv_path_RM+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006216else
6217 case $RM in
6218 [\\/]* | ?:[\\/]*)
6219 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6220 ;;
6221 *)
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 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 +00006229 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006231 break 2
6232 fi
6233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234done
Reid Spencera773bd52006-08-04 18:18:08 +00006235IFS=$as_save_IFS
6236
6237 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6238 ;;
6239esac
6240fi
6241RM=$ac_cv_path_RM
6242if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: $RM" >&5
6244echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 { echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006248fi
6249
6250
6251# Extract the first word of "sed", so it can be a program name with args.
6252set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255if test "${ac_cv_path_SED+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006257else
6258 case $SED in
6259 [\\/]* | ?:[\\/]*)
6260 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6261 ;;
6262 *)
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 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 +00006270 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006272 break 2
6273 fi
6274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275done
Reid Spencera773bd52006-08-04 18:18:08 +00006276IFS=$as_save_IFS
6277
6278 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6279 ;;
6280esac
6281fi
6282SED=$ac_cv_path_SED
6283if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 { echo "$as_me:$LINENO: result: $SED" >&5
6285echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 { echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006289fi
6290
6291
6292# Extract the first word of "tar", so it can be a program name with args.
6293set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296if test "${ac_cv_path_TAR+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006298else
6299 case $TAR in
6300 [\\/]* | ?:[\\/]*)
6301 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6302 ;;
6303 *)
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 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 +00006311 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006313 break 2
6314 fi
6315done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316done
Reid Spencera773bd52006-08-04 18:18:08 +00006317IFS=$as_save_IFS
6318
6319 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6320 ;;
6321esac
6322fi
6323TAR=$ac_cv_path_TAR
6324if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 { echo "$as_me:$LINENO: result: $TAR" >&5
6326echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328 { echo "$as_me:$LINENO: result: no" >&5
6329echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006330fi
6331
6332
6333# Extract the first word of "pwd", so it can be a program name with args.
6334set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337if test "${ac_cv_path_BINPWD+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006339else
6340 case $BINPWD in
6341 [\\/]* | ?:[\\/]*)
6342 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6343 ;;
6344 *)
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 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 +00006352 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006354 break 2
6355 fi
6356done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357done
Reid Spencera773bd52006-08-04 18:18:08 +00006358IFS=$as_save_IFS
6359
6360 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6361 ;;
6362esac
6363fi
6364BINPWD=$ac_cv_path_BINPWD
6365if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6367echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369 { echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006371fi
6372
6373
6374
6375# Extract the first word of "Graphviz", so it can be a program name with args.
6376set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6379if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006381else
6382 case $GRAPHVIZ in
6383 [\\/]* | ?:[\\/]*)
6384 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6385 ;;
6386 *)
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 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 +00006394 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006396 break 2
6397 fi
6398done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399done
Reid Spencera773bd52006-08-04 18:18:08 +00006400IFS=$as_save_IFS
6401
6402 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6403 ;;
6404esac
6405fi
6406GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6407if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006408 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6409echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006413fi
6414
6415
6416if test "$GRAPHVIZ" != "echo Graphviz" ; then
6417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418cat >>confdefs.h <<\_ACEOF
6419#define HAVE_GRAPHVIZ 1
6420_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006421
Jeff Cohen28783c32007-01-12 18:22:38 +00006422 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006423 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6424 fi
6425
6426cat >>confdefs.h <<_ACEOF
6427#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6428_ACEOF
6429
6430fi
6431# Extract the first word of "dot", so it can be a program name with args.
6432set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435if test "${ac_cv_path_DOT+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006437else
6438 case $DOT in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 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 +00006450 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006452 break 2
6453 fi
6454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455done
Reid Spencera773bd52006-08-04 18:18:08 +00006456IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6459 ;;
6460esac
6461fi
6462DOT=$ac_cv_path_DOT
6463if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 { echo "$as_me:$LINENO: result: $DOT" >&5
6465echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006469fi
6470
6471
6472if test "$DOT" != "echo dot" ; then
6473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474cat >>confdefs.h <<\_ACEOF
6475#define HAVE_DOT 1
6476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006477
Jeff Cohen28783c32007-01-12 18:22:38 +00006478 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6480 fi
6481
6482cat >>confdefs.h <<_ACEOF
6483#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6484_ACEOF
6485
6486fi
David Greenef0b9eff2009-07-09 17:16:26 +00006487# Extract the first word of "fdp", so it can be a program name with args.
6488set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491if test "${ac_cv_path_FDP+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006493else
6494 case $FDP in
6495 [\\/]* | ?:[\\/]*)
6496 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6497 ;;
6498 *)
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 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 +00006506 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006508 break 2
6509 fi
6510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511done
David Greenef0b9eff2009-07-09 17:16:26 +00006512IFS=$as_save_IFS
6513
6514 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6515 ;;
6516esac
6517fi
6518FDP=$ac_cv_path_FDP
6519if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 { echo "$as_me:$LINENO: result: $FDP" >&5
6521echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 { echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006525fi
6526
6527
6528if test "$FDP" != "echo fdp" ; then
6529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530cat >>confdefs.h <<\_ACEOF
6531#define HAVE_FDP 1
6532_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006533
6534 if test "$llvm_cv_os_type" = "MingW" ; then
6535 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6536 fi
6537
6538cat >>confdefs.h <<_ACEOF
6539#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6540_ACEOF
6541
6542fi
6543# Extract the first word of "neato", so it can be a program name with args.
6544set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547if test "${ac_cv_path_NEATO+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006549else
6550 case $NEATO in
6551 [\\/]* | ?:[\\/]*)
6552 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6553 ;;
6554 *)
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 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 +00006562 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006564 break 2
6565 fi
6566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006567done
David Greenef0b9eff2009-07-09 17:16:26 +00006568IFS=$as_save_IFS
6569
6570 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6571 ;;
6572esac
6573fi
6574NEATO=$ac_cv_path_NEATO
6575if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576 { echo "$as_me:$LINENO: result: $NEATO" >&5
6577echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 { echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006581fi
6582
6583
6584if test "$NEATO" != "echo neato" ; then
6585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586cat >>confdefs.h <<\_ACEOF
6587#define HAVE_NEATO 1
6588_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006589
6590 if test "$llvm_cv_os_type" = "MingW" ; then
6591 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6592 fi
6593
6594cat >>confdefs.h <<_ACEOF
6595#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6596_ACEOF
6597
6598fi
6599# Extract the first word of "twopi", so it can be a program name with args.
6600set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603if test "${ac_cv_path_TWOPI+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006605else
6606 case $TWOPI in
6607 [\\/]* | ?:[\\/]*)
6608 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6609 ;;
6610 *)
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 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 +00006618 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006620 break 2
6621 fi
6622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623done
David Greenef0b9eff2009-07-09 17:16:26 +00006624IFS=$as_save_IFS
6625
6626 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6627 ;;
6628esac
6629fi
6630TWOPI=$ac_cv_path_TWOPI
6631if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6633echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635 { echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006637fi
6638
6639
6640if test "$TWOPI" != "echo twopi" ; then
6641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642cat >>confdefs.h <<\_ACEOF
6643#define HAVE_TWOPI 1
6644_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006645
6646 if test "$llvm_cv_os_type" = "MingW" ; then
6647 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6648 fi
6649
6650cat >>confdefs.h <<_ACEOF
6651#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6652_ACEOF
6653
6654fi
6655# Extract the first word of "circo", so it can be a program name with args.
6656set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_path_CIRCO+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006661else
6662 case $CIRCO in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 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 +00006674 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006676 break 2
6677 fi
6678done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679done
David Greenef0b9eff2009-07-09 17:16:26 +00006680IFS=$as_save_IFS
6681
6682 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6683 ;;
6684esac
6685fi
6686CIRCO=$ac_cv_path_CIRCO
6687if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6689echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006693fi
6694
6695
6696if test "$CIRCO" != "echo circo" ; then
6697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698cat >>confdefs.h <<\_ACEOF
6699#define HAVE_CIRCO 1
6700_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006701
6702 if test "$llvm_cv_os_type" = "MingW" ; then
6703 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704 fi
6705
6706cat >>confdefs.h <<_ACEOF
6707#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6708_ACEOF
6709
6710fi
Reid Spencera773bd52006-08-04 18:18:08 +00006711for ac_prog in gv gsview32
6712do
6713 # Extract the first word of "$ac_prog", so it can be a program name with args.
6714set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717if test "${ac_cv_path_GV+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006719else
6720 case $GV in
6721 [\\/]* | ?:[\\/]*)
6722 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6723 ;;
6724 *)
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 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 +00006732 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006734 break 2
6735 fi
6736done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737done
Reid Spencera773bd52006-08-04 18:18:08 +00006738IFS=$as_save_IFS
6739
6740 ;;
6741esac
6742fi
6743GV=$ac_cv_path_GV
6744if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745 { echo "$as_me:$LINENO: result: $GV" >&5
6746echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748 { echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006750fi
6751
6752
6753 test -n "$GV" && break
6754done
6755test -n "$GV" || GV="echo gv"
6756
6757if test "$GV" != "echo gv" ; then
6758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759cat >>confdefs.h <<\_ACEOF
6760#define HAVE_GV 1
6761_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006762
Jeff Cohen28783c32007-01-12 18:22:38 +00006763 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006764 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765 fi
6766
6767cat >>confdefs.h <<_ACEOF
6768#define LLVM_PATH_GV "$GV${EXEEXT}"
6769_ACEOF
6770
6771fi
6772# Extract the first word of "dotty", so it can be a program name with args.
6773set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_DOTTY+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006778else
6779 case $DOTTY in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 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 +00006791 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006793 break 2
6794 fi
6795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796done
Reid Spencera773bd52006-08-04 18:18:08 +00006797IFS=$as_save_IFS
6798
6799 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6800 ;;
6801esac
6802fi
6803DOTTY=$ac_cv_path_DOTTY
6804if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6806echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006810fi
6811
6812
6813if test "$DOTTY" != "echo dotty" ; then
6814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815cat >>confdefs.h <<\_ACEOF
6816#define HAVE_DOTTY 1
6817_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006818
Jeff Cohen28783c32007-01-12 18:22:38 +00006819 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006820 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821 fi
6822
6823cat >>confdefs.h <<_ACEOF
6824#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6825_ACEOF
6826
6827fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006828# Extract the first word of "xdot.py", so it can be a program name with args.
6829set dummy xdot.py; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_path_XDOT_PY+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 case $XDOT_PY in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851done
6852done
6853IFS=$as_save_IFS
6854
6855 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6856 ;;
6857esac
6858fi
6859XDOT_PY=$ac_cv_path_XDOT_PY
6860if test -n "$XDOT_PY"; then
6861 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6862echo "${ECHO_T}$XDOT_PY" >&6; }
6863else
6864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
6866fi
6867
6868
6869if test "$XDOT_PY" != "echo xdot.py" ; then
6870
6871cat >>confdefs.h <<\_ACEOF
6872#define HAVE_XDOT_PY 1
6873_ACEOF
6874
6875 if test "$llvm_cv_os_type" = "MingW" ; then
6876 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6877 fi
6878
6879cat >>confdefs.h <<_ACEOF
6880#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6881_ACEOF
6882
6883fi
Reid Spencera773bd52006-08-04 18:18:08 +00006884
Reid Spencera773bd52006-08-04 18:18:08 +00006885# Find a good install program. We prefer a C program (faster),
6886# so one script is as good as another. But avoid the broken or
6887# incompatible versions:
6888# SysV /etc/install, /usr/sbin/install
6889# SunOS /usr/etc/install
6890# IRIX /sbin/install
6891# AIX /bin/install
6892# AmigaOS /C/install, which installs bootblocks on floppy discs
6893# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6894# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6895# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6896# OS/2's system install, which has a completely different semantic
6897# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6899echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006900if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901if test "${ac_cv_path_install+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006903else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 # Account for people who put trailing slashes in PATH elements.
6910case $as_dir/ in
6911 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006914 /usr/ucb/* ) ;;
6915 *)
6916 # OSF1 and SCO ODT 3.0 have their own names for install.
6917 # Don't use installbsd from OSF since it installs stuff as root
6918 # by default.
6919 for ac_prog in ginstall scoinst install; do
6920 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 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 +00006922 if test $ac_prog = install &&
6923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6924 # AIX install. It has an incompatible calling convention.
6925 :
6926 elif test $ac_prog = install &&
6927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6928 # program-specific install script used by HP pwplus--don't use.
6929 :
6930 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6932 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006933 fi
6934 fi
6935 done
6936 done
6937 ;;
6938esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939done
Reid Spencera773bd52006-08-04 18:18:08 +00006940IFS=$as_save_IFS
6941
6942
6943fi
6944 if test "${ac_cv_path_install+set}" = set; then
6945 INSTALL=$ac_cv_path_install
6946 else
6947 # As a last resort, use the slow shell script. Don't cache a
6948 # value for INSTALL within a source directory, because that will
6949 # break other packages using the cache if that directory is
6950 # removed, or if the value is a relative name.
6951 INSTALL=$ac_install_sh
6952 fi
6953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6955echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956
6957# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6958# It thinks the first close brace ends the variable substitution.
6959test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6960
6961test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6962
6963test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6964
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006965case "$INSTALL" in
6966 [\\/$]* | ?:[\\/]* ) ;;
6967 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6968esac
Reid Spencera773bd52006-08-04 18:18:08 +00006969
6970# Extract the first word of "bzip2", so it can be a program name with args.
6971set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_BZIP2+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006976else
6977 case $BZIP2 in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 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 +00006989 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006991 break 2
6992 fi
6993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994done
Reid Spencera773bd52006-08-04 18:18:08 +00006995IFS=$as_save_IFS
6996
Reid Spencera773bd52006-08-04 18:18:08 +00006997 ;;
6998esac
6999fi
7000BZIP2=$ac_cv_path_BZIP2
7001if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7003echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 { echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007007fi
7008
7009
mike-m68cb3192010-05-06 23:45:43 +00007010# Extract the first word of "cat", so it can be a program name with args.
7011set dummy cat; ac_word=$2
7012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014if test "${ac_cv_path_CAT+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017 case $CAT in
7018 [\\/]* | ?:[\\/]*)
7019 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7020 ;;
7021 *)
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033done
7034done
7035IFS=$as_save_IFS
7036
7037 ;;
7038esac
7039fi
7040CAT=$ac_cv_path_CAT
7041if test -n "$CAT"; then
7042 { echo "$as_me:$LINENO: result: $CAT" >&5
7043echo "${ECHO_T}$CAT" >&6; }
7044else
7045 { echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6; }
7047fi
7048
7049
Reid Spencera773bd52006-08-04 18:18:08 +00007050# Extract the first word of "doxygen", so it can be a program name with args.
7051set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054if test "${ac_cv_path_DOXYGEN+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007056else
7057 case $DOXYGEN in
7058 [\\/]* | ?:[\\/]*)
7059 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7060 ;;
7061 *)
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 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 +00007069 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007071 break 2
7072 fi
7073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074done
Reid Spencera773bd52006-08-04 18:18:08 +00007075IFS=$as_save_IFS
7076
Reid Spencera773bd52006-08-04 18:18:08 +00007077 ;;
7078esac
7079fi
7080DOXYGEN=$ac_cv_path_DOXYGEN
7081if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7083echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007085 { echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007087fi
7088
7089
Reid Spencera773bd52006-08-04 18:18:08 +00007090# Extract the first word of "groff", so it can be a program name with args.
7091set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094if test "${ac_cv_path_GROFF+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007096else
7097 case $GROFF in
7098 [\\/]* | ?:[\\/]*)
7099 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7100 ;;
7101 *)
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 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 +00007109 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007111 break 2
7112 fi
7113done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114done
Reid Spencera773bd52006-08-04 18:18:08 +00007115IFS=$as_save_IFS
7116
Reid Spencera773bd52006-08-04 18:18:08 +00007117 ;;
7118esac
7119fi
7120GROFF=$ac_cv_path_GROFF
7121if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122 { echo "$as_me:$LINENO: result: $GROFF" >&5
7123echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125 { echo "$as_me:$LINENO: result: no" >&5
7126echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007127fi
7128
7129
7130# Extract the first word of "gzip", so it can be a program name with args.
7131set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007134if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007136else
Eric Christopher031d3072010-12-10 01:31:51 +00007137 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007138 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007139 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 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 +00007149 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007151 break 2
7152 fi
7153done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154done
Reid Spencera773bd52006-08-04 18:18:08 +00007155IFS=$as_save_IFS
7156
Reid Spencera773bd52006-08-04 18:18:08 +00007157 ;;
7158esac
7159fi
Eric Christopher031d3072010-12-10 01:31:51 +00007160GZIPBIN=$ac_cv_path_GZIPBIN
7161if test -n "$GZIPBIN"; then
7162 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7163echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 { echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007167fi
7168
7169
7170# Extract the first word of "pod2html", so it can be a program name with args.
7171set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_path_POD2HTML+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007176else
7177 case $POD2HTML in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 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 +00007189 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007191 break 2
7192 fi
7193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194done
Reid Spencera773bd52006-08-04 18:18:08 +00007195IFS=$as_save_IFS
7196
Reid Spencera773bd52006-08-04 18:18:08 +00007197 ;;
7198esac
7199fi
7200POD2HTML=$ac_cv_path_POD2HTML
7201if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7203echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205 { echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007207fi
7208
7209
7210# Extract the first word of "pod2man", so it can be a program name with args.
7211set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214if test "${ac_cv_path_POD2MAN+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007216else
7217 case $POD2MAN in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 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 +00007229 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007231 break 2
7232 fi
7233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234done
Reid Spencera773bd52006-08-04 18:18:08 +00007235IFS=$as_save_IFS
7236
Reid Spencera773bd52006-08-04 18:18:08 +00007237 ;;
7238esac
7239fi
7240POD2MAN=$ac_cv_path_POD2MAN
7241if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7243echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245 { echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007247fi
7248
7249
mike-m68cb3192010-05-06 23:45:43 +00007250# Extract the first word of "pdfroff", so it can be a program name with args.
7251set dummy pdfroff; ac_word=$2
7252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254if test "${ac_cv_path_PDFROFF+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257 case $PDFROFF in
7258 [\\/]* | ?:[\\/]*)
7259 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7260 ;;
7261 *)
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275IFS=$as_save_IFS
7276
7277 ;;
7278esac
7279fi
7280PDFROFF=$ac_cv_path_PDFROFF
7281if test -n "$PDFROFF"; then
7282 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7283echo "${ECHO_T}$PDFROFF" >&6; }
7284else
7285 { echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6; }
7287fi
7288
7289
Reid Spencera773bd52006-08-04 18:18:08 +00007290# Extract the first word of "runtest", so it can be a program name with args.
7291set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294if test "${ac_cv_path_RUNTEST+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007296else
7297 case $RUNTEST in
7298 [\\/]* | ?:[\\/]*)
7299 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7300 ;;
7301 *)
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 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 +00007309 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007311 break 2
7312 fi
7313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314done
Reid Spencera773bd52006-08-04 18:18:08 +00007315IFS=$as_save_IFS
7316
Reid Spencera773bd52006-08-04 18:18:08 +00007317 ;;
7318esac
7319fi
7320RUNTEST=$ac_cv_path_RUNTEST
7321if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7323echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 { echo "$as_me:$LINENO: result: no" >&5
7326echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007327fi
7328
7329
7330
7331no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7333echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007334
7335# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007337 withval=$with_tclinclude; with_tclinclude=${withval}
7338else
7339 with_tclinclude=''
7340fi
7341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342if test "${ac_cv_path_tclsh+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007344else
7345
7346if test x"${with_tclinclude}" != x ; then
7347 if test -f ${with_tclinclude}/tclsh ; then
7348 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7349 elif test -f ${with_tclinclude}/src/tclsh ; then
7350 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7351 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007352 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7353echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7354 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007355 fi
7356fi
Torok Edwin871384f2010-01-26 08:50:50 +00007357fi
7358
Reid Spencera773bd52006-08-04 18:18:08 +00007359
7360if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 { echo "$as_me:$LINENO: result: none" >&5
7362echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007363 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
7364do
7365 # Extract the first word of "$ac_prog", so it can be a program name with args.
7366set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369if test "${ac_cv_path_TCLSH+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007371else
7372 case $TCLSH in
7373 [\\/]* | ?:[\\/]*)
7374 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7375 ;;
7376 *)
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 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 +00007384 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007386 break 2
7387 fi
7388done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389done
Reid Spencera773bd52006-08-04 18:18:08 +00007390IFS=$as_save_IFS
7391
7392 ;;
7393esac
7394fi
7395TCLSH=$ac_cv_path_TCLSH
7396if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7398echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 { echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007402fi
7403
7404
7405 test -n "$TCLSH" && break
7406done
7407
7408 if test x"${TCLSH}" = x ; then
7409 ac_cv_path_tclsh='';
7410 else
7411 ac_cv_path_tclsh="${TCLSH}";
7412 fi
7413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7415echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416 TCLSH="${ac_cv_path_tclsh}"
7417
7418fi
7419
Reid Spencera773bd52006-08-04 18:18:08 +00007420# Extract the first word of "zip", so it can be a program name with args.
7421set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424if test "${ac_cv_path_ZIP+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007426else
7427 case $ZIP in
7428 [\\/]* | ?:[\\/]*)
7429 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7430 ;;
7431 *)
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 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 +00007439 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007441 break 2
7442 fi
7443done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444done
Reid Spencera773bd52006-08-04 18:18:08 +00007445IFS=$as_save_IFS
7446
Reid Spencera773bd52006-08-04 18:18:08 +00007447 ;;
7448esac
7449fi
7450ZIP=$ac_cv_path_ZIP
7451if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 { echo "$as_me:$LINENO: result: $ZIP" >&5
7453echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455 { echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007457fi
7458
7459
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007460for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007461do
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466if test "${ac_cv_path_OCAMLC+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007468else
7469 case $OCAMLC in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7472 ;;
7473 *)
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 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 +00007481 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007483 break 2
7484 fi
7485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007487IFS=$as_save_IFS
7488
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007489 ;;
7490esac
7491fi
7492OCAMLC=$ac_cv_path_OCAMLC
7493if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007494 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7495echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 { echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007499fi
7500
7501
Gordon Henriksene7072162008-03-07 18:20:01 +00007502 test -n "$OCAMLC" && break
7503done
7504
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007505for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007506do
7507 # Extract the first word of "$ac_prog", so it can be a program name with args.
7508set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007513else
7514 case $OCAMLOPT in
7515 [\\/]* | ?:[\\/]*)
7516 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7517 ;;
7518 *)
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 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 +00007526 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007528 break 2
7529 fi
7530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007532IFS=$as_save_IFS
7533
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007534 ;;
7535esac
7536fi
7537OCAMLOPT=$ac_cv_path_OCAMLOPT
7538if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7540echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 { echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007544fi
7545
7546
Gordon Henriksene7072162008-03-07 18:20:01 +00007547 test -n "$OCAMLOPT" && break
7548done
7549
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007550for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007551do
7552 # Extract the first word of "$ac_prog", so it can be a program name with args.
7553set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007558else
7559 case $OCAMLDEP in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7562 ;;
7563 *)
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 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 +00007571 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007573 break 2
7574 fi
7575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007577IFS=$as_save_IFS
7578
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007579 ;;
7580esac
7581fi
7582OCAMLDEP=$ac_cv_path_OCAMLDEP
7583if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7585echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007589fi
7590
7591
Gordon Henriksene7072162008-03-07 18:20:01 +00007592 test -n "$OCAMLDEP" && break
7593done
7594
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007595for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007596do
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007603else
7604 case $OCAMLDOC in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 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 +00007616 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007618 break 2
7619 fi
7620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007622IFS=$as_save_IFS
7623
7624 ;;
7625esac
7626fi
7627OCAMLDOC=$ac_cv_path_OCAMLDOC
7628if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7630echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007634fi
7635
7636
7637 test -n "$OCAMLDOC" && break
7638done
7639
Torok Edwincc499a42008-10-22 09:56:27 +00007640for ac_prog in gas as
7641do
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_GAS+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007648else
7649 case $GAS in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007661 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007663 break 2
7664 fi
7665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666done
Torok Edwincc499a42008-10-22 09:56:27 +00007667IFS=$as_save_IFS
7668
7669 ;;
7670esac
7671fi
7672GAS=$ac_cv_path_GAS
7673if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: $GAS" >&5
7675echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007679fi
7680
7681
7682 test -n "$GAS" && break
7683done
7684
Reid Spencera773bd52006-08-04 18:18:08 +00007685
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007686{ echo "$as_me:$LINENO: checking for linker version" >&5
7687echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7688if test "${llvm_cv_link_version+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691
7692 version_string="$(ld -v 2>&1 | head -1)"
7693
7694 # Check for ld64.
7695 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007696 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007697 else
7698 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7699 fi
7700
7701fi
7702{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7703echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7704
7705cat >>confdefs.h <<_ACEOF
7706#define HOST_LINK_VERSION "$llvm_cv_link_version"
7707_ACEOF
7708
7709
7710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7712echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7713if test "${llvm_cv_link_use_r+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007715else
7716 ac_ext=c
7717ac_cpp='$CPP $CPPFLAGS'
7718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721
7722 oldcflags="$CFLAGS"
7723 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724 cat >conftest.$ac_ext <<_ACEOF
7725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007729/* end confdefs.h. */
7730
7731int
7732main ()
7733{
Dan Gohman39ed6782010-04-25 00:12:20 +00007734
Reid Spencera773bd52006-08-04 18:18:08 +00007735 ;
7736 return 0;
7737}
7738_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739rm -f conftest.$ac_objext conftest$ac_exeext
7740if { (ac_try="$ac_link"
7741case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744esac
7745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_link") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7754 { (case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7757esac
7758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_try") 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767esac
7768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007773 llvm_cv_link_use_r=yes
7774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775 echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007780
Bill Wendlingebcceee2009-04-18 11:20:33 +00007781rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007783 CFLAGS="$oldcflags"
7784 ac_ext=c
7785ac_cpp='$CPP $CPPFLAGS'
7786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789
7790
7791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7793echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007794if test "$llvm_cv_link_use_r" = yes ; then
7795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796cat >>confdefs.h <<\_ACEOF
7797#define HAVE_LINK_R 1
7798_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007799
7800 fi
7801
7802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7804echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7805if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007807else
7808 ac_ext=c
7809ac_cpp='$CPP $CPPFLAGS'
7810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813
7814 oldcflags="$CFLAGS"
7815 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007816 cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007821/* end confdefs.h. */
7822
7823int
7824main ()
7825{
Dan Gohman39ed6782010-04-25 00:12:20 +00007826
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007827 ;
7828 return 0;
7829}
7830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831rm -f conftest.$ac_objext conftest$ac_exeext
7832if { (ac_try="$ac_link"
7833case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836esac
7837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7846 { (case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_try") 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007865 llvm_cv_link_use_export_dynamic=yes
7866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872
Bill Wendlingebcceee2009-04-18 11:20:33 +00007873rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007874 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007875 CFLAGS="$oldcflags"
7876 ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882
7883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7885echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007886if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888cat >>confdefs.h <<\_ACEOF
7889#define HAVE_LINK_EXPORT_DYNAMIC 1
7890_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007891
7892 fi
7893
7894
Dan Gohmanda612d62010-06-01 14:56:56 +00007895{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7896echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7897if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906 oldcflags="$CFLAGS"
7907
7908 # The following code is from the autoconf manual,
7909 # "11.13: Limitations of Usual Tools".
7910 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7911 # Use mktemp if possible; otherwise fall back on mkdir,
7912 # with $RANDOM to make collisions less likely.
7913 : ${TMPDIR=/tmp}
7914 {
7915 tmp=`
7916 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7917 ` &&
7918 test -n "$tmp" && test -d "$tmp"
7919 } || {
7920 tmp=$TMPDIR/foo$$-$RANDOM
7921 (umask 077 && mkdir "$tmp")
7922 } || exit $?
7923
Dan Gohmanda612d62010-06-01 14:56:56 +00007924 echo "{" > "$tmp/export.map"
7925 echo " global: main;" >> "$tmp/export.map"
7926 echo " local: *;" >> "$tmp/export.map"
7927 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007928
Dan Gohmanda612d62010-06-01 14:56:56 +00007929 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007930 cat >conftest.$ac_ext <<_ACEOF
7931/* confdefs.h. */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
7935/* end confdefs.h. */
7936
7937int
7938main ()
7939{
Dan Gohman39ed6782010-04-25 00:12:20 +00007940
Dan Gohman391569c2010-04-16 22:59:06 +00007941 ;
7942 return 0;
7943}
7944_ACEOF
7945rm -f conftest.$ac_objext conftest$ac_exeext
7946if { (ac_try="$ac_link"
7947case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950esac
7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_link") 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7960 { (case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963esac
7964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_try") 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007979 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007980else
7981 echo "$as_me: failed program was:" >&5
7982sed 's/^/| /' conftest.$ac_ext >&5
7983
Dan Gohman943005e2010-06-01 16:22:27 +00007984 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007985fi
7986
7987rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007989 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007990 rmdir "$tmp"
7991 CFLAGS="$oldcflags"
7992 ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998
7999fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008000{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8001echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8002if test "$llvm_cv_link_use_version_script" = yes ; then
8003 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008004
8005 fi
8006
8007
Reid Spencera773bd52006-08-04 18:18:08 +00008008
8009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8011echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8012if test "${ac_cv_c_const+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008015 cat >conftest.$ac_ext <<_ACEOF
8016/* confdefs.h. */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008020/* end confdefs.h. */
8021
8022int
8023main ()
8024{
8025/* FIXME: Include the comments suggested by Paul. */
8026#ifndef __cplusplus
8027 /* Ultrix mips cc rejects this. */
8028 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008030 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008031 char const *const *ccp;
8032 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008033 /* NEC SVR4.0.2 mips cc rejects this. */
8034 struct point {int x, y;};
8035 static struct point const zero = {0,0};
8036 /* AIX XL C 1.02.0.0 rejects this.
8037 It does not let you subtract one const X* pointer from another in
8038 an arm of an if-expression whose if-part is not a constant
8039 expression */
8040 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008042 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043 ++ccp;
8044 p = (char**) ccp;
8045 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008046 { /* SCO 3.2v4 cc rejects this. */
8047 char *t;
8048 char const *s = 0 ? (char *) 0 : (char const *) 0;
8049
8050 *t++ = 0;
8051 if (s) return 0;
8052 }
8053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8054 int x[] = {25, 17};
8055 const int *foo = &x[0];
8056 ++foo;
8057 }
8058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8059 typedef const int *iptr;
8060 iptr p = 0;
8061 ++p;
8062 }
8063 { /* AIX XL C 1.02.0.0 rejects this saying
8064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8065 struct s { int j; const int *ap[3]; };
8066 struct s *b; b->j = 5;
8067 }
8068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8069 const int foo = 10;
8070 if (!foo) return 0;
8071 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008072 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008073#endif
8074
8075 ;
8076 return 0;
8077}
8078_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079rm -f conftest.$ac_objext
8080if { (ac_try="$ac_compile"
8081case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084esac
8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008113 ac_cv_c_const=yes
8114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120
Reid Spencera773bd52006-08-04 18:18:08 +00008121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8124echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008125if test $ac_cv_c_const = no; then
8126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127cat >>confdefs.h <<\_ACEOF
8128#define const
8129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008130
8131fi
8132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133
8134
8135
8136
8137
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008138ac_header_dirent=no
8139for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8141{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8142echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146 cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008151/* end confdefs.h. */
8152#include <sys/types.h>
8153#include <$ac_hdr>
8154
8155int
8156main ()
8157{
8158if ((DIR *) 0)
8159return 0;
8160 ;
8161 return 0;
8162}
8163_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164rm -f conftest.$ac_objext
8165if { (ac_try="$ac_compile"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192esac
8193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008198 eval "$as_ac_Header=yes"
8199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205
Reid Spencera773bd52006-08-04 18:18:08 +00008206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008208ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210echo "${ECHO_T}$ac_res" >&6; }
8211if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008212 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008214_ACEOF
8215
8216ac_header_dirent=$ac_hdr; break
8217fi
8218
8219done
8220# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8221if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8223echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8224if test "${ac_cv_search_opendir+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008226else
8227 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228cat >conftest.$ac_ext <<_ACEOF
8229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233/* end confdefs.h. */
8234
Reid Spencera773bd52006-08-04 18:18:08 +00008235/* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238#ifdef __cplusplus
8239extern "C"
8240#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241char opendir ();
8242int
8243main ()
8244{
Reid Spencera773bd52006-08-04 18:18:08 +00008245return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246 ;
8247 return 0;
8248}
8249_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008250for ac_lib in '' dir; do
8251 if test -z "$ac_lib"; then
8252 ac_res="none required"
8253 else
8254 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008256 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 rm -f conftest.$ac_objext conftest$ac_exeext
8258if { (ac_try="$ac_link"
8259case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262esac
8263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272 { (case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275esac
8276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_try") 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_try") 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008291 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292else
8293 echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298
Bill Wendlingebcceee2009-04-18 11:20:33 +00008299rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 conftest$ac_exeext
8301 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008302 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008303fi
John Criswell7a73b802003-06-30 21:59:07 +00008304done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305if test "${ac_cv_search_opendir+set}" = set; then
8306 :
Reid Spencera773bd52006-08-04 18:18:08 +00008307else
8308 ac_cv_search_opendir=no
8309fi
8310rm conftest.$ac_ext
8311LIBS=$ac_func_search_save_LIBS
8312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8314echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008315ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008318
Reid Spencera773bd52006-08-04 18:18:08 +00008319fi
8320
8321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8323echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8324if test "${ac_cv_search_opendir+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008326else
8327 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008333/* end confdefs.h. */
8334
8335/* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8338#ifdef __cplusplus
8339extern "C"
8340#endif
8341char opendir ();
8342int
8343main ()
8344{
8345return opendir ();
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350for ac_lib in '' x; do
8351 if test -z "$ac_lib"; then
8352 ac_res="none required"
8353 else
8354 ac_res=-l$ac_lib
8355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8356 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357 rm -f conftest.$ac_objext conftest$ac_exeext
8358if { (ac_try="$ac_link"
8359case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008391 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392else
8393 echo "$as_me: failed program was:" >&5
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
8396
Reid Spencera773bd52006-08-04 18:18:08 +00008397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398
Bill Wendlingebcceee2009-04-18 11:20:33 +00008399rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400 conftest$ac_exeext
8401 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008402 break
8403fi
8404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405if test "${ac_cv_search_opendir+set}" = set; then
8406 :
Reid Spencera773bd52006-08-04 18:18:08 +00008407else
8408 ac_cv_search_opendir=no
8409fi
8410rm conftest.$ac_ext
8411LIBS=$ac_func_search_save_LIBS
8412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8414echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008415ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8418
8419fi
8420
8421fi
John Criswell7a73b802003-06-30 21:59:07 +00008422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008423
John Criswell7a73b802003-06-30 21:59:07 +00008424for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425do
8426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432fi
8433ac_res=`eval echo '${'$as_ac_Header'}'`
8434 { echo "$as_me:$LINENO: result: $ac_res" >&5
8435echo "${ECHO_T}$ac_res" >&6; }
8436else
8437 # Is the header compilable?
8438{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8440cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446$ac_includes_default
8447#include <$ac_header>
8448_ACEOF
8449rm -f conftest.$ac_objext
8450if { (ac_try="$ac_compile"
8451case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8484else
8485 echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488 ac_header_compiler=no
8489fi
8490
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493echo "${ECHO_T}$ac_header_compiler" >&6; }
8494
8495# Is the header present?
8496{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8498cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
8504#include <$ac_header>
8505_ACEOF
8506if { (ac_try="$ac_cpp conftest.$ac_ext"
8507case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510esac
8511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } >/dev/null; then
8519 if test -s conftest.err; then
8520 ac_cpp_err=$ac_c_preproc_warn_flag
8521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8522 else
8523 ac_cpp_err=
8524 fi
8525else
8526 ac_cpp_err=yes
8527fi
8528if test -z "$ac_cpp_err"; then
8529 ac_header_preproc=yes
8530else
8531 echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_header_preproc=no
8535fi
8536
8537rm -f conftest.err conftest.$ac_ext
8538{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539echo "${ECHO_T}$ac_header_preproc" >&6; }
8540
8541# So? What about this header?
8542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8543 yes:no: )
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
8549 ;;
8550 no:yes:* )
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8563 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008564## ------------------------------------ ##
8565## Report this to http://llvm.org/bugs/ ##
8566## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008567_ASBOX
8568 ) | sed "s/^/$as_me: WARNING: /" >&2
8569 ;;
8570esac
8571{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576 eval "$as_ac_Header=\$ac_header_preproc"
8577fi
8578ac_res=`eval echo '${'$as_ac_Header'}'`
8579 { echo "$as_me:$LINENO: result: $ac_res" >&5
8580echo "${ECHO_T}$ac_res" >&6; }
8581
8582fi
8583if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008584 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008586_ACEOF
8587
8588fi
8589
8590done
8591
Reid Spencera773bd52006-08-04 18:18:08 +00008592# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008593if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008594 enableval=$enable_ltdl_install;
8595fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008596
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008598
8599
8600if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008601 INSTALL_LTDL_TRUE=
8602 INSTALL_LTDL_FALSE='#'
8603else
8604 INSTALL_LTDL_TRUE='#'
8605 INSTALL_LTDL_FALSE=
8606fi
8607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008608
8609
8610if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008611 CONVENIENCE_LTDL_TRUE=
8612 CONVENIENCE_LTDL_FALSE='#'
8613else
8614 CONVENIENCE_LTDL_TRUE='#'
8615 CONVENIENCE_LTDL_FALSE=
8616fi
8617
8618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008621library_names_spec=
8622libname_spec='lib$name'
8623soname_spec=
8624shrext_cmds=".so"
8625postinstall_cmds=
8626postuninstall_cmds=
8627finish_cmds=
8628finish_eval=
8629shlibpath_var=
8630shlibpath_overrides_runpath=unknown
8631version_type=none
8632dynamic_linker="$host_os ld.so"
8633sys_lib_dlsearch_path_spec="/lib /usr/lib"
8634if test "$GCC" = yes; then
8635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8637 # if the path contains ";" then we assume it to be the separator
8638 # otherwise default to the standard path separator (i.e. ":") - it is
8639 # assumed that no part of a normal pathname contains ";" but that should
8640 # okay in the real world where ";" in dirpaths is itself problematic.
8641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8642 else
8643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8644 fi
8645else
8646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8647fi
8648need_lib_prefix=unknown
8649hardcode_into_libs=no
8650
8651# when you set need_version to no, make sure it does not cause -set_version
8652# flags to be left without arguments
8653need_version=unknown
8654
8655case $host_os in
8656aix3*)
8657 version_type=linux
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8659 shlibpath_var=LIBPATH
8660
8661 # AIX 3 has no versioning support, so we append a major version to the name.
8662 soname_spec='${libname}${release}${shared_ext}$major'
8663 ;;
8664
8665aix4* | aix5*)
8666 version_type=linux
8667 need_lib_prefix=no
8668 need_version=no
8669 hardcode_into_libs=yes
8670 if test "$host_cpu" = ia64; then
8671 # AIX 5 supports IA64
8672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 else
8675 # With GCC up to 2.95.x, collect2 would create an import file
8676 # for dependence libraries. The import file would start with
8677 # the line `#! .'. This would cause the generated library to
8678 # depend on `.', always an invalid library. This was fixed in
8679 # development snapshots of GCC prior to 3.0.
8680 case $host_os in
8681 aix4 | aix4.[01] | aix4.[01].*)
8682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8683 echo ' yes '
8684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8685 :
8686 else
8687 can_build_shared=no
8688 fi
8689 ;;
8690 esac
8691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8692 # soname into executable. Probably we can add versioning support to
8693 # collect2, so additional links can be useful in future.
8694 if test "$aix_use_runtimelinking" = yes; then
8695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8696 # instead of lib<name>.a to let people know that these are not
8697 # typical AIX shared libraries.
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 else
8700 # We preserve .a as extension for shared libraries through AIX4.2
8701 # and later when we are not doing run time linking.
8702 library_names_spec='${libname}${release}.a $libname.a'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 fi
8705 shlibpath_var=LIBPATH
8706 fi
8707 ;;
8708
8709amigaos*)
8710 library_names_spec='$libname.ixlibrary $libname.a'
8711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8712 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'
8713 ;;
8714
8715beos*)
8716 library_names_spec='${libname}${shared_ext}'
8717 dynamic_linker="$host_os ld.so"
8718 shlibpath_var=LIBRARY_PATH
8719 ;;
8720
8721bsdi[45]*)
8722 version_type=linux
8723 need_version=no
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730 # the default ld.so.conf also contains /usr/contrib/lib and
8731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732 # libtool to hard-code these into programs
8733 ;;
8734
8735cygwin* | mingw* | pw32*)
8736 version_type=windows
8737 shrext_cmds=".dll"
8738 need_version=no
8739 need_lib_prefix=no
8740
8741 case $GCC,$host_os in
8742 yes,cygwin* | yes,mingw* | yes,pw32*)
8743 library_names_spec='$libname.dll.a'
8744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745 postinstall_cmds='base_file=`basename \${file}`~
8746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8747 dldir=$destdir/`dirname \$dlpath`~
8748 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008749 $install_prog $dir/$dlname \$dldir/$dlname~
8750 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8752 dlpath=$dir/\$dldll~
8753 $rm \$dlpath'
8754 shlibpath_overrides_runpath=yes
8755
8756 case $host_os in
8757 cygwin*)
8758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8761 ;;
8762 mingw*)
8763 # MinGW DLLs use traditional 'lib' prefix
8764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8767 # It is most probably a Windows format PATH printed by
8768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8769 # path with ; separators, and with drive letters. We can handle the
8770 # drive letters (cygwin fileutils understands them), so leave them,
8771 # especially as we might pass files found there to a mingw objdump,
8772 # which wouldn't understand a cygwinified path. Ahh.
8773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8774 else
8775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8776 fi
8777 ;;
8778 pw32*)
8779 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008780 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 +00008781 ;;
8782 esac
8783 ;;
8784
8785 *)
8786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8787 ;;
8788 esac
8789 dynamic_linker='Win32 ld.exe'
8790 # FIXME: first we should search . and the directory the executable is in
8791 shlibpath_var=PATH
8792 ;;
8793
8794darwin* | rhapsody*)
8795 dynamic_linker="$host_os dyld"
8796 version_type=darwin
8797 need_lib_prefix=no
8798 need_version=no
8799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8800 soname_spec='${libname}${release}${major}$shared_ext'
8801 shlibpath_overrides_runpath=yes
8802 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008803 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8805 if test "$GCC" = yes; then
8806 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"`
8807 else
8808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8809 fi
8810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8811 ;;
8812
8813dgux*)
8814 version_type=linux
8815 need_lib_prefix=no
8816 need_version=no
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 ;;
8821
Eric Christopher360fa9a2011-10-26 00:42:12 +00008822freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008823 dynamic_linker=no
8824 ;;
8825
8826kfreebsd*-gnu)
8827 version_type=linux
8828 need_lib_prefix=no
8829 need_version=no
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=no
8834 hardcode_into_libs=yes
8835 dynamic_linker='GNU ld.so'
8836 ;;
8837
Reid Spencera773bd52006-08-04 18:18:08 +00008838freebsd* | dragonfly*)
8839 # DragonFly does not have aout. When/if they implement a new
8840 # versioning mechanism, adjust this.
8841 if test -x /usr/bin/objformat; then
8842 objformat=`/usr/bin/objformat`
8843 else
8844 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008845 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008846 *) objformat=elf ;;
8847 esac
8848 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008849 version_type=freebsd-$objformat
8850 case $version_type in
8851 freebsd-elf*)
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8853 need_version=no
8854 need_lib_prefix=no
8855 ;;
8856 freebsd-*)
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8858 need_version=yes
8859 ;;
8860 esac
8861 shlibpath_var=LD_LIBRARY_PATH
8862 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008863 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008864 shlibpath_overrides_runpath=yes
8865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008866 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008872 shlibpath_overrides_runpath=no
8873 hardcode_into_libs=yes
8874 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008875 freebsd*) # from 4.6 on
8876 shlibpath_overrides_runpath=yes
8877 hardcode_into_libs=yes
8878 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008879 esac
8880 ;;
8881
8882gnu*)
8883 version_type=linux
8884 need_lib_prefix=no
8885 need_version=no
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 hardcode_into_libs=yes
8890 ;;
8891
8892hpux9* | hpux10* | hpux11*)
8893 # Give a soname corresponding to the major version so that dld.sl refuses to
8894 # link against other versions.
8895 version_type=sunos
8896 need_lib_prefix=no
8897 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008898 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008899 ia64*)
8900 shrext_cmds='.so'
8901 hardcode_into_libs=yes
8902 dynamic_linker="$host_os dld.so"
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 if test "X$HPUX_IA64_MODE" = X32; then
8908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8909 else
8910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8911 fi
8912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8913 ;;
8914 hppa*64*)
8915 shrext_cmds='.sl'
8916 hardcode_into_libs=yes
8917 dynamic_linker="$host_os dld.sl"
8918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8924 ;;
8925 *)
8926 shrext_cmds='.sl'
8927 dynamic_linker="$host_os dld.sl"
8928 shlibpath_var=SHLIB_PATH
8929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 ;;
8933 esac
8934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8935 postinstall_cmds='chmod 555 $lib'
8936 ;;
8937
Reid Spencera773bd52006-08-04 18:18:08 +00008938interix3*)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8948 ;;
8949
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008950irix5* | irix6* | nonstopux*)
8951 case $host_os in
8952 nonstopux*) version_type=nonstopux ;;
8953 *)
8954 if test "$lt_cv_prog_gnu_ld" = yes; then
8955 version_type=linux
8956 else
8957 version_type=irix
8958 fi ;;
8959 esac
8960 need_lib_prefix=no
8961 need_version=no
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8964 case $host_os in
8965 irix5* | nonstopux*)
8966 libsuff= shlibsuff=
8967 ;;
8968 *)
8969 case $LD in # libtool.m4 will add one of these switches to LD
8970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8971 libsuff= shlibsuff= libmagic=32-bit;;
8972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8973 libsuff=32 shlibsuff=N32 libmagic=N32;;
8974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8976 *) libsuff= shlibsuff= libmagic=never-match;;
8977 esac
8978 ;;
8979 esac
8980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8981 shlibpath_overrides_runpath=no
8982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8984 hardcode_into_libs=yes
8985 ;;
8986
8987# No shared lib support for Linux oldld, aout, or coff.
8988linux*oldld* | linux*aout* | linux*coff*)
8989 dynamic_linker=no
8990 ;;
8991
8992# This must be Linux ELF.
8993linux*)
8994 version_type=linux
8995 need_lib_prefix=no
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=no
9002 # This implies no fast_install, which is unacceptable.
9003 # Some rework will be needed to allow for fast_install
9004 # before this can be enabled.
9005 hardcode_into_libs=yes
9006
9007 # Append ld.so.conf contents to the search path
9008 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009009 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 +00009010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9011 fi
9012
9013 # We used to test for /lib/ld.so.1 and disable shared libraries on
9014 # powerpc, because MkLinux only supported shared libraries with the
9015 # GNU dynamic linker. Since this was broken with cross compilers,
9016 # most powerpc-linux boxes support dynamic linking these days and
9017 # people can always --disable-shared, the test was removed, and we
9018 # assume the GNU/Linux dynamic linker is in use.
9019 dynamic_linker='GNU/Linux ld.so'
9020 ;;
9021
9022knetbsd*-gnu)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9032 ;;
9033
9034netbsd*)
9035 version_type=sunos
9036 need_lib_prefix=no
9037 need_version=no
9038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041 dynamic_linker='NetBSD (a.out) ld.so'
9042 else
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 dynamic_linker='NetBSD ld.elf_so'
9046 fi
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9050 ;;
9051
9052newsos6)
9053 version_type=linux
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058
9059nto-qnx*)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 ;;
9068
9069openbsd*)
9070 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009071 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009072 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9074 case $host_os in
9075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9076 *) need_version=no ;;
9077 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9082 case $host_os in
9083 openbsd2.[89] | openbsd2.[89].*)
9084 shlibpath_overrides_runpath=no
9085 ;;
9086 *)
9087 shlibpath_overrides_runpath=yes
9088 ;;
9089 esac
9090 else
9091 shlibpath_overrides_runpath=yes
9092 fi
9093 ;;
9094
9095os2*)
9096 libname_spec='$name'
9097 shrext_cmds=".dll"
9098 need_lib_prefix=no
9099 library_names_spec='$libname${shared_ext} $libname.a'
9100 dynamic_linker='OS/2 ld.exe'
9101 shlibpath_var=LIBPATH
9102 ;;
9103
9104osf3* | osf4* | osf5*)
9105 version_type=osf
9106 need_lib_prefix=no
9107 need_version=no
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9113 ;;
9114
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009115solaris*)
9116 version_type=linux
9117 need_lib_prefix=no
9118 need_version=no
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9123 hardcode_into_libs=yes
9124 # ldd complains unless libraries are executable
9125 postinstall_cmds='chmod +x $lib'
9126 ;;
9127
9128sunos4*)
9129 version_type=sunos
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 if test "$with_gnu_ld" = yes; then
9135 need_lib_prefix=no
9136 fi
9137 need_version=yes
9138 ;;
9139
Reid Spencera773bd52006-08-04 18:18:08 +00009140sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141 version_type=linux
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 case $host_vendor in
9146 sni)
9147 shlibpath_overrides_runpath=no
9148 need_lib_prefix=no
9149 export_dynamic_flag_spec='${wl}-Blargedynsym'
9150 runpath_var=LD_RUN_PATH
9151 ;;
9152 siemens)
9153 need_lib_prefix=no
9154 ;;
9155 motorola)
9156 need_lib_prefix=no
9157 need_version=no
9158 shlibpath_overrides_runpath=no
9159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9160 ;;
9161 esac
9162 ;;
9163
9164sysv4*MP*)
9165 if test -d /usr/nec ;then
9166 version_type=linux
9167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168 soname_spec='$libname${shared_ext}.$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 fi
9171 ;;
9172
Reid Spencera773bd52006-08-04 18:18:08 +00009173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174 version_type=freebsd-elf
9175 need_lib_prefix=no
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 hardcode_into_libs=yes
9181 if test "$with_gnu_ld" = yes; then
9182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9183 shlibpath_overrides_runpath=no
9184 else
9185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186 shlibpath_overrides_runpath=yes
9187 case $host_os in
9188 sco3.2v5*)
9189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9190 ;;
9191 esac
9192 fi
9193 sys_lib_dlsearch_path_spec='/usr/lib'
9194 ;;
9195
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196uts4*)
9197 version_type=linux
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 ;;
9202
9203*)
9204 dynamic_linker=no
9205 ;;
9206esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009207{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9208echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209test "$dynamic_linker" = no && can_build_shared=no
9210
Reid Spencera773bd52006-08-04 18:18:08 +00009211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9212if test "$GCC" = yes; then
9213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9214fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215
Reid Spencera773bd52006-08-04 18:18:08 +00009216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9218echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9219if test "${libltdl_cv_shlibext+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221else
9222
9223module=yes
9224eval libltdl_cv_shlibext=$shrext_cmds
9225
9226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009227{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9228echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229if test -n "$libltdl_cv_shlibext"; then
9230
9231cat >>confdefs.h <<_ACEOF
9232#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9233_ACEOF
9234
9235fi
9236
9237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009238{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9239echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9240if test "${libltdl_cv_shlibpath_var+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242else
9243 libltdl_cv_shlibpath_var="$shlibpath_var"
9244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009245{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9246echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247if test -n "$libltdl_cv_shlibpath_var"; then
9248
9249cat >>confdefs.h <<_ACEOF
9250#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9251_ACEOF
9252
9253fi
9254
9255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009256{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9257echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9258if test "${libltdl_cv_sys_search_path+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260else
9261 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009263{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9264echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009265if test -n "$libltdl_cv_sys_search_path"; then
9266 sys_search_path=
9267 for dir in $libltdl_cv_sys_search_path; do
9268 if test -z "$sys_search_path"; then
9269 sys_search_path="$dir"
9270 else
9271 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9272 fi
9273 done
9274
9275cat >>confdefs.h <<_ACEOF
9276#define LTDL_SYSSEARCHPATH "$sys_search_path"
9277_ACEOF
9278
9279fi
9280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281{ echo "$as_me:$LINENO: checking for objdir" >&5
9282echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9283if test "${libltdl_cv_objdir+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285else
9286 libltdl_cv_objdir="$objdir"
9287 if test -n "$objdir"; then
9288 :
9289 else
9290 rm -f .libs 2>/dev/null
9291 mkdir .libs 2>/dev/null
9292 if test -d .libs; then
9293 libltdl_cv_objdir=.libs
9294 else
9295 # MS-DOS does not allow filenames that begin with a dot.
9296 libltdl_cv_objdir=_libs
9297 fi
9298 rmdir .libs 2>/dev/null
9299 fi
9300
9301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9303echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009304
9305cat >>confdefs.h <<_ACEOF
9306#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9307_ACEOF
9308
9309
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310
9311
9312
9313
9314# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009315{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9316echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9317if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319else
9320
9321# These are sane defaults that work on at least a few old systems.
9322# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9323
9324# Character class describing NM global symbol codes.
9325symcode='[BCDEGRST]'
9326
9327# Regexp to match symbols that can be accessed directly from C.
9328sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9329
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330# Transform an extracted symbol line into a proper C declaration
9331lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9332
9333# Transform an extracted symbol line into symbol name and symbol address
9334lt_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'"
9335
9336# Define system-specific variables.
9337case $host_os in
9338aix*)
9339 symcode='[BCDT]'
9340 ;;
9341cygwin* | mingw* | pw32*)
9342 symcode='[ABCDGISTW]'
9343 ;;
9344hpux*) # Its linker distinguishes data from code symbols
9345 if test "$host_cpu" = ia64; then
9346 symcode='[ABCDEGRST]'
9347 fi
9348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9349 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'"
9350 ;;
9351linux*)
9352 if test "$host_cpu" = ia64; then
9353 symcode='[ABCDGIRSTW]'
9354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9355 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'"
9356 fi
9357 ;;
9358irix* | nonstopux*)
9359 symcode='[BCDEGRST]'
9360 ;;
9361osf*)
9362 symcode='[BCDEGQRST]'
9363 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009364solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365 symcode='[BDRT]'
9366 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009367sco3.2v5*)
9368 symcode='[DT]'
9369 ;;
9370sysv4.2uw2*)
9371 symcode='[DT]'
9372 ;;
9373sysv5* | sco5v6* | unixware* | OpenUNIX*)
9374 symcode='[ABDT]'
9375 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376sysv4)
9377 symcode='[DFNSTU]'
9378 ;;
9379esac
9380
9381# Handle CRLF in mingw tool chain
9382opt_cr=
9383case $build_os in
9384mingw*)
9385 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9386 ;;
9387esac
9388
9389# If we're using GNU nm, then use its standard symbol codes.
9390case `$NM -V 2>&1` in
9391*GNU* | *'with BFD'*)
9392 symcode='[ABCDGIRSTW]' ;;
9393esac
9394
9395# Try without a prefix undercore, then with it.
9396for ac_symprfx in "" "_"; do
9397
Reid Spencera773bd52006-08-04 18:18:08 +00009398 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9399 symxfrm="\\1 $ac_symprfx\\2 \\2"
9400
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009402 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 +00009403
9404 # Check to see that the pipe works correctly.
9405 pipe_works=no
9406
9407 rm -f conftest*
9408 cat > conftest.$ac_ext <<EOF
9409#ifdef __cplusplus
9410extern "C" {
9411#endif
9412char nm_test_var;
9413void nm_test_func(){}
9414#ifdef __cplusplus
9415}
9416#endif
9417int main(){nm_test_var='a';nm_test_func();return(0);}
9418EOF
9419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009421 (eval $ac_compile) 2>&5
9422 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425 # Now try to grab the symbols.
9426 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427 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 +00009428 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9429 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432 # Try sorting and uniquifying the output.
9433 if sort "$nlist" | uniq > "$nlist"T; then
9434 mv -f "$nlist"T "$nlist"
9435 else
9436 rm -f "$nlist"T
9437 fi
9438
9439 # Make sure that we snagged all the symbols we need.
9440 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9441 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9442 cat <<EOF > conftest.$ac_ext
9443#ifdef __cplusplus
9444extern "C" {
9445#endif
9446
9447EOF
9448 # Now generate the symbol file.
9449 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9450
9451 cat <<EOF >> conftest.$ac_ext
9452#if defined (__STDC__) && __STDC__
9453# define lt_ptr_t void *
9454#else
9455# define lt_ptr_t char *
9456# define const
9457#endif
9458
9459/* The mapping between symbol names and symbols. */
9460const struct {
9461 const char *name;
9462 lt_ptr_t address;
9463}
9464lt_preloaded_symbols[] =
9465{
9466EOF
9467 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9468 cat <<\EOF >> conftest.$ac_ext
9469 {0, (lt_ptr_t) 0}
9470};
9471
9472#ifdef __cplusplus
9473}
9474#endif
9475EOF
9476 # Now try linking the two files.
9477 mv conftest.$ac_objext conftstm.$ac_objext
9478 lt_save_LIBS="$LIBS"
9479 lt_save_CFLAGS="$CFLAGS"
9480 LIBS="conftstm.$ac_objext"
9481 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483 (eval $ac_link) 2>&5
9484 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487 pipe_works=yes
9488 fi
9489 LIBS="$lt_save_LIBS"
9490 CFLAGS="$lt_save_CFLAGS"
9491 else
9492 echo "cannot find nm_test_func in $nlist" >&5
9493 fi
9494 else
9495 echo "cannot find nm_test_var in $nlist" >&5
9496 fi
9497 else
9498 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9499 fi
9500 else
9501 echo "$progname: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 fi
9504 rm -f conftest* conftst*
9505
9506 # Do not use the global_symbol_pipe unless it works.
9507 if test "$pipe_works" = yes; then
9508 break
9509 else
9510 lt_cv_sys_global_symbol_pipe=
9511 fi
9512done
9513
9514fi
9515
9516if test -z "$lt_cv_sys_global_symbol_pipe"; then
9517 lt_cv_sys_global_symbol_to_cdecl=
9518fi
9519if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009520 { echo "$as_me:$LINENO: result: failed" >&5
9521echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009523 { echo "$as_me:$LINENO: result: ok" >&5
9524echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525fi
9526
9527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009528{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9529echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9530if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009532else
9533 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9534 libltdl_cv_preloaded_symbols=yes
9535 else
9536 libltdl_cv_preloaded_symbols=no
9537 fi
9538
9539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9541echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544cat >>confdefs.h <<\_ACEOF
9545#define HAVE_PRELOADED_SYMBOLS 1
9546_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547
9548fi
9549
9550LIBADD_DL=
9551
9552ac_ext=c
9553ac_cpp='$CPP $CPPFLAGS'
9554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009559{ echo "$as_me:$LINENO: checking for shl_load" >&5
9560echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9561if test "${ac_cv_func_shl_load+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
9570/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9572#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009574/* System header to define __stub macros and hopefully few prototypes,
9575 which can conflict with char shl_load (); below.
9576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577 <limits.h> exists even on freestanding compilers. */
9578
9579#ifdef __STDC__
9580# include <limits.h>
9581#else
9582# include <assert.h>
9583#endif
9584
9585#undef shl_load
9586
9587/* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9590#ifdef __cplusplus
9591extern "C"
9592#endif
9593char shl_load ();
9594/* The GNU C library defines this for functions which it implements
9595 to always fail with ENOSYS. Some functions are actually named
9596 something starting with __ and the normal name is an alias. */
9597#if defined __stub_shl_load || defined __stub___shl_load
9598choke me
9599#endif
9600
9601int
9602main ()
9603{
9604return shl_load ();
9605 ;
9606 return 0;
9607}
9608_ACEOF
9609rm -f conftest.$ac_objext conftest$ac_exeext
9610if { (ac_try="$ac_link"
9611case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614esac
9615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627esac
9628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_try") 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_func_shl_load=yes
9644else
9645 echo "$as_me: failed program was:" >&5
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ac_cv_func_shl_load=no
9649fi
9650
9651rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653fi
9654{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9655echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9656if test $ac_cv_func_shl_load = yes; then
9657
9658cat >>confdefs.h <<\_ACEOF
9659#define HAVE_SHL_LOAD 1
9660_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661
9662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9664echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9665if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667else
9668 ac_check_lib_save_LIBS=$LIBS
9669LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675/* end confdefs.h. */
9676
Reid Spencera773bd52006-08-04 18:18:08 +00009677/* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680#ifdef __cplusplus
9681extern "C"
9682#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683char shl_load ();
9684int
9685main ()
9686{
Reid Spencera773bd52006-08-04 18:18:08 +00009687return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 ;
9689 return 0;
9690}
9691_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (ac_try="$ac_link"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726 ac_cv_lib_dld_shl_load=yes
9727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009733
Bill Wendlingebcceee2009-04-18 11:20:33 +00009734rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009735 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736LIBS=$ac_check_lib_save_LIBS
9737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009738{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9739echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9740if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009742cat >>confdefs.h <<\_ACEOF
9743#define HAVE_SHL_LOAD 1
9744_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745
9746 LIBADD_DL="$LIBADD_DL -ldld"
9747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752else
9753 ac_check_lib_save_LIBS=$LIBS
9754LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760/* end confdefs.h. */
9761
Reid Spencera773bd52006-08-04 18:18:08 +00009762/* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765#ifdef __cplusplus
9766extern "C"
9767#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768char dlopen ();
9769int
9770main ()
9771{
Reid Spencera773bd52006-08-04 18:18:08 +00009772return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773 ;
9774 return 0;
9775}
9776_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009777rm -f conftest.$ac_objext conftest$ac_exeext
9778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805esac
9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811 ac_cv_lib_dl_dlopen=yes
9812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009813 echo "$as_me: failed program was:" >&5
9814sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009818
Bill Wendlingebcceee2009-04-18 11:20:33 +00009819rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009820 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821LIBS=$ac_check_lib_save_LIBS
9822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9824echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9825if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009827cat >>confdefs.h <<\_ACEOF
9828#define HAVE_LIBDL 1
9829_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830
9831 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009833 cat >conftest.$ac_ext <<_ACEOF
9834/* confdefs.h. */
9835_ACEOF
9836cat confdefs.h >>conftest.$ac_ext
9837cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838/* end confdefs.h. */
9839#if HAVE_DLFCN_H
9840# include <dlfcn.h>
9841#endif
9842
9843int
9844main ()
9845{
9846dlopen(0, 0);
9847 ;
9848 return 0;
9849}
9850_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009851rm -f conftest.$ac_objext conftest$ac_exeext
9852if { (ac_try="$ac_link"
9853case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856esac
9857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009886cat >>confdefs.h <<\_ACEOF
9887#define HAVE_LIBDL 1
9888_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889 libltdl_cv_func_dlopen="yes"
9890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9895echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9896if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898else
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906/* end confdefs.h. */
9907
Reid Spencera773bd52006-08-04 18:18:08 +00009908/* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911#ifdef __cplusplus
9912extern "C"
9913#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914char dlopen ();
9915int
9916main ()
9917{
Reid Spencera773bd52006-08-04 18:18:08 +00009918return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919 ;
9920 return 0;
9921}
9922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_try") 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957 ac_cv_lib_svld_dlopen=yes
9958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009959 echo "$as_me: failed program was:" >&5
9960sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009964
Bill Wendlingebcceee2009-04-18 11:20:33 +00009965rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009966 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967LIBS=$ac_check_lib_save_LIBS
9968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009969{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9970echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9971if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009973cat >>confdefs.h <<\_ACEOF
9974#define HAVE_LIBDL 1
9975_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976
9977 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009979 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9980echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9981if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983else
9984 ac_check_lib_save_LIBS=$LIBS
9985LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009986cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991/* end confdefs.h. */
9992
Reid Spencera773bd52006-08-04 18:18:08 +00009993/* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996#ifdef __cplusplus
9997extern "C"
9998#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999char dld_link ();
10000int
10001main ()
10002{
Reid Spencera773bd52006-08-04 18:18:08 +000010003return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004 ;
10005 return 0;
10006}
10007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (ac_try="$ac_link"
10010case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013esac
10014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_link") 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_try") 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10036esac
10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_try") 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 ac_cv_lib_dld_dld_link=yes
10043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010044 echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010049
Bill Wendlingebcceee2009-04-18 11:20:33 +000010050rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010051 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052LIBS=$ac_check_lib_save_LIBS
10053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10055echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10056if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010058cat >>confdefs.h <<\_ACEOF
10059#define HAVE_DLD 1
10060_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061
10062 LIBADD_DL="$LIBADD_DL -ldld"
10063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010064 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10065echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10066if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h. */
10075/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10077#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079/* System header to define __stub macros and hopefully few prototypes,
10080 which can conflict with char _dyld_func_lookup (); below.
10081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084#ifdef __STDC__
10085# include <limits.h>
10086#else
10087# include <assert.h>
10088#endif
10089
10090#undef _dyld_func_lookup
10091
10092/* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10095#ifdef __cplusplus
10096extern "C"
10097#endif
10098char _dyld_func_lookup ();
10099/* The GNU C library defines this for functions which it implements
10100 to always fail with ENOSYS. Some functions are actually named
10101 something starting with __ and the normal name is an alias. */
10102#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10103choke me
10104#endif
10105
10106int
10107main ()
10108{
10109return _dyld_func_lookup ();
10110 ;
10111 return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (ac_try="$ac_link"
10116case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10119esac
10120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10129 { (case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132esac
10133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_try") 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_func__dyld_func_lookup=yes
10149else
10150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154fi
Reid Spencera773bd52006-08-04 18:18:08 +000010155
Bill Wendlingebcceee2009-04-18 11:20:33 +000010156rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010157 conftest$ac_exeext conftest.$ac_ext
10158fi
10159{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10160echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10161if test $ac_cv_func__dyld_func_lookup = yes; then
10162
10163cat >>confdefs.h <<\_ACEOF
10164#define HAVE_DYLD 1
10165_ACEOF
10166
10167fi
10168
10169
10170fi
10171
10172
10173fi
10174
10175
10176fi
10177
10178rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180
10181fi
10182
10183
10184fi
10185
10186
10187fi
10188
10189
10190if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10191then
10192 lt_save_LIBS="$LIBS"
10193 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010194
10195for ac_func in dlerror
10196do
10197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203 cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h. */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h. */
10209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10211#define $ac_func innocuous_$ac_func
10212
10213/* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char $ac_func (); below.
10215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216 <limits.h> exists even on freestanding compilers. */
10217
10218#ifdef __STDC__
10219# include <limits.h>
10220#else
10221# include <assert.h>
10222#endif
10223
10224#undef $ac_func
10225
10226/* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10229#ifdef __cplusplus
10230extern "C"
10231#endif
10232char $ac_func ();
10233/* The GNU C library defines this for functions which it implements
10234 to always fail with ENOSYS. Some functions are actually named
10235 something starting with __ and the normal name is an alias. */
10236#if defined __stub_$ac_func || defined __stub___$ac_func
10237choke me
10238#endif
10239
10240int
10241main ()
10242{
10243return $ac_func ();
10244 ;
10245 return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext conftest$ac_exeext
10249if { (ac_try="$ac_link"
10250case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10266esac
10267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 eval "$as_ac_var=yes"
10283else
10284 echo "$as_me: failed program was:" >&5
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 eval "$as_ac_var=no"
10288fi
10289
10290rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292fi
10293ac_res=`eval echo '${'$as_ac_var'}'`
10294 { echo "$as_me:$LINENO: result: $ac_res" >&5
10295echo "${ECHO_T}$ac_res" >&6; }
10296if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010297 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299_ACEOF
10300
10301fi
10302done
10303
10304 LIBS="$lt_save_LIBS"
10305fi
10306ac_ext=c
10307ac_cpp='$CPP $CPPFLAGS'
10308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10310ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311
10312
10313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010314{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10315echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10316if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318else
10319 ac_cv_sys_symbol_underscore=no
10320 cat > conftest.$ac_ext <<EOF
10321void nm_test_func(){}
10322int main(){nm_test_func;return 0;}
10323EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325 (eval $ac_compile) 2>&5
10326 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329 # Now try to grab the symbols.
10330 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010331 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 +000010332 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10333 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336 # See whether the symbols have a leading underscore.
10337 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10338 ac_cv_sys_symbol_underscore=yes
10339 else
10340 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10341 :
10342 else
10343 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10344 fi
10345 fi
10346 else
10347 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10348 fi
10349 else
10350 echo "configure: failed program was:" >&5
10351 cat conftest.c >&5
10352 fi
10353 rm -rf conftest*
10354
10355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010356{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10357echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358
10359
10360if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10361 if test x"$libltdl_cv_func_dlopen" = xyes ||
10362 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010363 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10364echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10365if test "${libltdl_cv_need_uscore+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367else
10368 libltdl_cv_need_uscore=unknown
10369 save_LIBS="$LIBS"
10370 LIBS="$LIBS $LIBADD_DL"
10371 if test "$cross_compiling" = yes; then :
10372 libltdl_cv_need_uscore=cross
10373else
10374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10375 lt_status=$lt_dlunknown
10376 cat > conftest.$ac_ext <<EOF
Eric Christophera443e5b2012-03-23 05:50:46 +000010377#line 10377 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378#include "confdefs.h"
10379
10380#if HAVE_DLFCN_H
10381#include <dlfcn.h>
10382#endif
10383
10384#include <stdio.h>
10385
10386#ifdef RTLD_GLOBAL
10387# define LT_DLGLOBAL RTLD_GLOBAL
10388#else
10389# ifdef DL_GLOBAL
10390# define LT_DLGLOBAL DL_GLOBAL
10391# else
10392# define LT_DLGLOBAL 0
10393# endif
10394#endif
10395
10396/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10397 find out it does not work in some platform. */
10398#ifndef LT_DLLAZY_OR_NOW
10399# ifdef RTLD_LAZY
10400# define LT_DLLAZY_OR_NOW RTLD_LAZY
10401# else
10402# ifdef DL_LAZY
10403# define LT_DLLAZY_OR_NOW DL_LAZY
10404# else
10405# ifdef RTLD_NOW
10406# define LT_DLLAZY_OR_NOW RTLD_NOW
10407# else
10408# ifdef DL_NOW
10409# define LT_DLLAZY_OR_NOW DL_NOW
10410# else
10411# define LT_DLLAZY_OR_NOW 0
10412# endif
10413# endif
10414# endif
10415# endif
10416#endif
10417
10418#ifdef __cplusplus
10419extern "C" void exit (int);
10420#endif
10421
10422void fnord() { int i=42;}
10423int main ()
10424{
10425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10426 int status = $lt_dlunknown;
10427
10428 if (self)
10429 {
10430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10432 /* dlclose (self); */
10433 }
Reid Spencera773bd52006-08-04 18:18:08 +000010434 else
10435 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436
10437 exit (status);
10438}
10439EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 (eval $ac_link) 2>&5
10442 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010445 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446 lt_status=$?
10447 case x$lt_status in
10448 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10449 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010450 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 esac
10452 else :
10453 # compilation failed
10454
10455 fi
10456fi
10457rm -fr conftest*
10458
10459 LIBS="$save_LIBS"
10460
10461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010462{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10463echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464 fi
10465fi
10466
10467if test x"$libltdl_cv_need_uscore" = xyes; then
10468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010469cat >>confdefs.h <<\_ACEOF
10470#define NEED_USCORE 1
10471_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472
10473fi
10474
10475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10477echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10478if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480else
10481 # PORTME does your system automatically load deplibs for dlopen?
10482 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10483 # For now, we just catch OSes we know something about -- in the
10484 # future, we'll try test this programmatically.
10485 libltdl_cv_sys_dlopen_deplibs=unknown
10486 case "$host_os" in
10487 aix3*|aix4.1.*|aix4.2.*)
10488 # Unknown whether this is true for these versions of AIX, but
10489 # we want this `case' here to explicitly catch those versions.
10490 libltdl_cv_sys_dlopen_deplibs=unknown
10491 ;;
10492 aix[45]*)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 darwin*)
10496 # Assuming the user has installed a libdl from somewhere, this is true
10497 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10498 libltdl_cv_sys_dlopen_deplibs=yes
10499 ;;
10500 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10501 # GNU and its variants, using gnu ld.so (Glibc)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10503 ;;
10504 hpux10*|hpux11*)
10505 libltdl_cv_sys_dlopen_deplibs=yes
10506 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010507 interix*)
10508 libltdl_cv_sys_dlopen_deplibs=yes
10509 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510 irix[12345]*|irix6.[01]*)
10511 # Catch all versions of IRIX before 6.2, and indicate that we don't
10512 # know how it worked for any of those versions.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10514 ;;
10515 irix*)
10516 # The case above catches anything before 6.2, and it's known that
10517 # at 6.2 and later dlopen does load deplibs.
10518 libltdl_cv_sys_dlopen_deplibs=yes
10519 ;;
10520 netbsd*)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
10523 openbsd*)
10524 libltdl_cv_sys_dlopen_deplibs=yes
10525 ;;
10526 osf[1234]*)
10527 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10528 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010529 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 libltdl_cv_sys_dlopen_deplibs=no
10531 ;;
10532 osf5.0|osf5.0a|osf5.1)
10533 # dlopen *does* load deplibs and with the right loader patch applied
10534 # it even uses RPATH in a shared library to search for shared objects
10535 # that the library depends on, but there's no easy way to know if that
10536 # patch is installed. Since this is the case, all we can really
10537 # say is unknown -- it depends on the patch being installed. If
10538 # it is, this changes to `yes'. Without it, it would be `no'.
10539 libltdl_cv_sys_dlopen_deplibs=unknown
10540 ;;
10541 osf*)
10542 # the two cases above should catch all versions of osf <= 5.1. Read
10543 # the comments above for what we know about them.
10544 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10545 # is used to find them so we can finally say `yes'.
10546 libltdl_cv_sys_dlopen_deplibs=yes
10547 ;;
10548 solaris*)
10549 libltdl_cv_sys_dlopen_deplibs=yes
10550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552 libltdl_cv_sys_dlopen_deplibs=yes
10553 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 esac
10555
10556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010557{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10558echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010561cat >>confdefs.h <<\_ACEOF
10562#define LTDL_DLOPEN_DEPLIBS 1
10563_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564
10565fi
10566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010567
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010569do
10570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576fi
10577ac_res=`eval echo '${'$as_ac_Header'}'`
10578 { echo "$as_me:$LINENO: result: $ac_res" >&5
10579echo "${ECHO_T}$ac_res" >&6; }
10580else
10581 # Is the header compilable?
10582{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590$ac_includes_default
10591#include <$ac_header>
10592_ACEOF
10593rm -f conftest.$ac_objext
10594if { (ac_try="$ac_compile"
10595case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598esac
10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621esac
10622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_header_compiler=yes
10628else
10629 echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_header_compiler=no
10633fi
10634
10635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637echo "${ECHO_T}$ac_header_compiler" >&6; }
10638
10639# Is the header present?
10640{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10642cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#include <$ac_header>
10649_ACEOF
10650if { (ac_try="$ac_cpp conftest.$ac_ext"
10651case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
10655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10666 else
10667 ac_cpp_err=
10668 fi
10669else
10670 ac_cpp_err=yes
10671fi
10672if test -z "$ac_cpp_err"; then
10673 ac_header_preproc=yes
10674else
10675 echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_header_preproc=no
10679fi
10680
10681rm -f conftest.err conftest.$ac_ext
10682{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683echo "${ECHO_T}$ac_header_preproc" >&6; }
10684
10685# So? What about this header?
10686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10687 yes:no: )
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692 ac_header_preproc=yes
10693 ;;
10694 no:yes:* )
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10698echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10702echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10707 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010708## ------------------------------------ ##
10709## Report this to http://llvm.org/bugs/ ##
10710## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010711_ASBOX
10712 ) | sed "s/^/$as_me: WARNING: /" >&2
10713 ;;
10714esac
10715{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 eval "$as_ac_Header=\$ac_header_preproc"
10721fi
10722ac_res=`eval echo '${'$as_ac_Header'}'`
10723 { echo "$as_me:$LINENO: result: $ac_res" >&5
10724echo "${ECHO_T}$ac_res" >&6; }
10725
10726fi
10727if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730_ACEOF
10731
10732fi
10733
10734done
10735
10736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737{ echo "$as_me:$LINENO: checking for error_t" >&5
10738echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10739if test "${ac_cv_type_error_t+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 cat >conftest.$ac_ext <<_ACEOF
10743/* confdefs.h. */
10744_ACEOF
10745cat confdefs.h >>conftest.$ac_ext
10746cat >>conftest.$ac_ext <<_ACEOF
10747/* end confdefs.h. */
10748#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749# include <argz.h>
10750#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751
10752typedef error_t ac__type_new_;
10753int
10754main ()
10755{
10756if ((ac__type_new_ *) 0)
10757 return 0;
10758if (sizeof (ac__type_new_))
10759 return 0;
10760 ;
10761 return 0;
10762}
10763_ACEOF
10764rm -f conftest.$ac_objext
10765if { (ac_try="$ac_compile"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_compile") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_cv_type_error_t=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_cv_type_error_t=no
10804fi
10805
10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807fi
10808{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10809echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10810if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811
10812cat >>confdefs.h <<_ACEOF
10813#define HAVE_ERROR_T 1
10814_ACEOF
10815
10816
10817else
10818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010819cat >>confdefs.h <<\_ACEOF
10820#define error_t int
10821_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822
10823fi
10824
10825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826
10827
10828
10829
10830
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010832do
10833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10847#define $ac_func innocuous_$ac_func
10848
10849/* System header to define __stub macros and hopefully few prototypes,
10850 which can conflict with char $ac_func (); below.
10851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852 <limits.h> exists even on freestanding compilers. */
10853
10854#ifdef __STDC__
10855# include <limits.h>
10856#else
10857# include <assert.h>
10858#endif
10859
10860#undef $ac_func
10861
10862/* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10865#ifdef __cplusplus
10866extern "C"
10867#endif
10868char $ac_func ();
10869/* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
10872#if defined __stub_$ac_func || defined __stub___$ac_func
10873choke me
10874#endif
10875
10876int
10877main ()
10878{
10879return $ac_func ();
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext conftest$ac_exeext
10885if { (ac_try="$ac_link"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_link") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 eval "$as_ac_var=yes"
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 eval "$as_ac_var=no"
10924fi
10925
10926rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928fi
10929ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931echo "${ECHO_T}$ac_res" >&6; }
10932if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935_ACEOF
10936
10937fi
10938done
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010959
10960
10961
10962
10963
10964
10965
10966
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10968 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010969do
10970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976fi
10977ac_res=`eval echo '${'$as_ac_Header'}'`
10978 { echo "$as_me:$LINENO: result: $ac_res" >&5
10979echo "${ECHO_T}$ac_res" >&6; }
10980else
10981 # Is the header compilable?
10982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10984cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990$ac_includes_default
10991#include <$ac_header>
10992_ACEOF
10993rm -f conftest.$ac_objext
10994if { (ac_try="$ac_compile"
10995case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011esac
11012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler=yes
11028else
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_header_compiler=no
11033fi
11034
11035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037echo "${ECHO_T}$ac_header_compiler" >&6; }
11038
11039# Is the header present?
11040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048#include <$ac_header>
11049_ACEOF
11050if { (ac_try="$ac_cpp conftest.$ac_ext"
11051case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11057 ac_status=$?
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null; then
11063 if test -s conftest.err; then
11064 ac_cpp_err=$ac_c_preproc_warn_flag
11065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11066 else
11067 ac_cpp_err=
11068 fi
11069else
11070 ac_cpp_err=yes
11071fi
11072if test -z "$ac_cpp_err"; then
11073 ac_header_preproc=yes
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 ac_header_preproc=no
11079fi
11080
11081rm -f conftest.err conftest.$ac_ext
11082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11083echo "${ECHO_T}$ac_header_preproc" >&6; }
11084
11085# So? What about this header?
11086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11087 yes:no: )
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11092 ac_header_preproc=yes
11093 ;;
11094 no:yes:* )
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11107 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011108## ------------------------------------ ##
11109## Report this to http://llvm.org/bugs/ ##
11110## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011111_ASBOX
11112 ) | sed "s/^/$as_me: WARNING: /" >&2
11113 ;;
11114esac
11115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 eval "$as_ac_Header=\$ac_header_preproc"
11121fi
11122ac_res=`eval echo '${'$as_ac_Header'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124echo "${ECHO_T}$ac_res" >&6; }
11125
11126fi
11127if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130_ACEOF
11131
11132fi
11133
11134done
11135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011136
11137
11138
11139
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011141do
11142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148fi
11149ac_res=`eval echo '${'$as_ac_Header'}'`
11150 { echo "$as_me:$LINENO: result: $ac_res" >&5
11151echo "${ECHO_T}$ac_res" >&6; }
11152else
11153 # Is the header compilable?
11154{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162$ac_includes_default
11163#include <$ac_header>
11164_ACEOF
11165rm -f conftest.$ac_objext
11166if { (ac_try="$ac_compile"
11167case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170esac
11171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183esac
11184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_try") 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_header_compiler=yes
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 ac_header_compiler=no
11205fi
11206
11207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11209echo "${ECHO_T}$ac_header_compiler" >&6; }
11210
11211# Is the header present?
11212{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11214cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220#include <$ac_header>
11221_ACEOF
11222if { (ac_try="$ac_cpp conftest.$ac_ext"
11223case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226esac
11227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null; then
11235 if test -s conftest.err; then
11236 ac_cpp_err=$ac_c_preproc_warn_flag
11237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11238 else
11239 ac_cpp_err=
11240 fi
11241else
11242 ac_cpp_err=yes
11243fi
11244if test -z "$ac_cpp_err"; then
11245 ac_header_preproc=yes
11246else
11247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 ac_header_preproc=no
11251fi
11252
11253rm -f conftest.err conftest.$ac_ext
11254{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11255echo "${ECHO_T}$ac_header_preproc" >&6; }
11256
11257# So? What about this header?
11258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11259 yes:no: )
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11264 ac_header_preproc=yes
11265 ;;
11266 no:yes:* )
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11279 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011280## ------------------------------------ ##
11281## Report this to http://llvm.org/bugs/ ##
11282## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011283_ASBOX
11284 ) | sed "s/^/$as_me: WARNING: /" >&2
11285 ;;
11286esac
11287{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292 eval "$as_ac_Header=\$ac_header_preproc"
11293fi
11294ac_res=`eval echo '${'$as_ac_Header'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296echo "${ECHO_T}$ac_res" >&6; }
11297
11298fi
11299if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011302_ACEOF
11303
11304fi
11305
11306done
11307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011308
11309
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011310for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011311do
11312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318fi
11319ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321echo "${ECHO_T}$ac_res" >&6; }
11322else
11323 # Is the header compilable?
11324{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11326cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332$ac_includes_default
11333#include <$ac_header>
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (ac_try="$ac_compile"
11337case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340esac
11341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
11343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_header_compiler=yes
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 ac_header_compiler=no
11375fi
11376
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379echo "${ECHO_T}$ac_header_compiler" >&6; }
11380
11381# Is the header present?
11382{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
11390#include <$ac_header>
11391_ACEOF
11392if { (ac_try="$ac_cpp conftest.$ac_ext"
11393case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 else
11409 ac_cpp_err=
11410 fi
11411else
11412 ac_cpp_err=yes
11413fi
11414if test -z "$ac_cpp_err"; then
11415 ac_header_preproc=yes
11416else
11417 echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_header_preproc=no
11421fi
11422
11423rm -f conftest.err conftest.$ac_ext
11424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425echo "${ECHO_T}$ac_header_preproc" >&6; }
11426
11427# So? What about this header?
11428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 yes:no: )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11435 ;;
11436 no:yes:* )
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011450## ------------------------------------ ##
11451## Report this to http://llvm.org/bugs/ ##
11452## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011453_ASBOX
11454 ) | sed "s/^/$as_me: WARNING: /" >&2
11455 ;;
11456esac
11457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462 eval "$as_ac_Header=\$ac_header_preproc"
11463fi
11464ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466echo "${ECHO_T}$ac_res" >&6; }
11467
11468fi
11469if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472_ACEOF
11473 break
11474fi
11475
11476done
11477
11478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011479
11480
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011482do
11483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489 cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
11495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497#define $ac_func innocuous_$ac_func
11498
11499/* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11503
11504#ifdef __STDC__
11505# include <limits.h>
11506#else
11507# include <assert.h>
11508#endif
11509
11510#undef $ac_func
11511
11512/* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515#ifdef __cplusplus
11516extern "C"
11517#endif
11518char $ac_func ();
11519/* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522#if defined __stub_$ac_func || defined __stub___$ac_func
11523choke me
11524#endif
11525
11526int
11527main ()
11528{
11529return $ac_func ();
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext conftest$ac_exeext
11535if { (ac_try="$ac_link"
11536case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539esac
11540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_link") 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11549 { (case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552esac
11553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_try") 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11562esac
11563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11569else
11570 echo "$as_me: failed program was:" >&5
11571sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 eval "$as_ac_var=no"
11574fi
11575
11576rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578fi
11579ac_res=`eval echo '${'$as_ac_var'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581echo "${ECHO_T}$ac_res" >&6; }
11582if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585_ACEOF
11586 break
11587fi
11588done
11589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011590
11591
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011593do
11594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608#define $ac_func innocuous_$ac_func
11609
11610/* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11614
11615#ifdef __STDC__
11616# include <limits.h>
11617#else
11618# include <assert.h>
11619#endif
11620
11621#undef $ac_func
11622
11623/* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626#ifdef __cplusplus
11627extern "C"
11628#endif
11629char $ac_func ();
11630/* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633#if defined __stub_$ac_func || defined __stub___$ac_func
11634choke me
11635#endif
11636
11637int
11638main ()
11639{
11640return $ac_func ();
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
11646if { (ac_try="$ac_link"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11680else
11681 echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 eval "$as_ac_var=no"
11685fi
11686
11687rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689fi
11690ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692echo "${ECHO_T}$ac_res" >&6; }
11693if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696_ACEOF
11697 break
11698fi
11699done
11700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011701
11702
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011704do
11705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719#define $ac_func innocuous_$ac_func
11720
11721/* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11725
11726#ifdef __STDC__
11727# include <limits.h>
11728#else
11729# include <assert.h>
11730#endif
11731
11732#undef $ac_func
11733
11734/* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11737#ifdef __cplusplus
11738extern "C"
11739#endif
11740char $ac_func ();
11741/* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744#if defined __stub_$ac_func || defined __stub___$ac_func
11745choke me
11746#endif
11747
11748int
11749main ()
11750{
11751return $ac_func ();
11752 ;
11753 return 0;
11754}
11755_ACEOF
11756rm -f conftest.$ac_objext conftest$ac_exeext
11757if { (ac_try="$ac_link"
11758case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 eval "$as_ac_var=no"
11796fi
11797
11798rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800fi
11801ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803echo "${ECHO_T}$ac_res" >&6; }
11804if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807_ACEOF
11808 break
11809fi
11810done
11811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011812
11813
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011815do
11816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830#define $ac_func innocuous_$ac_func
11831
11832/* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11836
11837#ifdef __STDC__
11838# include <limits.h>
11839#else
11840# include <assert.h>
11841#endif
11842
11843#undef $ac_func
11844
11845/* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848#ifdef __cplusplus
11849extern "C"
11850#endif
11851char $ac_func ();
11852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined __stub_$ac_func || defined __stub___$ac_func
11856choke me
11857#endif
11858
11859int
11860main ()
11861{
11862return $ac_func ();
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (ac_try="$ac_link"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 eval "$as_ac_var=no"
11907fi
11908
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911fi
11912ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914echo "${ECHO_T}$ac_res" >&6; }
11915if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918_ACEOF
11919
11920fi
11921done
11922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011923
11924
11925
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011927do
11928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */
11940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11942#define $ac_func innocuous_$ac_func
11943
11944/* System header to define __stub macros and hopefully few prototypes,
11945 which can conflict with char $ac_func (); below.
11946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11947 <limits.h> exists even on freestanding compilers. */
11948
11949#ifdef __STDC__
11950# include <limits.h>
11951#else
11952# include <assert.h>
11953#endif
11954
11955#undef $ac_func
11956
11957/* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960#ifdef __cplusplus
11961extern "C"
11962#endif
11963char $ac_func ();
11964/* The GNU C library defines this for functions which it implements
11965 to always fail with ENOSYS. Some functions are actually named
11966 something starting with __ and the normal name is an alias. */
11967#if defined __stub_$ac_func || defined __stub___$ac_func
11968choke me
11969#endif
11970
11971int
11972main ()
11973{
11974return $ac_func ();
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979rm -f conftest.$ac_objext conftest$ac_exeext
11980if { (ac_try="$ac_link"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_link") 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; } &&
12003 { ac_try='test -s conftest$ac_exeext'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 eval "$as_ac_var=yes"
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 eval "$as_ac_var=no"
12019fi
12020
12021rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023fi
12024ac_res=`eval echo '${'$as_ac_var'}'`
12025 { echo "$as_me:$LINENO: result: $ac_res" >&5
12026echo "${ECHO_T}$ac_res" >&6; }
12027if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030_ACEOF
12031
12032fi
12033done
12034
12035
Douglas Gregor01746742009-05-11 18:05:52 +000012036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12038echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012039
Reid Spencer86901802004-12-08 23:07:27 +000012040ICC=no
12041IXX=no
12042case $CC in
12043 icc*|icpc*)
12044 ICC=yes
12045 IXX=yes
12046 ;;
12047 *)
12048 ;;
12049esac
12050
Duraid Madina937c60a2006-02-15 07:57:42 +000012051if test "$GCC" != "yes" && test "$ICC" != "yes"
12052then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012053 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12054echo "$as_me: error: gcc|icc required but not found" >&2;}
12055 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012056fi
12057
12058if test "$GXX" != "yes" && test "$IXX" != "yes"
12059then
Eric Christopher73e36da2010-12-08 02:02:14 +000012060 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12061echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012062 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012063fi
12064
Reid Spencer86901802004-12-08 23:07:27 +000012065if test "$GCC" = "yes"
12066then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012067 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012068#if !defined(__GNUC__) || __GNUC__ < 3
12069#error Unsupported GCC version
12070#endif
12071
12072_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012073rm -f conftest.$ac_objext
12074if { (ac_try="$ac_compile"
12075case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078esac
12079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_compile") 2>conftest.er1
12081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest.$ac_objext'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12101esac
12102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012108else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012109 echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12113echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12114 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012116
Chris Lattner399c7c72008-02-05 19:43:53 +000012117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012118fi
12119
12120if test -z "$llvm_cv_gnu_make_command"
12121then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012122 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12123echo "$as_me: error: GNU Make required but not found" >&2;}
12124 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012125fi
12126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012127{ echo "$as_me:$LINENO: result: ok" >&5
12128echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012130{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12131echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012132NO_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 +000012133
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012134NO_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 +000012135
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012136COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12137
12138{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12139echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012140
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012142
12143{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12144echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12145if test "${ac_cv_lib_m_sin+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012147else
12148 ac_check_lib_save_LIBS=$LIBS
12149LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012155/* end confdefs.h. */
12156
Reid Spencera773bd52006-08-04 18:18:08 +000012157/* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012160#ifdef __cplusplus
12161extern "C"
12162#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012163char sin ();
12164int
12165main ()
12166{
Reid Spencera773bd52006-08-04 18:18:08 +000012167return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012168 ;
12169 return 0;
12170}
12171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012172rm -f conftest.$ac_objext conftest$ac_exeext
12173if { (ac_try="$ac_link"
12174case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012206 ac_cv_lib_m_sin=yes
12207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012208 echo "$as_me: failed program was:" >&5
12209sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213
Bill Wendlingebcceee2009-04-18 11:20:33 +000012214rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012215 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012216LIBS=$ac_check_lib_save_LIBS
12217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12219echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12220if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012221 cat >>confdefs.h <<_ACEOF
12222#define HAVE_LIBM 1
12223_ACEOF
12224
12225 LIBS="-lm $LIBS"
12226
12227fi
12228
Jeff Cohen28783c32007-01-12 18:22:38 +000012229if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230
12231{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12232echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12233if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012235else
12236 ac_check_lib_save_LIBS=$LIBS
12237LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012243/* end confdefs.h. */
12244
Reid Spencer48fdf912006-06-01 19:03:21 +000012245
Reid Spencer484fc8e2006-06-01 16:55:59 +000012246int
12247main ()
12248{
Reid Spencera773bd52006-08-04 18:18:08 +000012249return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012250 ;
12251 return 0;
12252}
12253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012254rm -f conftest.$ac_objext conftest$ac_exeext
12255if { (ac_try="$ac_link"
12256case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
12260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_link") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282esac
12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_try") 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012288 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012295
Bill Wendlingebcceee2009-04-18 11:20:33 +000012296rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012297 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012298LIBS=$ac_check_lib_save_LIBS
12299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012300{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12301echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12302if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012303 cat >>confdefs.h <<_ACEOF
12304#define HAVE_LIBIMAGEHLP 1
12305_ACEOF
12306
12307 LIBS="-limagehlp $LIBS"
12308
12309fi
12310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012311
12312{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12313echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12314if test "${ac_cv_lib_psapi_main+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012316else
12317 ac_check_lib_save_LIBS=$LIBS
12318LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012324/* end confdefs.h. */
12325
Reid Spencer48fdf912006-06-01 19:03:21 +000012326
Reid Spencer484fc8e2006-06-01 16:55:59 +000012327int
12328main ()
12329{
Reid Spencera773bd52006-08-04 18:18:08 +000012330return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012331 ;
12332 return 0;
12333}
12334_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012335rm -f conftest.$ac_objext conftest$ac_exeext
12336if { (ac_try="$ac_link"
12337case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340esac
12341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_link") 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12350 { (case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353esac
12354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_try") 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest$ac_exeext'
12360 { (case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363esac
12364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_try") 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012369 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012371 echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012376
Bill Wendlingebcceee2009-04-18 11:20:33 +000012377rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012378 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012379LIBS=$ac_check_lib_save_LIBS
12380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012381{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12382echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12383if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012384 cat >>confdefs.h <<_ACEOF
12385#define HAVE_LIBPSAPI 1
12386_ACEOF
12387
12388 LIBS="-lpsapi $LIBS"
12389
12390fi
12391
12392fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012394{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12395echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12396if test "${ac_cv_search_dlopen+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012398else
12399 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012400cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012406
Reid Spencera773bd52006-08-04 18:18:08 +000012407/* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012410#ifdef __cplusplus
12411extern "C"
12412#endif
John Criswell7a73b802003-06-30 21:59:07 +000012413char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012414int
12415main ()
12416{
Reid Spencera773bd52006-08-04 18:18:08 +000012417return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012418 ;
12419 return 0;
12420}
12421_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012422for ac_lib in '' dl; do
12423 if test -z "$ac_lib"; then
12424 ac_res="none required"
12425 else
12426 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012428 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012429 rm -f conftest.$ac_objext conftest$ac_exeext
12430if { (ac_try="$ac_link"
12431case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_link") 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12444 { (case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12447esac
12448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_try") 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest$ac_exeext'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457esac
12458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012463 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012464else
12465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468
John Criswell7a73b802003-06-30 21:59:07 +000012469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012470
Bill Wendlingebcceee2009-04-18 11:20:33 +000012471rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012472 conftest$ac_exeext
12473 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012474 break
John Criswell7a73b802003-06-30 21:59:07 +000012475fi
Reid Spencera773bd52006-08-04 18:18:08 +000012476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477if test "${ac_cv_search_dlopen+set}" = set; then
12478 :
Reid Spencera773bd52006-08-04 18:18:08 +000012479else
12480 ac_cv_search_dlopen=no
12481fi
12482rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012483LIBS=$ac_func_search_save_LIBS
12484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012485{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12486echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012487ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012488if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491cat >>confdefs.h <<\_ACEOF
12492#define HAVE_DLOPEN 1
12493_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012494
12495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012496 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12497echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012498fi
12499
12500
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012501if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12503echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12504if test "${ac_cv_search_ffi_call+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012506else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012507 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012508cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012513/* end confdefs.h. */
12514
12515/* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12518#ifdef __cplusplus
12519extern "C"
12520#endif
12521char ffi_call ();
12522int
12523main ()
12524{
12525return ffi_call ();
12526 ;
12527 return 0;
12528}
12529_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012530for ac_lib in '' ffi; do
12531 if test -z "$ac_lib"; then
12532 ac_res="none required"
12533 else
12534 ac_res=-l$ac_lib
12535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12536 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012537 rm -f conftest.$ac_objext conftest$ac_exeext
12538if { (ac_try="$ac_link"
12539case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565esac
12566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012571 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572else
12573 echo "$as_me: failed program was:" >&5
12574sed 's/^/| /' conftest.$ac_ext >&5
12575
12576
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012578
Bill Wendlingebcceee2009-04-18 11:20:33 +000012579rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012580 conftest$ac_exeext
12581 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012582 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012583fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012584done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585if test "${ac_cv_search_ffi_call+set}" = set; then
12586 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012587else
12588 ac_cv_search_ffi_call=no
12589fi
12590rm conftest.$ac_ext
12591LIBS=$ac_func_search_save_LIBS
12592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012593{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12594echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012595ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012599cat >>confdefs.h <<\_ACEOF
12600#define HAVE_FFI_CALL 1
12601_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012602
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012603else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012604 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12605echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12606 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012607fi
12608
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012609fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012611{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12612echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12613if test "${ac_cv_search_mallinfo+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012615else
12616 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012617cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012623
Reid Spencera773bd52006-08-04 18:18:08 +000012624/* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012627#ifdef __cplusplus
12628extern "C"
12629#endif
John Criswell7a73b802003-06-30 21:59:07 +000012630char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012631int
12632main ()
12633{
Reid Spencera773bd52006-08-04 18:18:08 +000012634return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012635 ;
12636 return 0;
12637}
12638_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012639for ac_lib in '' malloc; do
12640 if test -z "$ac_lib"; then
12641 ac_res="none required"
12642 else
12643 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012645 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012646 rm -f conftest.$ac_objext conftest$ac_exeext
12647if { (ac_try="$ac_link"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_link") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12661 { (case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12664esac
12665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666 (eval "$ac_try") 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012680 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012681else
12682 echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685
John Criswell7a73b802003-06-30 21:59:07 +000012686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687
Bill Wendlingebcceee2009-04-18 11:20:33 +000012688rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012689 conftest$ac_exeext
12690 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012691 break
John Criswell7a73b802003-06-30 21:59:07 +000012692fi
Reid Spencera773bd52006-08-04 18:18:08 +000012693done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012694if test "${ac_cv_search_mallinfo+set}" = set; then
12695 :
Reid Spencera773bd52006-08-04 18:18:08 +000012696else
12697 ac_cv_search_mallinfo=no
12698fi
12699rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012700LIBS=$ac_func_search_save_LIBS
12701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012702{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12703echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012704ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012705if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708cat >>confdefs.h <<\_ACEOF
12709#define HAVE_MALLINFO 1
12710_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012711
12712fi
12713
12714
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012715if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716
12717{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12718echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12719if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012721else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012722 ac_check_lib_save_LIBS=$LIBS
12723LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012729/* end confdefs.h. */
12730
Reid Spencera773bd52006-08-04 18:18:08 +000012731/* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012734#ifdef __cplusplus
12735extern "C"
12736#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012737char pthread_mutex_init ();
12738int
12739main ()
12740{
Reid Spencera773bd52006-08-04 18:18:08 +000012741return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012742 ;
12743 return 0;
12744}
12745_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012746rm -f conftest.$ac_objext conftest$ac_exeext
12747if { (ac_try="$ac_link"
12748case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751esac
12752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012780 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012782 echo "$as_me: failed program was:" >&5
12783sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787
Bill Wendlingebcceee2009-04-18 11:20:33 +000012788rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012790LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012792{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12793echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12794if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012795 cat >>confdefs.h <<_ACEOF
12796#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012797_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012798
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012799 LIBS="-lpthread $LIBS"
12800
Reid Spencer22177fe2005-07-12 15:24:20 +000012801fi
12802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012803 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12804echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12805if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012807else
12808 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012809cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012814/* end confdefs.h. */
12815
Reid Spencera773bd52006-08-04 18:18:08 +000012816/* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012819#ifdef __cplusplus
12820extern "C"
12821#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012822char pthread_mutex_lock ();
12823int
12824main ()
12825{
Reid Spencera773bd52006-08-04 18:18:08 +000012826return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012827 ;
12828 return 0;
12829}
12830_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012831for ac_lib in '' pthread; do
12832 if test -z "$ac_lib"; then
12833 ac_res="none required"
12834 else
12835 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012837 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012838 rm -f conftest.$ac_objext conftest$ac_exeext
12839if { (ac_try="$ac_link"
12840case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843esac
12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012872 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877
Brian Gaeke5f268f72003-12-05 19:29:01 +000012878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012879
Bill Wendlingebcceee2009-04-18 11:20:33 +000012880rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881 conftest$ac_exeext
12882 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012883 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012884fi
Reid Spencera773bd52006-08-04 18:18:08 +000012885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012886if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12887 :
Reid Spencera773bd52006-08-04 18:18:08 +000012888else
12889 ac_cv_search_pthread_mutex_lock=no
12890fi
12891rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012892LIBS=$ac_func_search_save_LIBS
12893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012894{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12895echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012896ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900cat >>confdefs.h <<\_ACEOF
12901#define HAVE_PTHREAD_MUTEX_LOCK 1
12902_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012903
12904fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012906 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12907echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12908if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012910else
12911 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012912cat >conftest.$ac_ext <<_ACEOF
12913/* confdefs.h. */
12914_ACEOF
12915cat confdefs.h >>conftest.$ac_ext
12916cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012917/* end confdefs.h. */
12918
12919/* Override any GCC internal prototype to avoid an error.
12920 Use char because int might match the return type of a GCC
12921 builtin and then its argument prototype would still apply. */
12922#ifdef __cplusplus
12923extern "C"
12924#endif
12925char pthread_rwlock_init ();
12926int
12927main ()
12928{
12929return pthread_rwlock_init ();
12930 ;
12931 return 0;
12932}
12933_ACEOF
12934for ac_lib in '' pthread; do
12935 if test -z "$ac_lib"; then
12936 ac_res="none required"
12937 else
12938 ac_res=-l$ac_lib
12939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12940 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941 rm -f conftest.$ac_objext conftest$ac_exeext
12942if { (ac_try="$ac_link"
12943case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12946esac
12947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959esac
12960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012975 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980
Owen Andersonde8aed22009-06-16 18:20:20 +000012981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982
Owen Andersonde8aed22009-06-16 18:20:20 +000012983rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984 conftest$ac_exeext
12985 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012986 break
12987fi
12988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12990 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012991else
12992 ac_cv_search_pthread_rwlock_init=no
12993fi
12994rm conftest.$ac_ext
12995LIBS=$ac_func_search_save_LIBS
12996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12998echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012999ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003cat >>confdefs.h <<\_ACEOF
13004#define HAVE_PTHREAD_RWLOCK_INIT 1
13005_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013006
13007fi
13008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013009 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13010echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13011if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013013else
13014 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013015cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013020/* end confdefs.h. */
13021
13022/* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13025#ifdef __cplusplus
13026extern "C"
13027#endif
13028char pthread_getspecific ();
13029int
13030main ()
13031{
13032return pthread_getspecific ();
13033 ;
13034 return 0;
13035}
13036_ACEOF
13037for ac_lib in '' pthread; do
13038 if test -z "$ac_lib"; then
13039 ac_res="none required"
13040 else
13041 ac_res=-l$ac_lib
13042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13043 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044 rm -f conftest.$ac_objext conftest$ac_exeext
13045if { (ac_try="$ac_link"
13046case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_link") 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13059 { (case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_try") 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013078 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079else
13080 echo "$as_me: failed program was:" >&5
13081sed 's/^/| /' conftest.$ac_ext >&5
13082
13083
Owen Anderson27fcfe12009-06-25 23:10:26 +000013084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085
Owen Anderson27fcfe12009-06-25 23:10:26 +000013086rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087 conftest$ac_exeext
13088 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013089 break
13090fi
13091done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13093 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013094else
13095 ac_cv_search_pthread_getspecific=no
13096fi
13097rm conftest.$ac_ext
13098LIBS=$ac_func_search_save_LIBS
13099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013100{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13101echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013102ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013106cat >>confdefs.h <<\_ACEOF
13107#define HAVE_PTHREAD_GETSPECIFIC 1
13108_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013109
13110fi
13111
Reid Spencer0a262ba2005-08-24 10:07:20 +000013112fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013113
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013114
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013115# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013116if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013117 withval=$with_udis86;
13118 USE_UDIS86=1
13119
13120 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013121 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013122 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13123 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124
13125{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13126echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13127if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013129else
13130 ac_check_lib_save_LIBS=$LIBS
13131LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013132cat >conftest.$ac_ext <<_ACEOF
13133/* confdefs.h. */
13134_ACEOF
13135cat confdefs.h >>conftest.$ac_ext
13136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013137/* end confdefs.h. */
13138
13139/* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13142#ifdef __cplusplus
13143extern "C"
13144#endif
13145char ud_init ();
13146int
13147main ()
13148{
13149return ud_init ();
13150 ;
13151 return 0;
13152}
13153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013154rm -f conftest.$ac_objext conftest$ac_exeext
13155if { (ac_try="$ac_link"
13156case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182esac
13183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013188 ac_cv_lib_udis86_ud_init=yes
13189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190 echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195
Bill Wendlingebcceee2009-04-18 11:20:33 +000013196rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013198LIBS=$ac_check_lib_save_LIBS
13199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13201echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13202if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013203 cat >>confdefs.h <<_ACEOF
13204#define HAVE_LIBUDIS86 1
13205_ACEOF
13206
13207 LIBS="-ludis86 $LIBS"
13208
13209else
13210
13211 echo "Error! You need to have libudis86 around."
13212 exit -1
13213
13214fi
13215
13216
13217else
13218 USE_UDIS86=0
13219
13220fi
13221
13222
13223cat >>confdefs.h <<_ACEOF
13224#define USE_UDIS86 $USE_UDIS86
13225_ACEOF
13226
13227
13228
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013229# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013231 withval=$with_oprofile;
13232 USE_OPROFILE=1
13233
13234 case "$withval" in
13235 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013236 no) llvm_cv_oppath=
13237 USE_OPROFILE=0
13238 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013239 *) llvm_cv_oppath="${withval}/lib/oprofile"
13240 CPPFLAGS="-I${withval}/include";;
13241 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013242 case $llvm_cv_os_type in
13243 Linux)
13244 if test -n "$llvm_cv_oppath" ; then
13245 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13246 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013247echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13248if test "${ac_cv_search_bfd_init+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013250else
13251 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013252cat >conftest.$ac_ext <<_ACEOF
13253/* confdefs.h. */
13254_ACEOF
13255cat confdefs.h >>conftest.$ac_ext
13256cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013257/* end confdefs.h. */
13258
13259/* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262#ifdef __cplusplus
13263extern "C"
13264#endif
13265char bfd_init ();
13266int
13267main ()
13268{
13269return bfd_init ();
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274for ac_lib in '' bfd; do
13275 if test -z "$ac_lib"; then
13276 ac_res="none required"
13277 else
13278 ac_res=-l$ac_lib
13279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13280 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281 rm -f conftest.$ac_objext conftest$ac_exeext
13282if { (ac_try="$ac_link"
13283case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_link") 2>conftest.er1
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13296 { (case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_try") 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; } &&
13305 { ac_try='test -s conftest$ac_exeext'
13306 { (case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_try") 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013315 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316else
13317 echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
13320
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013322
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013323rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013324 conftest$ac_exeext
13325 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013326 break
13327fi
13328done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013329if test "${ac_cv_search_bfd_init+set}" = set; then
13330 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013331else
13332 ac_cv_search_bfd_init=no
13333fi
13334rm conftest.$ac_ext
13335LIBS=$ac_func_search_save_LIBS
13336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013337{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13338echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013339ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013340if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13342
13343fi
13344
Eli Bendersky61b18512012-03-13 08:33:15 +000013345 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13347if test "${ac_cv_search_op_open_agent+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013349else
13350 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351cat >conftest.$ac_ext <<_ACEOF
13352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013356/* end confdefs.h. */
13357
13358/* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13361#ifdef __cplusplus
13362extern "C"
13363#endif
13364char op_open_agent ();
13365int
13366main ()
13367{
13368return op_open_agent ();
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373for ac_lib in '' opagent; do
13374 if test -z "$ac_lib"; then
13375 ac_res="none required"
13376 else
13377 ac_res=-l$ac_lib
13378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13379 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380 rm -f conftest.$ac_objext conftest$ac_exeext
13381if { (ac_try="$ac_link"
13382case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_link") 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13395 { (case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398esac
13399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_try") 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest$ac_exeext'
13405 { (case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408esac
13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_try") 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013414 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415else
13416 echo "$as_me: failed program was:" >&5
13417sed 's/^/| /' conftest.$ac_ext >&5
13418
13419
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013422rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423 conftest$ac_exeext
13424 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013425 break
13426fi
13427done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428if test "${ac_cv_search_op_open_agent+set}" = set; then
13429 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013430else
13431 ac_cv_search_op_open_agent=no
13432fi
13433rm conftest.$ac_ext
13434LIBS=$ac_func_search_save_LIBS
13435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13437echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013438ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13441
13442else
13443
Eli Bendersky61b18512012-03-13 08:33:15 +000013444 echo "Error! You need to have libopagent around."
13445 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013446
13447fi
13448
Eli Bendersky61b18512012-03-13 08:33:15 +000013449 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013450 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13451echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13452if test "${ac_cv_header_opagent_h+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454fi
13455{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13456echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13457else
13458 # Is the header compilable?
13459{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13460echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13461cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467$ac_includes_default
13468#include <opagent.h>
13469_ACEOF
13470rm -f conftest.$ac_objext
13471if { (ac_try="$ac_compile"
13472case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488esac
13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13498esac
13499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_try") 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_header_compiler=yes
13505else
13506 echo "$as_me: failed program was:" >&5
13507sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013509 ac_header_compiler=no
13510fi
13511
13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13514echo "${ECHO_T}$ac_header_compiler" >&6; }
13515
13516# Is the header present?
13517{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13518echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13519cat >conftest.$ac_ext <<_ACEOF
13520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
13525#include <opagent.h>
13526_ACEOF
13527if { (ac_try="$ac_cpp conftest.$ac_ext"
13528case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } >/dev/null; then
13540 if test -s conftest.err; then
13541 ac_cpp_err=$ac_c_preproc_warn_flag
13542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13543 else
13544 ac_cpp_err=
13545 fi
13546else
13547 ac_cpp_err=yes
13548fi
13549if test -z "$ac_cpp_err"; then
13550 ac_header_preproc=yes
13551else
13552 echo "$as_me: failed program was:" >&5
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_header_preproc=no
13556fi
13557
13558rm -f conftest.err conftest.$ac_ext
13559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13560echo "${ECHO_T}$ac_header_preproc" >&6; }
13561
13562# So? What about this header?
13563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13564 yes:no: )
13565 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13566echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13568echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13569 ac_header_preproc=yes
13570 ;;
13571 no:yes:* )
13572 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13573echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13575echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13577echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13579echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13581echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13583echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13584 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013585## ------------------------------------ ##
13586## Report this to http://llvm.org/bugs/ ##
13587## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013588_ASBOX
13589 ) | sed "s/^/$as_me: WARNING: /" >&2
13590 ;;
13591esac
13592{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13593echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13594if test "${ac_cv_header_opagent_h+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596else
13597 ac_cv_header_opagent_h=$ac_header_preproc
13598fi
13599{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13600echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13601
13602fi
13603if test $ac_cv_header_opagent_h = yes; then
13604 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013605else
13606
Eli Bendersky61b18512012-03-13 08:33:15 +000013607 echo "Error! You need to have opagent.h around."
13608 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013609
13610fi
13611
13612
Eli Bendersky61b18512012-03-13 08:33:15 +000013613 fi ;;
13614 *)
13615 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13616echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13617 { (exit 1); exit 1; }; } ;;
13618 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013619
13620else
13621
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013622 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013623
13624
13625fi
13626
13627
13628cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013629#define LLVM_USE_OPROFILE $USE_OPROFILE
13630_ACEOF
13631
13632
13633
13634# Check whether --with-intel-jitevents was given.
13635if test "${with_intel_jitevents+set}" = set; then
13636 withval=$with_intel_jitevents;
13637 case $llvm_cv_os_type in
13638 Linux|Win32|Cygwin|MingW) ;;
13639 *)
13640 { { echo "$as_me:$LINENO: error:
13641 Intel JIT API support is available on Linux and Windows only.\"" >&5
13642echo "$as_me: error:
13643 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13644 { (exit 1); exit 1; }; } ;;
13645 esac
13646
13647 USE_INTEL_JITEVENTS=1
13648
13649 case "$llvm_cv_target_arch" in
13650 x86) llvm_intel_jitevents_archdir="lib32";;
13651 x86_64) llvm_intel_jitevents_archdir="lib64";;
13652 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13653 exit -1;;
13654 esac
13655 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13656 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13657 case "$withval" in
13658 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13659 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13660 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013661 esac
13662
13663
13664
13665
13666 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13667 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13668
13669 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13670echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13671if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673else
13674 ac_func_search_save_LIBS=$LIBS
13675cat >conftest.$ac_ext <<_ACEOF
13676/* confdefs.h. */
13677_ACEOF
13678cat confdefs.h >>conftest.$ac_ext
13679cat >>conftest.$ac_ext <<_ACEOF
13680/* end confdefs.h. */
13681
13682/* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13685#ifdef __cplusplus
13686extern "C"
13687#endif
13688char iJIT_IsProfilingActive ();
13689int
13690main ()
13691{
13692return iJIT_IsProfilingActive ();
13693 ;
13694 return 0;
13695}
13696_ACEOF
13697for ac_lib in '' jitprofiling; do
13698 if test -z "$ac_lib"; then
13699 ac_res="none required"
13700 else
13701 ac_res=-l$ac_lib
13702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13703 fi
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705if { (ac_try="$ac_link"
13706case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709esac
13710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_link") 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest$ac_exeext'
13729 { (case "(($ac_try" in
13730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13732esac
13733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_try") 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743
13744fi
13745
13746rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext
13748 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13749 break
13750fi
13751done
13752if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13753 :
13754else
13755 ac_cv_search_iJIT_IsProfilingActive=no
13756fi
13757rm conftest.$ac_ext
13758LIBS=$ac_func_search_save_LIBS
13759fi
13760{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13761echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13762ac_res=$ac_cv_search_iJIT_IsProfilingActive
13763if test "$ac_res" != no; then
13764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13765
13766else
13767
13768 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13769 exit -1
13770
13771fi
13772
13773 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13774 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13775echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13776if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13778fi
13779{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13780echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13781else
13782 # Is the header compilable?
13783{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13784echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13785cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791$ac_includes_default
13792#include <jitprofiling.h>
13793_ACEOF
13794rm -f conftest.$ac_objext
13795if { (ac_try="$ac_compile"
13796case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_compile") 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822esac
13823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_header_compiler=yes
13829else
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ac_header_compiler=no
13834fi
13835
13836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13838echo "${ECHO_T}$ac_header_compiler" >&6; }
13839
13840# Is the header present?
13841{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13842echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13843cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
13848/* end confdefs.h. */
13849#include <jitprofiling.h>
13850_ACEOF
13851if { (ac_try="$ac_cpp conftest.$ac_ext"
13852case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } >/dev/null; then
13864 if test -s conftest.err; then
13865 ac_cpp_err=$ac_c_preproc_warn_flag
13866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13867 else
13868 ac_cpp_err=
13869 fi
13870else
13871 ac_cpp_err=yes
13872fi
13873if test -z "$ac_cpp_err"; then
13874 ac_header_preproc=yes
13875else
13876 echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_header_preproc=no
13880fi
13881
13882rm -f conftest.err conftest.$ac_ext
13883{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884echo "${ECHO_T}$ac_header_preproc" >&6; }
13885
13886# So? What about this header?
13887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13888 yes:no: )
13889 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13890echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13892echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13893 ac_header_preproc=yes
13894 ;;
13895 no:yes:* )
13896 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13897echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13899echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13901echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13903echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13905echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13907echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13908 ( cat <<\_ASBOX
13909## ------------------------------------ ##
13910## Report this to http://llvm.org/bugs/ ##
13911## ------------------------------------ ##
13912_ASBOX
13913 ) | sed "s/^/$as_me: WARNING: /" >&2
13914 ;;
13915esac
13916{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13917echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13918if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920else
13921 ac_cv_header_jitprofiling_h=$ac_header_preproc
13922fi
13923{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13924echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13925
13926fi
13927if test $ac_cv_header_jitprofiling_h = yes; then
13928 :
13929else
13930
13931 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13932 exit -1
13933
13934fi
13935
13936
13937
13938
13939else
13940
13941 USE_INTEL_JITEVENTS=0
13942
13943
13944fi
13945
13946
13947cat >>confdefs.h <<_ACEOF
13948#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013949_ACEOF
13950
13951
13952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953
13954
13955
13956
13957
Reid Spencer59473af2004-12-25 07:31:29 +000013958ac_header_dirent=no
13959for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013960 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13961{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13962echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966 cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013971/* end confdefs.h. */
13972#include <sys/types.h>
13973#include <$ac_hdr>
13974
13975int
13976main ()
13977{
13978if ((DIR *) 0)
13979return 0;
13980 ;
13981 return 0;
13982}
13983_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984rm -f conftest.$ac_objext
13985if { (ac_try="$ac_compile"
13986case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13992 ac_status=$?
13993 grep -v '^ *+' conftest.er1 >conftest.err
13994 rm -f conftest.er1
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002esac
14003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14012esac
14013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_try") 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014018 eval "$as_ac_Header=yes"
14019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020 echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014025
Reid Spencera773bd52006-08-04 18:18:08 +000014026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028ac_res=`eval echo '${'$as_ac_Header'}'`
14029 { echo "$as_me:$LINENO: result: $ac_res" >&5
14030echo "${ECHO_T}$ac_res" >&6; }
14031if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014034_ACEOF
14035
14036ac_header_dirent=$ac_hdr; break
14037fi
14038
14039done
14040# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14041if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014042 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14043echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14044if test "${ac_cv_search_opendir+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014046else
14047 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048cat >conftest.$ac_ext <<_ACEOF
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014053/* end confdefs.h. */
14054
Reid Spencera773bd52006-08-04 18:18:08 +000014055/* Override any GCC internal prototype to avoid an error.
14056 Use char because int might match the return type of a GCC
14057 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014058#ifdef __cplusplus
14059extern "C"
14060#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014061char opendir ();
14062int
14063main ()
14064{
Reid Spencera773bd52006-08-04 18:18:08 +000014065return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014066 ;
14067 return 0;
14068}
14069_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014070for ac_lib in '' dir; do
14071 if test -z "$ac_lib"; then
14072 ac_res="none required"
14073 else
14074 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014076 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014077 rm -f conftest.$ac_objext conftest$ac_exeext
14078if { (ac_try="$ac_link"
14079case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082esac
14083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_link") 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095esac
14096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; } &&
14101 { ac_try='test -s conftest$ac_exeext'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
14106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014111 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112else
14113 echo "$as_me: failed program was:" >&5
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116
Reid Spencer59473af2004-12-25 07:31:29 +000014117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118
Bill Wendlingebcceee2009-04-18 11:20:33 +000014119rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120 conftest$ac_exeext
14121 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014122 break
Reid Spencer59473af2004-12-25 07:31:29 +000014123fi
Reid Spencera773bd52006-08-04 18:18:08 +000014124done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125if test "${ac_cv_search_opendir+set}" = set; then
14126 :
Reid Spencera773bd52006-08-04 18:18:08 +000014127else
14128 ac_cv_search_opendir=no
14129fi
14130rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014131LIBS=$ac_func_search_save_LIBS
14132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14134echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014135ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014136if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014138
14139fi
14140
14141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14143echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14144if test "${ac_cv_search_opendir+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014146else
14147 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148cat >conftest.$ac_ext <<_ACEOF
14149/* confdefs.h. */
14150_ACEOF
14151cat confdefs.h >>conftest.$ac_ext
14152cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014153/* end confdefs.h. */
14154
Reid Spencera773bd52006-08-04 18:18:08 +000014155/* Override any GCC internal prototype to avoid an error.
14156 Use char because int might match the return type of a GCC
14157 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014158#ifdef __cplusplus
14159extern "C"
14160#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014161char opendir ();
14162int
14163main ()
14164{
Reid Spencera773bd52006-08-04 18:18:08 +000014165return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014166 ;
14167 return 0;
14168}
14169_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014170for ac_lib in '' x; do
14171 if test -z "$ac_lib"; then
14172 ac_res="none required"
14173 else
14174 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014176 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177 rm -f conftest.$ac_objext conftest$ac_exeext
14178if { (ac_try="$ac_link"
14179case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14182esac
14183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_link") 2>conftest.er1
14185 ac_status=$?
14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192 { (case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195esac
14196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_try") 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014211 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212else
14213 echo "$as_me: failed program was:" >&5
14214sed 's/^/| /' conftest.$ac_ext >&5
14215
14216
Reid Spencer59473af2004-12-25 07:31:29 +000014217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218
Bill Wendlingebcceee2009-04-18 11:20:33 +000014219rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220 conftest$ac_exeext
14221 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014222 break
Reid Spencer59473af2004-12-25 07:31:29 +000014223fi
Reid Spencera773bd52006-08-04 18:18:08 +000014224done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225if test "${ac_cv_search_opendir+set}" = set; then
14226 :
Reid Spencera773bd52006-08-04 18:18:08 +000014227else
14228 ac_cv_search_opendir=no
14229fi
14230rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014231LIBS=$ac_func_search_save_LIBS
14232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14234echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014235ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014236if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014238
14239fi
14240
14241fi
14242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14244echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14245if test "${ac_cv_header_mmap_anon+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014247else
14248 ac_ext=c
14249ac_cpp='$CPP $CPPFLAGS'
14250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14252ac_compiler_gnu=$ac_cv_c_compiler_gnu
14253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254 cat >conftest.$ac_ext <<_ACEOF
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014259/* end confdefs.h. */
14260#include <sys/mman.h>
14261#include <unistd.h>
14262#include <fcntl.h>
14263int
14264main ()
14265{
14266mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14267 ;
14268 return 0;
14269}
14270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014271rm -f conftest.$ac_objext
14272if { (ac_try="$ac_compile"
14273case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276esac
14277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_compile") 2>conftest.er1
14279 ac_status=$?
14280 grep -v '^ *+' conftest.er1 >conftest.err
14281 rm -f conftest.er1
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14286 { (case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289esac
14290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_try") 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14299esac
14300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_try") 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014305 ac_cv_header_mmap_anon=yes
14306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014312
Reid Spencera773bd52006-08-04 18:18:08 +000014313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014314 ac_ext=c
14315ac_cpp='$CPP $CPPFLAGS'
14316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318ac_compiler_gnu=$ac_cv_c_compiler_gnu
14319
14320
14321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14323echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014324if test "$ac_cv_header_mmap_anon" = yes; then
14325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326cat >>confdefs.h <<\_ACEOF
14327#define HAVE_MMAP_ANONYMOUS 1
14328_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014329
14330fi
14331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14333echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14334if test "${ac_cv_header_stat_broken+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337 cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014342/* end confdefs.h. */
14343#include <sys/types.h>
14344#include <sys/stat.h>
14345
Reid Spencera773bd52006-08-04 18:18:08 +000014346#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347# if S_ISBLK (S_IFDIR)
14348You lose.
14349# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014350#endif
14351
Reid Spencera773bd52006-08-04 18:18:08 +000014352#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353# if S_ISBLK (S_IFCHR)
14354You lose.
14355# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014356#endif
14357
Reid Spencera773bd52006-08-04 18:18:08 +000014358#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359# if S_ISLNK (S_IFREG)
14360You lose.
14361# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014362#endif
14363
Reid Spencera773bd52006-08-04 18:18:08 +000014364#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365# if S_ISSOCK (S_IFREG)
14366You lose.
14367# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014368#endif
14369
14370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014373 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014374else
14375 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014377rm -f conftest*
14378
Reid Spencer59473af2004-12-25 07:31:29 +000014379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014380{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14381echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014382if test $ac_cv_header_stat_broken = yes; then
14383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014384cat >>confdefs.h <<\_ACEOF
14385#define STAT_MACROS_BROKEN 1
14386_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014387
14388fi
14389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014390{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14391echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14392if test "${ac_cv_header_sys_wait_h+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014395 cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014401#include <sys/types.h>
14402#include <sys/wait.h>
14403#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014404# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014405#endif
14406#ifndef WIFEXITED
14407# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14408#endif
14409
John Criswell7a73b802003-06-30 21:59:07 +000014410int
14411main ()
14412{
14413 int s;
14414 wait (&s);
14415 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14416 ;
14417 return 0;
14418}
14419_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014420rm -f conftest.$ac_objext
14421if { (ac_try="$ac_compile"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014454 ac_cv_header_sys_wait_h=yes
14455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461
Reid Spencera773bd52006-08-04 18:18:08 +000014462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14465echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014466if test $ac_cv_header_sys_wait_h = yes; then
14467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468cat >>confdefs.h <<\_ACEOF
14469#define HAVE_SYS_WAIT_H 1
14470_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014471
14472fi
14473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014474{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14475echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14476if test "${ac_cv_header_time+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479 cat >conftest.$ac_ext <<_ACEOF
14480/* confdefs.h. */
14481_ACEOF
14482cat confdefs.h >>conftest.$ac_ext
14483cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014484/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014485#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014486#include <sys/time.h>
14487#include <time.h>
14488
14489int
14490main ()
14491{
14492if ((struct tm *) 0)
14493return 0;
14494 ;
14495 return 0;
14496}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498rm -f conftest.$ac_objext
14499if { (ac_try="$ac_compile"
14500case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
14504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_compile") 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513 { (case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14516esac
14517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_try") 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526esac
14527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014532 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534 echo "$as_me: failed program was:" >&5
14535sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014539
Reid Spencera773bd52006-08-04 18:18:08 +000014540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14543echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014544if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014546cat >>confdefs.h <<\_ACEOF
14547#define TIME_WITH_SYS_TIME 1
14548_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014549
14550fi
14551
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014553
14554
14555
14556
14557
14558
Reid Spencer59473af2004-12-25 07:31:29 +000014559for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014560do
14561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567fi
14568ac_res=`eval echo '${'$as_ac_Header'}'`
14569 { echo "$as_me:$LINENO: result: $ac_res" >&5
14570echo "${ECHO_T}$ac_res" >&6; }
14571else
14572 # Is the header compilable?
14573{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14575cat >conftest.$ac_ext <<_ACEOF
14576/* confdefs.h. */
14577_ACEOF
14578cat confdefs.h >>conftest.$ac_ext
14579cat >>conftest.$ac_ext <<_ACEOF
14580/* end confdefs.h. */
14581$ac_includes_default
14582#include <$ac_header>
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (ac_try="$ac_compile"
14586case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14599 { (case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602esac
14603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_try") 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612esac
14613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_header_compiler=yes
14619else
14620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_header_compiler=no
14624fi
14625
14626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14628echo "${ECHO_T}$ac_header_compiler" >&6; }
14629
14630# Is the header present?
14631{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14633cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h. */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h. */
14639#include <$ac_header>
14640_ACEOF
14641if { (ac_try="$ac_cpp conftest.$ac_ext"
14642case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645esac
14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } >/dev/null; then
14654 if test -s conftest.err; then
14655 ac_cpp_err=$ac_c_preproc_warn_flag
14656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14657 else
14658 ac_cpp_err=
14659 fi
14660else
14661 ac_cpp_err=yes
14662fi
14663if test -z "$ac_cpp_err"; then
14664 ac_header_preproc=yes
14665else
14666 echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
14669 ac_header_preproc=no
14670fi
14671
14672rm -f conftest.err conftest.$ac_ext
14673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14674echo "${ECHO_T}$ac_header_preproc" >&6; }
14675
14676# So? What about this header?
14677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14678 yes:no: )
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14683 ac_header_preproc=yes
14684 ;;
14685 no:yes:* )
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14698 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014699## ------------------------------------ ##
14700## Report this to http://llvm.org/bugs/ ##
14701## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014702_ASBOX
14703 ) | sed "s/^/$as_me: WARNING: /" >&2
14704 ;;
14705esac
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
14710else
14711 eval "$as_ac_Header=\$ac_header_preproc"
14712fi
14713ac_res=`eval echo '${'$as_ac_Header'}'`
14714 { echo "$as_me:$LINENO: result: $ac_res" >&5
14715echo "${ECHO_T}$ac_res" >&6; }
14716
14717fi
14718if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014719 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014721_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014722
14723fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014724
Reid Spencer59473af2004-12-25 07:31:29 +000014725done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014727
14728
14729
14730
14731
14732
Douglas Gregor071d73d2009-05-18 17:21:34 +000014733for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014734do
14735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741fi
14742ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744echo "${ECHO_T}$ac_res" >&6; }
14745else
14746 # Is the header compilable?
14747{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14749cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
14755$ac_includes_default
14756#include <$ac_header>
14757_ACEOF
14758rm -f conftest.$ac_objext
14759if { (ac_try="$ac_compile"
14760case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763esac
14764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
14772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14773 { (case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776esac
14777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_try") 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14786esac
14787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_try") 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_header_compiler=yes
14793else
14794 echo "$as_me: failed program was:" >&5
14795sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 ac_header_compiler=no
14798fi
14799
14800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14802echo "${ECHO_T}$ac_header_compiler" >&6; }
14803
14804# Is the header present?
14805{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14807cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
14813#include <$ac_header>
14814_ACEOF
14815if { (ac_try="$ac_cpp conftest.$ac_ext"
14816case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14819esac
14820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } >/dev/null; then
14828 if test -s conftest.err; then
14829 ac_cpp_err=$ac_c_preproc_warn_flag
14830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14831 else
14832 ac_cpp_err=
14833 fi
14834else
14835 ac_cpp_err=yes
14836fi
14837if test -z "$ac_cpp_err"; then
14838 ac_header_preproc=yes
14839else
14840 echo "$as_me: failed program was:" >&5
14841sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 ac_header_preproc=no
14844fi
14845
14846rm -f conftest.err conftest.$ac_ext
14847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14848echo "${ECHO_T}$ac_header_preproc" >&6; }
14849
14850# So? What about this header?
14851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14852 yes:no: )
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14857 ac_header_preproc=yes
14858 ;;
14859 no:yes:* )
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14863echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14867echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14872 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014873## ------------------------------------ ##
14874## Report this to http://llvm.org/bugs/ ##
14875## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014876_ASBOX
14877 ) | sed "s/^/$as_me: WARNING: /" >&2
14878 ;;
14879esac
14880{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884else
14885 eval "$as_ac_Header=\$ac_header_preproc"
14886fi
14887ac_res=`eval echo '${'$as_ac_Header'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889echo "${ECHO_T}$ac_res" >&6; }
14890
14891fi
14892if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014893 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014895_ACEOF
14896
14897fi
14898
14899done
14900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014901
14902
Douglas Gregor071d73d2009-05-18 17:21:34 +000014903for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014904do
14905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911fi
14912ac_res=`eval echo '${'$as_ac_Header'}'`
14913 { echo "$as_me:$LINENO: result: $ac_res" >&5
14914echo "${ECHO_T}$ac_res" >&6; }
14915else
14916 # Is the header compilable?
14917{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14919cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925$ac_includes_default
14926#include <$ac_header>
14927_ACEOF
14928rm -f conftest.$ac_objext
14929if { (ac_try="$ac_compile"
14930case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933esac
14934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14943 { (case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946esac
14947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_try") 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956esac
14957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_try") 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_header_compiler=yes
14963else
14964 echo "$as_me: failed program was:" >&5
14965sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 ac_header_compiler=no
14968fi
14969
14970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14972echo "${ECHO_T}$ac_header_compiler" >&6; }
14973
14974# Is the header present?
14975{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14977cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983#include <$ac_header>
14984_ACEOF
14985if { (ac_try="$ac_cpp conftest.$ac_ext"
14986case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989esac
14990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null; then
14998 if test -s conftest.err; then
14999 ac_cpp_err=$ac_c_preproc_warn_flag
15000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15001 else
15002 ac_cpp_err=
15003 fi
15004else
15005 ac_cpp_err=yes
15006fi
15007if test -z "$ac_cpp_err"; then
15008 ac_header_preproc=yes
15009else
15010 echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_header_preproc=no
15014fi
15015
15016rm -f conftest.err conftest.$ac_ext
15017{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15018echo "${ECHO_T}$ac_header_preproc" >&6; }
15019
15020# So? What about this header?
15021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15022 yes:no: )
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15027 ac_header_preproc=yes
15028 ;;
15029 no:yes:* )
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15042 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015043## ------------------------------------ ##
15044## Report this to http://llvm.org/bugs/ ##
15045## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015046_ASBOX
15047 ) | sed "s/^/$as_me: WARNING: /" >&2
15048 ;;
15049esac
15050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054else
15055 eval "$as_ac_Header=\$ac_header_preproc"
15056fi
15057ac_res=`eval echo '${'$as_ac_Header'}'`
15058 { echo "$as_me:$LINENO: result: $ac_res" >&5
15059echo "${ECHO_T}$ac_res" >&6; }
15060
15061fi
15062if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015063 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015065_ACEOF
15066
15067fi
15068
15069done
Reid Spencer59473af2004-12-25 07:31:29 +000015070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015071
15072
15073
15074
Daniel Dunbar3e462932011-02-03 02:40:02 +000015075
15076for 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 +000015077do
15078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084fi
15085ac_res=`eval echo '${'$as_ac_Header'}'`
15086 { echo "$as_me:$LINENO: result: $ac_res" >&5
15087echo "${ECHO_T}$ac_res" >&6; }
15088else
15089 # Is the header compilable?
15090{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15092cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098$ac_includes_default
15099#include <$ac_header>
15100_ACEOF
15101rm -f conftest.$ac_objext
15102if { (ac_try="$ac_compile"
15103case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_compile") 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15116 { (case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15119esac
15120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_try") 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_try") 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_header_compiler=yes
15136else
15137 echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_header_compiler=no
15141fi
15142
15143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15145echo "${ECHO_T}$ac_header_compiler" >&6; }
15146
15147# Is the header present?
15148{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15150cat >conftest.$ac_ext <<_ACEOF
15151/* confdefs.h. */
15152_ACEOF
15153cat confdefs.h >>conftest.$ac_ext
15154cat >>conftest.$ac_ext <<_ACEOF
15155/* end confdefs.h. */
15156#include <$ac_header>
15157_ACEOF
15158if { (ac_try="$ac_cpp conftest.$ac_ext"
15159case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162esac
15163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev/null; then
15171 if test -s conftest.err; then
15172 ac_cpp_err=$ac_c_preproc_warn_flag
15173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15174 else
15175 ac_cpp_err=
15176 fi
15177else
15178 ac_cpp_err=yes
15179fi
15180if test -z "$ac_cpp_err"; then
15181 ac_header_preproc=yes
15182else
15183 echo "$as_me: failed program was:" >&5
15184sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ac_header_preproc=no
15187fi
15188
15189rm -f conftest.err conftest.$ac_ext
15190{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15191echo "${ECHO_T}$ac_header_preproc" >&6; }
15192
15193# So? What about this header?
15194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15195 yes:no: )
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15200 ac_header_preproc=yes
15201 ;;
15202 no:yes:* )
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15210echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15215 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015216## ------------------------------------ ##
15217## Report this to http://llvm.org/bugs/ ##
15218## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015219_ASBOX
15220 ) | sed "s/^/$as_me: WARNING: /" >&2
15221 ;;
15222esac
15223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227else
15228 eval "$as_ac_Header=\$ac_header_preproc"
15229fi
15230ac_res=`eval echo '${'$as_ac_Header'}'`
15231 { echo "$as_me:$LINENO: result: $ac_res" >&5
15232echo "${ECHO_T}$ac_res" >&6; }
15233
15234fi
15235if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015236 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015238_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015239
15240fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015241
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015242done
15243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015244
15245
15246
15247
Douglas Gregor01746742009-05-11 18:05:52 +000015248for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015249do
15250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256fi
15257ac_res=`eval echo '${'$as_ac_Header'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259echo "${ECHO_T}$ac_res" >&6; }
15260else
15261 # Is the header compilable?
15262{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15264cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270$ac_includes_default
15271#include <$ac_header>
15272_ACEOF
15273rm -f conftest.$ac_objext
15274if { (ac_try="$ac_compile"
15275case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
15279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_compile") 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15288 { (case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291esac
15292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_try") 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301esac
15302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_header_compiler=yes
15308else
15309 echo "$as_me: failed program was:" >&5
15310sed 's/^/| /' conftest.$ac_ext >&5
15311
15312 ac_header_compiler=no
15313fi
15314
15315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15317echo "${ECHO_T}$ac_header_compiler" >&6; }
15318
15319# Is the header present?
15320{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15321echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15322cat >conftest.$ac_ext <<_ACEOF
15323/* confdefs.h. */
15324_ACEOF
15325cat confdefs.h >>conftest.$ac_ext
15326cat >>conftest.$ac_ext <<_ACEOF
15327/* end confdefs.h. */
15328#include <$ac_header>
15329_ACEOF
15330if { (ac_try="$ac_cpp conftest.$ac_ext"
15331case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334esac
15335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev/null; then
15343 if test -s conftest.err; then
15344 ac_cpp_err=$ac_c_preproc_warn_flag
15345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15346 else
15347 ac_cpp_err=
15348 fi
15349else
15350 ac_cpp_err=yes
15351fi
15352if test -z "$ac_cpp_err"; then
15353 ac_header_preproc=yes
15354else
15355 echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 ac_header_preproc=no
15359fi
15360
15361rm -f conftest.err conftest.$ac_ext
15362{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363echo "${ECHO_T}$ac_header_preproc" >&6; }
15364
15365# So? What about this header?
15366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367 yes:no: )
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372 ac_header_preproc=yes
15373 ;;
15374 no:yes:* )
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15378echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15382echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15387 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015388## ------------------------------------ ##
15389## Report this to http://llvm.org/bugs/ ##
15390## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391_ASBOX
15392 ) | sed "s/^/$as_me: WARNING: /" >&2
15393 ;;
15394esac
15395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15399else
15400 eval "$as_ac_Header=\$ac_header_preproc"
15401fi
15402ac_res=`eval echo '${'$as_ac_Header'}'`
15403 { echo "$as_me:$LINENO: result: $ac_res" >&5
15404echo "${ECHO_T}$ac_res" >&6; }
15405
15406fi
15407if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015408 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015410_ACEOF
15411
15412fi
15413
15414done
15415
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015416
15417for ac_header in valgrind/valgrind.h
15418do
15419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425fi
15426ac_res=`eval echo '${'$as_ac_Header'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428echo "${ECHO_T}$ac_res" >&6; }
15429else
15430 # Is the header compilable?
15431{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15433cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439$ac_includes_default
15440#include <$ac_header>
15441_ACEOF
15442rm -f conftest.$ac_objext
15443if { (ac_try="$ac_compile"
15444case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15457 { (case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15460esac
15461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_try") 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470esac
15471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_try") 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_header_compiler=yes
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 ac_header_compiler=no
15482fi
15483
15484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15486echo "${ECHO_T}$ac_header_compiler" >&6; }
15487
15488# Is the header present?
15489{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15491cat >conftest.$ac_ext <<_ACEOF
15492/* confdefs.h. */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
15496/* end confdefs.h. */
15497#include <$ac_header>
15498_ACEOF
15499if { (ac_try="$ac_cpp conftest.$ac_ext"
15500case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503esac
15504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15506 ac_status=$?
15507 grep -v '^ *+' conftest.er1 >conftest.err
15508 rm -f conftest.er1
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } >/dev/null; then
15512 if test -s conftest.err; then
15513 ac_cpp_err=$ac_c_preproc_warn_flag
15514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15515 else
15516 ac_cpp_err=
15517 fi
15518else
15519 ac_cpp_err=yes
15520fi
15521if test -z "$ac_cpp_err"; then
15522 ac_header_preproc=yes
15523else
15524 echo "$as_me: failed program was:" >&5
15525sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ac_header_preproc=no
15528fi
15529
15530rm -f conftest.err conftest.$ac_ext
15531{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15532echo "${ECHO_T}$ac_header_preproc" >&6; }
15533
15534# So? What about this header?
15535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15536 yes:no: )
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15541 ac_header_preproc=yes
15542 ;;
15543 no:yes:* )
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15547echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15551echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15556 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015557## ------------------------------------ ##
15558## Report this to http://llvm.org/bugs/ ##
15559## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015560_ASBOX
15561 ) | sed "s/^/$as_me: WARNING: /" >&2
15562 ;;
15563esac
15564{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568else
15569 eval "$as_ac_Header=\$ac_header_preproc"
15570fi
15571ac_res=`eval echo '${'$as_ac_Header'}'`
15572 { echo "$as_me:$LINENO: result: $ac_res" >&5
15573echo "${ECHO_T}$ac_res" >&6; }
15574
15575fi
15576if test `eval echo '${'$as_ac_Header'}'` = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15579_ACEOF
15580
15581fi
15582
15583done
15584
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015585
15586for ac_header in fenv.h
15587do
15588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594fi
15595ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597echo "${ECHO_T}$ac_res" >&6; }
15598else
15599 # Is the header compilable?
15600{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15602cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609#include <$ac_header>
15610_ACEOF
15611rm -f conftest.$ac_objext
15612if { (ac_try="$ac_compile"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_compile") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639esac
15640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_header_compiler=yes
15646else
15647 echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 ac_header_compiler=no
15651fi
15652
15653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15655echo "${ECHO_T}$ac_header_compiler" >&6; }
15656
15657# Is the header present?
15658{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15660cat >conftest.$ac_ext <<_ACEOF
15661/* confdefs.h. */
15662_ACEOF
15663cat confdefs.h >>conftest.$ac_ext
15664cat >>conftest.$ac_ext <<_ACEOF
15665/* end confdefs.h. */
15666#include <$ac_header>
15667_ACEOF
15668if { (ac_try="$ac_cpp conftest.$ac_ext"
15669case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672esac
15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } >/dev/null; then
15681 if test -s conftest.err; then
15682 ac_cpp_err=$ac_c_preproc_warn_flag
15683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15684 else
15685 ac_cpp_err=
15686 fi
15687else
15688 ac_cpp_err=yes
15689fi
15690if test -z "$ac_cpp_err"; then
15691 ac_header_preproc=yes
15692else
15693 echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696 ac_header_preproc=no
15697fi
15698
15699rm -f conftest.err conftest.$ac_ext
15700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701echo "${ECHO_T}$ac_header_preproc" >&6; }
15702
15703# So? What about this header?
15704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15705 yes:no: )
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
15711 ;;
15712 no:yes:* )
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15725 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015726## ------------------------------------ ##
15727## Report this to http://llvm.org/bugs/ ##
15728## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015729_ASBOX
15730 ) | sed "s/^/$as_me: WARNING: /" >&2
15731 ;;
15732esac
15733{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15737else
15738 eval "$as_ac_Header=\$ac_header_preproc"
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743
15744fi
15745if test `eval echo '${'$as_ac_Header'}'` = yes; then
15746 cat >>confdefs.h <<_ACEOF
15747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15748_ACEOF
15749
15750fi
15751
15752done
15753
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015754if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015755
15756for ac_header in pthread.h
15757do
15758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764fi
15765ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767echo "${ECHO_T}$ac_res" >&6; }
15768else
15769 # Is the header compilable?
15770{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778$ac_includes_default
15779#include <$ac_header>
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (ac_try="$ac_compile"
15783case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799esac
15800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15809esac
15810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_header_compiler=no
15821fi
15822
15823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825echo "${ECHO_T}$ac_header_compiler" >&6; }
15826
15827# Is the header present?
15828{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836#include <$ac_header>
15837_ACEOF
15838if { (ac_try="$ac_cpp conftest.$ac_ext"
15839case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842esac
15843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15854 else
15855 ac_cpp_err=
15856 fi
15857else
15858 ac_cpp_err=yes
15859fi
15860if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 ac_header_preproc=no
15867fi
15868
15869rm -f conftest.err conftest.$ac_ext
15870{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871echo "${ECHO_T}$ac_header_preproc" >&6; }
15872
15873# So? What about this header?
15874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875 yes:no: )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15881 ;;
15882 no:yes:* )
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015896## ------------------------------------ ##
15897## Report this to http://llvm.org/bugs/ ##
15898## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015899_ASBOX
15900 ) | sed "s/^/$as_me: WARNING: /" >&2
15901 ;;
15902esac
15903{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907else
15908 eval "$as_ac_Header=\$ac_header_preproc"
15909fi
15910ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912echo "${ECHO_T}$ac_res" >&6; }
15913
15914fi
15915if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015918_ACEOF
15919 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015920
15921else
15922 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015923
15924fi
15925
Reid Spencerbe3e4192007-08-17 05:45:26 +000015926done
Reid Spencer1000b732006-12-01 00:37:14 +000015927
15928else
15929 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015930
15931fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015932
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015933if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015934
15935
15936for ac_header in ffi.h ffi/ffi.h
15937do
15938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944fi
15945ac_res=`eval echo '${'$as_ac_Header'}'`
15946 { echo "$as_me:$LINENO: result: $ac_res" >&5
15947echo "${ECHO_T}$ac_res" >&6; }
15948else
15949 # Is the header compilable?
15950{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15952cat >conftest.$ac_ext <<_ACEOF
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958$ac_includes_default
15959#include <$ac_header>
15960_ACEOF
15961rm -f conftest.$ac_objext
15962if { (ac_try="$ac_compile"
15963case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_compile") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979esac
15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest.$ac_objext'
15986 { (case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989esac
15990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_try") 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_header_compiler=yes
15996else
15997 echo "$as_me: failed program was:" >&5
15998sed 's/^/| /' conftest.$ac_ext >&5
15999
16000 ac_header_compiler=no
16001fi
16002
16003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16004{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16005echo "${ECHO_T}$ac_header_compiler" >&6; }
16006
16007# Is the header present?
16008{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16010cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h. */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h. */
16016#include <$ac_header>
16017_ACEOF
16018if { (ac_try="$ac_cpp conftest.$ac_ext"
16019case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022esac
16023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16025 ac_status=$?
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } >/dev/null; then
16031 if test -s conftest.err; then
16032 ac_cpp_err=$ac_c_preproc_warn_flag
16033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16034 else
16035 ac_cpp_err=
16036 fi
16037else
16038 ac_cpp_err=yes
16039fi
16040if test -z "$ac_cpp_err"; then
16041 ac_header_preproc=yes
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_header_preproc=no
16047fi
16048
16049rm -f conftest.err conftest.$ac_ext
16050{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16051echo "${ECHO_T}$ac_header_preproc" >&6; }
16052
16053# So? What about this header?
16054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16055 yes:no: )
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16060 ac_header_preproc=yes
16061 ;;
16062 no:yes:* )
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16075 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016076## ------------------------------------ ##
16077## Report this to http://llvm.org/bugs/ ##
16078## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016079_ASBOX
16080 ) | sed "s/^/$as_me: WARNING: /" >&2
16081 ;;
16082esac
16083{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087else
16088 eval "$as_ac_Header=\$ac_header_preproc"
16089fi
16090ac_res=`eval echo '${'$as_ac_Header'}'`
16091 { echo "$as_me:$LINENO: result: $ac_res" >&5
16092echo "${ECHO_T}$ac_res" >&6; }
16093
16094fi
16095if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016096 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016098_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016099
16100fi
16101
16102done
16103
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016104fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016105
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016106
Eric Christopher654dee42010-06-22 21:01:04 +000016107for ac_header in CrashReporterClient.h
16108do
16109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115fi
16116ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118echo "${ECHO_T}$ac_res" >&6; }
16119else
16120 # Is the header compilable?
16121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16123cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129$ac_includes_default
16130#include <$ac_header>
16131_ACEOF
16132rm -f conftest.$ac_objext
16133if { (ac_try="$ac_compile"
16134case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137esac
16138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_compile") 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16147 { (case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150esac
16151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_try") 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16160esac
16161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_try") 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_header_compiler=yes
16167else
16168 echo "$as_me: failed program was:" >&5
16169sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 ac_header_compiler=no
16172fi
16173
16174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16176echo "${ECHO_T}$ac_header_compiler" >&6; }
16177
16178# Is the header present?
16179{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16181cat >conftest.$ac_ext <<_ACEOF
16182/* confdefs.h. */
16183_ACEOF
16184cat confdefs.h >>conftest.$ac_ext
16185cat >>conftest.$ac_ext <<_ACEOF
16186/* end confdefs.h. */
16187#include <$ac_header>
16188_ACEOF
16189if { (ac_try="$ac_cpp conftest.$ac_ext"
16190case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193esac
16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } >/dev/null; then
16202 if test -s conftest.err; then
16203 ac_cpp_err=$ac_c_preproc_warn_flag
16204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16205 else
16206 ac_cpp_err=
16207 fi
16208else
16209 ac_cpp_err=yes
16210fi
16211if test -z "$ac_cpp_err"; then
16212 ac_header_preproc=yes
16213else
16214 echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 ac_header_preproc=no
16218fi
16219
16220rm -f conftest.err conftest.$ac_ext
16221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222echo "${ECHO_T}$ac_header_preproc" >&6; }
16223
16224# So? What about this header?
16225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226 yes:no: )
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16231 ac_header_preproc=yes
16232 ;;
16233 no:yes:* )
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16246 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016247## ------------------------------------ ##
16248## Report this to http://llvm.org/bugs/ ##
16249## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016250_ASBOX
16251 ) | sed "s/^/$as_me: WARNING: /" >&2
16252 ;;
16253esac
16254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16258else
16259 eval "$as_ac_Header=\$ac_header_preproc"
16260fi
16261ac_res=`eval echo '${'$as_ac_Header'}'`
16262 { echo "$as_me:$LINENO: result: $ac_res" >&5
16263echo "${ECHO_T}$ac_res" >&6; }
16264
16265fi
16266if test `eval echo '${'$as_ac_Header'}'` = yes; then
16267 cat >>confdefs.h <<_ACEOF
16268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16269_ACEOF
16270
16271fi
16272
16273done
16274
16275
Eric Christopher51e57132010-12-07 02:05:42 +000016276{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16277echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016278cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016284extern const char *__crashreporter_info__;
16285 int main() {
16286 __crashreporter_info__ = "test";
16287 return 0;
16288 }
Eric Christopher481d4022010-12-03 07:45:22 +000016289
Eric Christopher481d4022010-12-03 07:45:22 +000016290_ACEOF
16291rm -f conftest.$ac_objext conftest$ac_exeext
16292if { (ac_try="$ac_link"
16293case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296esac
16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_link") 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306 { (case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16309esac
16310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_try") 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest$ac_exeext'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319esac
16320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016325 { echo "$as_me:$LINENO: result: yes" >&5
16326echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016327
16328cat >>confdefs.h <<\_ACEOF
16329#define HAVE_CRASHREPORTER_INFO 1
16330_ACEOF
16331
Eric Christopher51e57132010-12-07 02:05:42 +000016332else
16333 echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 { echo "$as_me:$LINENO: result: no" >&5
16337echo "${ECHO_T}no" >&6; }
16338
16339cat >>confdefs.h <<\_ACEOF
16340#define HAVE_CRASHREPORTER_INFO 0
16341_ACEOF
16342
Eric Christopher481d4022010-12-03 07:45:22 +000016343fi
Eric Christopher654dee42010-06-22 21:01:04 +000016344
Eric Christopher51e57132010-12-07 02:05:42 +000016345rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16347
16348
Reid Spencer8085cff2005-01-16 02:58:39 +000016349
Torok Edwin871384f2010-01-26 08:50:50 +000016350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016351 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16352echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16353if test "${ac_cv_huge_val_sanity+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016355else
16356
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016357 ac_ext=cpp
16358ac_cpp='$CXXCPP $CPPFLAGS'
16359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016362
Eric Christopherc7718502010-03-02 05:06:54 +000016363 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopherb2bc6e42012-03-26 02:09:01 +000016364 CXXFLAGS+=" -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016365 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016366 ac_cv_huge_val_sanity=yes
16367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016368 cat >conftest.$ac_ext <<_ACEOF
16369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016373/* end confdefs.h. */
16374#include <math.h>
16375int
16376main ()
16377{
16378double x = HUGE_VAL; return x != x;
16379 ;
16380 return 0;
16381}
16382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016383rm -f conftest$ac_exeext
16384if { (ac_try="$ac_link"
16385case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_link") 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16394 { (case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16397esac
16398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_try") 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016403 ac_cv_huge_val_sanity=yes
16404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016405 echo "$as_me: program exited with status $ac_status" >&5
16406echo "$as_me: failed program was:" >&5
16407sed 's/^/| /' conftest.$ac_ext >&5
16408
16409( exit $ac_status )
16410ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412rm -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 +000016413fi
16414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016415
Eric Christopherc7718502010-03-02 05:06:54 +000016416 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016417 ac_ext=c
16418ac_cpp='$CPP $CPPFLAGS'
16419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16421ac_compiler_gnu=$ac_cv_c_compiler_gnu
16422
16423
16424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016425{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16426echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016427 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16428
16429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016430{ echo "$as_me:$LINENO: checking for pid_t" >&5
16431echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16432if test "${ac_cv_type_pid_t+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434else
16435 cat >conftest.$ac_ext <<_ACEOF
16436/* confdefs.h. */
16437_ACEOF
16438cat confdefs.h >>conftest.$ac_ext
16439cat >>conftest.$ac_ext <<_ACEOF
16440/* end confdefs.h. */
16441$ac_includes_default
16442typedef pid_t ac__type_new_;
16443int
16444main ()
16445{
16446if ((ac__type_new_ *) 0)
16447 return 0;
16448if (sizeof (ac__type_new_))
16449 return 0;
16450 ;
16451 return 0;
16452}
16453_ACEOF
16454rm -f conftest.$ac_objext
16455if { (ac_try="$ac_compile"
16456case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16472esac
16473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_type_pid_t=yes
16489else
16490 echo "$as_me: failed program was:" >&5
16491sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016493 ac_cv_type_pid_t=no
16494fi
16495
16496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497fi
16498{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16499echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16500if test $ac_cv_type_pid_t = yes; then
16501 :
John Criswell7a73b802003-06-30 21:59:07 +000016502else
16503
16504cat >>confdefs.h <<_ACEOF
16505#define pid_t int
16506_ACEOF
16507
16508fi
16509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016510{ echo "$as_me:$LINENO: checking for size_t" >&5
16511echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16512if test "${ac_cv_type_size_t+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514else
16515 cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521$ac_includes_default
16522typedef size_t ac__type_new_;
16523int
16524main ()
16525{
16526if ((ac__type_new_ *) 0)
16527 return 0;
16528if (sizeof (ac__type_new_))
16529 return 0;
16530 ;
16531 return 0;
16532}
16533_ACEOF
16534rm -f conftest.$ac_objext
16535if { (ac_try="$ac_compile"
16536case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552esac
16553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562esac
16563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 ac_cv_type_size_t=yes
16569else
16570 echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016573 ac_cv_type_size_t=no
16574fi
16575
16576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577fi
16578{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16579echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16580if test $ac_cv_type_size_t = yes; then
16581 :
John Criswell7a73b802003-06-30 21:59:07 +000016582else
16583
16584cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016585#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016586_ACEOF
16587
16588fi
16589
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016590
16591cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016592#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016593_ACEOF
16594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016595{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16596echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16597if test "${ac_cv_struct_tm+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016600 cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016605/* end confdefs.h. */
16606#include <sys/types.h>
16607#include <time.h>
16608
16609int
16610main ()
16611{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016612struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016613 ;
16614 return 0;
16615}
16616_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016617rm -f conftest.$ac_objext
16618if { (ac_try="$ac_compile"
16619case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016651 ac_cv_struct_tm=time.h
16652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016658
Reid Spencera773bd52006-08-04 18:18:08 +000016659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016661{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16662echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016663if test $ac_cv_struct_tm = sys/time.h; then
16664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016665cat >>confdefs.h <<\_ACEOF
16666#define TM_IN_SYS_TIME 1
16667_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016668
16669fi
16670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016671{ echo "$as_me:$LINENO: checking for int64_t" >&5
16672echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16673if test "${ac_cv_type_int64_t+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
16676 cat >conftest.$ac_ext <<_ACEOF
16677/* confdefs.h. */
16678_ACEOF
16679cat confdefs.h >>conftest.$ac_ext
16680cat >>conftest.$ac_ext <<_ACEOF
16681/* end confdefs.h. */
16682$ac_includes_default
16683typedef int64_t ac__type_new_;
16684int
16685main ()
16686{
16687if ((ac__type_new_ *) 0)
16688 return 0;
16689if (sizeof (ac__type_new_))
16690 return 0;
16691 ;
16692 return 0;
16693}
16694_ACEOF
16695rm -f conftest.$ac_objext
16696if { (ac_try="$ac_compile"
16697case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_type_int64_t=yes
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ac_cv_type_int64_t=no
16735fi
16736
16737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738fi
16739{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16740echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16741if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016742
16743cat >>confdefs.h <<_ACEOF
16744#define HAVE_INT64_T 1
16745_ACEOF
16746
16747
16748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016749 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16750echo "$as_me: error: Type int64_t required but not found" >&2;}
16751 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016752fi
16753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016754{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16755echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16756if test "${ac_cv_type_uint64_t+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758else
16759 cat >conftest.$ac_ext <<_ACEOF
16760/* confdefs.h. */
16761_ACEOF
16762cat confdefs.h >>conftest.$ac_ext
16763cat >>conftest.$ac_ext <<_ACEOF
16764/* end confdefs.h. */
16765$ac_includes_default
16766typedef uint64_t ac__type_new_;
16767int
16768main ()
16769{
16770if ((ac__type_new_ *) 0)
16771 return 0;
16772if (sizeof (ac__type_new_))
16773 return 0;
16774 ;
16775 return 0;
16776}
16777_ACEOF
16778rm -f conftest.$ac_objext
16779if { (ac_try="$ac_compile"
16780case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783esac
16784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796esac
16797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
16803 { (case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_try") 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_cv_type_uint64_t=yes
16813else
16814 echo "$as_me: failed program was:" >&5
16815sed 's/^/| /' conftest.$ac_ext >&5
16816
16817 ac_cv_type_uint64_t=no
16818fi
16819
16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821fi
16822{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16823echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16824if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016825
16826cat >>confdefs.h <<_ACEOF
16827#define HAVE_UINT64_T 1
16828_ACEOF
16829
16830
16831else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016832 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16833echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16834if test "${ac_cv_type_u_int64_t+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836else
16837 cat >conftest.$ac_ext <<_ACEOF
16838/* confdefs.h. */
16839_ACEOF
16840cat confdefs.h >>conftest.$ac_ext
16841cat >>conftest.$ac_ext <<_ACEOF
16842/* end confdefs.h. */
16843$ac_includes_default
16844typedef u_int64_t ac__type_new_;
16845int
16846main ()
16847{
16848if ((ac__type_new_ *) 0)
16849 return 0;
16850if (sizeof (ac__type_new_))
16851 return 0;
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (ac_try="$ac_compile"
16858case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_type_u_int64_t=yes
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 ac_cv_type_u_int64_t=no
16896fi
16897
16898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16899fi
16900{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16901echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16902if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016903
16904cat >>confdefs.h <<_ACEOF
16905#define HAVE_U_INT64_T 1
16906_ACEOF
16907
16908
Misha Brukmanceca9042004-09-02 23:02:30 +000016909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016910 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16911echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16912 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016913fi
16914
John Criswell679ff312004-09-02 18:44:44 +000016915fi
16916
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016917
16918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016919
16920
16921
16922
16923
16924
16925
Reid Spencerdf3be822006-01-23 08:15:53 +000016926for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016927do
16928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16929{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933else
16934 cat >conftest.$ac_ext <<_ACEOF
16935/* confdefs.h. */
16936_ACEOF
16937cat confdefs.h >>conftest.$ac_ext
16938cat >>conftest.$ac_ext <<_ACEOF
16939/* end confdefs.h. */
16940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16942#define $ac_func innocuous_$ac_func
16943
16944/* System header to define __stub macros and hopefully few prototypes,
16945 which can conflict with char $ac_func (); below.
16946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947 <limits.h> exists even on freestanding compilers. */
16948
16949#ifdef __STDC__
16950# include <limits.h>
16951#else
16952# include <assert.h>
16953#endif
16954
16955#undef $ac_func
16956
16957/* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
16960#ifdef __cplusplus
16961extern "C"
16962#endif
16963char $ac_func ();
16964/* The GNU C library defines this for functions which it implements
16965 to always fail with ENOSYS. Some functions are actually named
16966 something starting with __ and the normal name is an alias. */
16967#if defined __stub_$ac_func || defined __stub___$ac_func
16968choke me
16969#endif
16970
16971int
16972main ()
16973{
16974return $ac_func ();
16975 ;
16976 return 0;
16977}
16978_ACEOF
16979rm -f conftest.$ac_objext conftest$ac_exeext
16980if { (ac_try="$ac_link"
16981case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984esac
16985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest$ac_exeext'
17004 { (case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_try") 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 eval "$as_ac_var=yes"
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018 eval "$as_ac_var=no"
17019fi
17020
17021rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023fi
17024ac_res=`eval echo '${'$as_ac_var'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026echo "${ECHO_T}$ac_res" >&6; }
17027if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017028 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017030_ACEOF
17031
17032fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017033done
John Criswell7a73b802003-06-30 21:59:07 +000017034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017035
17036
17037
17038
Reid Spencer96cf5872007-07-13 10:05:30 +000017039for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017040do
17041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055#define $ac_func innocuous_$ac_func
17056
17057/* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17061
17062#ifdef __STDC__
17063# include <limits.h>
17064#else
17065# include <assert.h>
17066#endif
17067
17068#undef $ac_func
17069
17070/* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17073#ifdef __cplusplus
17074extern "C"
17075#endif
17076char $ac_func ();
17077/* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080#if defined __stub_$ac_func || defined __stub___$ac_func
17081choke me
17082#endif
17083
17084int
17085main ()
17086{
17087return $ac_func ();
17088 ;
17089 return 0;
17090}
17091_ACEOF
17092rm -f conftest.$ac_objext conftest$ac_exeext
17093if { (ac_try="$ac_link"
17094case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097esac
17098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest$ac_exeext'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120esac
17121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 eval "$as_ac_var=yes"
17127else
17128 echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 eval "$as_ac_var=no"
17132fi
17133
17134rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17136fi
17137ac_res=`eval echo '${'$as_ac_var'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139echo "${ECHO_T}$ac_res" >&6; }
17140if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017143_ACEOF
17144
17145fi
17146done
17147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017148
17149
17150
17151
17152
Reid Spencerb90645c2007-02-16 19:17:20 +000017153for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017154do
17155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161 cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17169#define $ac_func innocuous_$ac_func
17170
17171/* System header to define __stub macros and hopefully few prototypes,
17172 which can conflict with char $ac_func (); below.
17173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174 <limits.h> exists even on freestanding compilers. */
17175
17176#ifdef __STDC__
17177# include <limits.h>
17178#else
17179# include <assert.h>
17180#endif
17181
17182#undef $ac_func
17183
17184/* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17187#ifdef __cplusplus
17188extern "C"
17189#endif
17190char $ac_func ();
17191/* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194#if defined __stub_$ac_func || defined __stub___$ac_func
17195choke me
17196#endif
17197
17198int
17199main ()
17200{
17201return $ac_func ();
17202 ;
17203 return 0;
17204}
17205_ACEOF
17206rm -f conftest.$ac_objext conftest$ac_exeext
17207if { (ac_try="$ac_link"
17208case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211esac
17212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_link") 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17221 { (case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224esac
17225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_try") 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest$ac_exeext'
17231 { (case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_try") 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 eval "$as_ac_var=yes"
17241else
17242 echo "$as_me: failed program was:" >&5
17243sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 eval "$as_ac_var=no"
17246fi
17247
17248rm -f core conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17250fi
17251ac_res=`eval echo '${'$as_ac_var'}'`
17252 { echo "$as_me:$LINENO: result: $ac_res" >&5
17253echo "${ECHO_T}$ac_res" >&6; }
17254if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017255 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017257_ACEOF
17258
17259fi
17260done
17261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017262
17263
17264
Reid Spencerb90645c2007-02-16 19:17:20 +000017265for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017266do
17267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17268{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17270if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272else
17273 cat >conftest.$ac_ext <<_ACEOF
17274/* confdefs.h. */
17275_ACEOF
17276cat confdefs.h >>conftest.$ac_ext
17277cat >>conftest.$ac_ext <<_ACEOF
17278/* end confdefs.h. */
17279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17281#define $ac_func innocuous_$ac_func
17282
17283/* System header to define __stub macros and hopefully few prototypes,
17284 which can conflict with char $ac_func (); below.
17285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17286 <limits.h> exists even on freestanding compilers. */
17287
17288#ifdef __STDC__
17289# include <limits.h>
17290#else
17291# include <assert.h>
17292#endif
17293
17294#undef $ac_func
17295
17296/* Override any GCC internal prototype to avoid an error.
17297 Use char because int might match the return type of a GCC
17298 builtin and then its argument prototype would still apply. */
17299#ifdef __cplusplus
17300extern "C"
17301#endif
17302char $ac_func ();
17303/* The GNU C library defines this for functions which it implements
17304 to always fail with ENOSYS. Some functions are actually named
17305 something starting with __ and the normal name is an alias. */
17306#if defined __stub_$ac_func || defined __stub___$ac_func
17307choke me
17308#endif
17309
17310int
17311main ()
17312{
17313return $ac_func ();
17314 ;
17315 return 0;
17316}
17317_ACEOF
17318rm -f conftest.$ac_objext conftest$ac_exeext
17319if { (ac_try="$ac_link"
17320case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323esac
17324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17333 { (case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336esac
17337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_try") 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } &&
17342 { ac_try='test -s conftest$ac_exeext'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 eval "$as_ac_var=yes"
17353else
17354 echo "$as_me: failed program was:" >&5
17355sed 's/^/| /' conftest.$ac_ext >&5
17356
17357 eval "$as_ac_var=no"
17358fi
17359
17360rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362fi
17363ac_res=`eval echo '${'$as_ac_var'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365echo "${ECHO_T}$ac_res" >&6; }
17366if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017367 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017369_ACEOF
17370
17371fi
17372done
17373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017374
17375
17376
17377
17378
Eric Christophere4291822010-04-16 05:14:21 +000017379
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017380
17381for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017382do
17383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17388else
17389 cat >conftest.$ac_ext <<_ACEOF
17390/* confdefs.h. */
17391_ACEOF
17392cat confdefs.h >>conftest.$ac_ext
17393cat >>conftest.$ac_ext <<_ACEOF
17394/* end confdefs.h. */
17395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397#define $ac_func innocuous_$ac_func
17398
17399/* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char $ac_func (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17403
17404#ifdef __STDC__
17405# include <limits.h>
17406#else
17407# include <assert.h>
17408#endif
17409
17410#undef $ac_func
17411
17412/* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418char $ac_func ();
17419/* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422#if defined __stub_$ac_func || defined __stub___$ac_func
17423choke me
17424#endif
17425
17426int
17427main ()
17428{
17429return $ac_func ();
17430 ;
17431 return 0;
17432}
17433_ACEOF
17434rm -f conftest.$ac_objext conftest$ac_exeext
17435if { (ac_try="$ac_link"
17436case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439esac
17440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17452esac
17453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_try") 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462esac
17463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_try") 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 eval "$as_ac_var=yes"
17469else
17470 echo "$as_me: failed program was:" >&5
17471sed 's/^/| /' conftest.$ac_ext >&5
17472
17473 eval "$as_ac_var=no"
17474fi
17475
17476rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17478fi
17479ac_res=`eval echo '${'$as_ac_var'}'`
17480 { echo "$as_me:$LINENO: result: $ac_res" >&5
17481echo "${ECHO_T}$ac_res" >&6; }
17482if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017485_ACEOF
17486
17487fi
17488done
Reid Spencerdf3be822006-01-23 08:15:53 +000017489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017490
17491
17492
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017493for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017494do
17495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17500else
17501 cat >conftest.$ac_ext <<_ACEOF
17502/* confdefs.h. */
17503_ACEOF
17504cat confdefs.h >>conftest.$ac_ext
17505cat >>conftest.$ac_ext <<_ACEOF
17506/* end confdefs.h. */
17507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17509#define $ac_func innocuous_$ac_func
17510
17511/* System header to define __stub macros and hopefully few prototypes,
17512 which can conflict with char $ac_func (); below.
17513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514 <limits.h> exists even on freestanding compilers. */
17515
17516#ifdef __STDC__
17517# include <limits.h>
17518#else
17519# include <assert.h>
17520#endif
17521
17522#undef $ac_func
17523
17524/* Override any GCC internal prototype to avoid an error.
17525 Use char because int might match the return type of a GCC
17526 builtin and then its argument prototype would still apply. */
17527#ifdef __cplusplus
17528extern "C"
17529#endif
17530char $ac_func ();
17531/* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534#if defined __stub_$ac_func || defined __stub___$ac_func
17535choke me
17536#endif
17537
17538int
17539main ()
17540{
17541return $ac_func ();
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext conftest$ac_exeext
17547if { (ac_try="$ac_link"
17548case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17551esac
17552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_link") 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574esac
17575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 eval "$as_ac_var=yes"
17581else
17582 echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585 eval "$as_ac_var=no"
17586fi
17587
17588rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17590fi
17591ac_res=`eval echo '${'$as_ac_var'}'`
17592 { echo "$as_me:$LINENO: result: $ac_res" >&5
17593echo "${ECHO_T}$ac_res" >&6; }
17594if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017595 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017597_ACEOF
17598
17599fi
17600done
17601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017602
17603
17604
17605
Chris Lattner511f11d2005-11-14 07:25:50 +000017606for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017607do
17608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17611if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17613else
17614 cat >conftest.$ac_ext <<_ACEOF
17615/* confdefs.h. */
17616_ACEOF
17617cat confdefs.h >>conftest.$ac_ext
17618cat >>conftest.$ac_ext <<_ACEOF
17619/* end confdefs.h. */
17620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622#define $ac_func innocuous_$ac_func
17623
17624/* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17628
17629#ifdef __STDC__
17630# include <limits.h>
17631#else
17632# include <assert.h>
17633#endif
17634
17635#undef $ac_func
17636
17637/* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17640#ifdef __cplusplus
17641extern "C"
17642#endif
17643char $ac_func ();
17644/* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647#if defined __stub_$ac_func || defined __stub___$ac_func
17648choke me
17649#endif
17650
17651int
17652main ()
17653{
17654return $ac_func ();
17655 ;
17656 return 0;
17657}
17658_ACEOF
17659rm -f conftest.$ac_objext conftest$ac_exeext
17660if { (ac_try="$ac_link"
17661case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664esac
17665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677esac
17678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest$ac_exeext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687esac
17688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 eval "$as_ac_var=yes"
17694else
17695 echo "$as_me: failed program was:" >&5
17696sed 's/^/| /' conftest.$ac_ext >&5
17697
17698 eval "$as_ac_var=no"
17699fi
17700
17701rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17703fi
17704ac_res=`eval echo '${'$as_ac_var'}'`
17705 { echo "$as_me:$LINENO: result: $ac_res" >&5
17706echo "${ECHO_T}$ac_res" >&6; }
17707if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017708 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017710_ACEOF
17711
17712fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017713done
John Criswell7a73b802003-06-30 21:59:07 +000017714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017715
17716
17717
17718
Daniel Dunbar3e462932011-02-03 02:40:02 +000017719
17720for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017721do
17722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17727else
17728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17736#define $ac_func innocuous_$ac_func
17737
17738/* System header to define __stub macros and hopefully few prototypes,
17739 which can conflict with char $ac_func (); below.
17740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17741 <limits.h> exists even on freestanding compilers. */
17742
17743#ifdef __STDC__
17744# include <limits.h>
17745#else
17746# include <assert.h>
17747#endif
17748
17749#undef $ac_func
17750
17751/* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17754#ifdef __cplusplus
17755extern "C"
17756#endif
17757char $ac_func ();
17758/* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
17761#if defined __stub_$ac_func || defined __stub___$ac_func
17762choke me
17763#endif
17764
17765int
17766main ()
17767{
17768return $ac_func ();
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext conftest$ac_exeext
17774if { (ac_try="$ac_link"
17775case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_link") 2>conftest.er1
17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17788 { (case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17791esac
17792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_try") 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest$ac_exeext'
17798 { (case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17801esac
17802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_try") 2>&5
17804 ac_status=$?
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 eval "$as_ac_var=yes"
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 eval "$as_ac_var=no"
17813fi
17814
17815rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17817fi
17818ac_res=`eval echo '${'$as_ac_var'}'`
17819 { echo "$as_me:$LINENO: result: $ac_res" >&5
17820echo "${ECHO_T}$ac_res" >&6; }
17821if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017822 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017824_ACEOF
17825
17826fi
17827done
17828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017829{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17830echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17831if test "${llvm_cv_c_printf_a+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017833else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017834 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017835ac_cpp='$CPP $CPPFLAGS'
17836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17838ac_compiler_gnu=$ac_cv_c_compiler_gnu
17839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017840 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017841 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017845 /* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017850
John Criswella0137d32003-10-13 16:22:01 +000017851#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017852#include <stdlib.h>
17853
John Criswella0137d32003-10-13 16:22:01 +000017854int
17855main ()
17856{
17857
Reid Spencer2706f8c2004-09-19 23:53:36 +000017858volatile double A, B;
17859char Buffer[100];
17860A = 1;
17861A /= 10.0;
17862sprintf(Buffer, "%a", A);
17863B = atof(Buffer);
17864if (A != B)
17865 return (1);
17866if (A != 0x1.999999999999ap-4)
17867 return (1);
17868return (0);
John Criswella0137d32003-10-13 16:22:01 +000017869 ;
17870 return 0;
17871}
17872_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017873rm -f conftest$ac_exeext
17874if { (ac_try="$ac_link"
17875case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878esac
17879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887esac
17888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017893 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017895 echo "$as_me: program exited with status $ac_status" >&5
17896echo "$as_me: failed program was:" >&5
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
17899( exit $ac_status )
17900llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017902rm -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 +000017903fi
Reid Spencera773bd52006-08-04 18:18:08 +000017904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017905
Reid Spencer2706f8c2004-09-19 23:53:36 +000017906 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017907ac_cpp='$CPP $CPPFLAGS'
17908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17910ac_compiler_gnu=$ac_cv_c_compiler_gnu
17911
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017913{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17914echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017915 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017917cat >>confdefs.h <<\_ACEOF
17918#define HAVE_PRINTF_A 1
17919_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017920
Reid Spencer2706f8c2004-09-19 23:53:36 +000017921 fi
John Criswella0137d32003-10-13 16:22:01 +000017922
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017924{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17925echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17926if test "${ac_cv_func_rand48+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017928else
Reid Spencera773bd52006-08-04 18:18:08 +000017929 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017930ac_cpp='$CXXCPP $CPPFLAGS'
17931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017935 cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h. */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017940/* end confdefs.h. */
17941#include <stdlib.h>
17942int
17943main ()
17944{
17945srand48(0);lrand48();drand48();
17946 ;
17947 return 0;
17948}
17949_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017950rm -f conftest.$ac_objext
17951if { (ac_try="$ac_compile"
17952case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17965 { (case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968esac
17969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_try") 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978esac
17979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017984 ac_cv_func_rand48=yes
17985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017986 echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017991
Reid Spencera773bd52006-08-04 18:18:08 +000017992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017993 ac_ext=c
17994ac_cpp='$CPP $CPPFLAGS'
17995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997ac_compiler_gnu=$ac_cv_c_compiler_gnu
17998
17999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018000{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18001echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018002
18003if test "$ac_cv_func_rand48" = "yes" ; then
18004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018005cat >>confdefs.h <<\_ACEOF
18006#define HAVE_RAND48 1
18007_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018008
18009fi
John Criswell0021c312004-02-13 21:57:29 +000018010
18011
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018012{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18013echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18014if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18016else
18017 cat >conftest.$ac_ext <<_ACEOF
18018/* confdefs.h. */
18019_ACEOF
18020cat confdefs.h >>conftest.$ac_ext
18021cat >>conftest.$ac_ext <<_ACEOF
18022/* end confdefs.h. */
18023$ac_includes_default
18024int
18025main ()
18026{
18027#ifndef strerror_s
18028 char *p = (char *) strerror_s;
18029 return !p;
18030#endif
18031
18032 ;
18033 return 0;
18034}
18035_ACEOF
18036rm -f conftest.$ac_objext
18037if { (ac_try="$ac_compile"
18038case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_compile") 2>conftest.er1
18044 ac_status=$?
18045 grep -v '^ *+' conftest.er1 >conftest.err
18046 rm -f conftest.er1
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_have_decl_strerror_s=yes
18071else
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_have_decl_strerror_s=no
18076fi
18077
18078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18079fi
18080{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18081echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18082if test $ac_cv_have_decl_strerror_s = yes; then
18083
18084cat >>confdefs.h <<_ACEOF
18085#define HAVE_DECL_STRERROR_S 1
18086_ACEOF
18087
18088
18089else
18090 cat >>confdefs.h <<_ACEOF
18091#define HAVE_DECL_STRERROR_S 0
18092_ACEOF
18093
18094
18095fi
18096
18097
18098
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018099if test "$llvm_cv_os_type" = "MingW" ; then
18100 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18101echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18102if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104else
18105 ac_check_lib_save_LIBS=$LIBS
18106LIBS="-lgcc $LIBS"
18107cat >conftest.$ac_ext <<_ACEOF
18108/* confdefs.h. */
18109_ACEOF
18110cat confdefs.h >>conftest.$ac_ext
18111cat >>conftest.$ac_ext <<_ACEOF
18112/* end confdefs.h. */
18113
18114/* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18117#ifdef __cplusplus
18118extern "C"
18119#endif
18120char _alloca ();
18121int
18122main ()
18123{
18124return _alloca ();
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest.$ac_objext conftest$ac_exeext
18130if { (ac_try="$ac_link"
18131case "(($ac_try" in
18132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18134esac
18135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_link") 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18144 { (case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147esac
18148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_try") 2>&5
18150 ac_status=$?
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; } &&
18153 { ac_try='test -s conftest$ac_exeext'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_cv_lib_gcc__alloca=yes
18164else
18165 echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168 ac_cv_lib_gcc__alloca=no
18169fi
18170
18171rm -f core conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18173LIBS=$ac_check_lib_save_LIBS
18174fi
18175{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18176echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18177if test $ac_cv_lib_gcc__alloca = yes; then
18178
18179cat >>confdefs.h <<\_ACEOF
18180#define HAVE__ALLOCA 1
18181_ACEOF
18182
18183fi
18184
18185 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18186echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18187if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189else
18190 ac_check_lib_save_LIBS=$LIBS
18191LIBS="-lgcc $LIBS"
18192cat >conftest.$ac_ext <<_ACEOF
18193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
18198
18199/* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18202#ifdef __cplusplus
18203extern "C"
18204#endif
18205char __alloca ();
18206int
18207main ()
18208{
18209return __alloca ();
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext conftest$ac_exeext
18215if { (ac_try="$ac_link"
18216case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219esac
18220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242esac
18243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_lib_gcc___alloca=yes
18249else
18250 echo "$as_me: failed program was:" >&5
18251sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 ac_cv_lib_gcc___alloca=no
18254fi
18255
18256rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258LIBS=$ac_check_lib_save_LIBS
18259fi
18260{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18261echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18262if test $ac_cv_lib_gcc___alloca = yes; then
18263
18264cat >>confdefs.h <<\_ACEOF
18265#define HAVE___ALLOCA 1
18266_ACEOF
18267
18268fi
18269
18270 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18271echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18272if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18274else
18275 ac_check_lib_save_LIBS=$LIBS
18276LIBS="-lgcc $LIBS"
18277cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h. */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h. */
18283
18284/* Override any GCC internal prototype to avoid an error.
18285 Use char because int might match the return type of a GCC
18286 builtin and then its argument prototype would still apply. */
18287#ifdef __cplusplus
18288extern "C"
18289#endif
18290char __chkstk ();
18291int
18292main ()
18293{
18294return __chkstk ();
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext conftest$ac_exeext
18300if { (ac_try="$ac_link"
18301case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304esac
18305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_link") 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18317esac
18318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327esac
18328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_lib_gcc___chkstk=yes
18334else
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 ac_cv_lib_gcc___chkstk=no
18339fi
18340
18341rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
18343LIBS=$ac_check_lib_save_LIBS
18344fi
18345{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18346echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18347if test $ac_cv_lib_gcc___chkstk = yes; then
18348
18349cat >>confdefs.h <<\_ACEOF
18350#define HAVE___CHKSTK 1
18351_ACEOF
18352
18353fi
18354
18355 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18356echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18357if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18359else
18360 ac_check_lib_save_LIBS=$LIBS
18361LIBS="-lgcc $LIBS"
18362cat >conftest.$ac_ext <<_ACEOF
18363/* confdefs.h. */
18364_ACEOF
18365cat confdefs.h >>conftest.$ac_ext
18366cat >>conftest.$ac_ext <<_ACEOF
18367/* end confdefs.h. */
18368
18369/* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372#ifdef __cplusplus
18373extern "C"
18374#endif
18375char ___chkstk ();
18376int
18377main ()
18378{
18379return ___chkstk ();
18380 ;
18381 return 0;
18382}
18383_ACEOF
18384rm -f conftest.$ac_objext conftest$ac_exeext
18385if { (ac_try="$ac_link"
18386case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389esac
18390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412esac
18413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_lib_gcc____chkstk=yes
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 ac_cv_lib_gcc____chkstk=no
18424fi
18425
18426rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428LIBS=$ac_check_lib_save_LIBS
18429fi
18430{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18431echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18432if test $ac_cv_lib_gcc____chkstk = yes; then
18433
18434cat >>confdefs.h <<\_ACEOF
18435#define HAVE____CHKSTK 1
18436_ACEOF
18437
18438fi
18439
18440
18441 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18442echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18443if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445else
18446 ac_check_lib_save_LIBS=$LIBS
18447LIBS="-lgcc $LIBS"
18448cat >conftest.$ac_ext <<_ACEOF
18449/* confdefs.h. */
18450_ACEOF
18451cat confdefs.h >>conftest.$ac_ext
18452cat >>conftest.$ac_ext <<_ACEOF
18453/* end confdefs.h. */
18454
18455/* Override any GCC internal prototype to avoid an error.
18456 Use char because int might match the return type of a GCC
18457 builtin and then its argument prototype would still apply. */
18458#ifdef __cplusplus
18459extern "C"
18460#endif
18461char __ashldi3 ();
18462int
18463main ()
18464{
18465return __ashldi3 ();
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext conftest$ac_exeext
18471if { (ac_try="$ac_link"
18472case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>conftest.er1
18478 ac_status=$?
18479 grep -v '^ *+' conftest.er1 >conftest.err
18480 rm -f conftest.er1
18481 cat conftest.err >&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_gcc___ashldi3=yes
18505else
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509 ac_cv_lib_gcc___ashldi3=no
18510fi
18511
18512rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514LIBS=$ac_check_lib_save_LIBS
18515fi
18516{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18517echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18518if test $ac_cv_lib_gcc___ashldi3 = yes; then
18519
18520cat >>confdefs.h <<\_ACEOF
18521#define HAVE___ASHLDI3 1
18522_ACEOF
18523
18524fi
18525
18526 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18527echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18528if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530else
18531 ac_check_lib_save_LIBS=$LIBS
18532LIBS="-lgcc $LIBS"
18533cat >conftest.$ac_ext <<_ACEOF
18534/* confdefs.h. */
18535_ACEOF
18536cat confdefs.h >>conftest.$ac_ext
18537cat >>conftest.$ac_ext <<_ACEOF
18538/* end confdefs.h. */
18539
18540/* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18543#ifdef __cplusplus
18544extern "C"
18545#endif
18546char __ashrdi3 ();
18547int
18548main ()
18549{
18550return __ashrdi3 ();
18551 ;
18552 return 0;
18553}
18554_ACEOF
18555rm -f conftest.$ac_objext conftest$ac_exeext
18556if { (ac_try="$ac_link"
18557case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560esac
18561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest$ac_exeext'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_lib_gcc___ashrdi3=yes
18590else
18591 echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594 ac_cv_lib_gcc___ashrdi3=no
18595fi
18596
18597rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18599LIBS=$ac_check_lib_save_LIBS
18600fi
18601{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18602echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18603if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18604
18605cat >>confdefs.h <<\_ACEOF
18606#define HAVE___ASHRDI3 1
18607_ACEOF
18608
18609fi
18610
18611 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18612echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18613if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615else
18616 ac_check_lib_save_LIBS=$LIBS
18617LIBS="-lgcc $LIBS"
18618cat >conftest.$ac_ext <<_ACEOF
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
18624
18625/* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18628#ifdef __cplusplus
18629extern "C"
18630#endif
18631char __divdi3 ();
18632int
18633main ()
18634{
18635return __divdi3 ();
18636 ;
18637 return 0;
18638}
18639_ACEOF
18640rm -f conftest.$ac_objext conftest$ac_exeext
18641if { (ac_try="$ac_link"
18642case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_lib_gcc___divdi3=yes
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 ac_cv_lib_gcc___divdi3=no
18680fi
18681
18682rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684LIBS=$ac_check_lib_save_LIBS
18685fi
18686{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18687echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18688if test $ac_cv_lib_gcc___divdi3 = yes; then
18689
18690cat >>confdefs.h <<\_ACEOF
18691#define HAVE___DIVDI3 1
18692_ACEOF
18693
18694fi
18695
18696 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18697echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18698if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18700else
18701 ac_check_lib_save_LIBS=$LIBS
18702LIBS="-lgcc $LIBS"
18703cat >conftest.$ac_ext <<_ACEOF
18704/* confdefs.h. */
18705_ACEOF
18706cat confdefs.h >>conftest.$ac_ext
18707cat >>conftest.$ac_ext <<_ACEOF
18708/* end confdefs.h. */
18709
18710/* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18713#ifdef __cplusplus
18714extern "C"
18715#endif
18716char __fixdfdi ();
18717int
18718main ()
18719{
18720return __fixdfdi ();
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext conftest$ac_exeext
18726if { (ac_try="$ac_link"
18727case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_lib_gcc___fixdfdi=yes
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 ac_cv_lib_gcc___fixdfdi=no
18765fi
18766
18767rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769LIBS=$ac_check_lib_save_LIBS
18770fi
18771{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18772echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18773if test $ac_cv_lib_gcc___fixdfdi = yes; then
18774
18775cat >>confdefs.h <<\_ACEOF
18776#define HAVE___FIXDFDI 1
18777_ACEOF
18778
18779fi
18780
18781 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18782echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18783if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18785else
18786 ac_check_lib_save_LIBS=$LIBS
18787LIBS="-lgcc $LIBS"
18788cat >conftest.$ac_ext <<_ACEOF
18789/* confdefs.h. */
18790_ACEOF
18791cat confdefs.h >>conftest.$ac_ext
18792cat >>conftest.$ac_ext <<_ACEOF
18793/* end confdefs.h. */
18794
18795/* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18798#ifdef __cplusplus
18799extern "C"
18800#endif
18801char __fixsfdi ();
18802int
18803main ()
18804{
18805return __fixsfdi ();
18806 ;
18807 return 0;
18808}
18809_ACEOF
18810rm -f conftest.$ac_objext conftest$ac_exeext
18811if { (ac_try="$ac_link"
18812case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815esac
18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18818 ac_status=$?
18819 grep -v '^ *+' conftest.er1 >conftest.err
18820 rm -f conftest.er1
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 ac_cv_lib_gcc___fixsfdi=yes
18845else
18846 echo "$as_me: failed program was:" >&5
18847sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 ac_cv_lib_gcc___fixsfdi=no
18850fi
18851
18852rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854LIBS=$ac_check_lib_save_LIBS
18855fi
18856{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18857echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18858if test $ac_cv_lib_gcc___fixsfdi = yes; then
18859
18860cat >>confdefs.h <<\_ACEOF
18861#define HAVE___FIXSFDI 1
18862_ACEOF
18863
18864fi
18865
18866 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18867echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18868if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18870else
18871 ac_check_lib_save_LIBS=$LIBS
18872LIBS="-lgcc $LIBS"
18873cat >conftest.$ac_ext <<_ACEOF
18874/* confdefs.h. */
18875_ACEOF
18876cat confdefs.h >>conftest.$ac_ext
18877cat >>conftest.$ac_ext <<_ACEOF
18878/* end confdefs.h. */
18879
18880/* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18883#ifdef __cplusplus
18884extern "C"
18885#endif
18886char __floatdidf ();
18887int
18888main ()
18889{
18890return __floatdidf ();
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext conftest$ac_exeext
18896if { (ac_try="$ac_link"
18897case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900esac
18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18903 ac_status=$?
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
18909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913esac
18914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; } &&
18919 { ac_try='test -s conftest$ac_exeext'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_cv_lib_gcc___floatdidf=yes
18930else
18931 echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934 ac_cv_lib_gcc___floatdidf=no
18935fi
18936
18937rm -f core conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939LIBS=$ac_check_lib_save_LIBS
18940fi
18941{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18942echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18943if test $ac_cv_lib_gcc___floatdidf = yes; then
18944
18945cat >>confdefs.h <<\_ACEOF
18946#define HAVE___FLOATDIDF 1
18947_ACEOF
18948
18949fi
18950
18951 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18952echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18953if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955else
18956 ac_check_lib_save_LIBS=$LIBS
18957LIBS="-lgcc $LIBS"
18958cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964
18965/* Override any GCC internal prototype to avoid an error.
18966 Use char because int might match the return type of a GCC
18967 builtin and then its argument prototype would still apply. */
18968#ifdef __cplusplus
18969extern "C"
18970#endif
18971char __lshrdi3 ();
18972int
18973main ()
18974{
18975return __lshrdi3 ();
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext conftest$ac_exeext
18981if { (ac_try="$ac_link"
18982case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985esac
18986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_link") 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998esac
18999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest$ac_exeext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 ac_cv_lib_gcc___lshrdi3=yes
19015else
19016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
19019 ac_cv_lib_gcc___lshrdi3=no
19020fi
19021
19022rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024LIBS=$ac_check_lib_save_LIBS
19025fi
19026{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19027echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19028if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19029
19030cat >>confdefs.h <<\_ACEOF
19031#define HAVE___LSHRDI3 1
19032_ACEOF
19033
19034fi
19035
19036 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19037echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19038if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040else
19041 ac_check_lib_save_LIBS=$LIBS
19042LIBS="-lgcc $LIBS"
19043cat >conftest.$ac_ext <<_ACEOF
19044/* confdefs.h. */
19045_ACEOF
19046cat confdefs.h >>conftest.$ac_ext
19047cat >>conftest.$ac_ext <<_ACEOF
19048/* end confdefs.h. */
19049
19050/* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053#ifdef __cplusplus
19054extern "C"
19055#endif
19056char __moddi3 ();
19057int
19058main ()
19059{
19060return __moddi3 ();
19061 ;
19062 return 0;
19063}
19064_ACEOF
19065rm -f conftest.$ac_objext conftest$ac_exeext
19066if { (ac_try="$ac_link"
19067case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070esac
19071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093esac
19094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_lib_gcc___moddi3=yes
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_cv_lib_gcc___moddi3=no
19105fi
19106
19107rm -f core conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
19109LIBS=$ac_check_lib_save_LIBS
19110fi
19111{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19112echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19113if test $ac_cv_lib_gcc___moddi3 = yes; then
19114
19115cat >>confdefs.h <<\_ACEOF
19116#define HAVE___MODDI3 1
19117_ACEOF
19118
19119fi
19120
19121 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19122echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19123if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125else
19126 ac_check_lib_save_LIBS=$LIBS
19127LIBS="-lgcc $LIBS"
19128cat >conftest.$ac_ext <<_ACEOF
19129/* confdefs.h. */
19130_ACEOF
19131cat confdefs.h >>conftest.$ac_ext
19132cat >>conftest.$ac_ext <<_ACEOF
19133/* end confdefs.h. */
19134
19135/* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply. */
19138#ifdef __cplusplus
19139extern "C"
19140#endif
19141char __udivdi3 ();
19142int
19143main ()
19144{
19145return __udivdi3 ();
19146 ;
19147 return 0;
19148}
19149_ACEOF
19150rm -f conftest.$ac_objext conftest$ac_exeext
19151if { (ac_try="$ac_link"
19152case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19155esac
19156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_link") 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest$ac_exeext'
19175 { (case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178esac
19179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_try") 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_lib_gcc___udivdi3=yes
19185else
19186 echo "$as_me: failed program was:" >&5
19187sed 's/^/| /' conftest.$ac_ext >&5
19188
19189 ac_cv_lib_gcc___udivdi3=no
19190fi
19191
19192rm -f core conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194LIBS=$ac_check_lib_save_LIBS
19195fi
19196{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19197echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19198if test $ac_cv_lib_gcc___udivdi3 = yes; then
19199
19200cat >>confdefs.h <<\_ACEOF
19201#define HAVE___UDIVDI3 1
19202_ACEOF
19203
19204fi
19205
19206 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19207echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19208if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210else
19211 ac_check_lib_save_LIBS=$LIBS
19212LIBS="-lgcc $LIBS"
19213cat >conftest.$ac_ext <<_ACEOF
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219
19220/* Override any GCC internal prototype to avoid an error.
19221 Use char because int might match the return type of a GCC
19222 builtin and then its argument prototype would still apply. */
19223#ifdef __cplusplus
19224extern "C"
19225#endif
19226char __umoddi3 ();
19227int
19228main ()
19229{
19230return __umoddi3 ();
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext conftest$ac_exeext
19236if { (ac_try="$ac_link"
19237case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240esac
19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_link") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest$ac_exeext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_lib_gcc___umoddi3=yes
19270else
19271 echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_lib_gcc___umoddi3=no
19275fi
19276
19277rm -f core conftest.err conftest.$ac_objext \
19278 conftest$ac_exeext conftest.$ac_ext
19279LIBS=$ac_check_lib_save_LIBS
19280fi
19281{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19282echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19283if test $ac_cv_lib_gcc___umoddi3 = yes; then
19284
19285cat >>confdefs.h <<\_ACEOF
19286#define HAVE___UMODDI3 1
19287_ACEOF
19288
19289fi
19290
19291
19292 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19293echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19294if test "${ac_cv_lib_gcc___main+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296else
19297 ac_check_lib_save_LIBS=$LIBS
19298LIBS="-lgcc $LIBS"
19299cat >conftest.$ac_ext <<_ACEOF
19300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305
19306/* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19309#ifdef __cplusplus
19310extern "C"
19311#endif
19312char __main ();
19313int
19314main ()
19315{
19316return __main ();
19317 ;
19318 return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext conftest$ac_exeext
19322if { (ac_try="$ac_link"
19323case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_link") 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19349esac
19350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_cv_lib_gcc___main=yes
19356else
19357 echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_lib_gcc___main=no
19361fi
19362
19363rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365LIBS=$ac_check_lib_save_LIBS
19366fi
19367{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19368echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19369if test $ac_cv_lib_gcc___main = yes; then
19370
19371cat >>confdefs.h <<\_ACEOF
19372#define HAVE___MAIN 1
19373_ACEOF
19374
19375fi
19376
19377 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19378echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19379if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381else
19382 ac_check_lib_save_LIBS=$LIBS
19383LIBS="-lgcc $LIBS"
19384cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390
19391/* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19394#ifdef __cplusplus
19395extern "C"
19396#endif
19397char __cmpdi2 ();
19398int
19399main ()
19400{
19401return __cmpdi2 ();
19402 ;
19403 return 0;
19404}
19405_ACEOF
19406rm -f conftest.$ac_objext conftest$ac_exeext
19407if { (ac_try="$ac_link"
19408case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411esac
19412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434esac
19435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_lib_gcc___cmpdi2=yes
19441else
19442 echo "$as_me: failed program was:" >&5
19443sed 's/^/| /' conftest.$ac_ext >&5
19444
19445 ac_cv_lib_gcc___cmpdi2=no
19446fi
19447
19448rm -f core conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450LIBS=$ac_check_lib_save_LIBS
19451fi
19452{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19453echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19454if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19455
19456cat >>confdefs.h <<\_ACEOF
19457#define HAVE___CMPDI2 1
19458_ACEOF
19459
19460fi
19461
19462fi
19463
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019464if test "$llvm_cv_os_type" = "MingW" ; then
19465 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19466echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19467 cat >conftest.$ac_ext <<_ACEOF
19468#include <windows.h>
19469#include <imagehlp.h>
19470extern void foo(PENUMLOADED_MODULES_CALLBACK);
19471extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19472_ACEOF
19473rm -f conftest.$ac_objext
19474if { (ac_try="$ac_compile"
19475case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19478esac
19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_compile") 2>conftest.er1
19481 ac_status=$?
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19488 { (case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491esac
19492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_try") 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507
19508 { echo "$as_me:$LINENO: result: yes" >&5
19509echo "${ECHO_T}yes" >&6; }
19510 llvm_cv_win32_elmcb_pcstr="PCSTR"
19511
19512else
19513 echo "$as_me: failed program was:" >&5
19514sed 's/^/| /' conftest.$ac_ext >&5
19515
19516
19517 { echo "$as_me:$LINENO: result: no" >&5
19518echo "${ECHO_T}no" >&6; }
19519 llvm_cv_win32_elmcb_pcstr="PSTR"
19520
19521fi
19522
19523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524
19525cat >>confdefs.h <<_ACEOF
19526#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19527_ACEOF
19528
19529fi
19530
Torok Edwin871384f2010-01-26 08:50:50 +000019531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019532{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19533echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19534if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019536else
Reid Spencera773bd52006-08-04 18:18:08 +000019537 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019538ac_cpp='$CXXCPP $CPPFLAGS'
19539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019543 cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019548/* end confdefs.h. */
19549#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019550int
19551main ()
19552{
19553float f; isnan(f);
19554 ;
19555 return 0;
19556}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019557_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019558rm -f conftest.$ac_objext
19559if { (ac_try="$ac_compile"
19560case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563esac
19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_compile") 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19573 { (case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576esac
19577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_try") 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586esac
19587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_try") 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019592 ac_cv_func_isnan_in_math_h=yes
19593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019594 echo "$as_me: failed program was:" >&5
19595sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019599
Reid Spencera773bd52006-08-04 18:18:08 +000019600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019601 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019602ac_cpp='$CPP $CPPFLAGS'
19603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605ac_compiler_gnu=$ac_cv_c_compiler_gnu
19606
19607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019608{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19609echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019610
19611
19612if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019614cat >>confdefs.h <<\_ACEOF
19615#define HAVE_ISNAN_IN_MATH_H 1
19616_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019617
Reid Spencerabec8f92004-10-27 23:03:44 +000019618fi
19619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019620{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19621echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19622if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019624else
Reid Spencera773bd52006-08-04 18:18:08 +000019625 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019626ac_cpp='$CXXCPP $CPPFLAGS'
19627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019631 cat >conftest.$ac_ext <<_ACEOF
19632/* confdefs.h. */
19633_ACEOF
19634cat confdefs.h >>conftest.$ac_ext
19635cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019636/* end confdefs.h. */
19637#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019638int
19639main ()
19640{
19641float f; isnan(f);
19642 ;
19643 return 0;
19644}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019645_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019646rm -f conftest.$ac_objext
19647if { (ac_try="$ac_compile"
19648case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19651esac
19652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_compile") 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19661 { (case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19664esac
19665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_try") 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; } &&
19670 { ac_try='test -s conftest.$ac_objext'
19671 { (case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674esac
19675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_try") 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019680 ac_cv_func_isnan_in_cmath=yes
19681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682 echo "$as_me: failed program was:" >&5
19683sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687
Reid Spencera773bd52006-08-04 18:18:08 +000019688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019689 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019690ac_cpp='$CPP $CPPFLAGS'
19691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19693ac_compiler_gnu=$ac_cv_c_compiler_gnu
19694
19695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019696{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19697echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019698
19699if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019701cat >>confdefs.h <<\_ACEOF
19702#define HAVE_ISNAN_IN_CMATH 1
19703_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019704
Reid Spencerabec8f92004-10-27 23:03:44 +000019705fi
19706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019707{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19708echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19709if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019711else
Reid Spencera773bd52006-08-04 18:18:08 +000019712 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019713ac_cpp='$CXXCPP $CPPFLAGS'
19714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019718 cat >conftest.$ac_ext <<_ACEOF
19719/* confdefs.h. */
19720_ACEOF
19721cat confdefs.h >>conftest.$ac_ext
19722cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019723/* end confdefs.h. */
19724#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019725int
19726main ()
19727{
19728float f; std::isnan(f);
19729 ;
19730 return 0;
19731}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019732_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019733rm -f conftest.$ac_objext
19734if { (ac_try="$ac_compile"
19735case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_compile") 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19751esac
19752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761esac
19762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019767 ac_cv_func_std_isnan_in_cmath=yes
19768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019769 echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5
19771
19772 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019774
Reid Spencera773bd52006-08-04 18:18:08 +000019775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019776 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019777ac_cpp='$CPP $CPPFLAGS'
19778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780ac_compiler_gnu=$ac_cv_c_compiler_gnu
19781
19782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19784echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019785
19786if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019788cat >>confdefs.h <<\_ACEOF
19789#define HAVE_STD_ISNAN_IN_CMATH 1
19790_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019791
Reid Spencerabec8f92004-10-27 23:03:44 +000019792fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019793
19794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19796echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19797if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019799else
Reid Spencera773bd52006-08-04 18:18:08 +000019800 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019801ac_cpp='$CXXCPP $CPPFLAGS'
19802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806 cat >conftest.$ac_ext <<_ACEOF
19807/* confdefs.h. */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019811/* end confdefs.h. */
19812#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019813int
19814main ()
19815{
19816float f; isinf(f);
19817 ;
19818 return 0;
19819}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019820_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019821rm -f conftest.$ac_objext
19822if { (ac_try="$ac_compile"
19823case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_compile") 2>conftest.er1
19829 ac_status=$?
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19836 { (case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_try") 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest.$ac_objext'
19846 { (case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19849esac
19850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_try") 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019855 ac_cv_func_isinf_in_math_h=yes
19856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019862
Reid Spencera773bd52006-08-04 18:18:08 +000019863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019864 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019865ac_cpp='$CPP $CPPFLAGS'
19866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868ac_compiler_gnu=$ac_cv_c_compiler_gnu
19869
19870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019871{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19872echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019873
19874if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019876cat >>confdefs.h <<\_ACEOF
19877#define HAVE_ISINF_IN_MATH_H 1
19878_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019879
Reid Spencerabec8f92004-10-27 23:03:44 +000019880fi
19881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019882{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19883echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19884if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019886else
Reid Spencera773bd52006-08-04 18:18:08 +000019887 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019888ac_cpp='$CXXCPP $CPPFLAGS'
19889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019893 cat >conftest.$ac_ext <<_ACEOF
19894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019898/* end confdefs.h. */
19899#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019900int
19901main ()
19902{
19903float f; isinf(f);
19904 ;
19905 return 0;
19906}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019907_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019908rm -f conftest.$ac_objext
19909if { (ac_try="$ac_compile"
19910case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913esac
19914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
19922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19923 { (case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926esac
19927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_try") 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; } &&
19932 { ac_try='test -s conftest.$ac_objext'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936esac
19937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019942 ac_cv_func_isinf_in_cmath=yes
19943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019944 echo "$as_me: failed program was:" >&5
19945sed 's/^/| /' conftest.$ac_ext >&5
19946
19947 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019949
Reid Spencera773bd52006-08-04 18:18:08 +000019950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019951 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019952ac_cpp='$CPP $CPPFLAGS'
19953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19955ac_compiler_gnu=$ac_cv_c_compiler_gnu
19956
19957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019958{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19959echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019960
19961if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019963cat >>confdefs.h <<\_ACEOF
19964#define HAVE_ISINF_IN_CMATH 1
19965_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019966
Reid Spencerabec8f92004-10-27 23:03:44 +000019967fi
19968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019969{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19970echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19971if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019973else
Reid Spencera773bd52006-08-04 18:18:08 +000019974 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019975ac_cpp='$CXXCPP $CPPFLAGS'
19976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019980 cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h. */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019985/* end confdefs.h. */
19986#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019987int
19988main ()
19989{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019990float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019991 ;
19992 return 0;
19993}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019995rm -f conftest.$ac_objext
19996if { (ac_try="$ac_compile"
19997case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000esac
20001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_compile") 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
20009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20010 { (case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013esac
20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_try") 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023esac
20024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_try") 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020029 ac_cv_func_std_isinf_in_cmath=yes
20030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020031 echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020036
Reid Spencera773bd52006-08-04 18:18:08 +000020037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020038 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020039ac_cpp='$CPP $CPPFLAGS'
20040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042ac_compiler_gnu=$ac_cv_c_compiler_gnu
20043
20044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020045{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20046echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020047
20048if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020050cat >>confdefs.h <<\_ACEOF
20051#define HAVE_STD_ISINF_IN_CMATH 1
20052_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020053
Reid Spencerabec8f92004-10-27 23:03:44 +000020054fi
20055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020056{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20057echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20058if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020060else
Reid Spencera773bd52006-08-04 18:18:08 +000020061 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020062ac_cpp='$CXXCPP $CPPFLAGS'
20063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067 cat >conftest.$ac_ext <<_ACEOF
20068/* confdefs.h. */
20069_ACEOF
20070cat confdefs.h >>conftest.$ac_ext
20071cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020072/* end confdefs.h. */
20073#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020074int
20075main ()
20076{
20077float f; finite(f);
20078 ;
20079 return 0;
20080}
Brian Gaeked59a6472004-07-21 03:33:58 +000020081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020082rm -f conftest.$ac_objext
20083if { (ac_try="$ac_compile"
20084case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20087esac
20088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20100esac
20101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest.$ac_objext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110esac
20111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020116 ac_cv_func_finite_in_ieeefp_h=yes
20117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020123
Reid Spencera773bd52006-08-04 18:18:08 +000020124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020125 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020126ac_cpp='$CPP $CPPFLAGS'
20127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129ac_compiler_gnu=$ac_cv_c_compiler_gnu
20130
20131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020132{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20133echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020134
Brian Gaeke6802b552004-10-28 05:06:45 +000020135if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020137cat >>confdefs.h <<\_ACEOF
20138#define HAVE_FINITE_IN_IEEEFP_H 1
20139_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020140
Reid Spencerabec8f92004-10-27 23:03:44 +000020141fi
20142
20143
20144
Reid Spencer30fe5262007-01-20 07:48:49 +000020145if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020146
20147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020148for ac_header in stdlib.h unistd.h
20149do
20150as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20156fi
20157ac_res=`eval echo '${'$as_ac_Header'}'`
20158 { echo "$as_me:$LINENO: result: $ac_res" >&5
20159echo "${ECHO_T}$ac_res" >&6; }
20160else
20161 # Is the header compilable?
20162{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20163echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20164cat >conftest.$ac_ext <<_ACEOF
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170$ac_includes_default
20171#include <$ac_header>
20172_ACEOF
20173rm -f conftest.$ac_objext
20174if { (ac_try="$ac_compile"
20175case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178esac
20179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_compile") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191esac
20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201esac
20202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_header_compiler=yes
20208else
20209 echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020212 ac_header_compiler=no
20213fi
20214
20215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20217echo "${ECHO_T}$ac_header_compiler" >&6; }
20218
20219# Is the header present?
20220{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20221echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20222cat >conftest.$ac_ext <<_ACEOF
20223/* confdefs.h. */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
20227/* end confdefs.h. */
20228#include <$ac_header>
20229_ACEOF
20230if { (ac_try="$ac_cpp conftest.$ac_ext"
20231case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } >/dev/null; then
20243 if test -s conftest.err; then
20244 ac_cpp_err=$ac_c_preproc_warn_flag
20245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20246 else
20247 ac_cpp_err=
20248 fi
20249else
20250 ac_cpp_err=yes
20251fi
20252if test -z "$ac_cpp_err"; then
20253 ac_header_preproc=yes
20254else
20255 echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 ac_header_preproc=no
20259fi
20260
20261rm -f conftest.err conftest.$ac_ext
20262{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20263echo "${ECHO_T}$ac_header_preproc" >&6; }
20264
20265# So? What about this header?
20266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20267 yes:no: )
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20271echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20272 ac_header_preproc=yes
20273 ;;
20274 no:yes:* )
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20276echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20278echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20280echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20282echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20286echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20287 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020288## ------------------------------------ ##
20289## Report this to http://llvm.org/bugs/ ##
20290## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291_ASBOX
20292 ) | sed "s/^/$as_me: WARNING: /" >&2
20293 ;;
20294esac
20295{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299else
20300 eval "$as_ac_Header=\$ac_header_preproc"
20301fi
20302ac_res=`eval echo '${'$as_ac_Header'}'`
20303 { echo "$as_me:$LINENO: result: $ac_res" >&5
20304echo "${ECHO_T}$ac_res" >&6; }
20305
20306fi
20307if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020308 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020310_ACEOF
20311
20312fi
20313
20314done
20315
20316
20317for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318do
20319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20320{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20322if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324else
20325 cat >conftest.$ac_ext <<_ACEOF
20326/* confdefs.h. */
20327_ACEOF
20328cat confdefs.h >>conftest.$ac_ext
20329cat >>conftest.$ac_ext <<_ACEOF
20330/* end confdefs.h. */
20331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20333#define $ac_func innocuous_$ac_func
20334
20335/* System header to define __stub macros and hopefully few prototypes,
20336 which can conflict with char $ac_func (); below.
20337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20338 <limits.h> exists even on freestanding compilers. */
20339
20340#ifdef __STDC__
20341# include <limits.h>
20342#else
20343# include <assert.h>
20344#endif
20345
20346#undef $ac_func
20347
20348/* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20351#ifdef __cplusplus
20352extern "C"
20353#endif
20354char $ac_func ();
20355/* The GNU C library defines this for functions which it implements
20356 to always fail with ENOSYS. Some functions are actually named
20357 something starting with __ and the normal name is an alias. */
20358#if defined __stub_$ac_func || defined __stub___$ac_func
20359choke me
20360#endif
20361
20362int
20363main ()
20364{
20365return $ac_func ();
20366 ;
20367 return 0;
20368}
20369_ACEOF
20370rm -f conftest.$ac_objext conftest$ac_exeext
20371if { (ac_try="$ac_link"
20372case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20375esac
20376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_link") 2>conftest.er1
20378 ac_status=$?
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20385 { (case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20388esac
20389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_try") 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest$ac_exeext'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398esac
20399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 eval "$as_ac_var=yes"
20405else
20406 echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 eval "$as_ac_var=no"
20410fi
20411
20412rm -f core conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext conftest.$ac_ext
20414fi
20415ac_res=`eval echo '${'$as_ac_var'}'`
20416 { echo "$as_me:$LINENO: result: $ac_res" >&5
20417echo "${ECHO_T}$ac_res" >&6; }
20418if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020419 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020421_ACEOF
20422
20423fi
20424done
20425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020426{ echo "$as_me:$LINENO: checking for working mmap" >&5
20427echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20428if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020432 ac_cv_func_mmap_fixed_mapped=no
20433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434 cat >conftest.$ac_ext <<_ACEOF
20435/* confdefs.h. */
20436_ACEOF
20437cat confdefs.h >>conftest.$ac_ext
20438cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020440$ac_includes_default
20441/* malloc might have been renamed as rpl_malloc. */
20442#undef malloc
20443
20444/* Thanks to Mike Haertel and Jim Avera for this test.
20445 Here is a matrix of mmap possibilities:
20446 mmap private not fixed
20447 mmap private fixed at somewhere currently unmapped
20448 mmap private fixed at somewhere already mapped
20449 mmap shared not fixed
20450 mmap shared fixed at somewhere currently unmapped
20451 mmap shared fixed at somewhere already mapped
20452 For private mappings, we should verify that changes cannot be read()
20453 back from the file, nor mmap's back from the file at a different
20454 address. (There have been systems where private was not correctly
20455 implemented like the infamous i386 svr4.0, and systems where the
20456 VM page cache was not coherent with the file system buffer cache
20457 like early versions of FreeBSD and possibly contemporary NetBSD.)
20458 For shared mappings, we should conversely verify that changes get
20459 propagated back to all the places they're supposed to be.
20460
20461 Grep wants private fixed already mapped.
20462 The main things grep needs to know about mmap are:
20463 * does it exist and is it safe to write into the mmap'd area
20464 * how to use it (BSD variants) */
20465
20466#include <fcntl.h>
20467#include <sys/mman.h>
20468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020469#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020470char *malloc ();
20471#endif
20472
20473/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474#if !HAVE_GETPAGESIZE
20475/* Assume that all systems that can run configure have sys/param.h. */
20476# if !HAVE_SYS_PARAM_H
20477# define HAVE_SYS_PARAM_H 1
20478# endif
20479
John Criswell7a73b802003-06-30 21:59:07 +000020480# ifdef _SC_PAGESIZE
20481# define getpagesize() sysconf(_SC_PAGESIZE)
20482# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020484# include <sys/param.h>
20485# ifdef EXEC_PAGESIZE
20486# define getpagesize() EXEC_PAGESIZE
20487# else /* no EXEC_PAGESIZE */
20488# ifdef NBPG
20489# define getpagesize() NBPG * CLSIZE
20490# ifndef CLSIZE
20491# define CLSIZE 1
20492# endif /* no CLSIZE */
20493# else /* no NBPG */
20494# ifdef NBPC
20495# define getpagesize() NBPC
20496# else /* no NBPC */
20497# ifdef PAGESIZE
20498# define getpagesize() PAGESIZE
20499# endif /* PAGESIZE */
20500# endif /* no NBPC */
20501# endif /* no NBPG */
20502# endif /* no EXEC_PAGESIZE */
20503# else /* no HAVE_SYS_PARAM_H */
20504# define getpagesize() 8192 /* punt totally */
20505# endif /* no HAVE_SYS_PARAM_H */
20506# endif /* no _SC_PAGESIZE */
20507
20508#endif /* no HAVE_GETPAGESIZE */
20509
20510int
20511main ()
20512{
20513 char *data, *data2, *data3;
20514 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020516
20517 pagesize = getpagesize ();
20518
20519 /* First, make a file with some known garbage in it. */
20520 data = (char *) malloc (pagesize);
20521 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020522 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020523 for (i = 0; i < pagesize; ++i)
20524 *(data + i) = rand ();
20525 umask (0);
20526 fd = creat ("conftest.mmap", 0600);
20527 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020528 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020529 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020530 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020531 close (fd);
20532
20533 /* Next, try to mmap the file at a fixed address which already has
20534 something else allocated at it. If we can, also make sure that
20535 we see the same garbage. */
20536 fd = open ("conftest.mmap", O_RDWR);
20537 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538 return 1;
20539 data2 = (char *) malloc (2 * pagesize);
20540 if (!data2)
20541 return 1;
20542 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020543 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020544 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020545 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020546 for (i = 0; i < pagesize; ++i)
20547 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020549
20550 /* Finally, make sure that changes to the mapped area do not
20551 percolate back to the file as seen by read(). (This is a bug on
20552 some variants of i386 svr4.0.) */
20553 for (i = 0; i < pagesize; ++i)
20554 *(data2 + i) = *(data2 + i) + 1;
20555 data3 = (char *) malloc (pagesize);
20556 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020557 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020558 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020560 for (i = 0; i < pagesize; ++i)
20561 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020563 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020564 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020565}
20566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567rm -f conftest$ac_exeext
20568if { (ac_try="$ac_link"
20569case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581esac
20582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020587 ac_cv_func_mmap_fixed_mapped=yes
20588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589 echo "$as_me: program exited with status $ac_status" >&5
20590echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
20593( exit $ac_status )
20594ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596rm -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 +000020597fi
Reid Spencera773bd52006-08-04 18:18:08 +000020598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599
John Criswell7a73b802003-06-30 21:59:07 +000020600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20602echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020603if test $ac_cv_func_mmap_fixed_mapped = yes; then
20604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605cat >>confdefs.h <<\_ACEOF
20606#define HAVE_MMAP 1
20607_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020608
20609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020612 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20613echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20614if test "${ac_cv_func_mmap_file+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020616else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020617 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020618ac_cpp='$CPP $CPPFLAGS'
20619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20621ac_compiler_gnu=$ac_cv_c_compiler_gnu
20622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020624 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020626 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628 /* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020633
John Criswell7a73b802003-06-30 21:59:07 +000020634#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020635#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020636#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020637
20638int
20639main ()
20640{
John Criswell7a73b802003-06-30 21:59:07 +000020641
20642 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020643 fd = creat ("foo",0777);
20644 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20645 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020646 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020647 ;
20648 return 0;
20649}
John Criswell7a73b802003-06-30 21:59:07 +000020650_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020651rm -f conftest$ac_exeext
20652if { (ac_try="$ac_link"
20653case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656esac
20657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_link") 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20665esac
20666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020671 ac_cv_func_mmap_file=yes
20672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020673 echo "$as_me: program exited with status $ac_status" >&5
20674echo "$as_me: failed program was:" >&5
20675sed 's/^/| /' conftest.$ac_ext >&5
20676
20677( exit $ac_status )
20678ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680rm -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 +000020681fi
Reid Spencera773bd52006-08-04 18:18:08 +000020682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683
John Criswell7a73b802003-06-30 21:59:07 +000020684 ac_ext=c
20685ac_cpp='$CPP $CPPFLAGS'
20686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20688ac_compiler_gnu=$ac_cv_c_compiler_gnu
20689
20690
20691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20693echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020694if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020696cat >>confdefs.h <<\_ACEOF
20697#define HAVE_MMAP_FILE
20698_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020699
20700 MMAP_FILE=yes
20701
20702fi
20703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20705echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20706if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020708else
Reid Spencer582a23c2004-12-29 07:07:57 +000020709 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020710 ac_cv_need_dev_zero_for_mmap=yes
20711 else
20712 ac_cv_need_dev_zero_for_mmap=no
20713 fi
20714
20715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20717echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020718if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720cat >>confdefs.h <<\_ACEOF
20721#define NEED_DEV_ZERO_FOR_MMAP 1
20722_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020723
20724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020725
Reid Spencer30fe5262007-01-20 07:48:49 +000020726 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20727 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020728 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20729echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020730 fi
20731 if test "$ac_cv_func_mmap_file" = "no"
20732 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20734echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020735 fi
John Criswellb13092b2003-07-22 21:00:24 +000020736fi
John Criswell7a73b802003-06-30 21:59:07 +000020737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020738{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20739echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020740ac_ext=cpp
20741ac_cpp='$CXXCPP $CPPFLAGS'
20742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020751/* end confdefs.h. */
20752int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020753 volatile unsigned long val = 1;
20754 __sync_synchronize();
20755 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020756 __sync_add_and_fetch(&val, 1);
20757 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020758 return 0;
20759 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020760
20761_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020762rm -f conftest.$ac_objext conftest$ac_exeext
20763if { (ac_try="$ac_link"
20764case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767esac
20768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_link") 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20777 { (case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780esac
20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_try") 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest$ac_exeext'
20787 { (case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790esac
20791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_try") 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020796 ac_ext=c
20797ac_cpp='$CPP $CPPFLAGS'
20798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800ac_compiler_gnu=$ac_cv_c_compiler_gnu
20801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020802 { echo "$as_me:$LINENO: result: yes" >&5
20803echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020806#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020807_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020808
Owen Andersond4b272b2009-05-18 23:58:51 +000020809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813 { echo "$as_me:$LINENO: result: no" >&5
20814echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020816cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020817#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020818_ACEOF
20819
20820 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20821echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823
Owen Andersond4b272b2009-05-18 23:58:51 +000020824rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020825 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020826
John Criswell7a73b802003-06-30 21:59:07 +000020827
Nick Lewycky4372e692009-09-29 06:18:23 +000020828if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020829 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20830echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20831if test "${llvm_cv_linux_mixed+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020833else
20834 ac_ext=c
20835ac_cpp='$CPP $CPPFLAGS'
20836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838ac_compiler_gnu=$ac_cv_c_compiler_gnu
20839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020840 cat >conftest.$ac_ext <<_ACEOF
20841/* confdefs.h. */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020845/* end confdefs.h. */
20846#ifndef __x86_64__
20847 error: Not x86-64 even if uname says so!
20848 #endif
20849
20850int
20851main ()
20852{
20853
20854 ;
20855 return 0;
20856}
20857_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020858rm -f conftest.$ac_objext
20859if { (ac_try="$ac_compile"
20860case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863esac
20864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } &&
20872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876esac
20877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; } &&
20882 { ac_try='test -s conftest.$ac_objext'
20883 { (case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886esac
20887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_try") 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020892 llvm_cv_linux_mixed=no
20893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020899
Nick Lewycky4372e692009-09-29 06:18:23 +000020900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901 ac_ext=c
20902ac_cpp='$CPP $CPPFLAGS'
20903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905ac_compiler_gnu=$ac_cv_c_compiler_gnu
20906
20907
20908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20910echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020911
20912 if test "$llvm_cv_linux_mixed" = "yes"; then
20913 llvm_cv_target_arch="x86"
20914 ARCH="x86"
20915 fi
20916fi
20917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020918
Reid Spencer9372f152007-07-30 20:13:24 +000020919for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020920do
20921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20922{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926else
20927 cat >conftest.$ac_ext <<_ACEOF
20928/* confdefs.h. */
20929_ACEOF
20930cat confdefs.h >>conftest.$ac_ext
20931cat >>conftest.$ac_ext <<_ACEOF
20932/* end confdefs.h. */
20933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20935#define $ac_func innocuous_$ac_func
20936
20937/* System header to define __stub macros and hopefully few prototypes,
20938 which can conflict with char $ac_func (); below.
20939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20940 <limits.h> exists even on freestanding compilers. */
20941
20942#ifdef __STDC__
20943# include <limits.h>
20944#else
20945# include <assert.h>
20946#endif
20947
20948#undef $ac_func
20949
20950/* Override any GCC internal prototype to avoid an error.
20951 Use char because int might match the return type of a GCC
20952 builtin and then its argument prototype would still apply. */
20953#ifdef __cplusplus
20954extern "C"
20955#endif
20956char $ac_func ();
20957/* The GNU C library defines this for functions which it implements
20958 to always fail with ENOSYS. Some functions are actually named
20959 something starting with __ and the normal name is an alias. */
20960#if defined __stub_$ac_func || defined __stub___$ac_func
20961choke me
20962#endif
20963
20964int
20965main ()
20966{
20967return $ac_func ();
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest.$ac_objext conftest$ac_exeext
20973if { (ac_try="$ac_link"
20974case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_link") 2>conftest.er1
20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20987 { (case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990esac
20991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_try") 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; } &&
20996 { ac_try='test -s conftest$ac_exeext'
20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000esac
21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 eval "$as_ac_var=yes"
21007else
21008 echo "$as_me: failed program was:" >&5
21009sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 eval "$as_ac_var=no"
21012fi
21013
21014rm -f core conftest.err conftest.$ac_objext \
21015 conftest$ac_exeext conftest.$ac_ext
21016fi
21017ac_res=`eval echo '${'$as_ac_var'}'`
21018 { echo "$as_me:$LINENO: result: $ac_res" >&5
21019echo "${ECHO_T}$ac_res" >&6; }
21020if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021021 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021023_ACEOF
21024
21025fi
21026done
21027
21028
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021029SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021030
21031
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021032SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21033
21034
Jeff Cohen28783c32007-01-12 18:22:38 +000021035if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021036 prefix="/usr/local"
21037fi
Reid Spencere9de0912004-08-20 09:03:57 +000021038eval LLVM_PREFIX="${prefix}";
21039eval LLVM_BINDIR="${prefix}/bin";
21040eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021041eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021042eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021043eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021044eval LLVM_INCLUDEDIR="${prefix}/include";
21045eval LLVM_INFODIR="${prefix}/info";
21046eval LLVM_MANDIR="${prefix}/man";
21047LLVM_CONFIGTIME=`date`
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021059if test "${ENABLE_TIMESTAMPS}" = "0"; then
21060 LLVM_CONFIGTIME="(timestamp not enabled)"
21061fi
21062
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021063
Reid Spencere9de0912004-08-20 09:03:57 +000021064cat >>confdefs.h <<_ACEOF
21065#define LLVM_PREFIX "$LLVM_PREFIX"
21066_ACEOF
21067
21068
21069cat >>confdefs.h <<_ACEOF
21070#define LLVM_BINDIR "$LLVM_BINDIR"
21071_ACEOF
21072
21073
21074cat >>confdefs.h <<_ACEOF
21075#define LLVM_LIBDIR "$LLVM_LIBDIR"
21076_ACEOF
21077
21078
21079cat >>confdefs.h <<_ACEOF
21080#define LLVM_DATADIR "$LLVM_DATADIR"
21081_ACEOF
21082
21083
21084cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021085#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021086_ACEOF
21087
21088
21089cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021090#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021091_ACEOF
21092
21093
21094cat >>confdefs.h <<_ACEOF
21095#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21096_ACEOF
21097
21098
21099cat >>confdefs.h <<_ACEOF
21100#define LLVM_INFODIR "$LLVM_INFODIR"
21101_ACEOF
21102
21103
21104cat >>confdefs.h <<_ACEOF
21105#define LLVM_MANDIR "$LLVM_MANDIR"
21106_ACEOF
21107
21108
21109cat >>confdefs.h <<_ACEOF
21110#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21111_ACEOF
21112
21113
Eric Christopher790e11c2007-12-01 00:34:39 +000021114cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021115#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021116_ACEOF
21117
21118
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021119if test "$BINDINGS_TO_BUILD" = auto ; then
21120 BINDINGS_TO_BUILD=""
21121 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21122 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21123 fi
21124fi
21125BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21126
21127
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021128ALL_BINDINGS=ocaml
21129
21130
Gordon Henriksenf0915682007-10-02 16:42:22 +000021131binding_prereqs_failed=0
21132for a_binding in $BINDINGS_TO_BUILD ; do
21133 case "$a_binding" in
21134 ocaml)
21135 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021136 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21137echo "$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 +000021138 binding_prereqs_failed=1
21139 fi
21140 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021141 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21142echo "$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 +000021143 binding_prereqs_failed=1
21144 fi
21145 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021146 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21147echo "$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 +000021148 fi
21149 if test "x$with_ocaml_libdir" != xauto ; then
21150 OCAML_LIBDIR=$with_ocaml_libdir
21151
21152 else
21153 ocaml_stdlib="`"$OCAMLC" -where`"
21154 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21155 then
21156 # ocaml stdlib is beneath our prefix; use stdlib
21157 OCAML_LIBDIR=$ocaml_stdlib
21158
21159 else
21160 # ocaml stdlib is outside our prefix; use libdir/ocaml
21161 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21162
21163 fi
21164 fi
21165 ;;
21166 esac
21167done
21168if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021169 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21170echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21171 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021172fi
21173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21175echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21176if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021178else
21179 ac_ext=cpp
21180ac_cpp='$CXXCPP $CPPFLAGS'
21181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184
21185 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021186 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187 cat >conftest.$ac_ext <<_ACEOF
21188/* confdefs.h. */
21189_ACEOF
21190cat confdefs.h >>conftest.$ac_ext
21191cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021192/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021193template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021194int
21195main ()
21196{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021197X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021198 ;
21199 return 0;
21200}
21201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202rm -f conftest.$ac_objext
21203if { (ac_try="$ac_compile"
21204case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21207esac
21208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_compile") 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21217 { (case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21220esac
21221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_try") 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest.$ac_objext'
21227 { (case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230esac
21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_try") 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021236 llvm_cv_cxx_visibility_inlines_hidden=yes
21237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021238 echo "$as_me: failed program was:" >&5
21239sed 's/^/| /' conftest.$ac_ext >&5
21240
21241 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021243
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 CXXFLAGS="$oldcxxflags"
21246 ac_ext=c
21247ac_cpp='$CPP $CPPFLAGS'
21248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250ac_compiler_gnu=$ac_cv_c_compiler_gnu
21251
21252
21253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21255echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021256if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21257 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21258
21259else
21260 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21261
21262fi
21263
Gordon Henriksenf0915682007-10-02 16:42:22 +000021264
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021265if test "$llvm_cv_link_use_r" = "yes" ; then
21266 RPATH="-Wl,-R"
21267else
21268 RPATH="-Wl,-rpath"
21269fi
21270
21271
21272if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21273 RDYNAMIC="-Wl,-export-dynamic"
21274else
21275 RDYNAMIC=""
21276fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021277
21278
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021279
Eric Christophera1cba682010-08-08 02:44:25 +000021280ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021281
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021282
21283
21284
21285
21286
Douglas Gregor1555a232009-06-16 20:12:29 +000021287ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21288
21289ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21290
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021291ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21292
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021293ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21294
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021295ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021296
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021297
Reid Spencera773bd52006-08-04 18:18:08 +000021298ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021299
Eric Christopher360fa9a2011-10-26 00:42:12 +000021300
Reid Spencerea949cf2006-08-16 00:45:38 +000021301ac_config_files="$ac_config_files llvm.spec"
21302
21303
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021304ac_config_files="$ac_config_files docs/doxygen.cfg"
21305
Eric Christopher63c09512012-02-02 00:16:55 +000021306
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021307if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021308 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021309fi
Eric Christopher63c09512012-02-02 00:16:55 +000021310if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021311 configh="include/clang/Config/config.h"
21312 doxy="docs/doxygen.cfg"
21313 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021314
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021315 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021316
21317fi
21318
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021319ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021320
Eric Christopher360fa9a2011-10-26 00:42:12 +000021321
Reid Spencera773bd52006-08-04 18:18:08 +000021322ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021323
Reid Spencera773bd52006-08-04 18:18:08 +000021324ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
21326
Reid Spencera773bd52006-08-04 18:18:08 +000021327ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021328
21329
Reid Spencera773bd52006-08-04 18:18:08 +000021330ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021331
21332
Reid Spencera773bd52006-08-04 18:18:08 +000021333ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021334
21335
Reid Spencer8b2e1412006-11-17 03:32:33 +000021336ac_config_commands="$ac_config_commands runtime/Makefile"
21337
21338
Reid Spencera773bd52006-08-04 18:18:08 +000021339ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021340
21341
Reid Spencera773bd52006-08-04 18:18:08 +000021342ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021343
21344
Bill Wendlingf24eb392009-01-04 23:12:30 +000021345ac_config_commands="$ac_config_commands unittests/Makefile"
21346
21347
Reid Spencera773bd52006-08-04 18:18:08 +000021348ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021349
21350
Reid Spencera773bd52006-08-04 18:18:08 +000021351ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021352
21353
Reid Spencera773bd52006-08-04 18:18:08 +000021354ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021355
21356
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021357ac_config_commands="$ac_config_commands bindings/Makefile"
21358
21359
21360ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21361
21362
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021363
John Criswell7a73b802003-06-30 21:59:07 +000021364cat >confcache <<\_ACEOF
21365# This file is a shell script that caches the results of configure
21366# tests run on this system so they can be shared between configure
21367# scripts and configure runs, see configure's option --config-cache.
21368# It is not useful on other systems. If it contains results you don't
21369# want to keep, you may remove or edit it.
21370#
21371# config.status only pays attention to the cache file if you give it
21372# the --recheck option to rerun configure.
21373#
John Criswell0c38eaf2003-09-10 15:17:25 +000021374# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021375# loading this file, other *unset* `ac_cv_foo' will be assigned the
21376# following values.
21377
21378_ACEOF
21379
21380# The following way of writing the cache mishandles newlines in values,
21381# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021382# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021383# Ultrix sh set writes to stderr and can't be redirected directly,
21384# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021385(
21386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21387 eval ac_val=\$$ac_var
21388 case $ac_val in #(
21389 *${as_nl}*)
21390 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21392echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021393 esac
21394 case $ac_var in #(
21395 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021397 esac ;;
21398 esac
21399 done
21400
John Criswell7a73b802003-06-30 21:59:07 +000021401 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21403 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404 # `set' does not quote correctly, so add quotes (double-quote
21405 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021406 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021407 "s/'/'\\\\''/g;
21408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021409 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021410 *)
21411 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021414 esac |
21415 sort
21416) |
John Criswell7a73b802003-06-30 21:59:07 +000021417 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021418 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021419 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021420 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21422 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21424 :end' >>confcache
21425if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21426 if test -w "$cache_file"; then
21427 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21429echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021430 cat confcache >$cache_file
21431 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021432 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21433echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021434 fi
21435fi
21436rm -f confcache
21437
21438test "x$prefix" = xNONE && prefix=$ac_default_prefix
21439# Let make expand exec_prefix.
21440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21441
John Criswell7a73b802003-06-30 21:59:07 +000021442DEFS=-DHAVE_CONFIG_H
21443
John Criswell0c38eaf2003-09-10 15:17:25 +000021444ac_libobjs=
21445ac_ltlibobjs=
21446for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21447 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021448 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021449 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021450 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21451 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021452 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21453 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021454done
21455LIBOBJS=$ac_libobjs
21456
21457LTLIBOBJS=$ac_ltlibobjs
21458
21459
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021460if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21462Usually this means the macro was only invoked conditionally." >&5
21463echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21464Usually this means the macro was only invoked conditionally." >&2;}
21465 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021466fi
21467if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21469Usually this means the macro was only invoked conditionally." >&5
21470echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21471Usually this means the macro was only invoked conditionally." >&2;}
21472 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021473fi
John Criswell7a73b802003-06-30 21:59:07 +000021474
21475: ${CONFIG_STATUS=./config.status}
21476ac_clean_files_save=$ac_clean_files
21477ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21479echo "$as_me: creating $CONFIG_STATUS" >&6;}
21480cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021481#! $SHELL
21482# Generated by $as_me.
21483# Run this file to recreate the current configuration.
21484# Compiler output produced by configure, useful for debugging
21485# configure, is in config.log if it exists.
21486
21487debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021488ac_cs_recheck=false
21489ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021490SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493cat >>$CONFIG_STATUS <<\_ACEOF
21494## --------------------- ##
21495## M4sh Initialization. ##
21496## --------------------- ##
21497
21498# Be Bourne compatible
21499if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021500 emulate sh
21501 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021503 # is contrary to our usage. Disable this feature.
21504 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021505 setopt NO_GLOB_SUBST
21506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509BIN_SH=xpg4; export BIN_SH # for Tru64
21510DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021511
John Criswell7a73b802003-06-30 21:59:07 +000021512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513# PATH needs CR
21514# Avoid depending upon Character Ranges.
21515as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21516as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21517as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21518as_cr_digits='0123456789'
21519as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021520
21521# The user is always right.
21522if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523 echo "#! /bin/sh" >conf$$.sh
21524 echo "exit 0" >>conf$$.sh
21525 chmod +x conf$$.sh
21526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21527 PATH_SEPARATOR=';'
21528 else
21529 PATH_SEPARATOR=:
21530 fi
21531 rm -f conf$$.sh
21532fi
21533
21534# Support unset when possible.
21535if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21536 as_unset=unset
21537else
21538 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021539fi
John Criswell7a73b802003-06-30 21:59:07 +000021540
Reid Spencera773bd52006-08-04 18:18:08 +000021541
21542# IFS
21543# We need space, tab and new line, in precisely that order. Quoting is
21544# there to prevent editors from complaining about space-tab.
21545# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21546# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547as_nl='
21548'
Reid Spencera773bd52006-08-04 18:18:08 +000021549IFS=" "" $as_nl"
21550
21551# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021553 *[\\/]* ) as_myself=$0 ;;
21554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021555for as_dir in $PATH
21556do
21557 IFS=$as_save_IFS
21558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21560done
Reid Spencera773bd52006-08-04 18:18:08 +000021561IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021562
Reid Spencera773bd52006-08-04 18:18:08 +000021563 ;;
21564esac
21565# We did not find ourselves, most probably we were run as `sh COMMAND'
21566# in which case we are not to be found in the path.
21567if test "x$as_myself" = x; then
21568 as_myself=$0
21569fi
21570if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021571 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21572 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021573fi
21574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575# Work around bugs in pre-3.0 UWIN ksh.
21576for as_var in ENV MAIL MAILPATH
21577do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021578done
21579PS1='$ '
21580PS2='> '
21581PS4='+ '
21582
21583# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021584for as_var in \
21585 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21586 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21587 LC_TELEPHONE LC_TIME
21588do
21589 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21590 eval $as_var=C; export $as_var
21591 else
21592 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021593 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021594done
Torok Edwin871384f2010-01-26 08:50:50 +000021595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021596# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021597if expr a : '\(a\)' >/dev/null 2>&1 &&
21598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21599 as_expr=expr
21600else
21601 as_expr=false
21602fi
21603
21604if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21605 as_basename=basename
21606else
21607 as_basename=false
21608fi
21609
21610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021612as_me=`$as_basename -- "$0" ||
21613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21614 X"$0" : 'X\(//\)$' \| \
21615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021617 sed '/^.*\/\([^/][^/]*\)\/*$/{
21618 s//\1/
21619 q
21620 }
21621 /^X\/\(\/\/\)$/{
21622 s//\1/
21623 q
21624 }
21625 /^X\/\(\/\).*/{
21626 s//\1/
21627 q
21628 }
21629 s/.*/./; q'`
21630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631# CDPATH.
21632$as_unset CDPATH
21633
21634
21635
21636 as_lineno_1=$LINENO
21637 as_lineno_2=$LINENO
21638 test "x$as_lineno_1" != "x$as_lineno_2" &&
21639 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21640
21641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21642 # uniformly replaced by the line number. The first 'sed' inserts a
21643 # line-number line after each line using $LINENO; the second 'sed'
21644 # does the real work. The second script uses 'N' to pair each
21645 # line-number line with the line containing $LINENO, and appends
21646 # trailing '-' during substitution so that $LINENO is not a special
21647 # case at line end.
21648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21649 # scripts with optimization help from Paolo Bonzini. Blame Lee
21650 # E. McMahon (1931-1989) for sed's syntax. :-)
21651 sed -n '
21652 p
21653 /[$]LINENO/=
21654 ' <$as_myself |
21655 sed '
21656 s/[$]LINENO.*/&-/
21657 t lineno
21658 b
21659 :lineno
21660 N
21661 :loop
21662 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21663 t loop
21664 s/-\n.*//
21665 ' >$as_me.lineno &&
21666 chmod +x "$as_me.lineno" ||
21667 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21668 { (exit 1); exit 1; }; }
21669
21670 # Don't try to exec as it changes $[0], causing all sort of problems
21671 # (the dirname of $[0] is not the place where we might find the
21672 # original and so on. Autoconf is especially sensitive to this).
21673 . "./$as_me.lineno"
21674 # Exit status is that of the last command.
21675 exit
21676}
21677
21678
21679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21680 as_dirname=dirname
21681else
21682 as_dirname=false
21683fi
Reid Spencera773bd52006-08-04 18:18:08 +000021684
21685ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021686case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021687-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021688 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021691 esac;;
21692*)
21693 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021694esac
21695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021696if expr a : '\(a\)' >/dev/null 2>&1 &&
21697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21698 as_expr=expr
21699else
21700 as_expr=false
21701fi
21702
John Criswell7a73b802003-06-30 21:59:07 +000021703rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021704if test -d conf$$.dir; then
21705 rm -f conf$$.dir/conf$$.file
21706else
21707 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710echo >conf$$.file
21711if ln -s conf$$.file conf$$ 2>/dev/null; then
21712 as_ln_s='ln -s'
21713 # ... but there are two gotchas:
21714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21716 # In both cases, we have to default to `cp -p'.
21717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021718 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719elif ln conf$$.file conf$$ 2>/dev/null; then
21720 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021721else
21722 as_ln_s='cp -p'
21723fi
Reid Spencera773bd52006-08-04 18:18:08 +000021724rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21725rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021726
John Criswell0c38eaf2003-09-10 15:17:25 +000021727if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021729else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021730 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021731 as_mkdir_p=false
21732fi
21733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021734# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21735# systems may use methods other than mode bits to determine executability.
21736cat >conf$$.file <<_ASEOF
21737#! /bin/sh
21738exit 0
21739_ASEOF
21740chmod +x conf$$.file
21741if test -x conf$$.file >/dev/null 2>&1; then
21742 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021747
21748# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021749as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021750
21751# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021752as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021753
21754
John Criswell7a73b802003-06-30 21:59:07 +000021755exec 6>&1
21756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021757# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021758# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021759# values after options handling.
21760ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021761This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021762generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021763
21764 CONFIG_FILES = $CONFIG_FILES
21765 CONFIG_HEADERS = $CONFIG_HEADERS
21766 CONFIG_LINKS = $CONFIG_LINKS
21767 CONFIG_COMMANDS = $CONFIG_COMMANDS
21768 $ $0 $@
21769
Reid Spencera773bd52006-08-04 18:18:08 +000021770on `(hostname || uname -n) 2>/dev/null | sed 1q`
21771"
21772
John Criswell7a73b802003-06-30 21:59:07 +000021773_ACEOF
21774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021776# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021777config_files="$ac_config_files"
21778config_headers="$ac_config_headers"
21779config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021780
Reid Spencera773bd52006-08-04 18:18:08 +000021781_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021784ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785\`$as_me' instantiates files from templates according to the
21786current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021789
21790 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791 -V, --version print version number, then exit
21792 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021793 -d, --debug don't remove temporary files
21794 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795 --file=FILE[:TEMPLATE]
21796 instantiate the configuration file FILE
21797 --header=FILE[:TEMPLATE]
21798 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021799
21800Configuration files:
21801$config_files
21802
21803Configuration headers:
21804$config_headers
21805
John Criswellc764fbc2003-09-06 15:17:13 +000021806Configuration commands:
21807$config_commands
21808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021810
Reid Spencera773bd52006-08-04 18:18:08 +000021811_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021813ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021814LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815configured by $0, generated by GNU Autoconf 2.60,
21816 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021818Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021819This config.status script is free software; the Free Software Foundation
21820gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021821
21822ac_pwd='$ac_pwd'
21823srcdir='$srcdir'
21824INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021825_ACEOF
21826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827cat >>$CONFIG_STATUS <<\_ACEOF
21828# If no file are specified by the user, then we need to provide default
21829# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021830ac_need_defaults=:
21831while test $# != 0
21832do
21833 case $1 in
21834 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021837 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021839 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021840 ac_option=$1
21841 ac_optarg=$2
21842 ac_shift=shift
21843 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021844 esac
21845
John Criswell0c38eaf2003-09-10 15:17:25 +000021846 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021847 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21849 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021851 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021852 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021853 debug=: ;;
21854 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021855 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021857 ac_need_defaults=false;;
21858 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021859 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021861 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021862 --he | --h)
21863 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864 { echo "$as_me: error: ambiguous option: $1
21865Try \`$0 --help' for more information." >&2
21866 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021867 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21871 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021872
21873 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 -*) { echo "$as_me: error: unrecognized option: $1
21875Try \`$0 --help' for more information." >&2
21876 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021879 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021880
21881 esac
21882 shift
21883done
21884
John Criswell0c38eaf2003-09-10 15:17:25 +000021885ac_configure_extra_args=
21886
21887if $ac_cs_silent; then
21888 exec 6>/dev/null
21889 ac_configure_extra_args="$ac_configure_extra_args --silent"
21890fi
21891
21892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021894if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021895 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21896 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021897 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021898 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021899fi
21900
John Criswell7a73b802003-06-30 21:59:07 +000021901_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021903exec 5>>config.log
21904{
21905 echo
21906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21907## Running $as_me. ##
21908_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021910} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021911
Reid Spencera773bd52006-08-04 18:18:08 +000021912_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021914#
Reid Spencera773bd52006-08-04 18:18:08 +000021915# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021916#
Reid Spencerc0682832005-02-24 19:05:19 +000021917llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021918
21919_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021922
21923# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021924for ac_config_target in $ac_config_targets
21925do
Reid Spencera773bd52006-08-04 18:18:08 +000021926 case $ac_config_target in
21927 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021928 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021929 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21930 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021931 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021932 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021933 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021934 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021935 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021936 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021937 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21938 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021939 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021940 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21941 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21942 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21943 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21944 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021945 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021946 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21947 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021948 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021949 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21950 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21951 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021952 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21953 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21956echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21957 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021958 esac
21959done
21960
Reid Spencera773bd52006-08-04 18:18:08 +000021961
John Criswell7a73b802003-06-30 21:59:07 +000021962# If the user did not use the arguments to specify the items to instantiate,
21963# then the envvar interface is used. Set only those that are not.
21964# We use the long form for the default assignment because of an extremely
21965# bizarre bug on SunOS 4.1.3.
21966if $ac_need_defaults; then
21967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21968 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021969 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021970fi
21971
John Criswell0c38eaf2003-09-10 15:17:25 +000021972# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021973# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021974# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021975# Hook for its removal unless debugging.
21976# Note that there is a small window in which the directory will not be cleaned:
21977# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021978$debug ||
21979{
Reid Spencera773bd52006-08-04 18:18:08 +000021980 tmp=
21981 trap 'exit_status=$?
21982 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21983' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021985}
John Criswell7a73b802003-06-30 21:59:07 +000021986# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021987
John Criswell7a73b802003-06-30 21:59:07 +000021988{
Reid Spencera773bd52006-08-04 18:18:08 +000021989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021990 test -n "$tmp" && test -d "$tmp"
21991} ||
21992{
Reid Spencera773bd52006-08-04 18:18:08 +000021993 tmp=./conf$$-$RANDOM
21994 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021995} ||
21996{
21997 echo "$me: cannot create a temporary directory in ." >&2
21998 { (exit 1); exit 1; }
21999}
John Criswell7a73b802003-06-30 21:59:07 +000022000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022001#
22002# Set up the sed scripts for CONFIG_FILES section.
22003#
22004
22005# No need to generate the scripts if there are no CONFIG_FILES.
22006# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022007if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022008
22009_ACEOF
22010
Reid Spencera773bd52006-08-04 18:18:08 +000022011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012
Reid Spencera773bd52006-08-04 18:18:08 +000022013ac_delim='%!_!# '
22014for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022015 cat >conf$$subs.sed <<_ACEOF
22016SHELL!$SHELL$ac_delim
22017PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22018PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22019PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22020PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22021PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22022PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22023exec_prefix!$exec_prefix$ac_delim
22024prefix!$prefix$ac_delim
22025program_transform_name!$program_transform_name$ac_delim
22026bindir!$bindir$ac_delim
22027sbindir!$sbindir$ac_delim
22028libexecdir!$libexecdir$ac_delim
22029datarootdir!$datarootdir$ac_delim
22030datadir!$datadir$ac_delim
22031sysconfdir!$sysconfdir$ac_delim
22032sharedstatedir!$sharedstatedir$ac_delim
22033localstatedir!$localstatedir$ac_delim
22034includedir!$includedir$ac_delim
22035oldincludedir!$oldincludedir$ac_delim
22036docdir!$docdir$ac_delim
22037infodir!$infodir$ac_delim
22038htmldir!$htmldir$ac_delim
22039dvidir!$dvidir$ac_delim
22040pdfdir!$pdfdir$ac_delim
22041psdir!$psdir$ac_delim
22042libdir!$libdir$ac_delim
22043localedir!$localedir$ac_delim
22044mandir!$mandir$ac_delim
22045DEFS!$DEFS$ac_delim
22046ECHO_C!$ECHO_C$ac_delim
22047ECHO_N!$ECHO_N$ac_delim
22048ECHO_T!$ECHO_T$ac_delim
22049LIBS!$LIBS$ac_delim
22050build_alias!$build_alias$ac_delim
22051host_alias!$host_alias$ac_delim
22052target_alias!$target_alias$ac_delim
22053LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022054CC!$CC$ac_delim
22055CFLAGS!$CFLAGS$ac_delim
22056LDFLAGS!$LDFLAGS$ac_delim
22057CPPFLAGS!$CPPFLAGS$ac_delim
22058ac_ct_CC!$ac_ct_CC$ac_delim
22059EXEEXT!$EXEEXT$ac_delim
22060OBJEXT!$OBJEXT$ac_delim
22061CXX!$CXX$ac_delim
22062CXXFLAGS!$CXXFLAGS$ac_delim
22063ac_ct_CXX!$ac_ct_CXX$ac_delim
22064CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022066ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22067LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068build!$build$ac_delim
22069build_cpu!$build_cpu$ac_delim
22070build_vendor!$build_vendor$ac_delim
22071build_os!$build_os$ac_delim
22072host!$host$ac_delim
22073host_cpu!$host_cpu$ac_delim
22074host_vendor!$host_vendor$ac_delim
22075host_os!$host_os$ac_delim
22076target!$target$ac_delim
22077target_cpu!$target_cpu$ac_delim
22078target_vendor!$target_vendor$ac_delim
22079target_os!$target_os$ac_delim
22080OS!$OS$ac_delim
22081HOST_OS!$HOST_OS$ac_delim
22082TARGET_OS!$TARGET_OS$ac_delim
22083LINKALL!$LINKALL$ac_delim
22084NOLINKALL!$NOLINKALL$ac_delim
22085LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22086LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22087ARCH!$ARCH$ac_delim
22088ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022089GREP!$GREP$ac_delim
22090EGREP!$EGREP$ac_delim
22091LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22092BUILD_CC!$BUILD_CC$ac_delim
22093BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22094BUILD_CXX!$BUILD_CXX$ac_delim
22095CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022096ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022097ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22098ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22099DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22100ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22101EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22102DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22103DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22104JIT!$JIT$ac_delim
22105TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022106ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022108LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022109ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022111ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022112ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022113_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022115 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022116 break
22117 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22119echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22120 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022121 else
22122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022123 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022124done
22125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022126ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22127if test -n "$ac_eof"; then
22128 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22129 ac_eof=`expr $ac_eof + 1`
22130fi
22131
22132cat >>$CONFIG_STATUS <<_ACEOF
22133cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22134/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136sed '
22137s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22138s/^/s,@/; s/!/@,|#_!!_#|/
22139:n
22140t n
22141s/'"$ac_delim"'$/,g/; t
22142s/$/\\/; p
22143N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22144' >>$CONFIG_STATUS <conf$$subs.sed
22145rm -f conf$$subs.sed
22146cat >>$CONFIG_STATUS <<_ACEOF
22147CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022148_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149
22150
22151ac_delim='%!_!# '
22152for ac_last_try in false false false false false :; do
22153 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000022154ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022155TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22156LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22157LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022158LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022159LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022160OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022161EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022162EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022163CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022164BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022165INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166NM!$NM$ac_delim
22167ifGNUmake!$ifGNUmake$ac_delim
22168LN_S!$LN_S$ac_delim
22169CMP!$CMP$ac_delim
22170CP!$CP$ac_delim
22171DATE!$DATE$ac_delim
22172FIND!$FIND$ac_delim
22173MKDIR!$MKDIR$ac_delim
22174MV!$MV$ac_delim
22175RANLIB!$RANLIB$ac_delim
22176AR!$AR$ac_delim
22177RM!$RM$ac_delim
22178SED!$SED$ac_delim
22179TAR!$TAR$ac_delim
22180BINPWD!$BINPWD$ac_delim
22181GRAPHVIZ!$GRAPHVIZ$ac_delim
22182DOT!$DOT$ac_delim
22183FDP!$FDP$ac_delim
22184NEATO!$NEATO$ac_delim
22185TWOPI!$TWOPI$ac_delim
22186CIRCO!$CIRCO$ac_delim
22187GV!$GV$ac_delim
22188DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022189XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022190INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22191INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22192INSTALL_DATA!$INSTALL_DATA$ac_delim
22193BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022194CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195DOXYGEN!$DOXYGEN$ac_delim
22196GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022197GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198POD2HTML!$POD2HTML$ac_delim
22199POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022200PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022201RUNTEST!$RUNTEST$ac_delim
22202TCLSH!$TCLSH$ac_delim
22203ZIP!$ZIP$ac_delim
22204OCAMLC!$OCAMLC$ac_delim
22205OCAMLOPT!$OCAMLOPT$ac_delim
22206OCAMLDEP!$OCAMLDEP$ac_delim
22207OCAMLDOC!$OCAMLDOC$ac_delim
22208GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022209HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022210INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22211INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22212CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22213CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22214LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022215NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22216NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022217COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022218USE_UDIS86!$USE_UDIS86$ac_delim
22219USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022220USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22221INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22222INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22224HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22225MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022226SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022227SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22229LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22230LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22231LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22232LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22233LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22234LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22235LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22236LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22237LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22238BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22239ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022240OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22241ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22242RPATH!$RPATH$ac_delim
22243RDYNAMIC!$RDYNAMIC$ac_delim
22244LIBOBJS!$LIBOBJS$ac_delim
22245LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022246_ACEOF
22247
Eric Christophera443e5b2012-03-23 05:50:46 +000022248 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022249 break
22250 elif $ac_last_try; then
22251 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22252echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22253 { (exit 1); exit 1; }; }
22254 else
22255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22256 fi
22257done
22258
22259ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22260if test -n "$ac_eof"; then
22261 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22262 ac_eof=`expr $ac_eof + 1`
22263fi
22264
22265cat >>$CONFIG_STATUS <<_ACEOF
22266cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022267/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22268_ACEOF
22269sed '
22270s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22271s/^/s,@/; s/!/@,|#_!!_#|/
22272:n
22273t n
22274s/'"$ac_delim"'$/,g/; t
22275s/$/\\/; p
22276N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22277' >>$CONFIG_STATUS <conf$$subs.sed
22278rm -f conf$$subs.sed
22279cat >>$CONFIG_STATUS <<_ACEOF
22280:end
22281s/|#_!!_#|//g
22282CEOF$ac_eof
22283_ACEOF
22284
22285
Reid Spencera773bd52006-08-04 18:18:08 +000022286# VPATH may cause trouble with some makes, so we remove $(srcdir),
22287# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22288# trailing colons and then remove the whole line if VPATH becomes empty
22289# (actually we leave an empty line to preserve line numbers).
22290if test "x$srcdir" = x.; then
22291 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22292s/:*\$(srcdir):*/:/
22293s/:*\${srcdir}:*/:/
22294s/:*@srcdir@:*/:/
22295s/^\([^=]*=[ ]*\):*/\1/
22296s/:*$//
22297s/^[^=]*=[ ]*$//
22298}'
22299fi
22300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022302fi # test -n "$CONFIG_FILES"
22303
Reid Spencera773bd52006-08-04 18:18:08 +000022304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022306do
22307 case $ac_tag in
22308 :[FHLC]) ac_mode=$ac_tag; continue;;
22309 esac
22310 case $ac_mode$ac_tag in
22311 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22313echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22314 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022315 :[FH]-) ac_tag=-:-;;
22316 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22317 esac
22318 ac_save_IFS=$IFS
22319 IFS=:
22320 set x $ac_tag
22321 IFS=$ac_save_IFS
22322 shift
22323 ac_file=$1
22324 shift
22325
22326 case $ac_mode in
22327 :L) ac_source=$1;;
22328 :[FH])
22329 ac_file_inputs=
22330 for ac_f
22331 do
22332 case $ac_f in
22333 -) ac_f="$tmp/stdin";;
22334 *) # Look for the file first in the build tree, then in the source tree
22335 # (if the path is not absolute). The absolute path cannot be DOS-style,
22336 # because $ac_f cannot contain `:'.
22337 test -f "$ac_f" ||
22338 case $ac_f in
22339 [\\/$]*) false;;
22340 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22341 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022342 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22343echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22344 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022345 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022346 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022347 done
22348
22349 # Let's still pretend it is `configure' which instantiates (i.e., don't
22350 # use $as_me), people would be surprised to read:
22351 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022352 configure_input="Generated from "`IFS=:
22353 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022354 if test x"$ac_file" != x-; then
22355 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022356 { echo "$as_me:$LINENO: creating $ac_file" >&5
22357echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022358 fi
22359
22360 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022361 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022362 esac
22363 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022364 esac
22365
Reid Spencera773bd52006-08-04 18:18:08 +000022366 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022367$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022368 X"$ac_file" : 'X\(//\)[^/]' \| \
22369 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022370 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022371echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22373 s//\1/
22374 q
22375 }
22376 /^X\(\/\/\)[^/].*/{
22377 s//\1/
22378 q
22379 }
22380 /^X\(\/\/\)$/{
22381 s//\1/
22382 q
22383 }
22384 /^X\(\/\).*/{
22385 s//\1/
22386 q
22387 }
22388 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022389 { as_dir="$ac_dir"
22390 case $as_dir in #(
22391 -*) as_dir=./$as_dir;;
22392 esac
22393 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22394 as_dirs=
22395 while :; do
22396 case $as_dir in #(
22397 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22398 *) as_qdir=$as_dir;;
22399 esac
22400 as_dirs="'$as_qdir' $as_dirs"
22401 as_dir=`$as_dirname -- "$as_dir" ||
22402$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22403 X"$as_dir" : 'X\(//\)[^/]' \| \
22404 X"$as_dir" : 'X\(//\)$' \| \
22405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22406echo X"$as_dir" |
22407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22408 s//\1/
22409 q
22410 }
22411 /^X\(\/\/\)[^/].*/{
22412 s//\1/
22413 q
22414 }
22415 /^X\(\/\/\)$/{
22416 s//\1/
22417 q
22418 }
22419 /^X\(\/\).*/{
22420 s//\1/
22421 q
22422 }
22423 s/.*/./; q'`
22424 test -d "$as_dir" && break
22425 done
22426 test -z "$as_dirs" || eval "mkdir $as_dirs"
22427 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22428echo "$as_me: error: cannot create directory $as_dir" >&2;}
22429 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022430 ac_builddir=.
22431
Reid Spencera773bd52006-08-04 18:18:08 +000022432case "$ac_dir" in
22433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22434*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022436 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022438 case $ac_top_builddir_sub in
22439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22441 esac ;;
22442esac
22443ac_abs_top_builddir=$ac_pwd
22444ac_abs_builddir=$ac_pwd$ac_dir_suffix
22445# for backward compatibility:
22446ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022447
22448case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022449 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022450 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022451 ac_top_srcdir=$ac_top_builddir_sub
22452 ac_abs_top_srcdir=$ac_pwd ;;
22453 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022454 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022455 ac_top_srcdir=$srcdir
22456 ac_abs_top_srcdir=$srcdir ;;
22457 *) # Relative name.
22458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22459 ac_top_srcdir=$ac_top_build_prefix$srcdir
22460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022461esac
Reid Spencera773bd52006-08-04 18:18:08 +000022462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022463
John Criswell7a73b802003-06-30 21:59:07 +000022464
Reid Spencera773bd52006-08-04 18:18:08 +000022465 case $ac_mode in
22466 :F)
22467 #
22468 # CONFIG_FILE
22469 #
John Criswell7a73b802003-06-30 21:59:07 +000022470
22471 case $INSTALL in
22472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022473 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022474 esac
John Criswell7a73b802003-06-30 21:59:07 +000022475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022477cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022478# If the template does not know about datarootdir, expand it.
22479# FIXME: This hack should be removed a few years after 2.60.
22480ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022481
22482case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022483 p
22484 q
22485}
22486/@datadir@/p
22487/@docdir@/p
22488/@infodir@/p
22489/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490/@mandir@/p
22491' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022492*datarootdir*) ac_datarootdir_seen=yes;;
22493*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22495echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022496_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022497cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022498 ac_datarootdir_hack='
22499 s&@datadir@&$datadir&g
22500 s&@docdir@&$docdir&g
22501 s&@infodir@&$infodir&g
22502 s&@localedir@&$localedir&g
22503 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022504 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022505esac
22506_ACEOF
22507
22508# Neutralize VPATH when `$srcdir' = `.'.
22509# Shell code in configure.ac might set extrasub.
22510# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511cat >>$CONFIG_STATUS <<_ACEOF
22512 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022513$extrasub
22514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022515cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022516:t
22517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022518s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022519s&@top_builddir@&$ac_top_builddir_sub&;t t
22520s&@srcdir@&$ac_srcdir&;t t
22521s&@abs_srcdir@&$ac_abs_srcdir&;t t
22522s&@top_srcdir@&$ac_top_srcdir&;t t
22523s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22524s&@builddir@&$ac_builddir&;t t
22525s&@abs_builddir@&$ac_abs_builddir&;t t
22526s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22527s&@INSTALL@&$ac_INSTALL&;t t
22528$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022529" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022530
Reid Spencera773bd52006-08-04 18:18:08 +000022531test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22532 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022534 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022535which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022536echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022537which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022538
Reid Spencera773bd52006-08-04 18:18:08 +000022539 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022540 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022541 -) cat "$tmp/out"; rm -f "$tmp/out";;
22542 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22543 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022544 ;;
22545 :H)
22546 #
22547 # CONFIG_HEADER
22548 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022549_ACEOF
22550
22551# Transform confdefs.h into a sed script `conftest.defines', that
22552# substitutes the proper values into config.h.in to produce config.h.
22553rm -f conftest.defines conftest.tail
22554# First, append a space to every undef/define line, to ease matching.
22555echo 's/$/ /' >conftest.defines
22556# Then, protect against being on the right side of a sed subst, or in
22557# an unquoted here document, in config.status. If some macros were
22558# called several times there might be several #defines for the same
22559# symbol, which is useless. But do not sort them, since the last
22560# AC_DEFINE must be honored.
22561ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22562# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22563# NAME is the cpp macro being defined, VALUE is the value it is being given.
22564# PARAMS is the parameter list in the macro definition--in most cases, it's
22565# just an empty string.
22566ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22567ac_dB='\\)[ (].*,\\1define\\2'
22568ac_dC=' '
22569ac_dD=' ,'
22570
22571uniq confdefs.h |
22572 sed -n '
22573 t rset
22574 :rset
22575 s/^[ ]*#[ ]*define[ ][ ]*//
22576 t ok
22577 d
22578 :ok
22579 s/[\\&,]/\\&/g
22580 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22581 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22582 ' >>conftest.defines
22583
22584# Remove the space that was appended to ease matching.
22585# Then replace #undef with comments. This is necessary, for
22586# example, in the case of _POSIX_SOURCE, which is predefined and required
22587# on some systems where configure will not decide to define it.
22588# (The regexp can be short, since the line contains either #define or #undef.)
22589echo 's/ $//
22590s,^[ #]*u.*,/* & */,' >>conftest.defines
22591
22592# Break up conftest.defines:
22593ac_max_sed_lines=50
22594
22595# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22596# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22597# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22598# et cetera.
22599ac_in='$ac_file_inputs'
22600ac_out='"$tmp/out1"'
22601ac_nxt='"$tmp/out2"'
22602
22603while :
22604do
22605 # Write a here document:
22606 cat >>$CONFIG_STATUS <<_ACEOF
22607 # First, check the format of the line:
22608 cat >"\$tmp/defines.sed" <<\\CEOF
22609/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22610/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22611b
22612:def
22613_ACEOF
22614 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22615 echo 'CEOF
22616 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22617 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22618 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22619 grep . conftest.tail >/dev/null || break
22620 rm -f conftest.defines
22621 mv conftest.tail conftest.defines
22622done
22623rm -f conftest.defines conftest.tail
22624
22625echo "ac_result=$ac_in" >>$CONFIG_STATUS
22626cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022627 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022628 echo "/* $configure_input */" >"$tmp/config.h"
22629 cat "$ac_result" >>"$tmp/config.h"
22630 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22631 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22632echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022633 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022634 rm -f $ac_file
22635 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022636 fi
22637 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022638 echo "/* $configure_input */"
22639 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022640 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022641 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022642 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022644 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22645echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022646 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022647 esac
John Criswell7a73b802003-06-30 21:59:07 +000022648
Reid Spencera773bd52006-08-04 18:18:08 +000022649
22650 case $ac_file$ac_mode in
22651 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022652 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022653 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022654 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022655 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022656 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022657 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022658 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022659 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022660 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022661 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022662 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022663 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022665 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022667 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022669 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022671 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022673 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022674 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022675 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022676 ${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 +000022677
22678 esac
22679done # for ac_tag
22680
John Criswell7a73b802003-06-30 21:59:07 +000022681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022682{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022684chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022685ac_clean_files=$ac_clean_files_save
22686
22687
22688# configure is writing to config.log, and then calls config.status.
22689# config.status does its own redirection, appending to config.log.
22690# Unfortunately, on DOS this fails, as config.log is still kept open
22691# by configure, so config.status won't be able to write to it; its
22692# output is simply discarded. So we exec the FD to /dev/null,
22693# effectively closing config.log, so it can be properly (re)opened and
22694# appended to by config.status. When coming back to configure, we
22695# need to make the FD available again.
22696if test "$no_create" != yes; then
22697 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022698 ac_config_status_args=
22699 test "$silent" = yes &&
22700 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022701 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022703 exec 5>>config.log
22704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22705 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022706 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022707fi
22708
John Criswell12399a12003-09-30 15:55:44 +000022709#
22710# CONFIG_SUBDIRS section.
22711#
22712if test "$no_recursion" != yes; then
22713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022714 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022715 ac_sub_configure_args=
22716 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022717 eval "set x $ac_configure_args"
22718 shift
22719 for ac_arg
22720 do
John Criswell12399a12003-09-30 15:55:44 +000022721 if test -n "$ac_prev"; then
22722 ac_prev=
22723 continue
22724 fi
22725 case $ac_arg in
22726 -cache-file | --cache-file | --cache-fil | --cache-fi \
22727 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22728 ac_prev=cache_file ;;
22729 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22730 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22731 | --c=*)
22732 ;;
22733 --config-cache | -C)
22734 ;;
22735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22736 ac_prev=srcdir ;;
22737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22738 ;;
22739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22740 ac_prev=prefix ;;
22741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022743 *)
22744 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022745 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022746 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022747 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022748 esac
22749 done
22750
22751 # Always prepend --prefix to ensure using the same prefix
22752 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022753 ac_arg="--prefix=$prefix"
22754 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022755 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022756 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022757 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022758
22759 ac_popdir=`pwd`
22760 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22761
22762 # Do not complain, so a configure script can configure whichever
22763 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022764 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022765
Reid Spencera773bd52006-08-04 18:18:08 +000022766 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022767 echo "$as_me:$LINENO: $ac_msg" >&5
22768 echo "$ac_msg" >&6
22769 { as_dir="$ac_dir"
22770 case $as_dir in #(
22771 -*) as_dir=./$as_dir;;
22772 esac
22773 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22774 as_dirs=
22775 while :; do
22776 case $as_dir in #(
22777 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22778 *) as_qdir=$as_dir;;
22779 esac
22780 as_dirs="'$as_qdir' $as_dirs"
22781 as_dir=`$as_dirname -- "$as_dir" ||
22782$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783 X"$as_dir" : 'X\(//\)[^/]' \| \
22784 X"$as_dir" : 'X\(//\)$' \| \
22785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22786echo X"$as_dir" |
22787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22788 s//\1/
22789 q
22790 }
22791 /^X\(\/\/\)[^/].*/{
22792 s//\1/
22793 q
22794 }
22795 /^X\(\/\/\)$/{
22796 s//\1/
22797 q
22798 }
22799 /^X\(\/\).*/{
22800 s//\1/
22801 q
22802 }
22803 s/.*/./; q'`
22804 test -d "$as_dir" && break
22805 done
22806 test -z "$as_dirs" || eval "mkdir $as_dirs"
22807 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22808echo "$as_me: error: cannot create directory $as_dir" >&2;}
22809 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022810 ac_builddir=.
22811
Reid Spencera773bd52006-08-04 18:18:08 +000022812case "$ac_dir" in
22813.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22814*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022816 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022817 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022818 case $ac_top_builddir_sub in
22819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22821 esac ;;
22822esac
22823ac_abs_top_builddir=$ac_pwd
22824ac_abs_builddir=$ac_pwd$ac_dir_suffix
22825# for backward compatibility:
22826ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022827
22828case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022829 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022830 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022831 ac_top_srcdir=$ac_top_builddir_sub
22832 ac_abs_top_srcdir=$ac_pwd ;;
22833 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022834 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022835 ac_top_srcdir=$srcdir
22836 ac_abs_top_srcdir=$srcdir ;;
22837 *) # Relative name.
22838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22839 ac_top_srcdir=$ac_top_build_prefix$srcdir
22840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022841esac
Reid Spencera773bd52006-08-04 18:18:08 +000022842ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022843
22844
Reid Spencera773bd52006-08-04 18:18:08 +000022845 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022846
22847 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022848 if test -f "$ac_srcdir/configure.gnu"; then
22849 ac_sub_configure=$ac_srcdir/configure.gnu
22850 elif test -f "$ac_srcdir/configure"; then
22851 ac_sub_configure=$ac_srcdir/configure
22852 elif test -f "$ac_srcdir/configure.in"; then
22853 # This should be Cygnus configure.
22854 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022855 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022856 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22857echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022858 ac_sub_configure=
22859 fi
22860
22861 # The recursion is here.
22862 if test -n "$ac_sub_configure"; then
22863 # Make the cache file name correct relative to the subdirectory.
22864 case $cache_file in
22865 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022866 *) # Relative name.
22867 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022868 esac
22869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022870 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22871echo "$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 +000022872 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022873 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22874 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022875 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22876echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22877 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022878 fi
22879
Reid Spencera773bd52006-08-04 18:18:08 +000022880 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022881 done
22882fi
22883