blob: d4687590183c50d3a907be42b9ace2cc3c67f51f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer537d9a72012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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 Takumia6fdcaa2013-01-01 10:00:19 +000012# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramer537d9a72012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Chandler Carruth5ebee9e2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Roman Divackyd14baf42012-12-13 16:07:19 +0000688ENABLE_CLANG_ARCMT
689ENABLE_CLANG_STATIC_ANALYZER
690ENABLE_CLANG_REWRITER
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000691ENABLE_OPTIMIZED
692ENABLE_PROFILING
693DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000694ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_EXPENSIVE_CHECKS
696EXPENSIVE_CHECKS
697DEBUG_RUNTIME
698DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000699KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700JIT
701TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000702ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000704LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000705ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000707ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000708ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000709ENABLE_TIMESTAMPS
Eric Christopherf0b3b742012-11-19 19:31:02 +0000710ENABLE_BACKTRACES
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711TARGETS_TO_BUILD
712LLVM_ENUM_TARGETS
713LLVM_ENUM_ASM_PRINTERS
714LLVM_ENUM_ASM_PARSERS
715LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716OPTIMIZE_OPTION
717EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000718EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000719CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000720BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000721INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000722NM
723ifGNUmake
724LN_S
725CMP
726CP
727DATE
728FIND
729MKDIR
730MV
731RANLIB
732AR
733RM
734SED
735TAR
736BINPWD
737GRAPHVIZ
738DOT
739FDP
740NEATO
741TWOPI
742CIRCO
743GV
744DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000745XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746INSTALL_PROGRAM
747INSTALL_SCRIPT
748INSTALL_DATA
749BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000750CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000752GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000753GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000754PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755ZIP
756OCAMLC
757OCAMLOPT
758OCAMLDEP
759OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000760GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000761HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762INSTALL_LTDL_TRUE
763INSTALL_LTDL_FALSE
764CONVENIENCE_LTDL_TRUE
765CONVENIENCE_LTDL_FALSE
766LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000769COVERED_SWITCH_DEFAULT
David Greened2f82162013-01-09 22:11:13 +0000770NO_MAYBE_UNINITIALIZED
771NO_UNINITIALIZED
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772USE_UDIS86
773USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000774USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000775XML2CONFIG
776LIBXML2_LIBS
777LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778HAVE_PTHREAD
779HUGE_VAL_SANITY
780MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000781SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000782SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000783LLVM_PREFIX
784LLVM_BINDIR
785LLVM_LIBDIR
786LLVM_DATADIR
787LLVM_DOCSDIR
788LLVM_ETCDIR
789LLVM_INCLUDEDIR
790LLVM_INFODIR
791LLVM_MANDIR
792LLVM_CONFIGTIME
793BINDINGS_TO_BUILD
794ALL_BINDINGS
795OCAML_LIBDIR
796ENABLE_VISIBILITY_INLINES_HIDDEN
797RPATH
798RDYNAMIC
Jordan Rose92080522012-10-01 18:40:32 +0000799program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000800LIBOBJS
801LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000802ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000803 ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000810CXX
811CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000812CCC
813CPP'
John Criswell0157f502010-03-19 21:31:39 +0000814ac_subdirs_all='projects/llvm-gcc
815projects/test-suite
816projects/llvm-test
817projects/poolalloc
818projects/llvm-poolalloc
819projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000821projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/llvm-java
824projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000825projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000826projects/llvm-kernel
827tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000854# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000863includedir='${prefix}/include'
864oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000874
875ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000876ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000877for ac_option
878do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000881 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000882 ac_prev=
883 continue
884 fi
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
Reid Spencera773bd52006-08-04 18:18:08 +0000893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000918 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000920 datadir=$ac_optarg ;;
921
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
John Criswell7a73b802003-06-30 21:59:07 +0000929 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000931 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000950 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
Reid Spencera773bd52006-08-04 18:18:08 +0000982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
John Criswell7a73b802003-06-30 21:59:07 +0000988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
Reid Spencera773bd52006-08-04 18:18:08 +00001012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
John Criswell7a73b802003-06-30 21:59:07 +00001017 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001018 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
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 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
Reid Spencera773bd52006-08-04 18:18:08 +00001086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
John Criswell7a73b802003-06-30 21:59:07 +00001096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001156 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001192 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 ;;
1202
1203 esac
1204done
1205
1206if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001210fi
1211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001217do
Reid Spencera773bd52006-08-04 18:18:08 +00001218 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001219 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001222 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
Reid Spencera773bd52006-08-04 18:18:08 +00001251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259
1260
John Criswell7a73b802003-06-30 21:59:07 +00001261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001264 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001265 ac_confdir=`$as_dirname -- "$0" ||
1266$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001288 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001289 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
Reid Spencera773bd52006-08-04 18:18:08 +00001295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001299fi
Reid Spencera773bd52006-08-04 18:18:08 +00001300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001329\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
John Criswell7a73b802003-06-30 21:59:07 +00001349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001382_ACEOF
1383
1384 cat <<\_ACEOF
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394 case $ac_init_help in
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001395 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001396 esac
1397 cat <<\_ACEOF
1398
1399Optional Features:
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001402 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001403 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001404 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyd14baf42012-12-13 16:07:19 +00001405 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1406 --enable-clang-static-analyzer
1407 Enable building of clang Static Analyzer (default is
1408 YES)
1409 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001410 --enable-optimized Compile with optimizations enabled (default is NO)
1411 --enable-profiling Compile with profiling enabled (default is NO)
1412 --enable-assertions Compile with assertion checks enabled (default is
1413 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001414 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001415 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001416 Compile with expensive debug checks enabled (default
1417 is NO)
1418 --enable-debug-runtime Build runtime libs with debug symbols (default is
1419 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001420 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1421 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001422 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001423 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001424 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001425 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001426 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001427 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001428 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001429 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001430 --enable-shared Build a shared library and link tools against it
1431 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001432 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001433 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001434 --enable-timestamps Enable embedding timestamp information in build
1435 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001436 --enable-backtraces Enable embedding backtraces on crash (default is
1437 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001438 --enable-targets Build specific host targets: all or
1439 target1,target2,... Valid targets are: host, x86,
Eric Christopher06b42342012-11-14 22:09:20 +00001440 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1441 msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001442 --enable-experimental-targets
1443 Build experimental host targets: disable or
1444 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001445 --enable-bindings Build specific language bindings:
1446 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001447 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001448 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001449
1450Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001453 --with-optimize-option Select the compiler options to use for optimized
1454 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001455 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001456 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001459 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1462 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001463 --with-c-include-dirs Colon separated list of directories clang will
1464 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001465 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001469 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001470 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001471 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001472 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1476
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001479 CC C compiler command
1480 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001484 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001487 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
Eric Christopherf33ab862011-12-21 00:52:44 +00001492Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001493_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001494ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001500 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001501 ac_builddir=.
1502
Reid Spencera773bd52006-08-04 18:18:08 +00001503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001507 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001518
1519case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001520 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001521 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001525 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001532esac
Reid Spencera773bd52006-08-04 18:18:08 +00001533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001534
Reid Spencera773bd52006-08-04 18:18:08 +00001535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001543 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001547 done
1548fi
1549
Reid Spencera773bd52006-08-04 18:18:08 +00001550test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001551if $ac_init_version; then
1552 cat <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001553LLVM configure 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001556Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001561Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001563 exit
John Criswell7a73b802003-06-30 21:59:07 +00001564fi
Reid Spencera773bd52006-08-04 18:18:08 +00001565cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001566This file contains any messages produced by compilers while
1567running configure, to aid debugging if configure makes a mistake.
1568
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001569It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001570generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001571
1572 $ $0 $@
1573
1574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001575exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001576{
1577cat <<_ASUNAME
1578## --------- ##
1579## Platform. ##
1580## --------- ##
1581
1582hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590
1591/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001594/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001595/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598
1599_ASUNAME
1600
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001606 echo "PATH: $as_dir"
1607done
Reid Spencera773bd52006-08-04 18:18:08 +00001608IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001609
1610} >&5
1611
1612cat >&5 <<_ACEOF
1613
1614
1615## ----------- ##
1616## Core tests. ##
1617## ----------- ##
1618
1619_ACEOF
1620
1621
1622# Keep a trace of the command line.
1623# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001624# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001625# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001626# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001627ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001628ac_configure_args0=
1629ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001630ac_must_keep_next=false
1631for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001632do
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 for ac_arg
1634 do
1635 case $ac_arg in
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1639 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001640 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 esac
1643 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001648 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001650 case $ac_arg in
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657 esac
1658 ;;
1659 -* ) ac_must_keep_next=true ;;
1660 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001662 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001663 ;;
1664 esac
1665 done
John Criswell7a73b802003-06-30 21:59:07 +00001666done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668$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 +00001669
1670# When interrupted or exit'd, cleanup temporary files, and complete
1671# config.log. We remove comments because anyway the quotes in there
1672# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001673# WARNING: Use '\'' to represent an apostrophe within the trap.
1674# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001675trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1677 {
1678 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001679
John Criswell7a73b802003-06-30 21:59:07 +00001680 cat <<\_ASBOX
1681## ---------------- ##
1682## Cache variables. ##
1683## ---------------- ##
1684_ASBOX
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001687(
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001699 esac ;;
1700 esac
1701 done
John Criswell7a73b802003-06-30 21:59:07 +00001702 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001705 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001709 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001711 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001712 esac |
1713 sort
1714)
John Criswell7a73b802003-06-30 21:59:07 +00001715 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001716
1717 cat <<\_ASBOX
1718## ----------------- ##
1719## Output variables. ##
1720## ----------------- ##
1721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_vars
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732
1733 if test -n "$ac_subst_files"; then
1734 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001735## ------------------- ##
1736## File substitutions. ##
1737## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001738_ASBOX
1739 echo
1740 for ac_var in $ac_subst_files
1741 do
Reid Spencera773bd52006-08-04 18:18:08 +00001742 eval ac_val=\$$ac_var
1743 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001745 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001746 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001747 done | sort
1748 echo
1749 fi
1750
John Criswell7a73b802003-06-30 21:59:07 +00001751 if test -s confdefs.h; then
1752 cat <<\_ASBOX
1753## ----------- ##
1754## confdefs.h. ##
1755## ----------- ##
1756_ASBOX
1757 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001758 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759 echo
1760 fi
1761 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001764 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001767 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001768' 0
John Criswell7a73b802003-06-30 21:59:07 +00001769for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001771done
1772ac_signal=0
1773
1774# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001775rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001776
1777# Predefined preprocessor variables.
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_NAME "$PACKAGE_NAME"
1781_ACEOF
1782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783
John Criswell7a73b802003-06-30 21:59:07 +00001784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_VERSION "$PACKAGE_VERSION"
1791_ACEOF
1792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_STRING "$PACKAGE_STRING"
1796_ACEOF
1797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798
John Criswell7a73b802003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801_ACEOF
1802
1803
1804# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001806if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001808elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814shift
1815for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001816do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1822 fi
1823done
1824
1825if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001831 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001834 esac
1835 fi
1836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 >$cache_file
1840fi
1841
1842# Check that the precious variables saved in the cache have kept the same
1843# value.
1844ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001845for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001850 case $ac_old_set,$ac_new_set in
1851 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001854 ac_cache_corrupted=: ;;
1855 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001869 fi;;
1870 esac
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1873 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001875 *) ac_arg=$ac_var=$ac_new_val ;;
1876 esac
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001880 esac
1881 fi
1882done
1883if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
Reid Spencera773bd52006-08-04 18:18:08 +00001914
John Criswell7a73b802003-06-30 21:59:07 +00001915ac_ext=c
1916ac_cpp='$CPP $CPPFLAGS'
1917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001923cat >>confdefs.h <<\_ACEOF
1924#define LLVM_VERSION_MAJOR 3
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001929#define LLVM_VERSION_MINOR 3
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001930_ACEOF
1931
1932
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001933LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001934
1935
1936
1937
1938
1939
1940
John Criswell7a73b802003-06-30 21:59:07 +00001941ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001942for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001943 if test -f "$ac_dir/install-sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
1947 elif test -f "$ac_dir/install.sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
1951 elif test -f "$ac_dir/shtool"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
John Criswell7a73b802003-06-30 21:59:07 +00001956done
1957if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001961fi
Reid Spencera773bd52006-08-04 18:18:08 +00001962
1963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
John Criswell7a73b802003-06-30 21:59:07 +00001971
John Criswell392aaa32003-07-22 19:18:09 +00001972
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001974 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001975 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1976echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1977 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001978 fi
John Criswell93e1c722003-09-15 17:04:06 +00001979fi
1980
Nick Lewycky83fc4472009-09-29 05:48:51 +00001981ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001982ac_cpp='$CPP $CPPFLAGS'
1983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001986if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001987 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001988 do
1989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001995else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001998else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 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 +00002006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002008 break 2
2009 fi
2010done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011done
Reid Spencera773bd52006-08-04 18:18:08 +00002012IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002013
2014fi
2015fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002016CC=$ac_cv_prog_CC
2017if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { echo "$as_me:$LINENO: result: $CC" >&5
2019echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 { echo "$as_me:$LINENO: result: no" >&5
2022echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002023fi
2024
Reid Spencera773bd52006-08-04 18:18:08 +00002025
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002026 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002027 done
2028fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029if test -z "$CC"; then
2030 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002031 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002032do
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002039else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 if test -n "$ac_ct_CC"; then
2041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 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 +00002050 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002052 break 2
2053 fi
2054done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055done
Reid Spencera773bd52006-08-04 18:18:08 +00002056IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002057
2058fi
2059fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002065 { echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002067fi
2068
Reid Spencera773bd52006-08-04 18:18:08 +00002069
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002071done
John Criswell7a73b802003-06-30 21:59:07 +00002072
Reid Spencera773bd52006-08-04 18:18:08 +00002073 if test "x$ac_ct_CC" = x; then
2074 CC=""
2075 else
2076 case $cross_compiling:$ac_tool_warned in
2077yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2079whose name does not start with the host triplet. If you think this
2080configuration is useful to you, please write to autoconf@gnu.org." >&5
2081echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2082whose name does not start with the host triplet. If you think this
2083configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002084ac_tool_warned=yes ;;
2085esac
2086 CC=$ac_ct_CC
2087 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002088fi
2089
John Criswell7a73b802003-06-30 21:59:07 +00002090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002091test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2092See \`config.log' for more details." >&5
2093echo "$as_me: error: no acceptable C compiler found in \$PATH
2094See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002096
John Criswell7a73b802003-06-30 21:59:07 +00002097# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098echo "$as_me:$LINENO: checking for C compiler version" >&5
2099ac_compiler=`set X $ac_compile; echo $2`
2100{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002101case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002107 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110{ (ac_try="$ac_compiler -v >&5"
2111case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114esac
2115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -v >&5") 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120{ (ac_try="$ac_compiler -V >&5"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_compiler -V >&5") 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002131cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h. */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002137
John Criswell7a73b802003-06-30 21:59:07 +00002138int
2139main ()
2140{
2141
2142 ;
2143 return 0;
2144}
2145_ACEOF
2146ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002148# Try to create an executable without -o first, disregard a.out.
2149# It will help us diagnose broken compilers, and finding out an intuition
2150# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2152echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2153ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154#
2155# List of possible output files, starting from the most likely.
2156# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2157# only as a last resort. b.out is created by i960 compilers.
2158ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2159#
2160# The IRIX 6 linker writes into existing files which may not be
2161# executable, retaining their permissions. Remove them first so a
2162# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002163ac_rmfiles=
2164for ac_file in $ac_files
2165do
2166 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002168 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2169 esac
2170done
2171rm -f $ac_rmfiles
2172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002174case "(($ac_try" in
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2177esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002179 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002180 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2184# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2185# in a Makefile. We should not override ac_cv_exeext if it was cached,
2186# so that the user can short-circuit this test for compilers unknown to
2187# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002188for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002189do
2190 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002191 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002193 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 # We found the default executable, but exeext='' is most
2196 # certainly right.
2197 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002198 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002200 then :; else
2201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 fi
2203 # We set ac_cv_exeext here because the later test for it is not
2204 # safe: cross compilers may not add the suffix if given an `-o'
2205 # argument, so we may need to know it at that point already.
2206 # Even if this section looks crufty: it has the advantage of
2207 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002208 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002209 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002210 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002211 esac
2212done
Reid Spencera773bd52006-08-04 18:18:08 +00002213test "$ac_cv_exeext" = no && ac_cv_exeext=
2214
John Criswell7a73b802003-06-30 21:59:07 +00002215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002217sed 's/^/| /' conftest.$ac_ext >&5
2218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002219{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220See \`config.log' for more details." >&5
2221echo "$as_me: error: C compiler cannot create executables
2222See \`config.log' for more details." >&2;}
2223 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002224fi
John Criswell7a73b802003-06-30 21:59:07 +00002225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002226ac_exeext=$ac_cv_exeext
2227{ echo "$as_me:$LINENO: result: $ac_file" >&5
2228echo "${ECHO_T}$ac_file" >&6; }
2229
2230# Check that the compiler produces executables we can run. If not, either
2231# the compiler is broken, or we cross compile.
2232{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2234# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235# If not cross compiling, check that we can run a simple program.
2236if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2241esac
2242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 (eval "$ac_try") 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 cross_compiling=no
2248 else
2249 if test "$cross_compiling" = maybe; then
2250 cross_compiling=yes
2251 else
2252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot run C compiled programs.
2256If you meant to cross compile, use \`--host'.
2257See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260 fi
2261fi
2262{ echo "$as_me:$LINENO: result: yes" >&5
2263echo "${ECHO_T}yes" >&6; }
2264
2265rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002266ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002267# Check that the compiler produces executables we can run. If not, either
2268# the compiler is broken, or we cross compile.
2269{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2271{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272echo "${ECHO_T}$cross_compiling" >&6; }
2273
2274{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2276if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002277case "(($ac_try" in
2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279 *) ac_try_echo=$ac_try;;
2280esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002282 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002283 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2288# work properly (i.e., refer to `conftest.exe'), while it won't with
2289# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002290for ac_file in conftest.exe conftest conftest.*; do
2291 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002292 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002295 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002296 * ) break;;
2297 esac
2298done
2299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002306
2307rm -f conftest$ac_cv_exeext
2308{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002310
2311rm -f conftest.$ac_ext
2312EXEEXT=$ac_cv_exeext
2313ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002314{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2316if test "${ac_cv_objext+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002319 cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h. */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002325
John Criswell7a73b802003-06-30 21:59:07 +00002326int
2327main ()
2328{
2329
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002341 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002342 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002345 for ac_file in conftest.o conftest.obj conftest.*; do
2346 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002347 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350 break;;
2351 esac
2352done
2353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002355sed 's/^/| /' conftest.$ac_ext >&5
2356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002357{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&5
2359echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363
John Criswell7a73b802003-06-30 21:59:07 +00002364rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002366{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002368OBJEXT=$ac_cv_objext
2369ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002370{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2372if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002381
John Criswell7a73b802003-06-30 21:59:07 +00002382int
2383main ()
2384{
2385#ifndef __GNUC__
2386 choke me
2387#endif
2388
2389 ;
2390 return 0;
2391}
2392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002393rm -f conftest.$ac_objext
2394if { (ac_try="$ac_compile"
2395case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398esac
2399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_compile") 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421esac
2422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_try") 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002427 ac_compiler_gnu=yes
2428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429 echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434
Reid Spencera773bd52006-08-04 18:18:08 +00002435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002437
2438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002439{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2440echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2441GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442ac_test_CFLAGS=${CFLAGS+set}
2443ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002444{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2445echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2446if test "${ac_cv_prog_cc_g+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002448else
Reid Spencera773bd52006-08-04 18:18:08 +00002449 ac_save_c_werror_flag=$ac_c_werror_flag
2450 ac_c_werror_flag=yes
2451 ac_cv_prog_cc_g=no
2452 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453 cat >conftest.$ac_ext <<_ACEOF
2454/* confdefs.h. */
2455_ACEOF
2456cat confdefs.h >>conftest.$ac_ext
2457cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002458/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002459
John Criswell7a73b802003-06-30 21:59:07 +00002460int
2461main ()
2462{
2463
2464 ;
2465 return 0;
2466}
2467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002468rm -f conftest.$ac_objext
2469if { (ac_try="$ac_compile"
2470case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473esac
2474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_compile") 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496esac
2497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_try") 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 CFLAGS=""
2508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002513/* end confdefs.h. */
2514
2515int
2516main ()
2517{
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002523rm -f conftest.$ac_objext
2524if { (ac_try="$ac_compile"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551esac
2552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 :
Torok Edwin871384f2010-01-26 08:50:50 +00002558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559 echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002563 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002564 cat >conftest.$ac_ext <<_ACEOF
2565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002569/* end confdefs.h. */
2570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579rm -f conftest.$ac_objext
2580if { (ac_try="$ac_compile"
2581case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607esac
2608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_try") 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002613 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614else
2615 echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618
John Criswell7a73b802003-06-30 21:59:07 +00002619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620
Reid Spencera773bd52006-08-04 18:18:08 +00002621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623
Reid Spencera773bd52006-08-04 18:18:08 +00002624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626
Reid Spencera773bd52006-08-04 18:18:08 +00002627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_c_werror_flag=$ac_save_c_werror_flag
2629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002630{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2631echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632if test "$ac_test_CFLAGS" = set; then
2633 CFLAGS=$ac_save_CFLAGS
2634elif test $ac_cv_prog_cc_g = yes; then
2635 if test "$GCC" = yes; then
2636 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002637 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002639 fi
2640else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641 if test "$GCC" = yes; then
2642 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002643 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002645 fi
2646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2648echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2649if test "${ac_cv_prog_cc_c89+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651else
Reid Spencera773bd52006-08-04 18:18:08 +00002652 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659/* end confdefs.h. */
2660#include <stdarg.h>
2661#include <stdio.h>
2662#include <sys/types.h>
2663#include <sys/stat.h>
2664/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2665struct buf { int x; };
2666FILE * (*rcsopen) (struct buf *, struct stat *, int);
2667static char *e (p, i)
2668 char **p;
2669 int i;
2670{
2671 return p[i];
2672}
2673static char *f (char * (*g) (char **, int), char **p, ...)
2674{
2675 char *s;
2676 va_list v;
2677 va_start (v,p);
2678 s = g (p, va_arg (v,int));
2679 va_end (v);
2680 return s;
2681}
2682
2683/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2684 function prototypes and stuff, but not '\xHH' hex character constants.
2685 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002686 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2688 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002689 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2691
Reid Spencera773bd52006-08-04 18:18:08 +00002692/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2693 inside strings and character constants. */
2694#define FOO(x) 'x'
2695int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2696
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697int test (int i, double x);
2698struct s1 {int (*f) (int a);};
2699struct s2 {int (*f) (double a);};
2700int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701int argc;
2702char **argv;
2703int
2704main ()
2705{
2706return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2707 ;
2708 return 0;
2709}
2710_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002711for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002713do
2714 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002715 rm -f conftest.$ac_objext
2716if { (ac_try="$ac_compile"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compile") 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743esac
2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_try") 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002749 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750else
2751 echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756
Reid Spencera773bd52006-08-04 18:18:08 +00002757rm -f core conftest.err conftest.$ac_objext
2758 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759done
Reid Spencera773bd52006-08-04 18:18:08 +00002760rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002761CC=$ac_save_CC
2762
2763fi
Reid Spencera773bd52006-08-04 18:18:08 +00002764# AC_CACHE_VAL
2765case "x$ac_cv_prog_cc_c89" in
2766 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 { echo "$as_me:$LINENO: result: none needed" >&5
2768echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002769 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002770 { echo "$as_me:$LINENO: result: unsupported" >&5
2771echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002772 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002773 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002774 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2775echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002776esac
2777
John Criswell0c38eaf2003-09-10 15:17:25 +00002778
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
Eric Christopherffee5722011-09-16 20:36:25 +00002785ac_ext=cpp
2786ac_cpp='$CXXCPP $CPPFLAGS'
2787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790if test -z "$CXX"; then
2791 if test -n "$CCC"; then
2792 CXX=$CCC
2793 else
2794 if test -n "$ac_tool_prefix"; then
2795 for ac_prog in clang++ llvm-g++ g++
2796 do
2797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801if test "${ac_cv_prog_CXX+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804 if test -n "$CXX"; then
2805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818done
2819done
2820IFS=$as_save_IFS
2821
2822fi
2823fi
2824CXX=$ac_cv_prog_CXX
2825if test -n "$CXX"; then
2826 { echo "$as_me:$LINENO: result: $CXX" >&5
2827echo "${ECHO_T}$CXX" >&6; }
2828else
2829 { echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6; }
2831fi
2832
2833
2834 test -n "$CXX" && break
2835 done
2836fi
2837if test -z "$CXX"; then
2838 ac_ct_CXX=$CXX
2839 for ac_prog in clang++ llvm-g++ g++
2840do
2841 # Extract the first word of "$ac_prog", so it can be a program name with args.
2842set dummy $ac_prog; ac_word=$2
2843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 if test -n "$ac_ct_CXX"; then
2849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CXX="$ac_prog"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862done
2863done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2869if test -n "$ac_ct_CXX"; then
2870 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2871echo "${ECHO_T}$ac_ct_CXX" >&6; }
2872else
2873 { echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6; }
2875fi
2876
2877
2878 test -n "$ac_ct_CXX" && break
2879done
2880
2881 if test "x$ac_ct_CXX" = x; then
2882 CXX="g++"
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885yes:)
2886{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887whose name does not start with the host triplet. If you think this
2888configuration is useful to you, please write to autoconf@gnu.org." >&5
2889echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890whose name does not start with the host triplet. If you think this
2891configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892ac_tool_warned=yes ;;
2893esac
2894 CXX=$ac_ct_CXX
2895 fi
2896fi
2897
2898 fi
2899fi
2900# Provide some information about the compiler.
2901echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2902ac_compiler=`set X $ac_compile; echo $2`
2903{ (ac_try="$ac_compiler --version >&5"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler --version >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913{ (ac_try="$ac_compiler -v >&5"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -v >&5") 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923{ (ac_try="$ac_compiler -V >&5"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compiler -V >&5") 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933
2934{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2935echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2936if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939 cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h. */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h. */
2945
2946int
2947main ()
2948{
2949#ifndef __GNUC__
2950 choke me
2951#endif
2952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext
2958if { (ac_try="$ac_compile"
2959case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 ac_compiler_gnu=yes
2992else
2993 echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 ac_compiler_gnu=no
2997fi
2998
2999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3001
3002fi
3003{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3004echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3005GXX=`test $ac_compiler_gnu = yes && echo yes`
3006ac_test_CXXFLAGS=${CXXFLAGS+set}
3007ac_save_CXXFLAGS=$CXXFLAGS
3008{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3009echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3010if test "${ac_cv_prog_cxx_g+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3014 ac_cxx_werror_flag=yes
3015 ac_cv_prog_cxx_g=no
3016 CXXFLAGS="-g"
3017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023
3024int
3025main ()
3026{
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032rm -f conftest.$ac_objext
3033if { (ac_try="$ac_compile"
3034case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; } &&
3056 { ac_try='test -s conftest.$ac_objext'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_prog_cxx_g=yes
3067else
3068 echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 CXXFLAGS=""
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 :
3122else
3123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3127 CXXFLAGS="-g"
3128 cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
3134
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
3144if { (ac_try="$ac_compile"
3145case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 ac_cv_prog_cxx_g=yes
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182
3183fi
3184
3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186fi
3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3193fi
3194{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3195echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3196if test "$ac_test_CXXFLAGS" = set; then
3197 CXXFLAGS=$ac_save_CXXFLAGS
3198elif test $ac_cv_prog_cxx_g = yes; then
3199 if test "$GXX" = yes; then
3200 CXXFLAGS="-g -O2"
3201 else
3202 CXXFLAGS="-g"
3203 fi
3204else
3205 if test "$GXX" = yes; then
3206 CXXFLAGS="-O2"
3207 else
3208 CXXFLAGS=
3209 fi
3210fi
3211ac_ext=c
3212ac_cpp='$CPP $CPPFLAGS'
3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3223echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224# On Suns, sometimes $CPP names a directory.
3225if test -n "$CPP" && test -d "$CPP"; then
3226 CPP=
3227fi
3228if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003229 if test "${ac_cv_prog_CPP+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231else
3232 # Double quotes because CPP needs to be expanded
3233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 do
3235 ac_preproc_ok=false
3236for ac_c_preproc_warn_flag in '' yes
3237do
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003244 cat >conftest.$ac_ext <<_ACEOF
3245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249/* end confdefs.h. */
3250#ifdef __STDC__
3251# include <limits.h>
3252#else
3253# include <assert.h>
3254#endif
3255 Syntax error
3256_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003257if { (ac_try="$ac_cpp conftest.$ac_ext"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
3272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273 else
3274 ac_cpp_err=
3275 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277 ac_cpp_err=yes
3278fi
3279if test -z "$ac_cpp_err"; then
3280 :
3281else
3282 echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 # Broken: fails on valid input.
3286continue
3287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003288
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289rm -f conftest.err conftest.$ac_ext
3290
Reid Spencera773bd52006-08-04 18:18:08 +00003291 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003293 cat >conftest.$ac_ext <<_ACEOF
3294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298/* end confdefs.h. */
3299#include <ac_nonexistent.h>
3300_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003301if { (ac_try="$ac_cpp conftest.$ac_ext"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } >/dev/null; then
3314 if test -s conftest.err; then
3315 ac_cpp_err=$ac_c_preproc_warn_flag
3316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3317 else
3318 ac_cpp_err=
3319 fi
3320else
3321 ac_cpp_err=yes
3322fi
3323if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324 # Broken: success on invalid input.
3325continue
3326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330 # Passes both tests.
3331ac_preproc_ok=:
3332break
3333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003334
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335rm -f conftest.err conftest.$ac_ext
3336
3337done
3338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003340if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341 break
3342fi
3343
3344 done
3345 ac_cv_prog_CPP=$CPP
3346
3347fi
3348 CPP=$ac_cv_prog_CPP
3349else
3350 ac_cv_prog_CPP=$CPP
3351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003352{ echo "$as_me:$LINENO: result: $CPP" >&5
3353echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354ac_preproc_ok=false
3355for ac_c_preproc_warn_flag in '' yes
3356do
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368/* end confdefs.h. */
3369#ifdef __STDC__
3370# include <limits.h>
3371#else
3372# include <assert.h>
3373#endif
3374 Syntax error
3375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376if { (ac_try="$ac_cpp conftest.$ac_ext"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null; then
3389 if test -s conftest.err; then
3390 ac_cpp_err=$ac_c_preproc_warn_flag
3391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3392 else
3393 ac_cpp_err=
3394 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003395else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003396 ac_cpp_err=yes
3397fi
3398if test -z "$ac_cpp_err"; then
3399 :
3400else
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404 # Broken: fails on valid input.
3405continue
3406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408rm -f conftest.err conftest.$ac_ext
3409
Reid Spencera773bd52006-08-04 18:18:08 +00003410 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417/* end confdefs.h. */
3418#include <ac_nonexistent.h>
3419_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003420if { (ac_try="$ac_cpp conftest.$ac_ext"
3421case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424esac
3425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436 else
3437 ac_cpp_err=
3438 fi
3439else
3440 ac_cpp_err=yes
3441fi
3442if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443 # Broken: success on invalid input.
3444continue
3445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446 echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449 # Passes both tests.
3450ac_preproc_ok=:
3451break
3452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454rm -f conftest.err conftest.$ac_ext
3455
3456done
3457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459if $ac_preproc_ok; then
3460 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3463See \`config.log' for more details." >&5
3464echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3465See \`config.log' for more details." >&2;}
3466 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467fi
3468
John Criswell7a73b802003-06-30 21:59:07 +00003469ac_ext=c
3470ac_cpp='$CPP $CPPFLAGS'
3471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474
John Criswell7a73b802003-06-30 21:59:07 +00003475
Dmitri Gribenkoa7303362013-01-09 15:25:30 +00003476if test "$CXX" = "clang++" ; then
3477 { echo "$as_me:$LINENO: checking whether clang works" >&5
3478echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3479 ac_ext=cpp
3480ac_cpp='$CXXCPP $CPPFLAGS'
3481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3484
3485
3486cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492#include <limits>
3493#if __has_include (<cxxabi.h>)
3494#include <cxxabi.h>
3495#endif
3496#if __has_include (<unwind.h>)
3497#include <unwind.h>
3498#endif
3499
3500int
3501main ()
3502{
3503
3504 ;
3505 return 0;
3506}
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (ac_try="$ac_compile"
3510case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513esac
3514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_compile") 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3523 { (case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_try") 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536esac
3537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_try") 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542
3543 { echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6; }
3545
3546else
3547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550
3551 { echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6; }
3553 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3554echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3555 { (exit 1); exit 1; }; }
3556
3557fi
3558
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566fi
3567
Eric Christopherffee5722011-09-16 20:36:25 +00003568
3569
3570if test -d ${srcdir}/projects/llvm-gcc ; then
3571 subdirs="$subdirs projects/llvm-gcc"
3572
3573fi
3574
3575if test -d ${srcdir}/projects/test-suite ; then
3576 subdirs="$subdirs projects/test-suite"
3577
3578fi
3579
3580if test -d ${srcdir}/projects/llvm-test ; then
3581 subdirs="$subdirs projects/llvm-test"
3582
3583fi
3584
3585if test -d ${srcdir}/projects/poolalloc ; then
3586 subdirs="$subdirs projects/poolalloc"
3587
3588fi
3589
3590if test -d ${srcdir}/projects/llvm-poolalloc ; then
3591 subdirs="$subdirs projects/llvm-poolalloc"
3592
3593fi
3594
3595for i in `ls ${srcdir}/projects`
3596do
3597 if test -d ${srcdir}/projects/${i} ; then
3598 case ${i} in
3599 sample) subdirs="$subdirs projects/sample"
3600 ;;
3601 privbracket) subdirs="$subdirs projects/privbracket"
3602 ;;
3603 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3604 ;;
3605 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3606;;
3607 llvm-java) subdirs="$subdirs projects/llvm-java"
3608 ;;
3609 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3610 ;;
3611 safecode) subdirs="$subdirs projects/safecode"
3612 ;;
3613 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3614 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003615 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003616 llvm-gcc) ;;
3617 test-suite) ;;
3618 llvm-test) ;;
3619 poolalloc) ;;
3620 llvm-poolalloc) ;;
3621 *)
3622 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3623echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3624 ;;
3625 esac
3626 fi
3627done
3628
3629# Check whether --enable-polly was given.
3630if test "${enable_polly+set}" = set; then
3631 enableval=$enable_polly;
3632else
3633 enableval=default
3634fi
3635
3636case "$enableval" in
3637 yes) ENABLE_POLLY=1
3638 ;;
3639 no) ENABLE_POLLY=0
3640 ;;
3641 default) ENABLE_POLLY=1
3642 ;;
3643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3644echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3645 { (exit 1); exit 1; }; } ;;
3646esac
3647
3648
3649if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3650 LLVM_HAS_POLLY=1
3651
3652 subdirs="$subdirs tools/polly"
3653
3654fi
3655
3656
3657# Make sure we can run config.sub.
3658$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3659 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3660echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3661 { (exit 1); exit 1; }; }
3662
3663{ echo "$as_me:$LINENO: checking build system type" >&5
3664echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3665if test "${ac_cv_build+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 ac_build_alias=$build_alias
3669test "x$ac_build_alias" = x &&
3670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3671test "x$ac_build_alias" = x &&
3672 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3673echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3674 { (exit 1); exit 1; }; }
3675ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3676 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3677echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3678 { (exit 1); exit 1; }; }
3679
3680fi
3681{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3682echo "${ECHO_T}$ac_cv_build" >&6; }
3683case $ac_cv_build in
3684*-*-*) ;;
3685*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3686echo "$as_me: error: invalid value of canonical build" >&2;}
3687 { (exit 1); exit 1; }; };;
3688esac
3689build=$ac_cv_build
3690ac_save_IFS=$IFS; IFS='-'
3691set x $ac_cv_build
3692shift
3693build_cpu=$1
3694build_vendor=$2
3695shift; shift
3696# Remember, the first character of IFS is used to create $*,
3697# except with old shells:
3698build_os=$*
3699IFS=$ac_save_IFS
3700case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3701
3702
3703{ echo "$as_me:$LINENO: checking host system type" >&5
3704echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3705if test "${ac_cv_host+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 if test "x$host_alias" = x; then
3709 ac_cv_host=$ac_cv_build
3710else
3711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3712 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3713echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3714 { (exit 1); exit 1; }; }
3715fi
3716
3717fi
3718{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3719echo "${ECHO_T}$ac_cv_host" >&6; }
3720case $ac_cv_host in
3721*-*-*) ;;
3722*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3723echo "$as_me: error: invalid value of canonical host" >&2;}
3724 { (exit 1); exit 1; }; };;
3725esac
3726host=$ac_cv_host
3727ac_save_IFS=$IFS; IFS='-'
3728set x $ac_cv_host
3729shift
3730host_cpu=$1
3731host_vendor=$2
3732shift; shift
3733# Remember, the first character of IFS is used to create $*,
3734# except with old shells:
3735host_os=$*
3736IFS=$ac_save_IFS
3737case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3738
3739
3740{ echo "$as_me:$LINENO: checking target system type" >&5
3741echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3742if test "${ac_cv_target+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 if test "x$target_alias" = x; then
3746 ac_cv_target=$ac_cv_host
3747else
3748 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3749 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3750echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3751 { (exit 1); exit 1; }; }
3752fi
3753
3754fi
3755{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3756echo "${ECHO_T}$ac_cv_target" >&6; }
3757case $ac_cv_target in
3758*-*-*) ;;
3759*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3760echo "$as_me: error: invalid value of canonical target" >&2;}
3761 { (exit 1); exit 1; }; };;
3762esac
3763target=$ac_cv_target
3764ac_save_IFS=$IFS; IFS='-'
3765set x $ac_cv_target
3766shift
3767target_cpu=$1
3768target_vendor=$2
3769shift; shift
3770# Remember, the first character of IFS is used to create $*,
3771# except with old shells:
3772target_os=$*
3773IFS=$ac_save_IFS
3774case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3775
3776
3777# The aliases save the names the user supplied, while $host etc.
3778# will get canonicalized.
3779test -n "$target_alias" &&
3780 test "$program_prefix$program_suffix$program_transform_name" = \
3781 NONENONEs,x,x, &&
3782 program_prefix=${target_alias}-
3783
3784{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3785echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3786if test "${llvm_cv_os_type+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 case $host in
3790 *-*-aix*)
3791 llvm_cv_link_all_option="-Wl,--whole-archive"
3792 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3793 llvm_cv_os_type="AIX"
3794 llvm_cv_platform_type="Unix" ;;
3795 *-*-irix*)
3796 llvm_cv_link_all_option="-Wl,--whole-archive"
3797 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798 llvm_cv_os_type="IRIX"
3799 llvm_cv_platform_type="Unix" ;;
3800 *-*-cygwin*)
3801 llvm_cv_link_all_option="-Wl,--whole-archive"
3802 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803 llvm_cv_os_type="Cygwin"
3804 llvm_cv_platform_type="Unix" ;;
3805 *-*-darwin*)
3806 llvm_cv_link_all_option="-Wl,-all_load"
3807 llvm_cv_no_link_all_option="-Wl,-noall_load"
3808 llvm_cv_os_type="Darwin"
3809 llvm_cv_platform_type="Unix" ;;
3810 *-*-minix*)
3811 llvm_cv_link_all_option="-Wl,-all_load"
3812 llvm_cv_no_link_all_option="-Wl,-noall_load"
3813 llvm_cv_os_type="Minix"
3814 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003815 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003816 llvm_cv_link_all_option="-Wl,--whole-archive"
3817 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3818 llvm_cv_os_type="FreeBSD"
3819 llvm_cv_platform_type="Unix" ;;
3820 *-*-openbsd*)
3821 llvm_cv_link_all_option="-Wl,--whole-archive"
3822 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823 llvm_cv_os_type="OpenBSD"
3824 llvm_cv_platform_type="Unix" ;;
3825 *-*-netbsd*)
3826 llvm_cv_link_all_option="-Wl,--whole-archive"
3827 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828 llvm_cv_os_type="NetBSD"
3829 llvm_cv_platform_type="Unix" ;;
3830 *-*-dragonfly*)
3831 llvm_cv_link_all_option="-Wl,--whole-archive"
3832 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833 llvm_cv_os_type="DragonFly"
3834 llvm_cv_platform_type="Unix" ;;
3835 *-*-hpux*)
3836 llvm_cv_link_all_option="-Wl,--whole-archive"
3837 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838 llvm_cv_os_type="HP-UX"
3839 llvm_cv_platform_type="Unix" ;;
3840 *-*-interix*)
3841 llvm_cv_link_all_option="-Wl,--whole-archive"
3842 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843 llvm_cv_os_type="Interix"
3844 llvm_cv_platform_type="Unix" ;;
3845 *-*-linux*)
3846 llvm_cv_link_all_option="-Wl,--whole-archive"
3847 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848 llvm_cv_os_type="Linux"
3849 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003850 *-*-gnu*)
3851 llvm_cv_link_all_option="-Wl,--whole-archive"
3852 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853 llvm_cv_os_type="GNU"
3854 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003855 *-*-solaris*)
3856 llvm_cv_link_all_option="-Wl,-z,allextract"
3857 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3858 llvm_cv_os_type="SunOS"
3859 llvm_cv_platform_type="Unix" ;;
3860 *-*-auroraux*)
3861 llvm_cv_link_all_option="-Wl,-z,allextract"
3862 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3863 llvm_cv_os_type="AuroraUX"
3864 llvm_cv_platform_type="Unix" ;;
3865 *-*-win32*)
3866 llvm_cv_link_all_option="-Wl,--whole-archive"
3867 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3868 llvm_cv_os_type="Win32"
3869 llvm_cv_platform_type="Win32" ;;
3870 *-*-mingw*)
3871 llvm_cv_link_all_option="-Wl,--whole-archive"
3872 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873 llvm_cv_os_type="MingW"
3874 llvm_cv_platform_type="Win32" ;;
3875 *-*-haiku*)
3876 llvm_cv_link_all_option="-Wl,--whole-archive"
3877 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878 llvm_cv_os_type="Haiku"
3879 llvm_cv_platform_type="Unix" ;;
3880 *-unknown-eabi*)
3881 llvm_cv_link_all_option="-Wl,--whole-archive"
3882 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883 llvm_cv_os_type="Freestanding"
3884 llvm_cv_platform_type="Unix" ;;
3885 *-unknown-elf*)
3886 llvm_cv_link_all_option="-Wl,--whole-archive"
3887 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888 llvm_cv_os_type="Freestanding"
3889 llvm_cv_platform_type="Unix" ;;
3890 *)
3891 llvm_cv_link_all_option=""
3892 llvm_cv_no_link_all_option=""
3893 llvm_cv_os_type="Unknown"
3894 llvm_cv_platform_type="Unknown" ;;
3895esac
3896fi
3897{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3898echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3899
3900{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3901echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3902if test "${llvm_cv_target_os_type+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905 case $target in
3906 *-*-aix*)
3907 llvm_cv_target_os_type="AIX" ;;
3908 *-*-irix*)
3909 llvm_cv_target_os_type="IRIX" ;;
3910 *-*-cygwin*)
3911 llvm_cv_target_os_type="Cygwin" ;;
3912 *-*-darwin*)
3913 llvm_cv_target_os_type="Darwin" ;;
3914 *-*-minix*)
3915 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003916 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003917 llvm_cv_target_os_type="FreeBSD" ;;
3918 *-*-openbsd*)
3919 llvm_cv_target_os_type="OpenBSD" ;;
3920 *-*-netbsd*)
3921 llvm_cv_target_os_type="NetBSD" ;;
3922 *-*-dragonfly*)
3923 llvm_cv_target_os_type="DragonFly" ;;
3924 *-*-hpux*)
3925 llvm_cv_target_os_type="HP-UX" ;;
3926 *-*-interix*)
3927 llvm_cv_target_os_type="Interix" ;;
3928 *-*-linux*)
3929 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003930 *-*-gnu*)
3931 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003932 *-*-solaris*)
3933 llvm_cv_target_os_type="SunOS" ;;
3934 *-*-auroraux*)
3935 llvm_cv_target_os_type="AuroraUX" ;;
3936 *-*-win32*)
3937 llvm_cv_target_os_type="Win32" ;;
3938 *-*-mingw*)
3939 llvm_cv_target_os_type="MingW" ;;
3940 *-*-haiku*)
3941 llvm_cv_target_os_type="Haiku" ;;
3942 *-*-rtems*)
3943 llvm_cv_target_os_type="RTEMS" ;;
3944 *-*-nacl*)
3945 llvm_cv_target_os_type="NativeClient" ;;
3946 *-unknown-eabi*)
3947 llvm_cv_target_os_type="Freestanding" ;;
3948 *)
3949 llvm_cv_target_os_type="Unknown" ;;
3950esac
3951fi
3952{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3953echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3954
3955if test "$llvm_cv_os_type" = "Unknown" ; then
3956 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3957echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3958 { (exit 1); exit 1; }; }
3959fi
3960
3961OS=$llvm_cv_os_type
3962
3963HOST_OS=$llvm_cv_os_type
3964
3965TARGET_OS=$llvm_cv_target_os_type
3966
3967
3968LINKALL=$llvm_cv_link_all_option
3969
3970NOLINKALL=$llvm_cv_no_link_all_option
3971
3972
3973case $llvm_cv_platform_type in
3974 Unix)
3975
3976cat >>confdefs.h <<\_ACEOF
3977#define LLVM_ON_UNIX 1
3978_ACEOF
3979
3980 LLVM_ON_UNIX=1
3981
3982 LLVM_ON_WIN32=0
3983
3984 ;;
3985 Win32)
3986
3987cat >>confdefs.h <<\_ACEOF
3988#define LLVM_ON_WIN32 1
3989_ACEOF
3990
3991 LLVM_ON_UNIX=0
3992
3993 LLVM_ON_WIN32=1
3994
3995 ;;
3996esac
3997
3998{ echo "$as_me:$LINENO: checking target architecture" >&5
3999echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4000if test "${llvm_cv_target_arch+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002else
4003 case $target in
4004 i?86-*) llvm_cv_target_arch="x86" ;;
4005 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4006 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4007 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004008 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004009 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4010 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004011 xcore-*) llvm_cv_target_arch="XCore" ;;
4012 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00004013 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004014 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00004015 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004016 *) llvm_cv_target_arch="Unknown" ;;
4017esac
4018fi
4019{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4020echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4021
4022if test "$llvm_cv_target_arch" = "Unknown" ; then
4023 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4024echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4025fi
4026
Eric Christopherffee5722011-09-16 20:36:25 +00004027case "$llvm_cv_target_arch" in
4028 x86) LLVM_NATIVE_ARCH="X86" ;;
4029 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4030 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4031esac
4032
4033ARCH=$llvm_cv_target_arch
4034
4035
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004036case $host in
4037 i?86-*) host_arch="x86" ;;
4038 amd64-* | x86_64-*) host_arch="x86_64" ;;
4039 sparc*-*) host_arch="Sparc" ;;
4040 powerpc*-*) host_arch="PowerPC" ;;
4041 arm*-*) host_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004042 mips-* | mips64-*) host_arch="Mips" ;;
4043 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004044 xcore-*) host_arch="XCore" ;;
4045 msp430-*) host_arch="MSP430" ;;
4046 hexagon-*) host_arch="Hexagon" ;;
4047 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004048 *) host_arch="Unknown" ;;
4049esac
4050
4051if test "$host_arch" = "Unknown" ; then
4052 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4053echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4054fi
4055
4056HOST_ARCH=$host_arch
4057
4058
Eric Christopherffee5722011-09-16 20:36:25 +00004059
4060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4062echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4063if test "${ac_cv_path_GREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066 # Extract the first word of "grep ggrep" to use in msg output
4067if test -z "$GREP"; then
4068set dummy grep ggrep; ac_prog_name=$2
4069if test "${ac_cv_path_GREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
Reid Spencera773bd52006-08-04 18:18:08 +00004072 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073# Loop through the user's path and test for each of PROGNAME-LIST
4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004075for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004076do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079 for ac_prog in grep ggrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4083 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004084 # Check for GNU $ac_path_GREP
4085case `"$ac_path_GREP" --version 2>&1` in
4086*GNU*)
4087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4088*)
4089 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004091 while :
4092 do
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_GREP="$ac_path_GREP"
4103 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004104 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4107 done
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109esac
4110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111
4112 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004113 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114done
4115
4116done
Reid Spencera773bd52006-08-04 18:18:08 +00004117IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004118
4119
4120fi
4121
4122GREP="$ac_cv_path_GREP"
4123if test -z "$GREP"; then
4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126 { (exit 1); exit 1; }; }
4127fi
4128
Reid Spencera773bd52006-08-04 18:18:08 +00004129else
4130 ac_cv_path_GREP=$GREP
4131fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133
Reid Spencera773bd52006-08-04 18:18:08 +00004134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4136echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004137 GREP="$ac_cv_path_GREP"
4138
4139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140{ echo "$as_me:$LINENO: checking for egrep" >&5
4141echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4142if test "${ac_cv_path_EGREP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004144else
4145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4146 then ac_cv_path_EGREP="$GREP -E"
4147 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148 # Extract the first word of "egrep" to use in msg output
4149if test -z "$EGREP"; then
4150set dummy egrep; ac_prog_name=$2
4151if test "${ac_cv_path_EGREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
Reid Spencera773bd52006-08-04 18:18:08 +00004154 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004155# Loop through the user's path and test for each of PROGNAME-LIST
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004157for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 for ac_prog in egrep; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4164 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004166 # Check for GNU $ac_path_EGREP
4167case `"$ac_path_EGREP" --version 2>&1` in
4168*GNU*)
4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4170*)
4171 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004172 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004178 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP="$ac_path_EGREP"
4185 ac_path_EGREP_max=$ac_count
4186 fi
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191esac
4192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004193
4194 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004195 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004196done
4197
4198done
Reid Spencera773bd52006-08-04 18:18:08 +00004199IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004200
4201
4202fi
4203
4204EGREP="$ac_cv_path_EGREP"
4205if test -z "$EGREP"; then
4206 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4207echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4208 { (exit 1); exit 1; }; }
4209fi
4210
Reid Spencera773bd52006-08-04 18:18:08 +00004211else
4212 ac_cv_path_EGREP=$EGREP
4213fi
4214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004215
Reid Spencera773bd52006-08-04 18:18:08 +00004216 fi
4217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004218{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4219echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004220 EGREP="$ac_cv_path_EGREP"
4221
4222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004223{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4225if test "${ac_cv_header_stdc+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004228 cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h. */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004234#include <stdlib.h>
4235#include <stdarg.h>
4236#include <string.h>
4237#include <float.h>
4238
John Criswell0c38eaf2003-09-10 15:17:25 +00004239int
4240main ()
4241{
4242
4243 ;
4244 return 0;
4245}
John Criswell7a73b802003-06-30 21:59:07 +00004246_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247rm -f conftest.$ac_objext
4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004281 ac_cv_header_stdc=yes
4282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288
Reid Spencera773bd52006-08-04 18:18:08 +00004289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004290
4291if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004293 cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004299#include <string.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303 $EGREP "memchr" >/dev/null 2>&1; then
4304 :
John Criswell7a73b802003-06-30 21:59:07 +00004305else
4306 ac_cv_header_stdc=no
4307fi
4308rm -f conftest*
4309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314 cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004320#include <stdlib.h>
4321
4322_ACEOF
4323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004324 $EGREP "free" >/dev/null 2>&1; then
4325 :
John Criswell7a73b802003-06-30 21:59:07 +00004326else
4327 ac_cv_header_stdc=no
4328fi
4329rm -f conftest*
4330
4331fi
4332
4333if test $ac_cv_header_stdc = yes; then
4334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004335 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004336 :
4337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338 cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004344#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004345#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004346#if ((' ' & 0x0FF) == 0x020)
4347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004350# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004351 (('a' <= (c) && (c) <= 'i') \
4352 || ('j' <= (c) && (c) <= 'r') \
4353 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355#endif
4356
4357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358int
4359main ()
4360{
4361 int i;
4362 for (i = 0; i < 256; i++)
4363 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004364 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004365 return 2;
4366 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004367}
4368_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369rm -f conftest$ac_exeext
4370if { (ac_try="$ac_link"
4371case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
4375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_link") 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380 { (case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
4384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_try") 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 :
John Criswell7a73b802003-06-30 21:59:07 +00004390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391 echo "$as_me: program exited with status $ac_status" >&5
4392echo "$as_me: failed program was:" >&5
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395( exit $ac_status )
4396ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398rm -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 +00004399fi
4400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401
John Criswell7a73b802003-06-30 21:59:07 +00004402fi
4403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004404{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4405echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004406if test $ac_cv_header_stdc = yes; then
4407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408cat >>confdefs.h <<\_ACEOF
4409#define STDC_HEADERS 1
4410_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004411
4412fi
4413
Reid Spencera773bd52006-08-04 18:18:08 +00004414# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415
4416
4417
4418
4419
4420
4421
4422
4423
Reid Spencera773bd52006-08-04 18:18:08 +00004424for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004426do
4427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439$ac_includes_default
4440
4441#include <$ac_header>
4442_ACEOF
4443rm -f conftest.$ac_objext
4444if { (ac_try="$ac_compile"
4445case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471esac
4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_try") 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 eval "$as_ac_Header=yes"
4478else
4479 echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 eval "$as_ac_Header=no"
4483fi
4484
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486fi
4487ac_res=`eval echo '${'$as_ac_Header'}'`
4488 { echo "$as_me:$LINENO: result: $ac_res" >&5
4489echo "${ECHO_T}$ac_res" >&6; }
4490if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004491 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004493_ACEOF
4494
4495fi
4496
4497done
4498
4499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004500{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4501echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4502if test "${ac_cv_c_bigendian+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 # See if sys/param.h defines the BYTE_ORDER macro.
4506cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004511/* end confdefs.h. */
4512#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004514
4515int
4516main ()
4517{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4519 bogus endian macros
4520#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004521
4522 ;
4523 return 0;
4524}
4525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526rm -f conftest.$ac_objext
4527if { (ac_try="$ac_compile"
4528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004560 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004561cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004566/* end confdefs.h. */
4567#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004569
4570int
4571main ()
4572{
4573#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 not big endian
4575#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004576
4577 ;
4578 return 0;
4579}
4580_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581rm -f conftest.$ac_objext
4582if { (ac_try="$ac_compile"
4583case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_compile") 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4596 { (case "(($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_try") 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609esac
4610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_try") 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004615 ac_cv_c_bigendian=yes
4616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 ac_cv_c_bigendian=no
4621fi
4622
4623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624else
4625 echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 # It does not; compile a test program.
4629if test "$cross_compiling" = yes; then
4630 # try to guess the endianness by grepping values into an object file
4631 ac_cv_c_bigendian=unknown
4632 cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h. */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h. */
4638short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4639short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4640void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4641short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4642short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4643void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004644int
4645main ()
4646{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004647 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004648 ;
4649 return 0;
4650}
4651_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652rm -f conftest.$ac_objext
4653if { (ac_try="$ac_compile"
4654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
4658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
4671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004687 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688fi
4689if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4690 if test "$ac_cv_c_bigendian" = unknown; then
4691 ac_cv_c_bigendian=no
4692 else
4693 # finding both strings is unlikely to happen, but who knows?
4694 ac_cv_c_bigendian=unknown
4695 fi
4696fi
Reid Spencera773bd52006-08-04 18:18:08 +00004697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698 echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701
Torok Edwin871384f2010-01-26 08:50:50 +00004702fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703
Reid Spencera773bd52006-08-04 18:18:08 +00004704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706 cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h. */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004711/* end confdefs.h. */
4712$ac_includes_default
4713int
4714main ()
4715{
4716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 /* Are we little or big endian? From Harbison&Steele. */
4718 union
4719 {
4720 long int l;
4721 char c[sizeof (long int)];
4722 } u;
4723 u.l = 1;
4724 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004725
4726 ;
4727 return 0;
4728}
4729_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730rm -f conftest$ac_exeext
4731if { (ac_try="$ac_link"
4732case "(($ac_try" in
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4735esac
4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_link") 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4741 { (case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_try") 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004750 ac_cv_c_bigendian=no
4751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752 echo "$as_me: program exited with status $ac_status" >&5
4753echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
4756( exit $ac_status )
4757ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759rm -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 +00004760fi
4761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004762
Reid Spencera773bd52006-08-04 18:18:08 +00004763fi
4764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766fi
4767{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4768echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4769case $ac_cv_c_bigendian in
4770 yes)
4771 ENDIAN=big
4772 ;;
4773 no)
4774 ENDIAN=little
4775 ;;
4776 *)
4777 { { echo "$as_me:$LINENO: error: unknown endianness
4778presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4779echo "$as_me: error: unknown endianness
4780presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4781 { (exit 1); exit 1; }; } ;;
4782esac
Reid Spencera773bd52006-08-04 18:18:08 +00004783
4784
4785if test "$cross_compiling" = yes; then
4786 LLVM_CROSS_COMPILING=1
4787
4788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4790echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4791if test "${ac_cv_build_exeext+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004793else
4794 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4795 ac_cv_build_exeext=.exe
4796else
4797 ac_build_prefix=${build_alias}-
4798
4799 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4800set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004805else
4806 if test -n "$BUILD_CC"; then
4807 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 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 +00004816 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004818 break 2
4819 fi
4820done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004821done
Reid Spencera773bd52006-08-04 18:18:08 +00004822IFS=$as_save_IFS
4823
4824fi
4825fi
4826BUILD_CC=$ac_cv_prog_BUILD_CC
4827if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4829echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 { echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004833fi
4834
4835
4836 if test -z "$BUILD_CC"; then
4837 # Extract the first word of "gcc", so it can be a program name with args.
4838set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004843else
4844 if test -n "$BUILD_CC"; then
4845 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4846else
4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 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 +00004854 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004856 break 2
4857 fi
4858done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859done
Reid Spencera773bd52006-08-04 18:18:08 +00004860IFS=$as_save_IFS
4861
4862fi
4863fi
4864BUILD_CC=$ac_cv_prog_BUILD_CC
4865if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4867echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 { echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004871fi
4872
4873
4874 if test -z "$BUILD_CC"; then
4875 # Extract the first word of "cc", so it can be a program name with args.
4876set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004881else
4882 if test -n "$BUILD_CC"; then
4883 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4884else
4885 ac_prog_rejected=no
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 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 +00004893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4894 ac_prog_rejected=yes
4895 continue
4896 fi
4897 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004899 break 2
4900 fi
4901done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004902done
Reid Spencera773bd52006-08-04 18:18:08 +00004903IFS=$as_save_IFS
4904
4905if test $ac_prog_rejected = yes; then
4906 # We found a bogon in the path, so make sure we never use it.
4907 set dummy $ac_cv_prog_BUILD_CC
4908 shift
4909 if test $# != 0; then
4910 # We chose a different compiler from the bogus one.
4911 # However, it has the same basename, so the bogon will be chosen
4912 # first if we set BUILD_CC to just the basename; use the full file name.
4913 shift
4914 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4915 fi
4916fi
4917fi
4918fi
4919BUILD_CC=$ac_cv_prog_BUILD_CC
4920if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004921 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4922echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924 { echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004926fi
4927
4928
4929 fi
4930 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4932echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4933 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004934 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4935 rm -f conftest*
4936 echo 'int main () { return 0; }' > conftest.$ac_ext
4937 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004939 (eval $ac_build_link) 2>&5
4940 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004943 for file in conftest.*; do
4944 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004945 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004946 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4947 esac
4948 done
4949 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004950 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4951echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4952 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004953 fi
4954 rm -f conftest*
4955 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4956fi
4957fi
4958
4959BUILD_EXEEXT=""
4960test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004961{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4962echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004963ac_build_exeext=$BUILD_EXEEXT
4964
Jim Grosbach673612e2008-10-02 22:56:44 +00004965 ac_build_prefix=${build_alias}-
4966 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4967set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004972else
4973 if test -n "$BUILD_CXX"; then
4974 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 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 +00004983 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004985 break 2
4986 fi
4987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004988done
Jim Grosbach673612e2008-10-02 22:56:44 +00004989IFS=$as_save_IFS
4990
4991fi
4992fi
4993BUILD_CXX=$ac_cv_prog_BUILD_CXX
4994if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004995 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4996echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004998 { echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005000fi
5001
5002
5003 if test -z "$BUILD_CXX"; then
5004 # Extract the first word of "g++", so it can be a program name with args.
5005set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00005010else
5011 if test -n "$BUILD_CXX"; then
5012 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 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 +00005021 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00005023 break 2
5024 fi
5025done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026done
Jim Grosbach673612e2008-10-02 22:56:44 +00005027IFS=$as_save_IFS
5028
5029fi
5030fi
5031BUILD_CXX=$ac_cv_prog_BUILD_CXX
5032if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005033 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5034echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005036 { echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005038fi
5039
5040
5041 if test -z "$BUILD_CXX"; then
5042 # Extract the first word of "c++", so it can be a program name with args.
5043set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00005048else
5049 if test -n "$BUILD_CXX"; then
5050 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5051else
5052 ac_prog_rejected=no
5053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 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 +00005060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5061 ac_prog_rejected=yes
5062 continue
5063 fi
5064 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00005066 break 2
5067 fi
5068done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005069done
Jim Grosbach673612e2008-10-02 22:56:44 +00005070IFS=$as_save_IFS
5071
5072if test $ac_prog_rejected = yes; then
5073 # We found a bogon in the path, so make sure we never use it.
5074 set dummy $ac_cv_prog_BUILD_CXX
5075 shift
5076 if test $# != 0; then
5077 # We chose a different compiler from the bogus one.
5078 # However, it has the same basename, so the bogon will be chosen
5079 # first if we set BUILD_CXX to just the basename; use the full file name.
5080 shift
5081 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5082 fi
5083fi
5084fi
5085fi
5086BUILD_CXX=$ac_cv_prog_BUILD_CXX
5087if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005088 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5089echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005091 { echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005093fi
5094
5095
5096 fi
5097 fi
Reid Spencera773bd52006-08-04 18:18:08 +00005098else
5099 LLVM_CROSS_COMPILING=0
5100
5101fi
5102
Dan Gohman56fb5f92010-08-04 16:25:01 +00005103if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005104 cvsbuild="yes"
5105 optimize="no"
5106 CVSBUILD=CVSBUILD=1
5107
5108else
5109 cvsbuild="no"
5110 optimize="yes"
5111fi
5112
5113
Eric Christopherbee515f2011-11-11 22:51:42 +00005114# Check whether --enable-libcpp was given.
5115if test "${enable_libcpp+set}" = set; then
5116 enableval=$enable_libcpp;
5117else
5118 enableval=default
5119fi
5120
5121case "$enableval" in
5122 yes) ENABLE_LIBCPP=1
5123 ;;
5124 no) ENABLE_LIBCPP=0
5125 ;;
5126 default) ENABLE_LIBCPP=0
5127;;
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5129echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5131esac
5132
Eric Christopher82120022012-08-03 19:47:14 +00005133# Check whether --enable-cxx11 was given.
5134if test "${enable_cxx11+set}" = set; then
5135 enableval=$enable_cxx11;
5136else
5137 enableval=default
5138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_CXX11=1
5142 ;;
5143 no) ENABLE_CXX11=0
5144 ;;
5145 default) ENABLE_CXX11=0
5146;;
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5150esac
5151
Roman Divackyd14baf42012-12-13 16:07:19 +00005152clang_arcmt="yes"
5153# Check whether --enable-clang-arcmt was given.
5154if test "${enable_clang_arcmt+set}" = set; then
5155 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5156else
5157 enableval="yes"
5158fi
5159
5160case "$enableval" in
5161 yes) ENABLE_CLANG_ARCMT=1
5162 ;;
5163 no) ENABLE_CLANG_ARCMT=0
5164 ;;
5165 default) ENABLE_CLANG_ARCMT=1
5166;;
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5168echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5170esac
5171
5172clang_static_analyzer="yes"
5173# Check whether --enable-clang-static-analyzer was given.
5174if test "${enable_clang_static_analyzer+set}" = set; then
5175 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5176else
5177 enableval="yes"
5178fi
5179
5180case "$enableval" in
5181 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5182 ;;
5183 no) ENABLE_CLANG_STATIC_ANALYZER=0
5184 ;;
5185 default) ENABLE_CLANG_STATIC_ANALYZER=1
5186;;
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5188echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5190esac
5191
5192# Check whether --enable-clang-rewriter was given.
5193if test "${enable_clang_rewriter+set}" = set; then
5194 enableval=$enable_clang_rewriter;
5195else
5196 enableval="yes"
5197fi
5198
5199case "$enableval" in
5200 yes) ENABLE_CLANG_REWRITER=1
5201 ;;
5202 no)
Benjamin Kramer23c50212012-12-26 10:48:49 +00005203 if test ${clang_arcmt} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005204 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5205echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5206 { (exit 1); exit 1; }; }
5207 fi
Benjamin Kramer23c50212012-12-26 10:48:49 +00005208 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005209 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5210echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5211 { (exit 1); exit 1; }; }
5212 fi
5213 ENABLE_CLANG_REWRITER=0
5214
5215 ;;
5216 default) ENABLE_CLANG_REWRITER=1
5217;;
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5219echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5221esac
5222
Reid Spencera773bd52006-08-04 18:18:08 +00005223# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005225 enableval=$enable_optimized;
5226else
5227 enableval=$optimize
5228fi
5229
5230if test ${enableval} = "no" ; then
5231 ENABLE_OPTIMIZED=
5232
5233else
5234 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5235
5236fi
5237
David Greene2a5a12c2009-04-17 14:50:39 +00005238# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005239if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005240 enableval=$enable_profiling;
5241else
5242 enableval="no"
5243fi
5244
5245if test ${enableval} = "no" ; then
5246 ENABLE_PROFILING=
5247
5248else
5249 ENABLE_PROFILING=ENABLE_PROFILING=1
5250
5251fi
5252
Reid Spencera773bd52006-08-04 18:18:08 +00005253# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005255 enableval=$enable_assertions;
5256else
5257 enableval="yes"
5258fi
5259
5260if test ${enableval} = "yes" ; then
5261 DISABLE_ASSERTIONS=
5262
5263else
5264 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5265
5266fi
5267
Eric Christopher09a88732012-08-03 19:58:20 +00005268# Check whether --enable-werror was given.
5269if test "${enable_werror+set}" = set; then
5270 enableval=$enable_werror;
5271else
5272 enableval="no"
5273fi
5274
5275case "$enableval" in
5276 yes) ENABLE_WERROR=1
5277 ;;
5278 no) ENABLE_WERROR=0
5279 ;;
5280 default) ENABLE_WERROR=0
5281;;
5282 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5283echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5284 { (exit 1); exit 1; }; } ;;
5285esac
5286
David Greenea696d242007-06-28 19:36:08 +00005287# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005288if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005289 enableval=$enable_expensive_checks;
5290else
5291 enableval="no"
5292fi
5293
5294if test ${enableval} = "yes" ; then
5295 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5296
5297 EXPENSIVE_CHECKS=yes
5298
5299else
5300 ENABLE_EXPENSIVE_CHECKS=
5301
5302 EXPENSIVE_CHECKS=no
5303
5304fi
5305
Reid Spencer8b2e1412006-11-17 03:32:33 +00005306# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005307if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005308 enableval=$enable_debug_runtime;
5309else
5310 enableval=no
5311fi
5312
5313if test ${enableval} = "no" ; then
5314 DEBUG_RUNTIME=
5315
5316else
5317 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5318
5319fi
5320
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005321# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005323 enableval=$enable_debug_symbols;
5324else
5325 enableval=no
5326fi
5327
5328if test ${enableval} = "no" ; then
5329 DEBUG_SYMBOLS=
5330
5331else
5332 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5333
5334fi
5335
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005336# Check whether --enable-keep-symbols was given.
5337if test "${enable_keep_symbols+set}" = set; then
5338 enableval=$enable_keep_symbols;
5339else
5340 enableval=no
5341fi
5342
5343if test ${enableval} = "no" ; then
5344 KEEP_SYMBOLS=
5345
5346else
5347 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5348
5349fi
5350
Reid Spencera773bd52006-08-04 18:18:08 +00005351# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005352if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005353 enableval=$enable_jit;
5354else
5355 enableval=default
5356fi
5357
5358if test ${enableval} = "no"
5359then
5360 JIT=
5361
5362else
5363 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005364 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005365 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005366 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005367 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005368 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005369 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005370 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005371 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005372 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005373 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005374 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005375 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005376 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005377 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005378 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005379 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005380 Hexagon) TARGET_HAS_JIT=0
5381 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005382 MBlaze) TARGET_HAS_JIT=0
5383 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005384 NVPTX) TARGET_HAS_JIT=0
5385 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005386 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005387 ;;
5388 esac
5389fi
5390
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005391# Check whether --enable-docs was given.
5392if test "${enable_docs+set}" = set; then
5393 enableval=$enable_docs;
5394else
5395 enableval=default
5396fi
5397
5398case "$enableval" in
5399 yes) ENABLE_DOCS=1
5400 ;;
5401 no) ENABLE_DOCS=0
5402 ;;
5403 default) ENABLE_DOCS=1
5404 ;;
5405 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5406echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5407 { (exit 1); exit 1; }; } ;;
5408esac
5409
Reid Spencera773bd52006-08-04 18:18:08 +00005410# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005412 enableval=$enable_doxygen;
5413else
5414 enableval=default
5415fi
5416
5417case "$enableval" in
5418 yes) ENABLE_DOXYGEN=1
5419 ;;
5420 no) ENABLE_DOXYGEN=0
5421 ;;
5422 default) ENABLE_DOXYGEN=0
5423 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005424 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5425echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5426 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005427esac
5428
5429# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005430if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005431 enableval=$enable_threads;
5432else
Reid Spencer65c5d752006-11-05 17:08:18 +00005433 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005434fi
5435
5436case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005437 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005438 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005439 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005440 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005441 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005442 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5444echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5445 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005446esac
5447
Owen Andersona8603702009-05-19 22:18:56 +00005448cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005449#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005450_ACEOF
5451
5452
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005453# Check whether --enable-pthreads was given.
5454if test "${enable_pthreads+set}" = set; then
5455 enableval=$enable_pthreads;
5456else
5457 enableval=default
5458fi
5459
5460case "$enableval" in
5461 yes) ENABLE_PTHREADS=1
5462 ;;
5463 no) ENABLE_PTHREADS=0
5464 ;;
5465 default) ENABLE_PTHREADS=1
5466 ;;
5467 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5468echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5469 { (exit 1); exit 1; }; } ;;
5470esac
5471
Reid Spencer89b0d992006-12-16 22:07:52 +00005472# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005474 enableval=$enable_pic;
5475else
5476 enableval=default
5477fi
5478
5479case "$enableval" in
5480 yes) ENABLE_PIC=1
5481 ;;
5482 no) ENABLE_PIC=0
5483 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005484 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005485 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5487echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5488 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005489esac
5490
5491cat >>confdefs.h <<_ACEOF
5492#define ENABLE_PIC $ENABLE_PIC
5493_ACEOF
5494
5495
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005496# Check whether --enable-shared was given.
5497if test "${enable_shared+set}" = set; then
5498 enableval=$enable_shared;
5499else
5500 enableval=default
5501fi
5502
5503case "$enableval" in
5504 yes) ENABLE_SHARED=1
5505 ;;
5506 no) ENABLE_SHARED=0
5507 ;;
5508 default) ENABLE_SHARED=0
5509 ;;
5510 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5511echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5513esac
5514
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005515# Check whether --enable-embed-stdcxx was given.
5516if test "${enable_embed_stdcxx+set}" = set; then
5517 enableval=$enable_embed_stdcxx;
5518else
5519 enableval=default
5520fi
5521
5522case "$enableval" in
5523 yes) ENABLE_EMBED_STDCXX=1
5524 ;;
5525 no) ENABLE_EMBED_STDCXX=0
5526 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005527 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005528 ;;
5529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5530echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5532esac
5533
Daniel Dunbardd464df2010-05-10 20:11:56 +00005534# Check whether --enable-timestamps was given.
5535if test "${enable_timestamps+set}" = set; then
5536 enableval=$enable_timestamps;
5537else
5538 enableval=default
5539fi
5540
5541case "$enableval" in
5542 yes) ENABLE_TIMESTAMPS=1
5543 ;;
5544 no) ENABLE_TIMESTAMPS=0
5545 ;;
5546 default) ENABLE_TIMESTAMPS=1
5547 ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5549echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5551esac
5552
5553cat >>confdefs.h <<_ACEOF
5554#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5555_ACEOF
5556
5557
Eric Christopherc69bdad2012-09-21 23:03:29 +00005558
5559# Check whether --enable-backtraces was given.
5560if test "${enable_backtraces+set}" = set; then
5561 enableval=$enable_backtraces;
5562else
5563 enableval=default
5564fi
5565
5566case "$enableval" in
Eric Christopherf0b3b742012-11-19 19:31:02 +00005567 yes) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005568 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005569 no) ENABLE_BACKTRACES=0
Eric Christopherc69bdad2012-09-21 23:03:29 +00005570 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005571 default) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005572 ;;
5573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5574echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5575 { (exit 1); exit 1; }; } ;;
5576esac
5577
5578cat >>confdefs.h <<_ACEOF
5579#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5580_ACEOF
5581
5582
Reid Spencera773bd52006-08-04 18:18:08 +00005583TARGETS_TO_BUILD=""
5584# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005585if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005586 enableval=$enable_targets;
5587else
5588 enableval=all
5589fi
5590
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005591if test "$enableval" = host-only ; then
5592 enableval=host
5593fi
Reid Spencera773bd52006-08-04 18:18:08 +00005594case "$enableval" in
Eric Christopher06b42342012-11-14 22:09:20 +00005595 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005596 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5597 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005598 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5599 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5600 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5601 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005602 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5603 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005604 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005605 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5606 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005607 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5608 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005609 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005610 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005611 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005612 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005613 host) case "$llvm_cv_target_arch" in
5614 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5615 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5616 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5617 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005618 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5619 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005620 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005621 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5622 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005623 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005624 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5626echo "$as_me: error: Can not set target to build" >&2;}
5627 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005628 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5630echo "$as_me: error: Unrecognized target $a_target" >&2;}
5631 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005632 esac
5633 done
5634 ;;
5635esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005636
5637# Check whether --enable-experimental-targets was given.
5638if test "${enable_experimental_targets+set}" = set; then
5639 enableval=$enable_experimental_targets;
5640else
5641 enableval=disable
5642fi
5643
5644
5645if test ${enableval} != "disable"
5646then
5647 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5648fi
5649
Reid Spencera773bd52006-08-04 18:18:08 +00005650TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5651
5652
Douglas Gregor0711c302009-06-17 00:43:20 +00005653for a_target in $TARGETS_TO_BUILD; do
5654 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5655
5656cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005657#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5658_ACEOF
5659
5660 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5661 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005662 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005663 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005664 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5665 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5666 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005667 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5668 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5669 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005670
5671cat >>confdefs.h <<_ACEOF
5672#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005673_ACEOF
5674
5675
5676cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005677#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5678_ACEOF
5679
5680
5681cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005682#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005683_ACEOF
5684
5685
5686cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005687#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005688_ACEOF
5689
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005690 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005691
5692cat >>confdefs.h <<_ACEOF
5693#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5694_ACEOF
5695
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005696 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005697 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5698
5699cat >>confdefs.h <<_ACEOF
5700#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5701_ACEOF
5702
5703 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005704 fi
5705done
5706
Douglas Gregor1555a232009-06-16 20:12:29 +00005707LLVM_ENUM_TARGETS=""
5708LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005709LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005710LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005711for target_to_build in $TARGETS_TO_BUILD; do
5712 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005713 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005714 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5715 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005716 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5717 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5718 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005719 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5720 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5721 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005722done
5723
5724
5725
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005726
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005727
Reid Spencera773bd52006-08-04 18:18:08 +00005728
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005729# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005730if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005731 withval=$with_optimize_option;
5732else
5733 withval=default
5734fi
5735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005736{ echo "$as_me:$LINENO: checking optimization flags" >&5
5737echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005738case "$withval" in
5739 default)
5740 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005741 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005742 MingW) optimize_option=-O2 ;;
5743 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005744 esac ;;
5745 *) optimize_option="$withval" ;;
5746esac
5747OPTIMIZE_OPTION=$optimize_option
5748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5750echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005751
5752
Reid Spencera773bd52006-08-04 18:18:08 +00005753# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005754if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005755 withval=$with_extra_options;
5756else
5757 withval=default
5758fi
5759
5760case "$withval" in
5761 default) EXTRA_OPTIONS= ;;
5762 *) EXTRA_OPTIONS=$withval ;;
5763esac
5764EXTRA_OPTIONS=$EXTRA_OPTIONS
5765
5766
Daniel Dunbared344d22011-06-16 22:30:41 +00005767
5768# Check whether --with-extra-ld-options was given.
5769if test "${with_extra_ld_options+set}" = set; then
5770 withval=$with_extra_ld_options;
5771else
5772 withval=default
5773fi
5774
5775case "$withval" in
5776 default) EXTRA_LD_OPTIONS= ;;
5777 *) EXTRA_LD_OPTIONS=$withval ;;
5778esac
5779EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5780
5781
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005782# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005784 enableval=$enable_bindings;
5785else
5786 enableval=default
5787fi
5788
5789BINDINGS_TO_BUILD=""
5790case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005791 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005792 all ) BINDINGS_TO_BUILD="ocaml" ;;
5793 none | no) BINDINGS_TO_BUILD="" ;;
5794 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5795 case "$a_binding" in
5796 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5798echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5799 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005800 esac
5801 done
5802 ;;
5803esac
5804
Reid Spencera773bd52006-08-04 18:18:08 +00005805
Gordon Henriksenf0915682007-10-02 16:42:22 +00005806# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005808 withval=$with_ocaml_libdir;
5809else
5810 withval=auto
5811fi
5812
5813case "$withval" in
5814 auto) with_ocaml_libdir="$withval" ;;
5815 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5817echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5818 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005819esac
5820
5821
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005822# Check whether --with-clang-srcdir was given.
5823if test "${with_clang_srcdir+set}" = set; then
5824 withval=$with_clang_srcdir;
5825else
5826 withval="-"
5827fi
5828
5829case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005830 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005831 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5832 *) clang_src_root="$ac_pwd/$withval" ;;
5833esac
5834CLANG_SRC_ROOT=$clang_src_root
5835
5836
5837
Chandler Carruth6b241162010-10-19 08:21:25 +00005838# Check whether --with-clang-resource-dir was given.
5839if test "${with_clang_resource_dir+set}" = set; then
5840 withval=$with_clang_resource_dir;
5841else
5842 withval=""
5843fi
5844
5845
5846cat >>confdefs.h <<_ACEOF
5847#define CLANG_RESOURCE_DIR "$withval"
5848_ACEOF
5849
5850
5851
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005852# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005854 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005855else
5856 withval=""
5857fi
5858
5859
5860cat >>confdefs.h <<_ACEOF
5861#define C_INCLUDE_DIRS "$withval"
5862_ACEOF
5863
5864
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005865# Clang normally uses the system c++ headers and libraries. With this option,
5866# clang will use the ones provided by a gcc installation instead. This option should
5867# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005868
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005869# Check whether --with-gcc-toolchain was given.
5870if test "${with_gcc_toolchain+set}" = set; then
5871 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005872else
5873 withval=""
5874fi
5875
5876
5877cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005878#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005879_ACEOF
5880
5881
5882
Sebastian Pope4f1b372012-04-30 20:06:58 +00005883# Check whether --with-default-sysroot was given.
5884if test "${with_default_sysroot+set}" = set; then
5885 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005886else
5887 withval=""
5888fi
5889
5890
5891cat >>confdefs.h <<_ACEOF
5892#define DEFAULT_SYSROOT "$withval"
5893_ACEOF
5894
5895
5896
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005897# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005899 withval=$with_binutils_include;
5900else
5901 withval=default
5902fi
5903
5904case "$withval" in
5905 default) WITH_BINUTILS_INCDIR=default ;;
5906 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5908echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5909 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005910esac
5911if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5912 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5913
5914 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5915 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5917echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5918 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005919 fi
5920fi
5921
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005922
5923# Check whether --with-bug-report-url was given.
5924if test "${with_bug_report_url+set}" = set; then
5925 withval=$with_bug_report_url;
5926else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005927 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005928fi
5929
5930
5931cat >>confdefs.h <<_ACEOF
5932#define BUG_REPORT_URL "$withval"
5933_ACEOF
5934
5935
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005936# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005938 enableval=$enable_libffi; case "$enableval" in
5939 yes) llvm_cv_enable_libffi="yes" ;;
5940 no) llvm_cv_enable_libffi="no" ;;
5941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5943 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005944 esac
5945else
5946 llvm_cv_enable_libffi=no
5947fi
5948
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005949
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005950
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005951# Check whether --with-internal-prefix was given.
5952if test "${with_internal_prefix+set}" = set; then
5953 withval=$with_internal_prefix;
5954else
5955 withval=""
5956fi
5957
5958INTERNAL_PREFIX=$withval
5959
5960
5961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5963echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5964if test "${lt_cv_path_NM+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005966else
5967 if test -n "$NM"; then
5968 # Let the user override the test.
5969 lt_cv_path_NM="$NM"
5970else
5971 lt_nm_to_check="${ac_tool_prefix}nm"
5972 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5973 lt_nm_to_check="$lt_nm_to_check nm"
5974 fi
5975 for lt_tmp_nm in $lt_nm_to_check; do
5976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5978 IFS="$lt_save_ifs"
5979 test -z "$ac_dir" && ac_dir=.
5980 tmp_nm="$ac_dir/$lt_tmp_nm"
5981 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5982 # Check to see if the nm accepts a BSD-compat flag.
5983 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5984 # nm: unknown option "B" ignored
5985 # Tru64's nm complains that /dev/null is an invalid object file
5986 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5987 */dev/null* | *'Invalid file or object type'*)
5988 lt_cv_path_NM="$tmp_nm -B"
5989 break
5990 ;;
5991 *)
5992 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5993 */dev/null*)
5994 lt_cv_path_NM="$tmp_nm -p"
5995 break
5996 ;;
5997 *)
5998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999 continue # so that we can try to find one that supports BSD flags
6000 ;;
6001 esac
6002 ;;
6003 esac
6004 fi
6005 done
6006 IFS="$lt_save_ifs"
6007 done
6008 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6009fi
6010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6012echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006013NM="$lt_cv_path_NM"
6014
6015
6016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017{ echo "$as_me:$LINENO: checking for GNU make" >&5
6018echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6019if test "${llvm_cv_gnu_make_command+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006021else
6022 llvm_cv_gnu_make_command=''
6023 for a in "$MAKE" make gmake gnumake ; do
6024 if test -z "$a" ; then continue ; fi ;
6025 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6026 then
6027 llvm_cv_gnu_make_command=$a ;
6028 break;
6029 fi
6030 done
6031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6033echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006034 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6035 ifGNUmake='' ;
6036 else
6037 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6039echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006040 fi
6041
6042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6044echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006045LN_S=$as_ln_s
6046if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047 { echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6051echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006052fi
6053
6054# Extract the first word of "cmp", so it can be a program name with args.
6055set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058if test "${ac_cv_path_CMP+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006060else
6061 case $CMP in
6062 [\\/]* | ?:[\\/]*)
6063 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6064 ;;
6065 *)
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 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 +00006073 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006075 break 2
6076 fi
6077done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078done
Reid Spencera773bd52006-08-04 18:18:08 +00006079IFS=$as_save_IFS
6080
6081 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6082 ;;
6083esac
6084fi
6085CMP=$ac_cv_path_CMP
6086if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006087 { echo "$as_me:$LINENO: result: $CMP" >&5
6088echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006090 { echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006092fi
6093
6094
6095# Extract the first word of "cp", so it can be a program name with args.
6096set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099if test "${ac_cv_path_CP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006101else
6102 case $CP in
6103 [\\/]* | ?:[\\/]*)
6104 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6105 ;;
6106 *)
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 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 +00006114 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006116 break 2
6117 fi
6118done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119done
Reid Spencera773bd52006-08-04 18:18:08 +00006120IFS=$as_save_IFS
6121
6122 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6123 ;;
6124esac
6125fi
6126CP=$ac_cv_path_CP
6127if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128 { echo "$as_me:$LINENO: result: $CP" >&5
6129echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006131 { echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006133fi
6134
6135
6136# Extract the first word of "date", so it can be a program name with args.
6137set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140if test "${ac_cv_path_DATE+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006142else
6143 case $DATE in
6144 [\\/]* | ?:[\\/]*)
6145 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6146 ;;
6147 *)
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 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 +00006155 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006157 break 2
6158 fi
6159done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160done
Reid Spencera773bd52006-08-04 18:18:08 +00006161IFS=$as_save_IFS
6162
6163 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6164 ;;
6165esac
6166fi
6167DATE=$ac_cv_path_DATE
6168if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169 { echo "$as_me:$LINENO: result: $DATE" >&5
6170echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172 { echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006174fi
6175
6176
6177# Extract the first word of "find", so it can be a program name with args.
6178set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181if test "${ac_cv_path_FIND+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006183else
6184 case $FIND in
6185 [\\/]* | ?:[\\/]*)
6186 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6187 ;;
6188 *)
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 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 +00006196 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006198 break 2
6199 fi
6200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201done
Reid Spencera773bd52006-08-04 18:18:08 +00006202IFS=$as_save_IFS
6203
6204 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6205 ;;
6206esac
6207fi
6208FIND=$ac_cv_path_FIND
6209if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006210 { echo "$as_me:$LINENO: result: $FIND" >&5
6211echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213 { echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006215fi
6216
6217
6218# Extract the first word of "grep", so it can be a program name with args.
6219set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222if test "${ac_cv_path_GREP+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006224else
6225 case $GREP in
6226 [\\/]* | ?:[\\/]*)
6227 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6228 ;;
6229 *)
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 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 +00006237 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006239 break 2
6240 fi
6241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242done
Reid Spencera773bd52006-08-04 18:18:08 +00006243IFS=$as_save_IFS
6244
6245 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6246 ;;
6247esac
6248fi
6249GREP=$ac_cv_path_GREP
6250if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 { echo "$as_me:$LINENO: result: $GREP" >&5
6252echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254 { echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006256fi
6257
6258
6259# Extract the first word of "mkdir", so it can be a program name with args.
6260set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263if test "${ac_cv_path_MKDIR+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006265else
6266 case $MKDIR in
6267 [\\/]* | ?:[\\/]*)
6268 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6269 ;;
6270 *)
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006278 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006280 break 2
6281 fi
6282done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283done
Reid Spencera773bd52006-08-04 18:18:08 +00006284IFS=$as_save_IFS
6285
6286 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6287 ;;
6288esac
6289fi
6290MKDIR=$ac_cv_path_MKDIR
6291if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6293echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006297fi
6298
6299
6300# Extract the first word of "mv", so it can be a program name with args.
6301set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304if test "${ac_cv_path_MV+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
6307 case $MV in
6308 [\\/]* | ?:[\\/]*)
6309 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6310 ;;
6311 *)
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006319 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006321 break 2
6322 fi
6323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324done
Reid Spencera773bd52006-08-04 18:18:08 +00006325IFS=$as_save_IFS
6326
6327 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6328 ;;
6329esac
6330fi
6331MV=$ac_cv_path_MV
6332if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 { echo "$as_me:$LINENO: result: $MV" >&5
6334echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336 { echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006338fi
6339
6340
6341if test -n "$ac_tool_prefix"; then
6342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6343set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346if test "${ac_cv_prog_RANLIB+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006348else
6349 if test -n "$RANLIB"; then
6350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 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 +00006359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006361 break 2
6362 fi
6363done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364done
Reid Spencera773bd52006-08-04 18:18:08 +00006365IFS=$as_save_IFS
6366
6367fi
6368fi
6369RANLIB=$ac_cv_prog_RANLIB
6370if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6372echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006374 { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006376fi
6377
6378
6379fi
6380if test -z "$ac_cv_prog_RANLIB"; then
6381 ac_ct_RANLIB=$RANLIB
6382 # Extract the first word of "ranlib", so it can be a program name with args.
6383set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
6389 if test -n "$ac_ct_RANLIB"; then
6390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006399 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006401 break 2
6402 fi
6403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404done
Reid Spencera773bd52006-08-04 18:18:08 +00006405IFS=$as_save_IFS
6406
6407fi
6408fi
6409ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6410if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6412echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006416fi
6417
6418 if test "x$ac_ct_RANLIB" = x; then
6419 RANLIB=":"
6420 else
6421 case $cross_compiling:$ac_tool_warned in
6422yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6424whose name does not start with the host triplet. If you think this
6425configuration is useful to you, please write to autoconf@gnu.org." >&5
6426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6427whose name does not start with the host triplet. If you think this
6428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006429ac_tool_warned=yes ;;
6430esac
6431 RANLIB=$ac_ct_RANLIB
6432 fi
6433else
6434 RANLIB="$ac_cv_prog_RANLIB"
6435fi
6436
Torok Edwin871384f2010-01-26 08:50:50 +00006437if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6439set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442if test "${ac_cv_prog_AR+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006444else
6445 if test -n "$AR"; then
6446 ac_cv_prog_AR="$AR" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 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 +00006455 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006457 break 2
6458 fi
6459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460done
Torok Edwin871384f2010-01-26 08:50:50 +00006461IFS=$as_save_IFS
6462
6463fi
6464fi
6465AR=$ac_cv_prog_AR
6466if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 { echo "$as_me:$LINENO: result: $AR" >&5
6468echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006470 { echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006472fi
6473
6474
6475fi
6476if test -z "$ac_cv_prog_AR"; then
6477 ac_ct_AR=$AR
6478 # Extract the first word of "ar", so it can be a program name with args.
6479set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006484else
6485 if test -n "$ac_ct_AR"; then
6486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 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 +00006495 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006497 break 2
6498 fi
6499done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500done
Torok Edwin871384f2010-01-26 08:50:50 +00006501IFS=$as_save_IFS
6502
6503fi
6504fi
6505ac_ct_AR=$ac_cv_prog_ac_ct_AR
6506if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6508echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510 { echo "$as_me:$LINENO: result: no" >&5
6511echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006512fi
6513
6514 if test "x$ac_ct_AR" = x; then
6515 AR="false"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6520whose name does not start with the host triplet. If you think this
6521configuration is useful to you, please write to autoconf@gnu.org." >&5
6522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6523whose name does not start with the host triplet. If you think this
6524configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006525ac_tool_warned=yes ;;
6526esac
6527 AR=$ac_ct_AR
6528 fi
6529else
6530 AR="$ac_cv_prog_AR"
6531fi
6532
Reid Spencera773bd52006-08-04 18:18:08 +00006533# Extract the first word of "rm", so it can be a program name with args.
6534set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537if test "${ac_cv_path_RM+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006539else
6540 case $RM in
6541 [\\/]* | ?:[\\/]*)
6542 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6543 ;;
6544 *)
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006552 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006554 break 2
6555 fi
6556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557done
Reid Spencera773bd52006-08-04 18:18:08 +00006558IFS=$as_save_IFS
6559
6560 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6561 ;;
6562esac
6563fi
6564RM=$ac_cv_path_RM
6565if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566 { echo "$as_me:$LINENO: result: $RM" >&5
6567echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569 { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006571fi
6572
6573
6574# Extract the first word of "sed", so it can be a program name with args.
6575set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578if test "${ac_cv_path_SED+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006580else
6581 case $SED in
6582 [\\/]* | ?:[\\/]*)
6583 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6584 ;;
6585 *)
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 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 +00006593 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006595 break 2
6596 fi
6597done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598done
Reid Spencera773bd52006-08-04 18:18:08 +00006599IFS=$as_save_IFS
6600
6601 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6602 ;;
6603esac
6604fi
6605SED=$ac_cv_path_SED
6606if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607 { echo "$as_me:$LINENO: result: $SED" >&5
6608echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006610 { echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006612fi
6613
6614
6615# Extract the first word of "tar", so it can be a program name with args.
6616set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619if test "${ac_cv_path_TAR+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006621else
6622 case $TAR in
6623 [\\/]* | ?:[\\/]*)
6624 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6625 ;;
6626 *)
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006634 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006636 break 2
6637 fi
6638done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639done
Reid Spencera773bd52006-08-04 18:18:08 +00006640IFS=$as_save_IFS
6641
6642 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6643 ;;
6644esac
6645fi
6646TAR=$ac_cv_path_TAR
6647if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648 { echo "$as_me:$LINENO: result: $TAR" >&5
6649echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651 { echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006653fi
6654
6655
6656# Extract the first word of "pwd", so it can be a program name with args.
6657set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660if test "${ac_cv_path_BINPWD+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006662else
6663 case $BINPWD in
6664 [\\/]* | ?:[\\/]*)
6665 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6666 ;;
6667 *)
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 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 +00006675 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006677 break 2
6678 fi
6679done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680done
Reid Spencera773bd52006-08-04 18:18:08 +00006681IFS=$as_save_IFS
6682
6683 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6684 ;;
6685esac
6686fi
6687BINPWD=$ac_cv_path_BINPWD
6688if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6690echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692 { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006694fi
6695
6696
6697
6698# Extract the first word of "Graphviz", so it can be a program name with args.
6699set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006704else
6705 case $GRAPHVIZ in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6708 ;;
6709 *)
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 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 +00006717 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006719 break 2
6720 fi
6721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006722done
Reid Spencera773bd52006-08-04 18:18:08 +00006723IFS=$as_save_IFS
6724
6725 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6726 ;;
6727esac
6728fi
6729GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6730if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6732echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734 { echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006736fi
6737
6738
6739if test "$GRAPHVIZ" != "echo Graphviz" ; then
6740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741cat >>confdefs.h <<\_ACEOF
6742#define HAVE_GRAPHVIZ 1
6743_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006744
Jeff Cohen28783c32007-01-12 18:22:38 +00006745 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006746 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 fi
6748
6749cat >>confdefs.h <<_ACEOF
6750#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6751_ACEOF
6752
6753fi
6754# Extract the first word of "dot", so it can be a program name with args.
6755set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758if test "${ac_cv_path_DOT+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006760else
6761 case $DOT in
6762 [\\/]* | ?:[\\/]*)
6763 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6764 ;;
6765 *)
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 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 +00006773 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006775 break 2
6776 fi
6777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778done
Reid Spencera773bd52006-08-04 18:18:08 +00006779IFS=$as_save_IFS
6780
6781 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6782 ;;
6783esac
6784fi
6785DOT=$ac_cv_path_DOT
6786if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 { echo "$as_me:$LINENO: result: $DOT" >&5
6788echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006792fi
6793
6794
6795if test "$DOT" != "echo dot" ; then
6796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797cat >>confdefs.h <<\_ACEOF
6798#define HAVE_DOT 1
6799_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006800
Jeff Cohen28783c32007-01-12 18:22:38 +00006801 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006802 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 fi
6804
6805cat >>confdefs.h <<_ACEOF
6806#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6807_ACEOF
6808
6809fi
David Greenef0b9eff2009-07-09 17:16:26 +00006810# Extract the first word of "fdp", so it can be a program name with args.
6811set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814if test "${ac_cv_path_FDP+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006816else
6817 case $FDP in
6818 [\\/]* | ?:[\\/]*)
6819 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6820 ;;
6821 *)
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 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 +00006829 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006831 break 2
6832 fi
6833done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834done
David Greenef0b9eff2009-07-09 17:16:26 +00006835IFS=$as_save_IFS
6836
6837 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6838 ;;
6839esac
6840fi
6841FDP=$ac_cv_path_FDP
6842if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: $FDP" >&5
6844echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 { echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006848fi
6849
6850
6851if test "$FDP" != "echo fdp" ; then
6852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853cat >>confdefs.h <<\_ACEOF
6854#define HAVE_FDP 1
6855_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006856
6857 if test "$llvm_cv_os_type" = "MingW" ; then
6858 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859 fi
6860
6861cat >>confdefs.h <<_ACEOF
6862#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6863_ACEOF
6864
6865fi
6866# Extract the first word of "neato", so it can be a program name with args.
6867set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870if test "${ac_cv_path_NEATO+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006872else
6873 case $NEATO in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6876 ;;
6877 *)
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 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 +00006885 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006887 break 2
6888 fi
6889done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890done
David Greenef0b9eff2009-07-09 17:16:26 +00006891IFS=$as_save_IFS
6892
6893 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6894 ;;
6895esac
6896fi
6897NEATO=$ac_cv_path_NEATO
6898if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899 { echo "$as_me:$LINENO: result: $NEATO" >&5
6900echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902 { echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006904fi
6905
6906
6907if test "$NEATO" != "echo neato" ; then
6908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909cat >>confdefs.h <<\_ACEOF
6910#define HAVE_NEATO 1
6911_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006912
6913 if test "$llvm_cv_os_type" = "MingW" ; then
6914 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915 fi
6916
6917cat >>confdefs.h <<_ACEOF
6918#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6919_ACEOF
6920
6921fi
6922# Extract the first word of "twopi", so it can be a program name with args.
6923set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926if test "${ac_cv_path_TWOPI+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006928else
6929 case $TWOPI in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 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 +00006941 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006943 break 2
6944 fi
6945done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946done
David Greenef0b9eff2009-07-09 17:16:26 +00006947IFS=$as_save_IFS
6948
6949 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6950 ;;
6951esac
6952fi
6953TWOPI=$ac_cv_path_TWOPI
6954if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6956echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006960fi
6961
6962
6963if test "$TWOPI" != "echo twopi" ; then
6964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965cat >>confdefs.h <<\_ACEOF
6966#define HAVE_TWOPI 1
6967_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006968
6969 if test "$llvm_cv_os_type" = "MingW" ; then
6970 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971 fi
6972
6973cat >>confdefs.h <<_ACEOF
6974#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6975_ACEOF
6976
6977fi
6978# Extract the first word of "circo", so it can be a program name with args.
6979set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982if test "${ac_cv_path_CIRCO+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006984else
6985 case $CIRCO in
6986 [\\/]* | ?:[\\/]*)
6987 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6988 ;;
6989 *)
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 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 +00006997 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006999 break 2
7000 fi
7001done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002done
David Greenef0b9eff2009-07-09 17:16:26 +00007003IFS=$as_save_IFS
7004
7005 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7006 ;;
7007esac
7008fi
7009CIRCO=$ac_cv_path_CIRCO
7010if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7012echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014 { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007016fi
7017
7018
7019if test "$CIRCO" != "echo circo" ; then
7020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021cat >>confdefs.h <<\_ACEOF
7022#define HAVE_CIRCO 1
7023_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007024
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027 fi
7028
7029cat >>confdefs.h <<_ACEOF
7030#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7031_ACEOF
7032
7033fi
Reid Spencera773bd52006-08-04 18:18:08 +00007034for ac_prog in gv gsview32
7035do
7036 # Extract the first word of "$ac_prog", so it can be a program name with args.
7037set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040if test "${ac_cv_path_GV+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007042else
7043 case $GV in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7046 ;;
7047 *)
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 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 +00007055 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007057 break 2
7058 fi
7059done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060done
Reid Spencera773bd52006-08-04 18:18:08 +00007061IFS=$as_save_IFS
7062
7063 ;;
7064esac
7065fi
7066GV=$ac_cv_path_GV
7067if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068 { echo "$as_me:$LINENO: result: $GV" >&5
7069echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007073fi
7074
7075
7076 test -n "$GV" && break
7077done
7078test -n "$GV" || GV="echo gv"
7079
7080if test "$GV" != "echo gv" ; then
7081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082cat >>confdefs.h <<\_ACEOF
7083#define HAVE_GV 1
7084_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007085
Jeff Cohen28783c32007-01-12 18:22:38 +00007086 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007087 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7088 fi
7089
7090cat >>confdefs.h <<_ACEOF
7091#define LLVM_PATH_GV "$GV${EXEEXT}"
7092_ACEOF
7093
7094fi
7095# Extract the first word of "dotty", so it can be a program name with args.
7096set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099if test "${ac_cv_path_DOTTY+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007101else
7102 case $DOTTY in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 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 +00007114 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007116 break 2
7117 fi
7118done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119done
Reid Spencera773bd52006-08-04 18:18:08 +00007120IFS=$as_save_IFS
7121
7122 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7123 ;;
7124esac
7125fi
7126DOTTY=$ac_cv_path_DOTTY
7127if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7129echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007133fi
7134
7135
7136if test "$DOTTY" != "echo dotty" ; then
7137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138cat >>confdefs.h <<\_ACEOF
7139#define HAVE_DOTTY 1
7140_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007141
Jeff Cohen28783c32007-01-12 18:22:38 +00007142 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007143 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7144 fi
7145
7146cat >>confdefs.h <<_ACEOF
7147#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7148_ACEOF
7149
7150fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007151# Extract the first word of "xdot.py", so it can be a program name with args.
7152set dummy xdot.py; ac_word=$2
7153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155if test "${ac_cv_path_XDOT_PY+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158 case $XDOT_PY in
7159 [\\/]* | ?:[\\/]*)
7160 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7161 ;;
7162 *)
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174done
7175done
7176IFS=$as_save_IFS
7177
7178 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7179 ;;
7180esac
7181fi
7182XDOT_PY=$ac_cv_path_XDOT_PY
7183if test -n "$XDOT_PY"; then
7184 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7185echo "${ECHO_T}$XDOT_PY" >&6; }
7186else
7187 { echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6; }
7189fi
7190
7191
7192if test "$XDOT_PY" != "echo xdot.py" ; then
7193
7194cat >>confdefs.h <<\_ACEOF
7195#define HAVE_XDOT_PY 1
7196_ACEOF
7197
7198 if test "$llvm_cv_os_type" = "MingW" ; then
7199 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200 fi
7201
7202cat >>confdefs.h <<_ACEOF
7203#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7204_ACEOF
7205
7206fi
Reid Spencera773bd52006-08-04 18:18:08 +00007207
Reid Spencera773bd52006-08-04 18:18:08 +00007208# Find a good install program. We prefer a C program (faster),
7209# so one script is as good as another. But avoid the broken or
7210# incompatible versions:
7211# SysV /etc/install, /usr/sbin/install
7212# SunOS /usr/etc/install
7213# IRIX /sbin/install
7214# AIX /bin/install
7215# AmigaOS /C/install, which installs bootblocks on floppy discs
7216# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7217# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219# OS/2's system install, which has a completely different semantic
7220# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7222echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007223if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224if test "${ac_cv_path_install+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 # Account for people who put trailing slashes in PATH elements.
7233case $as_dir/ in
7234 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007237 /usr/ucb/* ) ;;
7238 *)
7239 # OSF1 and SCO ODT 3.0 have their own names for install.
7240 # Don't use installbsd from OSF since it installs stuff as root
7241 # by default.
7242 for ac_prog in ginstall scoinst install; do
7243 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 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 +00007245 if test $ac_prog = install &&
7246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7247 # AIX install. It has an incompatible calling convention.
7248 :
7249 elif test $ac_prog = install &&
7250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7251 # program-specific install script used by HP pwplus--don't use.
7252 :
7253 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7255 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007256 fi
7257 fi
7258 done
7259 done
7260 ;;
7261esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262done
Reid Spencera773bd52006-08-04 18:18:08 +00007263IFS=$as_save_IFS
7264
7265
7266fi
7267 if test "${ac_cv_path_install+set}" = set; then
7268 INSTALL=$ac_cv_path_install
7269 else
7270 # As a last resort, use the slow shell script. Don't cache a
7271 # value for INSTALL within a source directory, because that will
7272 # break other packages using the cache if that directory is
7273 # removed, or if the value is a relative name.
7274 INSTALL=$ac_install_sh
7275 fi
7276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7278echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279
7280# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7281# It thinks the first close brace ends the variable substitution.
7282test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7283
7284test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7285
7286test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7287
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007288case "$INSTALL" in
7289 [\\/$]* | ?:[\\/]* ) ;;
7290 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7291esac
Reid Spencera773bd52006-08-04 18:18:08 +00007292
7293# Extract the first word of "bzip2", so it can be a program name with args.
7294set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297if test "${ac_cv_path_BZIP2+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007299else
7300 case $BZIP2 in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 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 +00007312 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007314 break 2
7315 fi
7316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317done
Reid Spencera773bd52006-08-04 18:18:08 +00007318IFS=$as_save_IFS
7319
Reid Spencera773bd52006-08-04 18:18:08 +00007320 ;;
7321esac
7322fi
7323BZIP2=$ac_cv_path_BZIP2
7324if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7326echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 { echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007330fi
7331
7332
mike-m68cb3192010-05-06 23:45:43 +00007333# Extract the first word of "cat", so it can be a program name with args.
7334set dummy cat; ac_word=$2
7335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337if test "${ac_cv_path_CAT+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340 case $CAT in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358IFS=$as_save_IFS
7359
7360 ;;
7361esac
7362fi
7363CAT=$ac_cv_path_CAT
7364if test -n "$CAT"; then
7365 { echo "$as_me:$LINENO: result: $CAT" >&5
7366echo "${ECHO_T}$CAT" >&6; }
7367else
7368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
7370fi
7371
7372
Reid Spencera773bd52006-08-04 18:18:08 +00007373# Extract the first word of "doxygen", so it can be a program name with args.
7374set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377if test "${ac_cv_path_DOXYGEN+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007379else
7380 case $DOXYGEN in
7381 [\\/]* | ?:[\\/]*)
7382 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7383 ;;
7384 *)
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 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 +00007392 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007394 break 2
7395 fi
7396done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397done
Reid Spencera773bd52006-08-04 18:18:08 +00007398IFS=$as_save_IFS
7399
Reid Spencera773bd52006-08-04 18:18:08 +00007400 ;;
7401esac
7402fi
7403DOXYGEN=$ac_cv_path_DOXYGEN
7404if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7406echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408 { echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007410fi
7411
7412
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007413# Extract the first word of "groff", so it can be a program name with args.
7414set dummy groff; ac_word=$2
7415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417if test "${ac_cv_path_GROFF+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420 case $GROFF in
7421 [\\/]* | ?:[\\/]*)
7422 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7423 ;;
7424 *)
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436done
7437done
7438IFS=$as_save_IFS
7439
7440 ;;
7441esac
7442fi
7443GROFF=$ac_cv_path_GROFF
7444if test -n "$GROFF"; then
7445 { echo "$as_me:$LINENO: result: $GROFF" >&5
7446echo "${ECHO_T}$GROFF" >&6; }
7447else
7448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
7450fi
7451
7452
Reid Spencera773bd52006-08-04 18:18:08 +00007453# Extract the first word of "gzip", so it can be a program name with args.
7454set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007457if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
Eric Christopher031d3072010-12-10 01:31:51 +00007460 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007461 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007462 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007463 ;;
7464 *)
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 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 +00007472 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007474 break 2
7475 fi
7476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477done
Reid Spencera773bd52006-08-04 18:18:08 +00007478IFS=$as_save_IFS
7479
Reid Spencera773bd52006-08-04 18:18:08 +00007480 ;;
7481esac
7482fi
Eric Christopher031d3072010-12-10 01:31:51 +00007483GZIPBIN=$ac_cv_path_GZIPBIN
7484if test -n "$GZIPBIN"; then
7485 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7486echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488 { echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007490fi
7491
7492
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007493# Extract the first word of "pdfroff", so it can be a program name with args.
7494set dummy pdfroff; ac_word=$2
7495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_PDFROFF+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500 case $PDFROFF in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516done
7517done
7518IFS=$as_save_IFS
7519
7520 ;;
7521esac
7522fi
7523PDFROFF=$ac_cv_path_PDFROFF
7524if test -n "$PDFROFF"; then
7525 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7526echo "${ECHO_T}$PDFROFF" >&6; }
7527else
7528 { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
7530fi
7531
7532
Reid Spencera773bd52006-08-04 18:18:08 +00007533# Extract the first word of "zip", so it can be a program name with args.
7534set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537if test "${ac_cv_path_ZIP+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007539else
7540 case $ZIP in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7543 ;;
7544 *)
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 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 +00007552 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007554 break 2
7555 fi
7556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557done
Reid Spencera773bd52006-08-04 18:18:08 +00007558IFS=$as_save_IFS
7559
Reid Spencera773bd52006-08-04 18:18:08 +00007560 ;;
7561esac
7562fi
7563ZIP=$ac_cv_path_ZIP
7564if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 { echo "$as_me:$LINENO: result: $ZIP" >&5
7566echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 { echo "$as_me:$LINENO: result: no" >&5
7569echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007570fi
7571
7572
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007573for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007574do
7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
7576set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579if test "${ac_cv_path_OCAMLC+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007581else
7582 case $OCAMLC in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 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 +00007594 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007596 break 2
7597 fi
7598done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007600IFS=$as_save_IFS
7601
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007602 ;;
7603esac
7604fi
7605OCAMLC=$ac_cv_path_OCAMLC
7606if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7608echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007612fi
7613
7614
Gordon Henriksene7072162008-03-07 18:20:01 +00007615 test -n "$OCAMLC" && break
7616done
7617
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007618for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007619do
7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
7621set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007626else
7627 case $OCAMLOPT in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 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 +00007639 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007641 break 2
7642 fi
7643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007645IFS=$as_save_IFS
7646
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007647 ;;
7648esac
7649fi
7650OCAMLOPT=$ac_cv_path_OCAMLOPT
7651if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7653echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007655 { echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007657fi
7658
7659
Gordon Henriksene7072162008-03-07 18:20:01 +00007660 test -n "$OCAMLOPT" && break
7661done
7662
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007663for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007664do
7665 # Extract the first word of "$ac_prog", so it can be a program name with args.
7666set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007671else
7672 case $OCAMLDEP in
7673 [\\/]* | ?:[\\/]*)
7674 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7675 ;;
7676 *)
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 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 +00007684 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007686 break 2
7687 fi
7688done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007690IFS=$as_save_IFS
7691
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007692 ;;
7693esac
7694fi
7695OCAMLDEP=$ac_cv_path_OCAMLDEP
7696if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7698echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 { echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007702fi
7703
7704
Gordon Henriksene7072162008-03-07 18:20:01 +00007705 test -n "$OCAMLDEP" && break
7706done
7707
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007708for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007709do
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007716else
7717 case $OCAMLDOC in
7718 [\\/]* | ?:[\\/]*)
7719 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7720 ;;
7721 *)
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 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 +00007729 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007731 break 2
7732 fi
7733done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007735IFS=$as_save_IFS
7736
7737 ;;
7738esac
7739fi
7740OCAMLDOC=$ac_cv_path_OCAMLDOC
7741if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7743echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007747fi
7748
7749
7750 test -n "$OCAMLDOC" && break
7751done
7752
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007753for ac_prog in gas as
7754do
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756set dummy $ac_prog; ac_word=$2
7757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759if test "${ac_cv_path_GAS+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762 case $GAS in
7763 [\\/]* | ?:[\\/]*)
7764 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7765 ;;
7766 *)
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
7779done
7780IFS=$as_save_IFS
7781
7782 ;;
7783esac
7784fi
7785GAS=$ac_cv_path_GAS
7786if test -n "$GAS"; then
7787 { echo "$as_me:$LINENO: result: $GAS" >&5
7788echo "${ECHO_T}$GAS" >&6; }
7789else
7790 { echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6; }
7792fi
7793
7794
7795 test -n "$GAS" && break
7796done
7797
Reid Spencera773bd52006-08-04 18:18:08 +00007798
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007799{ echo "$as_me:$LINENO: checking for linker version" >&5
7800echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7801if test "${llvm_cv_link_version+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804
7805 version_string="$(ld -v 2>&1 | head -1)"
7806
7807 # Check for ld64.
7808 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007809 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007810 else
7811 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7812 fi
7813
7814fi
7815{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7816echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7817
7818cat >>confdefs.h <<_ACEOF
7819#define HOST_LINK_VERSION "$llvm_cv_link_version"
7820_ACEOF
7821
7822
7823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7825echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7826if test "${llvm_cv_link_use_r+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007828else
7829 ac_ext=c
7830ac_cpp='$CPP $CPPFLAGS'
7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835 oldcflags="$CFLAGS"
7836 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007837 cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h. */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007842/* end confdefs.h. */
7843
7844int
7845main ()
7846{
Dan Gohman39ed6782010-04-25 00:12:20 +00007847
Reid Spencera773bd52006-08-04 18:18:08 +00007848 ;
7849 return 0;
7850}
7851_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852rm -f conftest.$ac_objext conftest$ac_exeext
7853if { (ac_try="$ac_link"
7854case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870esac
7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_try") 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007886 llvm_cv_link_use_r=yes
7887else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893
Bill Wendlingebcceee2009-04-18 11:20:33 +00007894rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007896 CFLAGS="$oldcflags"
7897 ac_ext=c
7898ac_cpp='$CPP $CPPFLAGS'
7899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7906echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007907if test "$llvm_cv_link_use_r" = yes ; then
7908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909cat >>confdefs.h <<\_ACEOF
7910#define HAVE_LINK_R 1
7911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007912
7913 fi
7914
7915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7917echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7918if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007920else
7921 ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927 oldcflags="$CFLAGS"
7928 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929 cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h. */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007934/* end confdefs.h. */
7935
7936int
7937main ()
7938{
Dan Gohman39ed6782010-04-25 00:12:20 +00007939
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007940 ;
7941 return 0;
7942}
7943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (ac_try="$ac_link"
7946case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007978 llvm_cv_link_use_export_dynamic=yes
7979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985
Bill Wendlingebcceee2009-04-18 11:20:33 +00007986rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007988 CFLAGS="$oldcflags"
7989 ac_ext=c
7990ac_cpp='$CPP $CPPFLAGS'
7991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995
7996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7998echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007999if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001cat >>confdefs.h <<\_ACEOF
8002#define HAVE_LINK_EXPORT_DYNAMIC 1
8003_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008004
8005 fi
8006
8007
Dan Gohmanda612d62010-06-01 14:56:56 +00008008{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8009echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8010if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 ac_ext=c
8014ac_cpp='$CPP $CPPFLAGS'
8015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018
8019 oldcflags="$CFLAGS"
8020
8021 # The following code is from the autoconf manual,
8022 # "11.13: Limitations of Usual Tools".
8023 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8024 # Use mktemp if possible; otherwise fall back on mkdir,
8025 # with $RANDOM to make collisions less likely.
8026 : ${TMPDIR=/tmp}
8027 {
8028 tmp=`
8029 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8030 ` &&
8031 test -n "$tmp" && test -d "$tmp"
8032 } || {
8033 tmp=$TMPDIR/foo$$-$RANDOM
8034 (umask 077 && mkdir "$tmp")
8035 } || exit $?
8036
Dan Gohmanda612d62010-06-01 14:56:56 +00008037 echo "{" > "$tmp/export.map"
8038 echo " global: main;" >> "$tmp/export.map"
8039 echo " local: *;" >> "$tmp/export.map"
8040 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008041
Dan Gohmanda612d62010-06-01 14:56:56 +00008042 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008043 cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
8049
8050int
8051main ()
8052{
Dan Gohman39ed6782010-04-25 00:12:20 +00008053
Dan Gohman391569c2010-04-16 22:59:06 +00008054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext conftest$ac_exeext
8059if { (ac_try="$ac_link"
8060case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_link") 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086esac
8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008092 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008093else
8094 echo "$as_me: failed program was:" >&5
8095sed 's/^/| /' conftest.$ac_ext >&5
8096
Dan Gohman943005e2010-06-01 16:22:27 +00008097 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008098fi
8099
8100rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008102 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008103 rmdir "$tmp"
8104 CFLAGS="$oldcflags"
8105 ac_ext=c
8106ac_cpp='$CPP $CPPFLAGS'
8107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111
8112fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008113{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8114echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8115if test "$llvm_cv_link_use_version_script" = yes ; then
8116 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008117
8118 fi
8119
8120
Reid Spencera773bd52006-08-04 18:18:08 +00008121
8122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8124echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8125if test "${ac_cv_c_const+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 cat >conftest.$ac_ext <<_ACEOF
8129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008133/* end confdefs.h. */
8134
8135int
8136main ()
8137{
8138/* FIXME: Include the comments suggested by Paul. */
8139#ifndef __cplusplus
8140 /* Ultrix mips cc rejects this. */
8141 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008143 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008144 char const *const *ccp;
8145 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008146 /* NEC SVR4.0.2 mips cc rejects this. */
8147 struct point {int x, y;};
8148 static struct point const zero = {0,0};
8149 /* AIX XL C 1.02.0.0 rejects this.
8150 It does not let you subtract one const X* pointer from another in
8151 an arm of an if-expression whose if-part is not a constant
8152 expression */
8153 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008155 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156 ++ccp;
8157 p = (char**) ccp;
8158 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008159 { /* SCO 3.2v4 cc rejects this. */
8160 char *t;
8161 char const *s = 0 ? (char *) 0 : (char const *) 0;
8162
8163 *t++ = 0;
8164 if (s) return 0;
8165 }
8166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8167 int x[] = {25, 17};
8168 const int *foo = &x[0];
8169 ++foo;
8170 }
8171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8172 typedef const int *iptr;
8173 iptr p = 0;
8174 ++p;
8175 }
8176 { /* AIX XL C 1.02.0.0 rejects this saying
8177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8178 struct s { int j; const int *ap[3]; };
8179 struct s *b; b->j = 5;
8180 }
8181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8182 const int foo = 10;
8183 if (!foo) return 0;
8184 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008186#endif
8187
8188 ;
8189 return 0;
8190}
8191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008226 ac_cv_c_const=yes
8227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233
Reid Spencera773bd52006-08-04 18:18:08 +00008234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8237echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008238if test $ac_cv_c_const = no; then
8239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240cat >>confdefs.h <<\_ACEOF
8241#define const
8242_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008243
8244fi
8245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246
8247
8248
8249
8250
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008251ac_header_dirent=no
8252for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8254{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8255echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259 cat >conftest.$ac_ext <<_ACEOF
8260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008264/* end confdefs.h. */
8265#include <sys/types.h>
8266#include <$ac_hdr>
8267
8268int
8269main ()
8270{
8271if ((DIR *) 0)
8272return 0;
8273 ;
8274 return 0;
8275}
8276_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008277rm -f conftest.$ac_objext
8278if { (ac_try="$ac_compile"
8279case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest.$ac_objext'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008311 eval "$as_ac_Header=yes"
8312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313 echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318
Reid Spencera773bd52006-08-04 18:18:08 +00008319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321ac_res=`eval echo '${'$as_ac_Header'}'`
8322 { echo "$as_me:$LINENO: result: $ac_res" >&5
8323echo "${ECHO_T}$ac_res" >&6; }
8324if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008327_ACEOF
8328
8329ac_header_dirent=$ac_hdr; break
8330fi
8331
8332done
8333# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8334if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8336echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8337if test "${ac_cv_search_opendir+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008339else
8340 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008346/* end confdefs.h. */
8347
Reid Spencera773bd52006-08-04 18:18:08 +00008348/* Override any GCC internal prototype to avoid an error.
8349 Use char because int might match the return type of a GCC
8350 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008351#ifdef __cplusplus
8352extern "C"
8353#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008354char opendir ();
8355int
8356main ()
8357{
Reid Spencera773bd52006-08-04 18:18:08 +00008358return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008359 ;
8360 return 0;
8361}
8362_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008363for ac_lib in '' dir; do
8364 if test -z "$ac_lib"; then
8365 ac_res="none required"
8366 else
8367 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008369 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370 rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (ac_try="$ac_link"
8372case "(($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_link") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398esac
8399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008404 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405else
8406 echo "$as_me: failed program was:" >&5
8407sed 's/^/| /' conftest.$ac_ext >&5
8408
8409
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411
Bill Wendlingebcceee2009-04-18 11:20:33 +00008412rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413 conftest$ac_exeext
8414 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008415 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008416fi
John Criswell7a73b802003-06-30 21:59:07 +00008417done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418if test "${ac_cv_search_opendir+set}" = set; then
8419 :
Reid Spencera773bd52006-08-04 18:18:08 +00008420else
8421 ac_cv_search_opendir=no
8422fi
8423rm conftest.$ac_ext
8424LIBS=$ac_func_search_save_LIBS
8425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8427echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008428ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008431
Reid Spencera773bd52006-08-04 18:18:08 +00008432fi
8433
8434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8436echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8437if test "${ac_cv_search_opendir+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008439else
8440 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h. */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008446/* end confdefs.h. */
8447
8448/* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8451#ifdef __cplusplus
8452extern "C"
8453#endif
8454char opendir ();
8455int
8456main ()
8457{
8458return opendir ();
8459 ;
8460 return 0;
8461}
8462_ACEOF
8463for ac_lib in '' x; do
8464 if test -z "$ac_lib"; then
8465 ac_res="none required"
8466 else
8467 ac_res=-l$ac_lib
8468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8469 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 rm -f conftest.$ac_objext conftest$ac_exeext
8471if { (ac_try="$ac_link"
8472case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_link") 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485 { (case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_try") 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498esac
8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008504 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505else
8506 echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509
Reid Spencera773bd52006-08-04 18:18:08 +00008510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511
Bill Wendlingebcceee2009-04-18 11:20:33 +00008512rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513 conftest$ac_exeext
8514 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008515 break
8516fi
8517done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008518if test "${ac_cv_search_opendir+set}" = set; then
8519 :
Reid Spencera773bd52006-08-04 18:18:08 +00008520else
8521 ac_cv_search_opendir=no
8522fi
8523rm conftest.$ac_ext
8524LIBS=$ac_func_search_save_LIBS
8525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8527echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008528ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8531
8532fi
8533
8534fi
John Criswell7a73b802003-06-30 21:59:07 +00008535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536
John Criswell7a73b802003-06-30 21:59:07 +00008537for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538do
8539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545fi
8546ac_res=`eval echo '${'$as_ac_Header'}'`
8547 { echo "$as_me:$LINENO: result: $ac_res" >&5
8548echo "${ECHO_T}$ac_res" >&6; }
8549else
8550 # Is the header compilable?
8551{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8553cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
8559$ac_includes_default
8560#include <$ac_header>
8561_ACEOF
8562rm -f conftest.$ac_objext
8563if { (ac_try="$ac_compile"
8564case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567esac
8568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; } &&
8586 { ac_try='test -s conftest.$ac_objext'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 ac_header_compiler=yes
8597else
8598 echo "$as_me: failed program was:" >&5
8599sed 's/^/| /' conftest.$ac_ext >&5
8600
8601 ac_header_compiler=no
8602fi
8603
8604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8606echo "${ECHO_T}$ac_header_compiler" >&6; }
8607
8608# Is the header present?
8609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617#include <$ac_header>
8618_ACEOF
8619if { (ac_try="$ac_cpp conftest.$ac_ext"
8620case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } >/dev/null; then
8632 if test -s conftest.err; then
8633 ac_cpp_err=$ac_c_preproc_warn_flag
8634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8635 else
8636 ac_cpp_err=
8637 fi
8638else
8639 ac_cpp_err=yes
8640fi
8641if test -z "$ac_cpp_err"; then
8642 ac_header_preproc=yes
8643else
8644 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 ac_header_preproc=no
8648fi
8649
8650rm -f conftest.err conftest.$ac_ext
8651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652echo "${ECHO_T}$ac_header_preproc" >&6; }
8653
8654# So? What about this header?
8655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8656 yes:no: )
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8661 ac_header_preproc=yes
8662 ;;
8663 no:yes:* )
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8676 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008677## ------------------------------------ ##
8678## Report this to http://llvm.org/bugs/ ##
8679## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680_ASBOX
8681 ) | sed "s/^/$as_me: WARNING: /" >&2
8682 ;;
8683esac
8684{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 eval "$as_ac_Header=\$ac_header_preproc"
8690fi
8691ac_res=`eval echo '${'$as_ac_Header'}'`
8692 { echo "$as_me:$LINENO: result: $ac_res" >&5
8693echo "${ECHO_T}$ac_res" >&6; }
8694
8695fi
8696if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008697 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008699_ACEOF
8700
8701fi
8702
8703done
8704
Reid Spencera773bd52006-08-04 18:18:08 +00008705# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008707 enableval=$enable_ltdl_install;
8708fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008709
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711
8712
8713if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008714 INSTALL_LTDL_TRUE=
8715 INSTALL_LTDL_FALSE='#'
8716else
8717 INSTALL_LTDL_TRUE='#'
8718 INSTALL_LTDL_FALSE=
8719fi
8720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721
8722
8723if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008724 CONVENIENCE_LTDL_TRUE=
8725 CONVENIENCE_LTDL_FALSE='#'
8726else
8727 CONVENIENCE_LTDL_TRUE='#'
8728 CONVENIENCE_LTDL_FALSE=
8729fi
8730
8731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008732{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8733echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008734library_names_spec=
8735libname_spec='lib$name'
8736soname_spec=
8737shrext_cmds=".so"
8738postinstall_cmds=
8739postuninstall_cmds=
8740finish_cmds=
8741finish_eval=
8742shlibpath_var=
8743shlibpath_overrides_runpath=unknown
8744version_type=none
8745dynamic_linker="$host_os ld.so"
8746sys_lib_dlsearch_path_spec="/lib /usr/lib"
8747if test "$GCC" = yes; then
8748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8749 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8750 # if the path contains ";" then we assume it to be the separator
8751 # otherwise default to the standard path separator (i.e. ":") - it is
8752 # assumed that no part of a normal pathname contains ";" but that should
8753 # okay in the real world where ";" in dirpaths is itself problematic.
8754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8755 else
8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8757 fi
8758else
8759 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8760fi
8761need_lib_prefix=unknown
8762hardcode_into_libs=no
8763
8764# when you set need_version to no, make sure it does not cause -set_version
8765# flags to be left without arguments
8766need_version=unknown
8767
8768case $host_os in
8769aix3*)
8770 version_type=linux
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8772 shlibpath_var=LIBPATH
8773
8774 # AIX 3 has no versioning support, so we append a major version to the name.
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 ;;
8777
8778aix4* | aix5*)
8779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 hardcode_into_libs=yes
8783 if test "$host_cpu" = ia64; then
8784 # AIX 5 supports IA64
8785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 else
8788 # With GCC up to 2.95.x, collect2 would create an import file
8789 # for dependence libraries. The import file would start with
8790 # the line `#! .'. This would cause the generated library to
8791 # depend on `.', always an invalid library. This was fixed in
8792 # development snapshots of GCC prior to 3.0.
8793 case $host_os in
8794 aix4 | aix4.[01] | aix4.[01].*)
8795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8796 echo ' yes '
8797 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8798 :
8799 else
8800 can_build_shared=no
8801 fi
8802 ;;
8803 esac
8804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8805 # soname into executable. Probably we can add versioning support to
8806 # collect2, so additional links can be useful in future.
8807 if test "$aix_use_runtimelinking" = yes; then
8808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8809 # instead of lib<name>.a to let people know that these are not
8810 # typical AIX shared libraries.
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 else
8813 # We preserve .a as extension for shared libraries through AIX4.2
8814 # and later when we are not doing run time linking.
8815 library_names_spec='${libname}${release}.a $libname.a'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 fi
8818 shlibpath_var=LIBPATH
8819 fi
8820 ;;
8821
8822amigaos*)
8823 library_names_spec='$libname.ixlibrary $libname.a'
8824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8825 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'
8826 ;;
8827
8828beos*)
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8832 ;;
8833
8834bsdi[45]*)
8835 version_type=linux
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843 # the default ld.so.conf also contains /usr/contrib/lib and
8844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845 # libtool to hard-code these into programs
8846 ;;
8847
8848cygwin* | mingw* | pw32*)
8849 version_type=windows
8850 shrext_cmds=".dll"
8851 need_version=no
8852 need_lib_prefix=no
8853
8854 case $GCC,$host_os in
8855 yes,cygwin* | yes,mingw* | yes,pw32*)
8856 library_names_spec='$libname.dll.a'
8857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858 postinstall_cmds='base_file=`basename \${file}`~
8859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8860 dldir=$destdir/`dirname \$dlpath`~
8861 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008862 $install_prog $dir/$dlname \$dldir/$dlname~
8863 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8865 dlpath=$dir/\$dldll~
8866 $rm \$dlpath'
8867 shlibpath_overrides_runpath=yes
8868
8869 case $host_os in
8870 cygwin*)
8871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8872 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8874 ;;
8875 mingw*)
8876 # MinGW DLLs use traditional 'lib' prefix
8877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8879 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8880 # It is most probably a Windows format PATH printed by
8881 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8882 # path with ; separators, and with drive letters. We can handle the
8883 # drive letters (cygwin fileutils understands them), so leave them,
8884 # especially as we might pass files found there to a mingw objdump,
8885 # which wouldn't understand a cygwinified path. Ahh.
8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8887 else
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8889 fi
8890 ;;
8891 pw32*)
8892 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008893 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 +00008894 ;;
8895 esac
8896 ;;
8897
8898 *)
8899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8900 ;;
8901 esac
8902 dynamic_linker='Win32 ld.exe'
8903 # FIXME: first we should search . and the directory the executable is in
8904 shlibpath_var=PATH
8905 ;;
8906
8907darwin* | rhapsody*)
8908 dynamic_linker="$host_os dyld"
8909 version_type=darwin
8910 need_lib_prefix=no
8911 need_version=no
8912 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8913 soname_spec='${libname}${release}${major}$shared_ext'
8914 shlibpath_overrides_runpath=yes
8915 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008916 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008917 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8918 if test "$GCC" = yes; then
8919 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"`
8920 else
8921 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8922 fi
8923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8924 ;;
8925
8926dgux*)
8927 version_type=linux
8928 need_lib_prefix=no
8929 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
8933 ;;
8934
Eric Christopher360fa9a2011-10-26 00:42:12 +00008935freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008936 dynamic_linker=no
8937 ;;
8938
8939kfreebsd*-gnu)
8940 version_type=linux
8941 need_lib_prefix=no
8942 need_version=no
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8948 dynamic_linker='GNU ld.so'
8949 ;;
8950
Reid Spencera773bd52006-08-04 18:18:08 +00008951freebsd* | dragonfly*)
8952 # DragonFly does not have aout. When/if they implement a new
8953 # versioning mechanism, adjust this.
8954 if test -x /usr/bin/objformat; then
8955 objformat=`/usr/bin/objformat`
8956 else
8957 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008958 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008959 *) objformat=elf ;;
8960 esac
8961 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008962 version_type=freebsd-$objformat
8963 case $version_type in
8964 freebsd-elf*)
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8966 need_version=no
8967 need_lib_prefix=no
8968 ;;
8969 freebsd-*)
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8971 need_version=yes
8972 ;;
8973 esac
8974 shlibpath_var=LD_LIBRARY_PATH
8975 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008976 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008977 shlibpath_overrides_runpath=yes
8978 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008979 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008980 shlibpath_overrides_runpath=yes
8981 hardcode_into_libs=yes
8982 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008988 freebsd*) # from 4.6 on
8989 shlibpath_overrides_runpath=yes
8990 hardcode_into_libs=yes
8991 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008992 esac
8993 ;;
8994
8995gnu*)
8996 version_type=linux
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 hardcode_into_libs=yes
9003 ;;
9004
9005hpux9* | hpux10* | hpux11*)
9006 # Give a soname corresponding to the major version so that dld.sl refuses to
9007 # link against other versions.
9008 version_type=sunos
9009 need_lib_prefix=no
9010 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009011 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009012 ia64*)
9013 shrext_cmds='.so'
9014 hardcode_into_libs=yes
9015 dynamic_linker="$host_os dld.so"
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 if test "X$HPUX_IA64_MODE" = X32; then
9021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9022 else
9023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9024 fi
9025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9026 ;;
9027 hppa*64*)
9028 shrext_cmds='.sl'
9029 hardcode_into_libs=yes
9030 dynamic_linker="$host_os dld.sl"
9031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9037 ;;
9038 *)
9039 shrext_cmds='.sl'
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=SHLIB_PATH
9042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
9046 esac
9047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9048 postinstall_cmds='chmod 555 $lib'
9049 ;;
9050
Reid Spencera773bd52006-08-04 18:18:08 +00009051interix3*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=no
9060 hardcode_into_libs=yes
9061 ;;
9062
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009063irix5* | irix6* | nonstopux*)
9064 case $host_os in
9065 nonstopux*) version_type=nonstopux ;;
9066 *)
9067 if test "$lt_cv_prog_gnu_ld" = yes; then
9068 version_type=linux
9069 else
9070 version_type=irix
9071 fi ;;
9072 esac
9073 need_lib_prefix=no
9074 need_version=no
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9077 case $host_os in
9078 irix5* | nonstopux*)
9079 libsuff= shlibsuff=
9080 ;;
9081 *)
9082 case $LD in # libtool.m4 will add one of these switches to LD
9083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9084 libsuff= shlibsuff= libmagic=32-bit;;
9085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9086 libsuff=32 shlibsuff=N32 libmagic=N32;;
9087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9089 *) libsuff= shlibsuff= libmagic=never-match;;
9090 esac
9091 ;;
9092 esac
9093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9094 shlibpath_overrides_runpath=no
9095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9097 hardcode_into_libs=yes
9098 ;;
9099
9100# No shared lib support for Linux oldld, aout, or coff.
9101linux*oldld* | linux*aout* | linux*coff*)
9102 dynamic_linker=no
9103 ;;
9104
9105# This must be Linux ELF.
9106linux*)
9107 version_type=linux
9108 need_lib_prefix=no
9109 need_version=no
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=no
9115 # This implies no fast_install, which is unacceptable.
9116 # Some rework will be needed to allow for fast_install
9117 # before this can be enabled.
9118 hardcode_into_libs=yes
9119
9120 # Append ld.so.conf contents to the search path
9121 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009122 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 +00009123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9124 fi
9125
9126 # We used to test for /lib/ld.so.1 and disable shared libraries on
9127 # powerpc, because MkLinux only supported shared libraries with the
9128 # GNU dynamic linker. Since this was broken with cross compilers,
9129 # most powerpc-linux boxes support dynamic linking these days and
9130 # people can always --disable-shared, the test was removed, and we
9131 # assume the GNU/Linux dynamic linker is in use.
9132 dynamic_linker='GNU/Linux ld.so'
9133 ;;
9134
9135knetbsd*-gnu)
9136 version_type=linux
9137 need_lib_prefix=no
9138 need_version=no
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9144 dynamic_linker='GNU ld.so'
9145 ;;
9146
9147netbsd*)
9148 version_type=sunos
9149 need_lib_prefix=no
9150 need_version=no
9151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9154 dynamic_linker='NetBSD (a.out) ld.so'
9155 else
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 dynamic_linker='NetBSD ld.elf_so'
9159 fi
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9162 hardcode_into_libs=yes
9163 ;;
9164
9165newsos6)
9166 version_type=linux
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 ;;
9171
9172nto-qnx*)
9173 version_type=linux
9174 need_lib_prefix=no
9175 need_version=no
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9180 ;;
9181
Eric Christopherb0f67592012-08-06 20:52:18 +00009182openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009183 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009184 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009185 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9187 case $host_os in
9188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9189 *) need_version=no ;;
9190 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9195 case $host_os in
9196 openbsd2.[89] | openbsd2.[89].*)
9197 shlibpath_overrides_runpath=no
9198 ;;
9199 *)
9200 shlibpath_overrides_runpath=yes
9201 ;;
9202 esac
9203 else
9204 shlibpath_overrides_runpath=yes
9205 fi
9206 ;;
9207
9208os2*)
9209 libname_spec='$name'
9210 shrext_cmds=".dll"
9211 need_lib_prefix=no
9212 library_names_spec='$libname${shared_ext} $libname.a'
9213 dynamic_linker='OS/2 ld.exe'
9214 shlibpath_var=LIBPATH
9215 ;;
9216
9217osf3* | osf4* | osf5*)
9218 version_type=osf
9219 need_lib_prefix=no
9220 need_version=no
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9226 ;;
9227
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228solaris*)
9229 version_type=linux
9230 need_lib_prefix=no
9231 need_version=no
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 hardcode_into_libs=yes
9237 # ldd complains unless libraries are executable
9238 postinstall_cmds='chmod +x $lib'
9239 ;;
9240
9241sunos4*)
9242 version_type=sunos
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9247 if test "$with_gnu_ld" = yes; then
9248 need_lib_prefix=no
9249 fi
9250 need_version=yes
9251 ;;
9252
Reid Spencera773bd52006-08-04 18:18:08 +00009253sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254 version_type=linux
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 case $host_vendor in
9259 sni)
9260 shlibpath_overrides_runpath=no
9261 need_lib_prefix=no
9262 export_dynamic_flag_spec='${wl}-Blargedynsym'
9263 runpath_var=LD_RUN_PATH
9264 ;;
9265 siemens)
9266 need_lib_prefix=no
9267 ;;
9268 motorola)
9269 need_lib_prefix=no
9270 need_version=no
9271 shlibpath_overrides_runpath=no
9272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9273 ;;
9274 esac
9275 ;;
9276
9277sysv4*MP*)
9278 if test -d /usr/nec ;then
9279 version_type=linux
9280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9281 soname_spec='$libname${shared_ext}.$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 fi
9284 ;;
9285
Reid Spencera773bd52006-08-04 18:18:08 +00009286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9287 version_type=freebsd-elf
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 hardcode_into_libs=yes
9294 if test "$with_gnu_ld" = yes; then
9295 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9296 shlibpath_overrides_runpath=no
9297 else
9298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9299 shlibpath_overrides_runpath=yes
9300 case $host_os in
9301 sco3.2v5*)
9302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9303 ;;
9304 esac
9305 fi
9306 sys_lib_dlsearch_path_spec='/usr/lib'
9307 ;;
9308
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009309uts4*)
9310 version_type=linux
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 ;;
9315
9316*)
9317 dynamic_linker=no
9318 ;;
9319esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9321echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322test "$dynamic_linker" = no && can_build_shared=no
9323
Reid Spencera773bd52006-08-04 18:18:08 +00009324variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9325if test "$GCC" = yes; then
9326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9327fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328
Reid Spencera773bd52006-08-04 18:18:08 +00009329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009330{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9331echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9332if test "${libltdl_cv_shlibext+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334else
9335
9336module=yes
9337eval libltdl_cv_shlibext=$shrext_cmds
9338
9339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009340{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9341echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342if test -n "$libltdl_cv_shlibext"; then
9343
9344cat >>confdefs.h <<_ACEOF
9345#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9346_ACEOF
9347
9348fi
9349
9350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009351{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9352echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9353if test "${libltdl_cv_shlibpath_var+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355else
9356 libltdl_cv_shlibpath_var="$shlibpath_var"
9357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009358{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9359echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360if test -n "$libltdl_cv_shlibpath_var"; then
9361
9362cat >>confdefs.h <<_ACEOF
9363#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9364_ACEOF
9365
9366fi
9367
9368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009369{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9370echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9371if test "${libltdl_cv_sys_search_path+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373else
9374 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009376{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9377echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378if test -n "$libltdl_cv_sys_search_path"; then
9379 sys_search_path=
9380 for dir in $libltdl_cv_sys_search_path; do
9381 if test -z "$sys_search_path"; then
9382 sys_search_path="$dir"
9383 else
9384 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9385 fi
9386 done
9387
9388cat >>confdefs.h <<_ACEOF
9389#define LTDL_SYSSEARCHPATH "$sys_search_path"
9390_ACEOF
9391
9392fi
9393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009394{ echo "$as_me:$LINENO: checking for objdir" >&5
9395echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9396if test "${libltdl_cv_objdir+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398else
9399 libltdl_cv_objdir="$objdir"
9400 if test -n "$objdir"; then
9401 :
9402 else
9403 rm -f .libs 2>/dev/null
9404 mkdir .libs 2>/dev/null
9405 if test -d .libs; then
9406 libltdl_cv_objdir=.libs
9407 else
9408 # MS-DOS does not allow filenames that begin with a dot.
9409 libltdl_cv_objdir=_libs
9410 fi
9411 rmdir .libs 2>/dev/null
9412 fi
9413
9414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9416echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417
9418cat >>confdefs.h <<_ACEOF
9419#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9420_ACEOF
9421
9422
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009423
9424
9425
9426
9427# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9429echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9430if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432else
9433
9434# These are sane defaults that work on at least a few old systems.
9435# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9436
9437# Character class describing NM global symbol codes.
9438symcode='[BCDEGRST]'
9439
9440# Regexp to match symbols that can be accessed directly from C.
9441sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9442
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443# Transform an extracted symbol line into a proper C declaration
9444lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9445
9446# Transform an extracted symbol line into symbol name and symbol address
9447lt_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'"
9448
9449# Define system-specific variables.
9450case $host_os in
9451aix*)
9452 symcode='[BCDT]'
9453 ;;
9454cygwin* | mingw* | pw32*)
9455 symcode='[ABCDGISTW]'
9456 ;;
9457hpux*) # Its linker distinguishes data from code symbols
9458 if test "$host_cpu" = ia64; then
9459 symcode='[ABCDEGRST]'
9460 fi
9461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9462 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'"
9463 ;;
9464linux*)
9465 if test "$host_cpu" = ia64; then
9466 symcode='[ABCDGIRSTW]'
9467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9468 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'"
9469 fi
9470 ;;
9471irix* | nonstopux*)
9472 symcode='[BCDEGRST]'
9473 ;;
9474osf*)
9475 symcode='[BCDEGQRST]'
9476 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009477solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478 symcode='[BDRT]'
9479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009480sco3.2v5*)
9481 symcode='[DT]'
9482 ;;
9483sysv4.2uw2*)
9484 symcode='[DT]'
9485 ;;
9486sysv5* | sco5v6* | unixware* | OpenUNIX*)
9487 symcode='[ABDT]'
9488 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009489sysv4)
9490 symcode='[DFNSTU]'
9491 ;;
9492esac
9493
9494# Handle CRLF in mingw tool chain
9495opt_cr=
9496case $build_os in
9497mingw*)
9498 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9499 ;;
9500esac
9501
9502# If we're using GNU nm, then use its standard symbol codes.
9503case `$NM -V 2>&1` in
9504*GNU* | *'with BFD'*)
9505 symcode='[ABCDGIRSTW]' ;;
9506esac
9507
9508# Try without a prefix undercore, then with it.
9509for ac_symprfx in "" "_"; do
9510
Reid Spencera773bd52006-08-04 18:18:08 +00009511 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9512 symxfrm="\\1 $ac_symprfx\\2 \\2"
9513
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009515 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 +00009516
9517 # Check to see that the pipe works correctly.
9518 pipe_works=no
9519
9520 rm -f conftest*
9521 cat > conftest.$ac_ext <<EOF
9522#ifdef __cplusplus
9523extern "C" {
9524#endif
9525char nm_test_var;
9526void nm_test_func(){}
9527#ifdef __cplusplus
9528}
9529#endif
9530int main(){nm_test_var='a';nm_test_func();return(0);}
9531EOF
9532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534 (eval $ac_compile) 2>&5
9535 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009538 # Now try to grab the symbols.
9539 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540 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 +00009541 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9542 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545 # Try sorting and uniquifying the output.
9546 if sort "$nlist" | uniq > "$nlist"T; then
9547 mv -f "$nlist"T "$nlist"
9548 else
9549 rm -f "$nlist"T
9550 fi
9551
9552 # Make sure that we snagged all the symbols we need.
9553 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9554 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9555 cat <<EOF > conftest.$ac_ext
9556#ifdef __cplusplus
9557extern "C" {
9558#endif
9559
9560EOF
9561 # Now generate the symbol file.
9562 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9563
9564 cat <<EOF >> conftest.$ac_ext
9565#if defined (__STDC__) && __STDC__
9566# define lt_ptr_t void *
9567#else
9568# define lt_ptr_t char *
9569# define const
9570#endif
9571
9572/* The mapping between symbol names and symbols. */
9573const struct {
9574 const char *name;
9575 lt_ptr_t address;
9576}
9577lt_preloaded_symbols[] =
9578{
9579EOF
9580 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9581 cat <<\EOF >> conftest.$ac_ext
9582 {0, (lt_ptr_t) 0}
9583};
9584
9585#ifdef __cplusplus
9586}
9587#endif
9588EOF
9589 # Now try linking the two files.
9590 mv conftest.$ac_objext conftstm.$ac_objext
9591 lt_save_LIBS="$LIBS"
9592 lt_save_CFLAGS="$CFLAGS"
9593 LIBS="conftstm.$ac_objext"
9594 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596 (eval $ac_link) 2>&5
9597 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600 pipe_works=yes
9601 fi
9602 LIBS="$lt_save_LIBS"
9603 CFLAGS="$lt_save_CFLAGS"
9604 else
9605 echo "cannot find nm_test_func in $nlist" >&5
9606 fi
9607 else
9608 echo "cannot find nm_test_var in $nlist" >&5
9609 fi
9610 else
9611 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9612 fi
9613 else
9614 echo "$progname: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9616 fi
9617 rm -f conftest* conftst*
9618
9619 # Do not use the global_symbol_pipe unless it works.
9620 if test "$pipe_works" = yes; then
9621 break
9622 else
9623 lt_cv_sys_global_symbol_pipe=
9624 fi
9625done
9626
9627fi
9628
9629if test -z "$lt_cv_sys_global_symbol_pipe"; then
9630 lt_cv_sys_global_symbol_to_cdecl=
9631fi
9632if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009633 { echo "$as_me:$LINENO: result: failed" >&5
9634echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636 { echo "$as_me:$LINENO: result: ok" >&5
9637echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638fi
9639
9640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009641{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9642echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9643if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009645else
9646 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9647 libltdl_cv_preloaded_symbols=yes
9648 else
9649 libltdl_cv_preloaded_symbols=no
9650 fi
9651
9652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9654echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009655if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009657cat >>confdefs.h <<\_ACEOF
9658#define HAVE_PRELOADED_SYMBOLS 1
9659_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660
9661fi
9662
9663LIBADD_DL=
9664
9665ac_ext=c
9666ac_cpp='$CPP $CPPFLAGS'
9667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9669ac_compiler_gnu=$ac_cv_c_compiler_gnu
9670
9671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009672{ echo "$as_me:$LINENO: checking for shl_load" >&5
9673echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9674if test "${ac_cv_func_shl_load+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677 cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h. */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h. */
9683/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9685#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009687/* System header to define __stub macros and hopefully few prototypes,
9688 which can conflict with char shl_load (); below.
9689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690 <limits.h> exists even on freestanding compilers. */
9691
9692#ifdef __STDC__
9693# include <limits.h>
9694#else
9695# include <assert.h>
9696#endif
9697
9698#undef shl_load
9699
9700/* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9703#ifdef __cplusplus
9704extern "C"
9705#endif
9706char shl_load ();
9707/* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710#if defined __stub_shl_load || defined __stub___shl_load
9711choke me
9712#endif
9713
9714int
9715main ()
9716{
9717return shl_load ();
9718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
9723if { (ac_try="$ac_link"
9724case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9737 { (case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740esac
9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_try") 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_func_shl_load=yes
9757else
9758 echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 ac_cv_func_shl_load=no
9762fi
9763
9764rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766fi
9767{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9768echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9769if test $ac_cv_func_shl_load = yes; then
9770
9771cat >>confdefs.h <<\_ACEOF
9772#define HAVE_SHL_LOAD 1
9773_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774
9775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009776 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9777echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9778if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780else
9781 ac_check_lib_save_LIBS=$LIBS
9782LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009783cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788/* end confdefs.h. */
9789
Reid Spencera773bd52006-08-04 18:18:08 +00009790/* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793#ifdef __cplusplus
9794extern "C"
9795#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796char shl_load ();
9797int
9798main ()
9799{
Reid Spencera773bd52006-08-04 18:18:08 +00009800return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801 ;
9802 return 0;
9803}
9804_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009805rm -f conftest.$ac_objext conftest$ac_exeext
9806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 ac_cv_lib_dld_shl_load=yes
9840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846
Bill Wendlingebcceee2009-04-18 11:20:33 +00009847rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009848 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849LIBS=$ac_check_lib_save_LIBS
9850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009851{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9852echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9853if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009855cat >>confdefs.h <<\_ACEOF
9856#define HAVE_SHL_LOAD 1
9857_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858
9859 LIBADD_DL="$LIBADD_DL -ldld"
9860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9862echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9863if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865else
9866 ac_check_lib_save_LIBS=$LIBS
9867LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873/* end confdefs.h. */
9874
Reid Spencera773bd52006-08-04 18:18:08 +00009875/* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878#ifdef __cplusplus
9879extern "C"
9880#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881char dlopen ();
9882int
9883main ()
9884{
Reid Spencera773bd52006-08-04 18:18:08 +00009885return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886 ;
9887 return 0;
9888}
9889_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (ac_try="$ac_link"
9892case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_link") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9905 { (case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_try") 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924 ac_cv_lib_dl_dlopen=yes
9925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009926 echo "$as_me: failed program was:" >&5
9927sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009931
Bill Wendlingebcceee2009-04-18 11:20:33 +00009932rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009933 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934LIBS=$ac_check_lib_save_LIBS
9935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009936{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9937echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9938if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009940cat >>confdefs.h <<\_ACEOF
9941#define HAVE_LIBDL 1
9942_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943
9944 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009946 cat >conftest.$ac_ext <<_ACEOF
9947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951/* end confdefs.h. */
9952#if HAVE_DLFCN_H
9953# include <dlfcn.h>
9954#endif
9955
9956int
9957main ()
9958{
9959dlopen(0, 0);
9960 ;
9961 return 0;
9962}
9963_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999cat >>confdefs.h <<\_ACEOF
10000#define HAVE_LIBDL 1
10001_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002 libltdl_cv_func_dlopen="yes"
10003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10008echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10009if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011else
10012 ac_check_lib_save_LIBS=$LIBS
10013LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019/* end confdefs.h. */
10020
Reid Spencera773bd52006-08-04 18:18:08 +000010021/* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024#ifdef __cplusplus
10025extern "C"
10026#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027char dlopen ();
10028int
10029main ()
10030{
Reid Spencera773bd52006-08-04 18:18:08 +000010031return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 ;
10033 return 0;
10034}
10035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010036rm -f conftest.$ac_objext conftest$ac_exeext
10037if { (ac_try="$ac_link"
10038case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ac_cv_lib_svld_dlopen=yes
10071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010072 echo "$as_me: failed program was:" >&5
10073sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010077
Bill Wendlingebcceee2009-04-18 11:20:33 +000010078rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080LIBS=$ac_check_lib_save_LIBS
10081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010082{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10083echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10084if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010086cat >>confdefs.h <<\_ACEOF
10087#define HAVE_LIBDL 1
10088_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089
10090 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096else
10097 ac_check_lib_save_LIBS=$LIBS
10098LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010099cat >conftest.$ac_ext <<_ACEOF
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104/* end confdefs.h. */
10105
Reid Spencera773bd52006-08-04 18:18:08 +000010106/* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109#ifdef __cplusplus
10110extern "C"
10111#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112char dld_link ();
10113int
10114main ()
10115{
Reid Spencera773bd52006-08-04 18:18:08 +000010116return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 ;
10118 return 0;
10119}
10120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010121rm -f conftest.$ac_objext conftest$ac_exeext
10122if { (ac_try="$ac_link"
10123case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_link") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10136 { (case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_try") 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest$ac_exeext'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155 ac_cv_lib_dld_dld_link=yes
10156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010157 echo "$as_me: failed program was:" >&5
10158sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010162
Bill Wendlingebcceee2009-04-18 11:20:33 +000010163rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010164 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165LIBS=$ac_check_lib_save_LIBS
10166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010167{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10168echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10169if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010171cat >>confdefs.h <<\_ACEOF
10172#define HAVE_DLD 1
10173_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174
10175 LIBADD_DL="$LIBADD_DL -ldld"
10176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010177 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10178echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10179if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181else
10182 cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10190#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010192/* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char _dyld_func_lookup (); below.
10194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010197#ifdef __STDC__
10198# include <limits.h>
10199#else
10200# include <assert.h>
10201#endif
10202
10203#undef _dyld_func_lookup
10204
10205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char _dyld_func_lookup ();
10212/* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10216choke me
10217#endif
10218
10219int
10220main ()
10221{
10222return _dyld_func_lookup ();
10223 ;
10224 return 0;
10225}
10226_ACEOF
10227rm -f conftest.$ac_objext conftest$ac_exeext
10228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_func__dyld_func_lookup=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267fi
Reid Spencera773bd52006-08-04 18:18:08 +000010268
Bill Wendlingebcceee2009-04-18 11:20:33 +000010269rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010270 conftest$ac_exeext conftest.$ac_ext
10271fi
10272{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10273echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10274if test $ac_cv_func__dyld_func_lookup = yes; then
10275
10276cat >>confdefs.h <<\_ACEOF
10277#define HAVE_DYLD 1
10278_ACEOF
10279
10280fi
10281
10282
10283fi
10284
10285
10286fi
10287
10288
10289fi
10290
10291rm -f core conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293
10294fi
10295
10296
10297fi
10298
10299
10300fi
10301
10302
10303if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10304then
10305 lt_save_LIBS="$LIBS"
10306 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010307
10308for ac_func in dlerror
10309do
10310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10311{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315else
10316 cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h. */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h. */
10322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10324#define $ac_func innocuous_$ac_func
10325
10326/* System header to define __stub macros and hopefully few prototypes,
10327 which can conflict with char $ac_func (); below.
10328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10329 <limits.h> exists even on freestanding compilers. */
10330
10331#ifdef __STDC__
10332# include <limits.h>
10333#else
10334# include <assert.h>
10335#endif
10336
10337#undef $ac_func
10338
10339/* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10342#ifdef __cplusplus
10343extern "C"
10344#endif
10345char $ac_func ();
10346/* The GNU C library defines this for functions which it implements
10347 to always fail with ENOSYS. Some functions are actually named
10348 something starting with __ and the normal name is an alias. */
10349#if defined __stub_$ac_func || defined __stub___$ac_func
10350choke me
10351#endif
10352
10353int
10354main ()
10355{
10356return $ac_func ();
10357 ;
10358 return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext conftest$ac_exeext
10362if { (ac_try="$ac_link"
10363case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_link") 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379esac
10380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 eval "$as_ac_var=yes"
10396else
10397 echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 eval "$as_ac_var=no"
10401fi
10402
10403rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405fi
10406ac_res=`eval echo '${'$as_ac_var'}'`
10407 { echo "$as_me:$LINENO: result: $ac_res" >&5
10408echo "${ECHO_T}$ac_res" >&6; }
10409if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412_ACEOF
10413
10414fi
10415done
10416
10417 LIBS="$lt_save_LIBS"
10418fi
10419ac_ext=c
10420ac_cpp='$CPP $CPPFLAGS'
10421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423ac_compiler_gnu=$ac_cv_c_compiler_gnu
10424
10425
10426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010427{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10428echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10429if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431else
10432 ac_cv_sys_symbol_underscore=no
10433 cat > conftest.$ac_ext <<EOF
10434void nm_test_func(){}
10435int main(){nm_test_func;return 0;}
10436EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 (eval $ac_compile) 2>&5
10439 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442 # Now try to grab the symbols.
10443 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010444 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 +000010445 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10446 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449 # See whether the symbols have a leading underscore.
10450 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10451 ac_cv_sys_symbol_underscore=yes
10452 else
10453 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10454 :
10455 else
10456 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10457 fi
10458 fi
10459 else
10460 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10461 fi
10462 else
10463 echo "configure: failed program was:" >&5
10464 cat conftest.c >&5
10465 fi
10466 rm -rf conftest*
10467
10468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010469{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10470echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010471
10472
10473if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10474 if test x"$libltdl_cv_func_dlopen" = xyes ||
10475 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10477echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10478if test "${libltdl_cv_need_uscore+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480else
10481 libltdl_cv_need_uscore=unknown
10482 save_LIBS="$LIBS"
10483 LIBS="$LIBS $LIBADD_DL"
10484 if test "$cross_compiling" = yes; then :
10485 libltdl_cv_need_uscore=cross
10486else
10487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488 lt_status=$lt_dlunknown
10489 cat > conftest.$ac_ext <<EOF
David Greened2f82162013-01-09 22:11:13 +000010490#line 10490 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491#include "confdefs.h"
10492
10493#if HAVE_DLFCN_H
10494#include <dlfcn.h>
10495#endif
10496
10497#include <stdio.h>
10498
10499#ifdef RTLD_GLOBAL
10500# define LT_DLGLOBAL RTLD_GLOBAL
10501#else
10502# ifdef DL_GLOBAL
10503# define LT_DLGLOBAL DL_GLOBAL
10504# else
10505# define LT_DLGLOBAL 0
10506# endif
10507#endif
10508
10509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510 find out it does not work in some platform. */
10511#ifndef LT_DLLAZY_OR_NOW
10512# ifdef RTLD_LAZY
10513# define LT_DLLAZY_OR_NOW RTLD_LAZY
10514# else
10515# ifdef DL_LAZY
10516# define LT_DLLAZY_OR_NOW DL_LAZY
10517# else
10518# ifdef RTLD_NOW
10519# define LT_DLLAZY_OR_NOW RTLD_NOW
10520# else
10521# ifdef DL_NOW
10522# define LT_DLLAZY_OR_NOW DL_NOW
10523# else
10524# define LT_DLLAZY_OR_NOW 0
10525# endif
10526# endif
10527# endif
10528# endif
10529#endif
10530
10531#ifdef __cplusplus
10532extern "C" void exit (int);
10533#endif
10534
10535void fnord() { int i=42;}
10536int main ()
10537{
10538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539 int status = $lt_dlunknown;
10540
10541 if (self)
10542 {
10543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545 /* dlclose (self); */
10546 }
Reid Spencera773bd52006-08-04 18:18:08 +000010547 else
10548 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549
10550 exit (status);
10551}
10552EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 (eval $ac_link) 2>&5
10555 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010558 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559 lt_status=$?
10560 case x$lt_status in
10561 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10562 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010563 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 esac
10565 else :
10566 # compilation failed
10567
10568 fi
10569fi
10570rm -fr conftest*
10571
10572 LIBS="$save_LIBS"
10573
10574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010575{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10576echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 fi
10578fi
10579
10580if test x"$libltdl_cv_need_uscore" = xyes; then
10581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010582cat >>confdefs.h <<\_ACEOF
10583#define NEED_USCORE 1
10584_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585
10586fi
10587
10588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10590echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10591if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593else
10594 # PORTME does your system automatically load deplibs for dlopen?
10595 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10596 # For now, we just catch OSes we know something about -- in the
10597 # future, we'll try test this programmatically.
10598 libltdl_cv_sys_dlopen_deplibs=unknown
10599 case "$host_os" in
10600 aix3*|aix4.1.*|aix4.2.*)
10601 # Unknown whether this is true for these versions of AIX, but
10602 # we want this `case' here to explicitly catch those versions.
10603 libltdl_cv_sys_dlopen_deplibs=unknown
10604 ;;
10605 aix[45]*)
10606 libltdl_cv_sys_dlopen_deplibs=yes
10607 ;;
10608 darwin*)
10609 # Assuming the user has installed a libdl from somewhere, this is true
10610 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10611 libltdl_cv_sys_dlopen_deplibs=yes
10612 ;;
10613 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10614 # GNU and its variants, using gnu ld.so (Glibc)
10615 libltdl_cv_sys_dlopen_deplibs=yes
10616 ;;
10617 hpux10*|hpux11*)
10618 libltdl_cv_sys_dlopen_deplibs=yes
10619 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010620 interix*)
10621 libltdl_cv_sys_dlopen_deplibs=yes
10622 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623 irix[12345]*|irix6.[01]*)
10624 # Catch all versions of IRIX before 6.2, and indicate that we don't
10625 # know how it worked for any of those versions.
10626 libltdl_cv_sys_dlopen_deplibs=unknown
10627 ;;
10628 irix*)
10629 # The case above catches anything before 6.2, and it's known that
10630 # at 6.2 and later dlopen does load deplibs.
10631 libltdl_cv_sys_dlopen_deplibs=yes
10632 ;;
10633 netbsd*)
10634 libltdl_cv_sys_dlopen_deplibs=yes
10635 ;;
10636 openbsd*)
10637 libltdl_cv_sys_dlopen_deplibs=yes
10638 ;;
10639 osf[1234]*)
10640 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10641 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010642 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 libltdl_cv_sys_dlopen_deplibs=no
10644 ;;
10645 osf5.0|osf5.0a|osf5.1)
10646 # dlopen *does* load deplibs and with the right loader patch applied
10647 # it even uses RPATH in a shared library to search for shared objects
10648 # that the library depends on, but there's no easy way to know if that
10649 # patch is installed. Since this is the case, all we can really
10650 # say is unknown -- it depends on the patch being installed. If
10651 # it is, this changes to `yes'. Without it, it would be `no'.
10652 libltdl_cv_sys_dlopen_deplibs=unknown
10653 ;;
10654 osf*)
10655 # the two cases above should catch all versions of osf <= 5.1. Read
10656 # the comments above for what we know about them.
10657 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10658 # is used to find them so we can finally say `yes'.
10659 libltdl_cv_sys_dlopen_deplibs=yes
10660 ;;
10661 solaris*)
10662 libltdl_cv_sys_dlopen_deplibs=yes
10663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10665 libltdl_cv_sys_dlopen_deplibs=yes
10666 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667 esac
10668
10669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010670{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10671echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010674cat >>confdefs.h <<\_ACEOF
10675#define LTDL_DLOPEN_DEPLIBS 1
10676_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677
10678fi
10679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010682do
10683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689fi
10690ac_res=`eval echo '${'$as_ac_Header'}'`
10691 { echo "$as_me:$LINENO: result: $ac_res" >&5
10692echo "${ECHO_T}$ac_res" >&6; }
10693else
10694 # Is the header compilable?
10695{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10697cat >conftest.$ac_ext <<_ACEOF
10698/* confdefs.h. */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h. */
10703$ac_includes_default
10704#include <$ac_header>
10705_ACEOF
10706rm -f conftest.$ac_objext
10707if { (ac_try="$ac_compile"
10708case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_header_compiler=no
10746fi
10747
10748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750echo "${ECHO_T}$ac_header_compiler" >&6; }
10751
10752# Is the header present?
10753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761#include <$ac_header>
10762_ACEOF
10763if { (ac_try="$ac_cpp conftest.$ac_ext"
10764case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev/null; then
10776 if test -s conftest.err; then
10777 ac_cpp_err=$ac_c_preproc_warn_flag
10778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10779 else
10780 ac_cpp_err=
10781 fi
10782else
10783 ac_cpp_err=yes
10784fi
10785if test -z "$ac_cpp_err"; then
10786 ac_header_preproc=yes
10787else
10788 echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ac_header_preproc=no
10792fi
10793
10794rm -f conftest.err conftest.$ac_ext
10795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796echo "${ECHO_T}$ac_header_preproc" >&6; }
10797
10798# So? What about this header?
10799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10800 yes:no: )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805 ac_header_preproc=yes
10806 ;;
10807 no:yes:* )
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10820 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010821## ------------------------------------ ##
10822## Report this to http://llvm.org/bugs/ ##
10823## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824_ASBOX
10825 ) | sed "s/^/$as_me: WARNING: /" >&2
10826 ;;
10827esac
10828{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833 eval "$as_ac_Header=\$ac_header_preproc"
10834fi
10835ac_res=`eval echo '${'$as_ac_Header'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837echo "${ECHO_T}$ac_res" >&6; }
10838
10839fi
10840if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843_ACEOF
10844
10845fi
10846
10847done
10848
10849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010850{ echo "$as_me:$LINENO: checking for error_t" >&5
10851echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10852if test "${ac_cv_type_error_t+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855 cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
10861#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862# include <argz.h>
10863#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010864
10865typedef error_t ac__type_new_;
10866int
10867main ()
10868{
10869if ((ac__type_new_ *) 0)
10870 return 0;
10871if (sizeof (ac__type_new_))
10872 return 0;
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877rm -f conftest.$ac_objext
10878if { (ac_try="$ac_compile"
10879case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_compile") 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892 { (case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905esac
10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_type_error_t=yes
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 ac_cv_type_error_t=no
10917fi
10918
10919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920fi
10921{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10922echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10923if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924
10925cat >>confdefs.h <<_ACEOF
10926#define HAVE_ERROR_T 1
10927_ACEOF
10928
10929
10930else
10931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010932cat >>confdefs.h <<\_ACEOF
10933#define error_t int
10934_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935
10936fi
10937
10938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010939
10940
10941
10942
10943
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010945do
10946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h. */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h. */
10958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10960#define $ac_func innocuous_$ac_func
10961
10962/* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char $ac_func (); below.
10964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 <limits.h> exists even on freestanding compilers. */
10966
10967#ifdef __STDC__
10968# include <limits.h>
10969#else
10970# include <assert.h>
10971#endif
10972
10973#undef $ac_func
10974
10975/* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978#ifdef __cplusplus
10979extern "C"
10980#endif
10981char $ac_func ();
10982/* The GNU C library defines this for functions which it implements
10983 to always fail with ENOSYS. Some functions are actually named
10984 something starting with __ and the normal name is an alias. */
10985#if defined __stub_$ac_func || defined __stub___$ac_func
10986choke me
10987#endif
10988
10989int
10990main ()
10991{
10992return $ac_func ();
10993 ;
10994 return 0;
10995}
10996_ACEOF
10997rm -f conftest.$ac_objext conftest$ac_exeext
10998if { (ac_try="$ac_link"
10999case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_link") 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest$ac_exeext'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 eval "$as_ac_var=yes"
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 eval "$as_ac_var=no"
11037fi
11038
11039rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041fi
11042ac_res=`eval echo '${'$as_ac_var'}'`
11043 { echo "$as_me:$LINENO: result: $ac_res" >&5
11044echo "${ECHO_T}$ac_res" >&6; }
11045if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048_ACEOF
11049
11050fi
11051done
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011072
11073
11074
11075
11076
11077
11078
11079
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11081 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011082do
11083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089fi
11090ac_res=`eval echo '${'$as_ac_Header'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092echo "${ECHO_T}$ac_res" >&6; }
11093else
11094 # Is the header compilable?
11095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103$ac_includes_default
11104#include <$ac_header>
11105_ACEOF
11106rm -f conftest.$ac_objext
11107if { (ac_try="$ac_compile"
11108case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_header_compiler=yes
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_header_compiler=no
11146fi
11147
11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150echo "${ECHO_T}$ac_header_compiler" >&6; }
11151
11152# Is the header present?
11153{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11155cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161#include <$ac_header>
11162_ACEOF
11163if { (ac_try="$ac_cpp conftest.$ac_ext"
11164case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_c_preproc_warn_flag
11178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11179 else
11180 ac_cpp_err=
11181 fi
11182else
11183 ac_cpp_err=yes
11184fi
11185if test -z "$ac_cpp_err"; then
11186 ac_header_preproc=yes
11187else
11188 echo "$as_me: failed program was:" >&5
11189sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ac_header_preproc=no
11192fi
11193
11194rm -f conftest.err conftest.$ac_ext
11195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196echo "${ECHO_T}$ac_header_preproc" >&6; }
11197
11198# So? What about this header?
11199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11200 yes:no: )
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11205 ac_header_preproc=yes
11206 ;;
11207 no:yes:* )
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11220 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011221## ------------------------------------ ##
11222## Report this to http://llvm.org/bugs/ ##
11223## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011224_ASBOX
11225 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 ;;
11227esac
11228{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232else
11233 eval "$as_ac_Header=\$ac_header_preproc"
11234fi
11235ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237echo "${ECHO_T}$ac_res" >&6; }
11238
11239fi
11240if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243_ACEOF
11244
11245fi
11246
11247done
11248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011249
11250
11251
11252
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011254do
11255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261fi
11262ac_res=`eval echo '${'$as_ac_Header'}'`
11263 { echo "$as_me:$LINENO: result: $ac_res" >&5
11264echo "${ECHO_T}$ac_res" >&6; }
11265else
11266 # Is the header compilable?
11267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275$ac_includes_default
11276#include <$ac_header>
11277_ACEOF
11278rm -f conftest.$ac_objext
11279if { (ac_try="$ac_compile"
11280case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_compile") 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest.$ac_objext'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_header_compiler=yes
11313else
11314 echo "$as_me: failed program was:" >&5
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_header_compiler=no
11318fi
11319
11320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322echo "${ECHO_T}$ac_header_compiler" >&6; }
11323
11324# Is the header present?
11325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333#include <$ac_header>
11334_ACEOF
11335if { (ac_try="$ac_cpp conftest.$ac_ext"
11336case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
11350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11351 else
11352 ac_cpp_err=
11353 fi
11354else
11355 ac_cpp_err=yes
11356fi
11357if test -z "$ac_cpp_err"; then
11358 ac_header_preproc=yes
11359else
11360 echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 ac_header_preproc=no
11364fi
11365
11366rm -f conftest.err conftest.$ac_ext
11367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368echo "${ECHO_T}$ac_header_preproc" >&6; }
11369
11370# So? What about this header?
11371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11372 yes:no: )
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377 ac_header_preproc=yes
11378 ;;
11379 no:yes:* )
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011393## ------------------------------------ ##
11394## Report this to http://llvm.org/bugs/ ##
11395## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011396_ASBOX
11397 ) | sed "s/^/$as_me: WARNING: /" >&2
11398 ;;
11399esac
11400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 eval "$as_ac_Header=\$ac_header_preproc"
11406fi
11407ac_res=`eval echo '${'$as_ac_Header'}'`
11408 { echo "$as_me:$LINENO: result: $ac_res" >&5
11409echo "${ECHO_T}$ac_res" >&6; }
11410
11411fi
11412if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415_ACEOF
11416
11417fi
11418
11419done
11420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011421
11422
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011424do
11425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431fi
11432ac_res=`eval echo '${'$as_ac_Header'}'`
11433 { echo "$as_me:$LINENO: result: $ac_res" >&5
11434echo "${ECHO_T}$ac_res" >&6; }
11435else
11436 # Is the header compilable?
11437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11439cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
11445$ac_includes_default
11446#include <$ac_header>
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (ac_try="$ac_compile"
11450case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_compile") 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466esac
11467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476esac
11477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_header_compiler=yes
11483else
11484 echo "$as_me: failed program was:" >&5
11485sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 ac_header_compiler=no
11488fi
11489
11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492echo "${ECHO_T}$ac_header_compiler" >&6; }
11493
11494# Is the header present?
11495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11497cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503#include <$ac_header>
11504_ACEOF
11505if { (ac_try="$ac_cpp conftest.$ac_ext"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } >/dev/null; then
11518 if test -s conftest.err; then
11519 ac_cpp_err=$ac_c_preproc_warn_flag
11520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11521 else
11522 ac_cpp_err=
11523 fi
11524else
11525 ac_cpp_err=yes
11526fi
11527if test -z "$ac_cpp_err"; then
11528 ac_header_preproc=yes
11529else
11530 echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 ac_header_preproc=no
11534fi
11535
11536rm -f conftest.err conftest.$ac_ext
11537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538echo "${ECHO_T}$ac_header_preproc" >&6; }
11539
11540# So? What about this header?
11541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11542 yes:no: )
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11547 ac_header_preproc=yes
11548 ;;
11549 no:yes:* )
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11562 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011563## ------------------------------------ ##
11564## Report this to http://llvm.org/bugs/ ##
11565## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011566_ASBOX
11567 ) | sed "s/^/$as_me: WARNING: /" >&2
11568 ;;
11569esac
11570{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 eval "$as_ac_Header=\$ac_header_preproc"
11576fi
11577ac_res=`eval echo '${'$as_ac_Header'}'`
11578 { echo "$as_me:$LINENO: result: $ac_res" >&5
11579echo "${ECHO_T}$ac_res" >&6; }
11580
11581fi
11582if test `eval echo '${'$as_ac_Header'}'` = 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_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585_ACEOF
11586 break
11587fi
11588
11589done
11590
11591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011592
11593
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011595do
11596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11599if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 cat >conftest.$ac_ext <<_ACEOF
11603/* confdefs.h. */
11604_ACEOF
11605cat confdefs.h >>conftest.$ac_ext
11606cat >>conftest.$ac_ext <<_ACEOF
11607/* end confdefs.h. */
11608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11610#define $ac_func innocuous_$ac_func
11611
11612/* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func (); below.
11614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11615 <limits.h> exists even on freestanding compilers. */
11616
11617#ifdef __STDC__
11618# include <limits.h>
11619#else
11620# include <assert.h>
11621#endif
11622
11623#undef $ac_func
11624
11625/* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631char $ac_func ();
11632/* The GNU C library defines this for functions which it implements
11633 to always fail with ENOSYS. Some functions are actually named
11634 something starting with __ and the normal name is an alias. */
11635#if defined __stub_$ac_func || defined __stub___$ac_func
11636choke me
11637#endif
11638
11639int
11640main ()
11641{
11642return $ac_func ();
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext conftest$ac_exeext
11648if { (ac_try="$ac_link"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest$ac_exeext'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 eval "$as_ac_var=yes"
11682else
11683 echo "$as_me: failed program was:" >&5
11684sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 eval "$as_ac_var=no"
11687fi
11688
11689rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691fi
11692ac_res=`eval echo '${'$as_ac_var'}'`
11693 { echo "$as_me:$LINENO: result: $ac_res" >&5
11694echo "${ECHO_T}$ac_res" >&6; }
11695if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698_ACEOF
11699 break
11700fi
11701done
11702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011703
11704
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011706do
11707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11710if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713 cat >conftest.$ac_ext <<_ACEOF
11714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11721#define $ac_func innocuous_$ac_func
11722
11723/* System header to define __stub macros and hopefully few prototypes,
11724 which can conflict with char $ac_func (); below.
11725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726 <limits.h> exists even on freestanding compilers. */
11727
11728#ifdef __STDC__
11729# include <limits.h>
11730#else
11731# include <assert.h>
11732#endif
11733
11734#undef $ac_func
11735
11736/* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11739#ifdef __cplusplus
11740extern "C"
11741#endif
11742char $ac_func ();
11743/* The GNU C library defines this for functions which it implements
11744 to always fail with ENOSYS. Some functions are actually named
11745 something starting with __ and the normal name is an alias. */
11746#if defined __stub_$ac_func || defined __stub___$ac_func
11747choke me
11748#endif
11749
11750int
11751main ()
11752{
11753return $ac_func ();
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext conftest$ac_exeext
11759if { (ac_try="$ac_link"
11760case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_link") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 eval "$as_ac_var=yes"
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 eval "$as_ac_var=no"
11798fi
11799
11800rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11802fi
11803ac_res=`eval echo '${'$as_ac_var'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805echo "${ECHO_T}$ac_res" >&6; }
11806if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809_ACEOF
11810 break
11811fi
11812done
11813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011814
11815
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011817do
11818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11832#define $ac_func innocuous_$ac_func
11833
11834/* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char $ac_func (); below.
11836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837 <limits.h> exists even on freestanding compilers. */
11838
11839#ifdef __STDC__
11840# include <limits.h>
11841#else
11842# include <assert.h>
11843#endif
11844
11845#undef $ac_func
11846
11847/* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850#ifdef __cplusplus
11851extern "C"
11852#endif
11853char $ac_func ();
11854/* The GNU C library defines this for functions which it implements
11855 to always fail with ENOSYS. Some functions are actually named
11856 something starting with __ and the normal name is an alias. */
11857#if defined __stub_$ac_func || defined __stub___$ac_func
11858choke me
11859#endif
11860
11861int
11862main ()
11863{
11864return $ac_func ();
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest.$ac_objext conftest$ac_exeext
11870if { (ac_try="$ac_link"
11871case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_link") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897esac
11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 eval "$as_ac_var=yes"
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 eval "$as_ac_var=no"
11909fi
11910
11911rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11913fi
11914ac_res=`eval echo '${'$as_ac_var'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916echo "${ECHO_T}$ac_res" >&6; }
11917if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920_ACEOF
11921 break
11922fi
11923done
11924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011925
11926
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011928do
11929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943#define $ac_func innocuous_$ac_func
11944
11945/* System header to define __stub macros and hopefully few prototypes,
11946 which can conflict with char $ac_func (); below.
11947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948 <limits.h> exists even on freestanding compilers. */
11949
11950#ifdef __STDC__
11951# include <limits.h>
11952#else
11953# include <assert.h>
11954#endif
11955
11956#undef $ac_func
11957
11958/* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961#ifdef __cplusplus
11962extern "C"
11963#endif
11964char $ac_func ();
11965/* The GNU C library defines this for functions which it implements
11966 to always fail with ENOSYS. Some functions are actually named
11967 something starting with __ and the normal name is an alias. */
11968#if defined __stub_$ac_func || defined __stub___$ac_func
11969choke me
11970#endif
11971
11972int
11973main ()
11974{
11975return $ac_func ();
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext conftest$ac_exeext
11981if { (ac_try="$ac_link"
11982case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_link") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008esac
12009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 eval "$as_ac_var=yes"
12015else
12016 echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 eval "$as_ac_var=no"
12020fi
12021
12022rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024fi
12025ac_res=`eval echo '${'$as_ac_var'}'`
12026 { echo "$as_me:$LINENO: result: $ac_res" >&5
12027echo "${ECHO_T}$ac_res" >&6; }
12028if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031_ACEOF
12032
12033fi
12034done
12035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012036
12037
12038
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012040do
12041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12042{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12055#define $ac_func innocuous_$ac_func
12056
12057/* System header to define __stub macros and hopefully few prototypes,
12058 which can conflict with char $ac_func (); below.
12059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12060 <limits.h> exists even on freestanding compilers. */
12061
12062#ifdef __STDC__
12063# include <limits.h>
12064#else
12065# include <assert.h>
12066#endif
12067
12068#undef $ac_func
12069
12070/* Override any GCC internal prototype to avoid an error.
12071 Use char because int might match the return type of a GCC
12072 builtin and then its argument prototype would still apply. */
12073#ifdef __cplusplus
12074extern "C"
12075#endif
12076char $ac_func ();
12077/* The GNU C library defines this for functions which it implements
12078 to always fail with ENOSYS. Some functions are actually named
12079 something starting with __ and the normal name is an alias. */
12080#if defined __stub_$ac_func || defined __stub___$ac_func
12081choke me
12082#endif
12083
12084int
12085main ()
12086{
12087return $ac_func ();
12088 ;
12089 return 0;
12090}
12091_ACEOF
12092rm -f conftest.$ac_objext conftest$ac_exeext
12093if { (ac_try="$ac_link"
12094case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_link") 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110esac
12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_try") 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 eval "$as_ac_var=yes"
12127else
12128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 eval "$as_ac_var=no"
12132fi
12133
12134rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136fi
12137ac_res=`eval echo '${'$as_ac_var'}'`
12138 { echo "$as_me:$LINENO: result: $ac_res" >&5
12139echo "${ECHO_T}$ac_res" >&6; }
12140if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143_ACEOF
12144
12145fi
12146done
12147
12148
Douglas Gregor01746742009-05-11 18:05:52 +000012149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12151echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012152
Reid Spencer86901802004-12-08 23:07:27 +000012153ICC=no
12154IXX=no
12155case $CC in
12156 icc*|icpc*)
12157 ICC=yes
12158 IXX=yes
12159 ;;
12160 *)
12161 ;;
12162esac
12163
Duraid Madina937c60a2006-02-15 07:57:42 +000012164if test "$GCC" != "yes" && test "$ICC" != "yes"
12165then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012166 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12167echo "$as_me: error: gcc|icc required but not found" >&2;}
12168 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012169fi
12170
12171if test "$GXX" != "yes" && test "$IXX" != "yes"
12172then
Eric Christopher73e36da2010-12-08 02:02:14 +000012173 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12174echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012175 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012176fi
12177
Reid Spencer86901802004-12-08 23:07:27 +000012178if test "$GCC" = "yes"
12179then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012180 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012181#if !defined(__GNUC__) || __GNUC__ < 3
12182#error Unsupported GCC version
12183#endif
12184
12185_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012186rm -f conftest.$ac_objext
12187if { (ac_try="$ac_compile"
12188case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_compile") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204esac
12205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012222 echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12226echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12227 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229
Chris Lattner399c7c72008-02-05 19:43:53 +000012230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012231fi
12232
12233if test -z "$llvm_cv_gnu_make_command"
12234then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012235 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12236echo "$as_me: error: GNU Make required but not found" >&2;}
12237 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012238fi
12239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240{ echo "$as_me:$LINENO: result: ok" >&5
12241echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012243{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12244echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012245NO_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 +000012246
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012247NO_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 +000012248
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012249COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12250
David Greened2f82162013-01-09 22:11:13 +000012251if test "$GXX" = "yes"
12252then
12253 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12254
12255 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12256 then
12257 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12258
12259 else
David Greene0b198ca2013-01-15 18:21:15 +000012260 gxx_version=`$CXX -dumpversion`
12261 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12262 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12263 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12264
12265 if test "$gxx_version_major" -ge "4" \
12266 && test "$gxx_version_minor" -ge "7"; then
12267 NO_UNINITIALIZED=
12268 else
12269 NO_MAYBE_UNINITIALIZED=
12270 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12271
12272 fi
David Greened2f82162013-01-09 22:11:13 +000012273 fi
12274else
12275 NO_UNINITIALIZED=
12276 NO_MAYBE_UNINITIALIZED=
12277fi
12278{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12279echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12280
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012281
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012283
12284{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12285echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12286if test "${ac_cv_lib_m_sin+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012288else
12289 ac_check_lib_save_LIBS=$LIBS
12290LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012291cat >conftest.$ac_ext <<_ACEOF
12292/* confdefs.h. */
12293_ACEOF
12294cat confdefs.h >>conftest.$ac_ext
12295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012296/* end confdefs.h. */
12297
Reid Spencera773bd52006-08-04 18:18:08 +000012298/* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012301#ifdef __cplusplus
12302extern "C"
12303#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012304char sin ();
12305int
12306main ()
12307{
Reid Spencera773bd52006-08-04 18:18:08 +000012308return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012309 ;
12310 return 0;
12311}
12312_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012313rm -f conftest.$ac_objext conftest$ac_exeext
12314if { (ac_try="$ac_link"
12315case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318esac
12319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_link") 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12331esac
12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012347 ac_cv_lib_m_sin=yes
12348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012349 echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
12352 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012354
Bill Wendlingebcceee2009-04-18 11:20:33 +000012355rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012356 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012357LIBS=$ac_check_lib_save_LIBS
12358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012359{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12360echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12361if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012362 cat >>confdefs.h <<_ACEOF
12363#define HAVE_LIBM 1
12364_ACEOF
12365
12366 LIBS="-lm $LIBS"
12367
12368fi
12369
Jeff Cohen28783c32007-01-12 18:22:38 +000012370if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012371
12372{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12373echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12374if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012376else
12377 ac_check_lib_save_LIBS=$LIBS
12378LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012384/* end confdefs.h. */
12385
Reid Spencer48fdf912006-06-01 19:03:21 +000012386
Reid Spencer484fc8e2006-06-01 16:55:59 +000012387int
12388main ()
12389{
Reid Spencera773bd52006-08-04 18:18:08 +000012390return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012391 ;
12392 return 0;
12393}
12394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012395rm -f conftest.$ac_objext conftest$ac_exeext
12396if { (ac_try="$ac_link"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_link") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012429 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012436
Bill Wendlingebcceee2009-04-18 11:20:33 +000012437rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012438 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012439LIBS=$ac_check_lib_save_LIBS
12440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012441{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12442echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12443if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012444 cat >>confdefs.h <<_ACEOF
12445#define HAVE_LIBIMAGEHLP 1
12446_ACEOF
12447
12448 LIBS="-limagehlp $LIBS"
12449
12450fi
12451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012452
12453{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12454echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12455if test "${ac_cv_lib_psapi_main+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012457else
12458 ac_check_lib_save_LIBS=$LIBS
12459LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460cat >conftest.$ac_ext <<_ACEOF
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012465/* end confdefs.h. */
12466
Reid Spencer48fdf912006-06-01 19:03:21 +000012467
Reid Spencer484fc8e2006-06-01 16:55:59 +000012468int
12469main ()
12470{
Reid Spencera773bd52006-08-04 18:18:08 +000012471return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012472 ;
12473 return 0;
12474}
12475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476rm -f conftest.$ac_objext conftest$ac_exeext
12477if { (ac_try="$ac_link"
12478case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12481esac
12482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494esac
12495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504esac
12505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012510 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012512 echo "$as_me: failed program was:" >&5
12513sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012517
Bill Wendlingebcceee2009-04-18 11:20:33 +000012518rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012519 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012520LIBS=$ac_check_lib_save_LIBS
12521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012522{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12523echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12524if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012525 cat >>confdefs.h <<_ACEOF
12526#define HAVE_LIBPSAPI 1
12527_ACEOF
12528
12529 LIBS="-lpsapi $LIBS"
12530
12531fi
12532
12533fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012535{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12536echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12537if test "${ac_cv_search_dlopen+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012539else
12540 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012547
Reid Spencera773bd52006-08-04 18:18:08 +000012548/* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012551#ifdef __cplusplus
12552extern "C"
12553#endif
John Criswell7a73b802003-06-30 21:59:07 +000012554char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012555int
12556main ()
12557{
Reid Spencera773bd52006-08-04 18:18:08 +000012558return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012559 ;
12560 return 0;
12561}
12562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012563for ac_lib in '' dl; do
12564 if test -z "$ac_lib"; then
12565 ac_res="none required"
12566 else
12567 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012569 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012570 rm -f conftest.$ac_objext conftest$ac_exeext
12571if { (ac_try="$ac_link"
12572case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575esac
12576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12585 { (case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588esac
12589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_try") 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012604 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605else
12606 echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609
John Criswell7a73b802003-06-30 21:59:07 +000012610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012611
Bill Wendlingebcceee2009-04-18 11:20:33 +000012612rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012613 conftest$ac_exeext
12614 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012615 break
John Criswell7a73b802003-06-30 21:59:07 +000012616fi
Reid Spencera773bd52006-08-04 18:18:08 +000012617done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012618if test "${ac_cv_search_dlopen+set}" = set; then
12619 :
Reid Spencera773bd52006-08-04 18:18:08 +000012620else
12621 ac_cv_search_dlopen=no
12622fi
12623rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012624LIBS=$ac_func_search_save_LIBS
12625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012626{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12627echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012628ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012629if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012632cat >>confdefs.h <<\_ACEOF
12633#define HAVE_DLOPEN 1
12634_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012635
12636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012637 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12638echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012639fi
12640
12641
Chandler Carruth73c35d82013-01-04 23:19:55 +000012642{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12643echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12644if test "${ac_cv_search_clock_gettime+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646else
12647 ac_func_search_save_LIBS=$LIBS
12648cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654
12655/* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12658#ifdef __cplusplus
12659extern "C"
12660#endif
12661char clock_gettime ();
12662int
12663main ()
12664{
12665return clock_gettime ();
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670for ac_lib in '' rt; do
12671 if test -z "$ac_lib"; then
12672 ac_res="none required"
12673 else
12674 ac_res=-l$ac_lib
12675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12676 fi
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678if { (ac_try="$ac_link"
12679case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682esac
12683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_link") 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12692 { (case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695esac
12696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_try") 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; } &&
12701 { ac_try='test -s conftest$ac_exeext'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705esac
12706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 ac_cv_search_clock_gettime=$ac_res
12712else
12713 echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716
12717fi
12718
12719rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext
12721 if test "${ac_cv_search_clock_gettime+set}" = set; then
12722 break
12723fi
12724done
12725if test "${ac_cv_search_clock_gettime+set}" = set; then
12726 :
12727else
12728 ac_cv_search_clock_gettime=no
12729fi
12730rm conftest.$ac_ext
12731LIBS=$ac_func_search_save_LIBS
12732fi
12733{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12734echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12735ac_res=$ac_cv_search_clock_gettime
12736if test "$ac_res" != no; then
12737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12738
Chandler Carruth73c35d82013-01-04 23:19:55 +000012739fi
12740
12741
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012742if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012743 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12744echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12745if test "${ac_cv_search_ffi_call+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012747else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012748 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012754/* end confdefs.h. */
12755
12756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759#ifdef __cplusplus
12760extern "C"
12761#endif
12762char ffi_call ();
12763int
12764main ()
12765{
12766return ffi_call ();
12767 ;
12768 return 0;
12769}
12770_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012771for ac_lib in '' ffi; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12774 else
12775 ac_res=-l$ac_lib
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778 rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012812 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819
Bill Wendlingebcceee2009-04-18 11:20:33 +000012820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 conftest$ac_exeext
12822 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012823 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012824fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012826if test "${ac_cv_search_ffi_call+set}" = set; then
12827 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012828else
12829 ac_cv_search_ffi_call=no
12830fi
12831rm conftest.$ac_ext
12832LIBS=$ac_func_search_save_LIBS
12833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012834{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12835echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012836ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840cat >>confdefs.h <<\_ACEOF
12841#define HAVE_FFI_CALL 1
12842_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012843
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012844else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012845 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12846echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12847 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012848fi
12849
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012850fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12853echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12854if test "${ac_cv_search_mallinfo+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012856else
12857 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012858cat >conftest.$ac_ext <<_ACEOF
12859/* confdefs.h. */
12860_ACEOF
12861cat confdefs.h >>conftest.$ac_ext
12862cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012864
Reid Spencera773bd52006-08-04 18:18:08 +000012865/* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012868#ifdef __cplusplus
12869extern "C"
12870#endif
John Criswell7a73b802003-06-30 21:59:07 +000012871char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012872int
12873main ()
12874{
Reid Spencera773bd52006-08-04 18:18:08 +000012875return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012876 ;
12877 return 0;
12878}
12879_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012880for ac_lib in '' malloc; do
12881 if test -z "$ac_lib"; then
12882 ac_res="none required"
12883 else
12884 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012886 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887 rm -f conftest.$ac_objext conftest$ac_exeext
12888if { (ac_try="$ac_link"
12889case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892esac
12893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905esac
12906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012921 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926
John Criswell7a73b802003-06-30 21:59:07 +000012927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012928
Bill Wendlingebcceee2009-04-18 11:20:33 +000012929rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930 conftest$ac_exeext
12931 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012932 break
John Criswell7a73b802003-06-30 21:59:07 +000012933fi
Reid Spencera773bd52006-08-04 18:18:08 +000012934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935if test "${ac_cv_search_mallinfo+set}" = set; then
12936 :
Reid Spencera773bd52006-08-04 18:18:08 +000012937else
12938 ac_cv_search_mallinfo=no
12939fi
12940rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012941LIBS=$ac_func_search_save_LIBS
12942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012943{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12944echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012945ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012946if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012949cat >>confdefs.h <<\_ACEOF
12950#define HAVE_MALLINFO 1
12951_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012952
12953fi
12954
12955
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012956if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957
12958{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12959echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12960if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012962else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012963 ac_check_lib_save_LIBS=$LIBS
12964LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012965cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012970/* end confdefs.h. */
12971
Reid Spencera773bd52006-08-04 18:18:08 +000012972/* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012975#ifdef __cplusplus
12976extern "C"
12977#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012978char pthread_mutex_init ();
12979int
12980main ()
12981{
Reid Spencera773bd52006-08-04 18:18:08 +000012982return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012983 ;
12984 return 0;
12985}
12986_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987rm -f conftest.$ac_objext conftest$ac_exeext
12988if { (ac_try="$ac_link"
12989case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12992esac
12993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_link") 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_try") 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015esac
13016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_try") 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013021 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028
Bill Wendlingebcceee2009-04-18 11:20:33 +000013029rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013030 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013031LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13034echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13035if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013036 cat >>confdefs.h <<_ACEOF
13037#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013038_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013039
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013040 LIBS="-lpthread $LIBS"
13041
Reid Spencer22177fe2005-07-12 15:24:20 +000013042fi
13043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13045echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13046if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013048else
13049 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013055/* end confdefs.h. */
13056
Reid Spencera773bd52006-08-04 18:18:08 +000013057/* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013060#ifdef __cplusplus
13061extern "C"
13062#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013063char pthread_mutex_lock ();
13064int
13065main ()
13066{
Reid Spencera773bd52006-08-04 18:18:08 +000013067return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013068 ;
13069 return 0;
13070}
13071_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013072for ac_lib in '' pthread; do
13073 if test -z "$ac_lib"; then
13074 ac_res="none required"
13075 else
13076 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013078 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079 rm -f conftest.$ac_objext conftest$ac_exeext
13080if { (ac_try="$ac_link"
13081case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084esac
13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_link") 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107esac
13108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_try") 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013113 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114else
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
13118
Brian Gaeke5f268f72003-12-05 19:29:01 +000013119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120
Bill Wendlingebcceee2009-04-18 11:20:33 +000013121rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122 conftest$ac_exeext
13123 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013124 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013125fi
Reid Spencera773bd52006-08-04 18:18:08 +000013126done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013127if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13128 :
Reid Spencera773bd52006-08-04 18:18:08 +000013129else
13130 ac_cv_search_pthread_mutex_lock=no
13131fi
13132rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013133LIBS=$ac_func_search_save_LIBS
13134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13136echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013137ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141cat >>confdefs.h <<\_ACEOF
13142#define HAVE_PTHREAD_MUTEX_LOCK 1
13143_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013144
13145fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013147 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13148echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13149if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013151else
13152 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013153cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013158/* end confdefs.h. */
13159
13160/* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163#ifdef __cplusplus
13164extern "C"
13165#endif
13166char pthread_rwlock_init ();
13167int
13168main ()
13169{
13170return pthread_rwlock_init ();
13171 ;
13172 return 0;
13173}
13174_ACEOF
13175for ac_lib in '' pthread; do
13176 if test -z "$ac_lib"; then
13177 ac_res="none required"
13178 else
13179 ac_res=-l$ac_lib
13180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13181 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182 rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (ac_try="$ac_link"
13184case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187esac
13188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_link") 2>conftest.er1
13190 ac_status=$?
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13197 { (case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_try") 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210esac
13211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_try") 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013216 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221
Owen Andersonde8aed22009-06-16 18:20:20 +000013222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223
Owen Andersonde8aed22009-06-16 18:20:20 +000013224rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013225 conftest$ac_exeext
13226 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013227 break
13228fi
13229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13231 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013232else
13233 ac_cv_search_pthread_rwlock_init=no
13234fi
13235rm conftest.$ac_ext
13236LIBS=$ac_func_search_save_LIBS
13237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13239echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013240ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013241if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013244cat >>confdefs.h <<\_ACEOF
13245#define HAVE_PTHREAD_RWLOCK_INIT 1
13246_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013247
13248fi
13249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13251echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13252if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013254else
13255 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256cat >conftest.$ac_ext <<_ACEOF
13257/* confdefs.h. */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013261/* end confdefs.h. */
13262
13263/* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13266#ifdef __cplusplus
13267extern "C"
13268#endif
13269char pthread_getspecific ();
13270int
13271main ()
13272{
13273return pthread_getspecific ();
13274 ;
13275 return 0;
13276}
13277_ACEOF
13278for ac_lib in '' pthread; do
13279 if test -z "$ac_lib"; then
13280 ac_res="none required"
13281 else
13282 ac_res=-l$ac_lib
13283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13284 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285 rm -f conftest.$ac_objext conftest$ac_exeext
13286if { (ac_try="$ac_link"
13287case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_link") 2>conftest.er1
13293 ac_status=$?
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13300 { (case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_try") 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313esac
13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_try") 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013319 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324
Owen Anderson27fcfe12009-06-25 23:10:26 +000013325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326
Owen Anderson27fcfe12009-06-25 23:10:26 +000013327rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013328 conftest$ac_exeext
13329 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013330 break
13331fi
13332done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013333if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13334 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013335else
13336 ac_cv_search_pthread_getspecific=no
13337fi
13338rm conftest.$ac_ext
13339LIBS=$ac_func_search_save_LIBS
13340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13342echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013343ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013347cat >>confdefs.h <<\_ACEOF
13348#define HAVE_PTHREAD_GETSPECIFIC 1
13349_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013350
13351fi
13352
Reid Spencer0a262ba2005-08-24 10:07:20 +000013353fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013355
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013356# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013358 withval=$with_udis86;
13359 USE_UDIS86=1
13360
13361 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013362 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013363 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13364 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365
13366{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13367echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13368if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013370else
13371 ac_check_lib_save_LIBS=$LIBS
13372LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013378/* end confdefs.h. */
13379
13380/* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383#ifdef __cplusplus
13384extern "C"
13385#endif
13386char ud_init ();
13387int
13388main ()
13389{
13390return ud_init ();
13391 ;
13392 return 0;
13393}
13394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013395rm -f conftest.$ac_objext conftest$ac_exeext
13396if { (ac_try="$ac_link"
13397case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_link") 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013429 ac_cv_lib_udis86_ud_init=yes
13430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436
Bill Wendlingebcceee2009-04-18 11:20:33 +000013437rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013439LIBS=$ac_check_lib_save_LIBS
13440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13442echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13443if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013444 cat >>confdefs.h <<_ACEOF
13445#define HAVE_LIBUDIS86 1
13446_ACEOF
13447
13448 LIBS="-ludis86 $LIBS"
13449
13450else
13451
13452 echo "Error! You need to have libudis86 around."
13453 exit -1
13454
13455fi
13456
13457
13458else
13459 USE_UDIS86=0
13460
13461fi
13462
13463
13464cat >>confdefs.h <<_ACEOF
13465#define USE_UDIS86 $USE_UDIS86
13466_ACEOF
13467
13468
13469
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013470# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013471if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013472 withval=$with_oprofile;
13473 USE_OPROFILE=1
13474
13475 case "$withval" in
13476 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013477 no) llvm_cv_oppath=
13478 USE_OPROFILE=0
13479 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013480 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013481 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013482 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013483 case $llvm_cv_os_type in
13484 Linux)
13485 if test -n "$llvm_cv_oppath" ; then
13486 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13487 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013488echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13489if test "${ac_cv_search_bfd_init+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013491else
13492 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013498/* end confdefs.h. */
13499
13500/* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13503#ifdef __cplusplus
13504extern "C"
13505#endif
13506char bfd_init ();
13507int
13508main ()
13509{
13510return bfd_init ();
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515for ac_lib in '' bfd; do
13516 if test -z "$ac_lib"; then
13517 ac_res="none required"
13518 else
13519 ac_res=-l$ac_lib
13520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13521 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013522 rm -f conftest.$ac_objext conftest$ac_exeext
13523if { (ac_try="$ac_link"
13524case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_link") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540esac
13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013556 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557else
13558 echo "$as_me: failed program was:" >&5
13559sed 's/^/| /' conftest.$ac_ext >&5
13560
13561
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013563
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013564rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013565 conftest$ac_exeext
13566 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013567 break
13568fi
13569done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013570if test "${ac_cv_search_bfd_init+set}" = set; then
13571 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013572else
13573 ac_cv_search_bfd_init=no
13574fi
13575rm conftest.$ac_ext
13576LIBS=$ac_func_search_save_LIBS
13577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13579echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013580ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013581if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13583
13584fi
13585
Eli Bendersky61b18512012-03-13 08:33:15 +000013586 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013587echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13588if test "${ac_cv_search_op_open_agent+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013590else
13591 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013597/* end confdefs.h. */
13598
13599/* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13602#ifdef __cplusplus
13603extern "C"
13604#endif
13605char op_open_agent ();
13606int
13607main ()
13608{
13609return op_open_agent ();
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614for ac_lib in '' opagent; do
13615 if test -z "$ac_lib"; then
13616 ac_res="none required"
13617 else
13618 ac_res=-l$ac_lib
13619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13620 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621 rm -f conftest.$ac_objext conftest$ac_exeext
13622if { (ac_try="$ac_link"
13623case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_link") 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639esac
13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013655 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013656else
13657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013662
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013663rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013664 conftest$ac_exeext
13665 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013666 break
13667fi
13668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013669if test "${ac_cv_search_op_open_agent+set}" = set; then
13670 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013671else
13672 ac_cv_search_op_open_agent=no
13673fi
13674rm conftest.$ac_ext
13675LIBS=$ac_func_search_save_LIBS
13676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013677{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13678echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013679ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013680if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13682
13683else
13684
Eli Bendersky61b18512012-03-13 08:33:15 +000013685 echo "Error! You need to have libopagent around."
13686 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013687
13688fi
13689
Eli Bendersky61b18512012-03-13 08:33:15 +000013690 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013691 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13692echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13693if test "${ac_cv_header_opagent_h+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695fi
13696{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13697echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13698else
13699 # Is the header compilable?
13700{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13701echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13702cat >conftest.$ac_ext <<_ACEOF
13703/* confdefs.h. */
13704_ACEOF
13705cat confdefs.h >>conftest.$ac_ext
13706cat >>conftest.$ac_ext <<_ACEOF
13707/* end confdefs.h. */
13708$ac_includes_default
13709#include <opagent.h>
13710_ACEOF
13711rm -f conftest.$ac_objext
13712if { (ac_try="$ac_compile"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compile") 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_header_compiler=yes
13746else
13747 echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013750 ac_header_compiler=no
13751fi
13752
13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13755echo "${ECHO_T}$ac_header_compiler" >&6; }
13756
13757# Is the header present?
13758{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13759echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13760cat >conftest.$ac_ext <<_ACEOF
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
13766#include <opagent.h>
13767_ACEOF
13768if { (ac_try="$ac_cpp conftest.$ac_ext"
13769case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } >/dev/null; then
13781 if test -s conftest.err; then
13782 ac_cpp_err=$ac_c_preproc_warn_flag
13783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13784 else
13785 ac_cpp_err=
13786 fi
13787else
13788 ac_cpp_err=yes
13789fi
13790if test -z "$ac_cpp_err"; then
13791 ac_header_preproc=yes
13792else
13793 echo "$as_me: failed program was:" >&5
13794sed 's/^/| /' conftest.$ac_ext >&5
13795
13796 ac_header_preproc=no
13797fi
13798
13799rm -f conftest.err conftest.$ac_ext
13800{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13801echo "${ECHO_T}$ac_header_preproc" >&6; }
13802
13803# So? What about this header?
13804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13805 yes:no: )
13806 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13807echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13809echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13810 ac_header_preproc=yes
13811 ;;
13812 no:yes:* )
13813 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13814echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13816echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13818echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13820echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13822echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13823 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13824echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13825 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013826## ------------------------------------ ##
13827## Report this to http://llvm.org/bugs/ ##
13828## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829_ASBOX
13830 ) | sed "s/^/$as_me: WARNING: /" >&2
13831 ;;
13832esac
13833{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13834echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13835if test "${ac_cv_header_opagent_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 ac_cv_header_opagent_h=$ac_header_preproc
13839fi
13840{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13841echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13842
13843fi
13844if test $ac_cv_header_opagent_h = yes; then
13845 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013846else
13847
Eli Bendersky61b18512012-03-13 08:33:15 +000013848 echo "Error! You need to have opagent.h around."
13849 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013850
13851fi
13852
13853
Eli Bendersky61b18512012-03-13 08:33:15 +000013854 fi ;;
13855 *)
13856 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13857echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13858 { (exit 1); exit 1; }; } ;;
13859 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013860
13861else
13862
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013863 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013864
13865
13866fi
13867
13868
13869cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013870#define LLVM_USE_OPROFILE $USE_OPROFILE
13871_ACEOF
13872
13873
13874
13875# Check whether --with-intel-jitevents was given.
13876if test "${with_intel_jitevents+set}" = set; then
13877 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013878 case "$withval" in
13879 yes) USE_INTEL_JITEVENTS=1
13880;;
13881 no) USE_INTEL_JITEVENTS=0
13882;;
13883 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13884echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13885 { (exit 1); exit 1; }; };;
13886 esac
13887
Eli Bendersky61b18512012-03-13 08:33:15 +000013888 case $llvm_cv_os_type in
13889 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013890 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13891echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13892 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013893 esac
13894
Eli Bendersky61b18512012-03-13 08:33:15 +000013895 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013896 x86|x86_64) ;;
13897 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13898echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13899 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013900 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013901
13902else
13903
13904 USE_INTEL_JITEVENTS=0
13905
13906
13907fi
13908
13909
13910cat >>confdefs.h <<_ACEOF
13911#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013912_ACEOF
13913
13914
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013915for ac_prog in xml2-config
13916do
13917 # Extract the first word of "$ac_prog", so it can be a program name with args.
13918set dummy $ac_prog; ac_word=$2
13919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13921if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923else
13924 if test -n "$XML2CONFIG"; then
13925 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13926else
13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $PATH
13929do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_XML2CONFIG="$ac_prog"
13935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13937 fi
13938done
13939done
13940IFS=$as_save_IFS
13941
13942fi
13943fi
13944XML2CONFIG=$ac_cv_prog_XML2CONFIG
13945if test -n "$XML2CONFIG"; then
13946 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13947echo "${ECHO_T}$XML2CONFIG" >&6; }
13948else
13949 { echo "$as_me:$LINENO: result: no" >&5
13950echo "${ECHO_T}no" >&6; }
13951fi
13952
13953
13954 test -n "$XML2CONFIG" && break
13955done
13956
13957
13958{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13959echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13960if test "x$XML2CONFIG" = "x"; then
13961 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13962echo "${ECHO_T}xml2-config not found" >&6; }
13963else
13964 LIBXML2_INC=`$XML2CONFIG --cflags`
13965 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13966echo "${ECHO_T}$LIBXML2_INC" >&6; }
13967 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13968echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13969if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972 ac_check_lib_save_LIBS=$LIBS
13973LIBS="-lxml2 $LIBS"
13974cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980
13981/* Override any GCC internal prototype to avoid an error.
13982 Use char because int might match the return type of a GCC
13983 builtin and then its argument prototype would still apply. */
13984#ifdef __cplusplus
13985extern "C"
13986#endif
13987char xmlReadFile ();
13988int
13989main ()
13990{
13991return xmlReadFile ();
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996rm -f conftest.$ac_objext conftest$ac_exeext
13997if { (ac_try="$ac_link"
13998case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001esac
14002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14014esac
14015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024esac
14025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_lib_xml2_xmlReadFile=yes
14031else
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_cv_lib_xml2_xmlReadFile=no
14036fi
14037
14038rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040LIBS=$ac_check_lib_save_LIBS
14041fi
14042{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14043echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14044if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14045
14046cat >>confdefs.h <<\_ACEOF
14047#define CLANG_HAVE_LIBXML 1
14048_ACEOF
14049
14050 LIBXML2_LIBS="-lxml2"
14051fi
14052
14053fi
14054
14055
14056
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058
14059
14060
14061
14062
Reid Spencer59473af2004-12-25 07:31:29 +000014063ac_header_dirent=no
14064for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14066{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14067echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071 cat >conftest.$ac_ext <<_ACEOF
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014076/* end confdefs.h. */
14077#include <sys/types.h>
14078#include <$ac_hdr>
14079
14080int
14081main ()
14082{
14083if ((DIR *) 0)
14084return 0;
14085 ;
14086 return 0;
14087}
14088_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014089rm -f conftest.$ac_objext
14090if { (ac_try="$ac_compile"
14091case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094esac
14095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_compile") 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107esac
14108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014123 eval "$as_ac_Header=yes"
14124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125 echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130
Reid Spencera773bd52006-08-04 18:18:08 +000014131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133ac_res=`eval echo '${'$as_ac_Header'}'`
14134 { echo "$as_me:$LINENO: result: $ac_res" >&5
14135echo "${ECHO_T}$ac_res" >&6; }
14136if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014137 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014139_ACEOF
14140
14141ac_header_dirent=$ac_hdr; break
14142fi
14143
14144done
14145# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14146if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14148echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14149if test "${ac_cv_search_opendir+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014151else
14152 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153cat >conftest.$ac_ext <<_ACEOF
14154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014158/* end confdefs.h. */
14159
Reid Spencera773bd52006-08-04 18:18:08 +000014160/* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014163#ifdef __cplusplus
14164extern "C"
14165#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014166char opendir ();
14167int
14168main ()
14169{
Reid Spencera773bd52006-08-04 18:18:08 +000014170return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014171 ;
14172 return 0;
14173}
14174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014175for ac_lib in '' dir; do
14176 if test -z "$ac_lib"; then
14177 ac_res="none required"
14178 else
14179 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014181 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182 rm -f conftest.$ac_objext conftest$ac_exeext
14183if { (ac_try="$ac_link"
14184case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187esac
14188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_link") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14197 { (case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_try") 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014216 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217else
14218 echo "$as_me: failed program was:" >&5
14219sed 's/^/| /' conftest.$ac_ext >&5
14220
14221
Reid Spencer59473af2004-12-25 07:31:29 +000014222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223
Bill Wendlingebcceee2009-04-18 11:20:33 +000014224rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225 conftest$ac_exeext
14226 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014227 break
Reid Spencer59473af2004-12-25 07:31:29 +000014228fi
Reid Spencera773bd52006-08-04 18:18:08 +000014229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230if test "${ac_cv_search_opendir+set}" = set; then
14231 :
Reid Spencera773bd52006-08-04 18:18:08 +000014232else
14233 ac_cv_search_opendir=no
14234fi
14235rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014236LIBS=$ac_func_search_save_LIBS
14237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14239echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014240ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014243
14244fi
14245
14246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14248echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14249if test "${ac_cv_search_opendir+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014251else
14252 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253cat >conftest.$ac_ext <<_ACEOF
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014258/* end confdefs.h. */
14259
Reid Spencera773bd52006-08-04 18:18:08 +000014260/* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014263#ifdef __cplusplus
14264extern "C"
14265#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014266char opendir ();
14267int
14268main ()
14269{
Reid Spencera773bd52006-08-04 18:18:08 +000014270return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014271 ;
14272 return 0;
14273}
14274_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014275for ac_lib in '' x; do
14276 if test -z "$ac_lib"; then
14277 ac_res="none required"
14278 else
14279 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014281 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282 rm -f conftest.$ac_objext conftest$ac_exeext
14283if { (ac_try="$ac_link"
14284case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310esac
14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014316 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317else
14318 echo "$as_me: failed program was:" >&5
14319sed 's/^/| /' conftest.$ac_ext >&5
14320
14321
Reid Spencer59473af2004-12-25 07:31:29 +000014322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323
Bill Wendlingebcceee2009-04-18 11:20:33 +000014324rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014325 conftest$ac_exeext
14326 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014327 break
Reid Spencer59473af2004-12-25 07:31:29 +000014328fi
Reid Spencera773bd52006-08-04 18:18:08 +000014329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330if test "${ac_cv_search_opendir+set}" = set; then
14331 :
Reid Spencera773bd52006-08-04 18:18:08 +000014332else
14333 ac_cv_search_opendir=no
14334fi
14335rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014336LIBS=$ac_func_search_save_LIBS
14337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14339echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014340ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014343
14344fi
14345
14346fi
14347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14349echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14350if test "${ac_cv_header_mmap_anon+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014352else
14353 ac_ext=c
14354ac_cpp='$CPP $CPPFLAGS'
14355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14357ac_compiler_gnu=$ac_cv_c_compiler_gnu
14358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359 cat >conftest.$ac_ext <<_ACEOF
14360/* confdefs.h. */
14361_ACEOF
14362cat confdefs.h >>conftest.$ac_ext
14363cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014364/* end confdefs.h. */
14365#include <sys/mman.h>
14366#include <unistd.h>
14367#include <fcntl.h>
14368int
14369main ()
14370{
14371mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14372 ;
14373 return 0;
14374}
14375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014376rm -f conftest.$ac_objext
14377if { (ac_try="$ac_compile"
14378case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381esac
14382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_compile") 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14391 { (case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_try") 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest.$ac_objext'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404esac
14405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014410 ac_cv_header_mmap_anon=yes
14411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014412 echo "$as_me: failed program was:" >&5
14413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417
Reid Spencera773bd52006-08-04 18:18:08 +000014418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014419 ac_ext=c
14420ac_cpp='$CPP $CPPFLAGS'
14421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423ac_compiler_gnu=$ac_cv_c_compiler_gnu
14424
14425
14426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014427{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14428echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014429if test "$ac_cv_header_mmap_anon" = yes; then
14430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431cat >>confdefs.h <<\_ACEOF
14432#define HAVE_MMAP_ANONYMOUS 1
14433_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014434
14435fi
14436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14438echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14439if test "${ac_cv_header_stat_broken+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014442 cat >conftest.$ac_ext <<_ACEOF
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014447/* end confdefs.h. */
14448#include <sys/types.h>
14449#include <sys/stat.h>
14450
Reid Spencera773bd52006-08-04 18:18:08 +000014451#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452# if S_ISBLK (S_IFDIR)
14453You lose.
14454# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014455#endif
14456
Reid Spencera773bd52006-08-04 18:18:08 +000014457#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458# if S_ISBLK (S_IFCHR)
14459You lose.
14460# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014461#endif
14462
Reid Spencera773bd52006-08-04 18:18:08 +000014463#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464# if S_ISLNK (S_IFREG)
14465You lose.
14466# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014467#endif
14468
Reid Spencera773bd52006-08-04 18:18:08 +000014469#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470# if S_ISSOCK (S_IFREG)
14471You lose.
14472# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014473#endif
14474
14475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14477 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014478 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479else
14480 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482rm -f conftest*
14483
Reid Spencer59473af2004-12-25 07:31:29 +000014484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14486echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014487if test $ac_cv_header_stat_broken = yes; then
14488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489cat >>confdefs.h <<\_ACEOF
14490#define STAT_MACROS_BROKEN 1
14491_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014492
14493fi
14494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014495{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14496echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14497if test "${ac_cv_header_sys_wait_h+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500 cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014506#include <sys/types.h>
14507#include <sys/wait.h>
14508#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014509# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014510#endif
14511#ifndef WIFEXITED
14512# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14513#endif
14514
John Criswell7a73b802003-06-30 21:59:07 +000014515int
14516main ()
14517{
14518 int s;
14519 wait (&s);
14520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14521 ;
14522 return 0;
14523}
14524_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525rm -f conftest.$ac_objext
14526if { (ac_try="$ac_compile"
14527case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530esac
14531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_compile") 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543esac
14544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553esac
14554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014559 ac_cv_header_sys_wait_h=yes
14560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566
Reid Spencera773bd52006-08-04 18:18:08 +000014567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14570echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014571if test $ac_cv_header_sys_wait_h = yes; then
14572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573cat >>confdefs.h <<\_ACEOF
14574#define HAVE_SYS_WAIT_H 1
14575_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014576
14577fi
14578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14580echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14581if test "${ac_cv_header_time+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014584 cat >conftest.$ac_ext <<_ACEOF
14585/* confdefs.h. */
14586_ACEOF
14587cat confdefs.h >>conftest.$ac_ext
14588cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014589/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014590#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014591#include <sys/time.h>
14592#include <time.h>
14593
14594int
14595main ()
14596{
14597if ((struct tm *) 0)
14598return 0;
14599 ;
14600 return 0;
14601}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014602_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014603rm -f conftest.$ac_objext
14604if { (ac_try="$ac_compile"
14605case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608esac
14609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_compile") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621esac
14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014637 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014639 echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014644
Reid Spencera773bd52006-08-04 18:18:08 +000014645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014647{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14648echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014649if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014651cat >>confdefs.h <<\_ACEOF
14652#define TIME_WITH_SYS_TIME 1
14653_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014654
14655fi
14656
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014658
14659
14660
14661
14662
14663
Reid Spencer59473af2004-12-25 07:31:29 +000014664for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665do
14666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672fi
14673ac_res=`eval echo '${'$as_ac_Header'}'`
14674 { echo "$as_me:$LINENO: result: $ac_res" >&5
14675echo "${ECHO_T}$ac_res" >&6; }
14676else
14677 # Is the header compilable?
14678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14680cat >conftest.$ac_ext <<_ACEOF
14681/* confdefs.h. */
14682_ACEOF
14683cat confdefs.h >>conftest.$ac_ext
14684cat >>conftest.$ac_ext <<_ACEOF
14685/* end confdefs.h. */
14686$ac_includes_default
14687#include <$ac_header>
14688_ACEOF
14689rm -f conftest.$ac_objext
14690if { (ac_try="$ac_compile"
14691case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694esac
14695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_compile") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14707esac
14708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_try") 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717esac
14718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14724else
14725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_compiler=no
14729fi
14730
14731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733echo "${ECHO_T}$ac_header_compiler" >&6; }
14734
14735# Is the header present?
14736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14738cat >conftest.$ac_ext <<_ACEOF
14739/* confdefs.h. */
14740_ACEOF
14741cat confdefs.h >>conftest.$ac_ext
14742cat >>conftest.$ac_ext <<_ACEOF
14743/* end confdefs.h. */
14744#include <$ac_header>
14745_ACEOF
14746if { (ac_try="$ac_cpp conftest.$ac_ext"
14747case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14753 ac_status=$?
14754 grep -v '^ *+' conftest.er1 >conftest.err
14755 rm -f conftest.er1
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } >/dev/null; then
14759 if test -s conftest.err; then
14760 ac_cpp_err=$ac_c_preproc_warn_flag
14761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14762 else
14763 ac_cpp_err=
14764 fi
14765else
14766 ac_cpp_err=yes
14767fi
14768if test -z "$ac_cpp_err"; then
14769 ac_header_preproc=yes
14770else
14771 echo "$as_me: failed program was:" >&5
14772sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ac_header_preproc=no
14775fi
14776
14777rm -f conftest.err conftest.$ac_ext
14778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779echo "${ECHO_T}$ac_header_preproc" >&6; }
14780
14781# So? What about this header?
14782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783 yes:no: )
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
14789 ;;
14790 no:yes:* )
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14803 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014804## ------------------------------------ ##
14805## Report this to http://llvm.org/bugs/ ##
14806## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014807_ASBOX
14808 ) | sed "s/^/$as_me: WARNING: /" >&2
14809 ;;
14810esac
14811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
14816 eval "$as_ac_Header=\$ac_header_preproc"
14817fi
14818ac_res=`eval echo '${'$as_ac_Header'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820echo "${ECHO_T}$ac_res" >&6; }
14821
14822fi
14823if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014824 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014826_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014827
14828fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014829
Reid Spencer59473af2004-12-25 07:31:29 +000014830done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014832
14833
14834
14835
14836
14837
Douglas Gregor071d73d2009-05-18 17:21:34 +000014838for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014839do
14840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846fi
14847ac_res=`eval echo '${'$as_ac_Header'}'`
14848 { echo "$as_me:$LINENO: result: $ac_res" >&5
14849echo "${ECHO_T}$ac_res" >&6; }
14850else
14851 # Is the header compilable?
14852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
14860$ac_includes_default
14861#include <$ac_header>
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (ac_try="$ac_compile"
14865case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881esac
14882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_header_compiler=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_header_compiler=no
14903fi
14904
14905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907echo "${ECHO_T}$ac_header_compiler" >&6; }
14908
14909# Is the header present?
14910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14912cat >conftest.$ac_ext <<_ACEOF
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
14918#include <$ac_header>
14919_ACEOF
14920if { (ac_try="$ac_cpp conftest.$ac_ext"
14921case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14936 else
14937 ac_cpp_err=
14938 fi
14939else
14940 ac_cpp_err=yes
14941fi
14942if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14944else
14945 echo "$as_me: failed program was:" >&5
14946sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 ac_header_preproc=no
14949fi
14950
14951rm -f conftest.err conftest.$ac_ext
14952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14953echo "${ECHO_T}$ac_header_preproc" >&6; }
14954
14955# So? What about this header?
14956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14957 yes:no: )
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14962 ac_header_preproc=yes
14963 ;;
14964 no:yes:* )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014978## ------------------------------------ ##
14979## Report this to http://llvm.org/bugs/ ##
14980## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014981_ASBOX
14982 ) | sed "s/^/$as_me: WARNING: /" >&2
14983 ;;
14984esac
14985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 eval "$as_ac_Header=\$ac_header_preproc"
14991fi
14992ac_res=`eval echo '${'$as_ac_Header'}'`
14993 { echo "$as_me:$LINENO: result: $ac_res" >&5
14994echo "${ECHO_T}$ac_res" >&6; }
14995
14996fi
14997if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014998 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015000_ACEOF
15001
15002fi
15003
15004done
15005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006
15007
Douglas Gregor071d73d2009-05-18 17:21:34 +000015008for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015009do
15010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016fi
15017ac_res=`eval echo '${'$as_ac_Header'}'`
15018 { echo "$as_me:$LINENO: result: $ac_res" >&5
15019echo "${ECHO_T}$ac_res" >&6; }
15020else
15021 # Is the header compilable?
15022{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15024cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
15030$ac_includes_default
15031#include <$ac_header>
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (ac_try="$ac_compile"
15035case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051esac
15052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061esac
15062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler=yes
15068else
15069 echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_header_compiler=no
15073fi
15074
15075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077echo "${ECHO_T}$ac_header_compiler" >&6; }
15078
15079# Is the header present?
15080{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088#include <$ac_header>
15089_ACEOF
15090if { (ac_try="$ac_cpp conftest.$ac_ext"
15091case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null; then
15103 if test -s conftest.err; then
15104 ac_cpp_err=$ac_c_preproc_warn_flag
15105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15106 else
15107 ac_cpp_err=
15108 fi
15109else
15110 ac_cpp_err=yes
15111fi
15112if test -z "$ac_cpp_err"; then
15113 ac_header_preproc=yes
15114else
15115 echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ac_header_preproc=no
15119fi
15120
15121rm -f conftest.err conftest.$ac_ext
15122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15123echo "${ECHO_T}$ac_header_preproc" >&6; }
15124
15125# So? What about this header?
15126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15127 yes:no: )
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15132 ac_header_preproc=yes
15133 ;;
15134 no:yes:* )
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15147 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015148## ------------------------------------ ##
15149## Report this to http://llvm.org/bugs/ ##
15150## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015151_ASBOX
15152 ) | sed "s/^/$as_me: WARNING: /" >&2
15153 ;;
15154esac
15155{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159else
15160 eval "$as_ac_Header=\$ac_header_preproc"
15161fi
15162ac_res=`eval echo '${'$as_ac_Header'}'`
15163 { echo "$as_me:$LINENO: result: $ac_res" >&5
15164echo "${ECHO_T}$ac_res" >&6; }
15165
15166fi
15167if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015168 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015170_ACEOF
15171
15172fi
15173
15174done
Reid Spencer59473af2004-12-25 07:31:29 +000015175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176
15177
15178
15179
Daniel Dunbar3e462932011-02-03 02:40:02 +000015180
15181for 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 +000015182do
15183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189fi
15190ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192echo "${ECHO_T}$ac_res" >&6; }
15193else
15194 # Is the header compilable?
15195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197cat >conftest.$ac_ext <<_ACEOF
15198/* confdefs.h. */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
15203$ac_includes_default
15204#include <$ac_header>
15205_ACEOF
15206rm -f conftest.$ac_objext
15207if { (ac_try="$ac_compile"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15224esac
15225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_try") 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest.$ac_objext'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_header_compiler=yes
15241else
15242 echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 ac_header_compiler=no
15246fi
15247
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250echo "${ECHO_T}$ac_header_compiler" >&6; }
15251
15252# Is the header present?
15253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h. */
15261#include <$ac_header>
15262_ACEOF
15263if { (ac_try="$ac_cpp conftest.$ac_ext"
15264case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } >/dev/null; then
15276 if test -s conftest.err; then
15277 ac_cpp_err=$ac_c_preproc_warn_flag
15278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15279 else
15280 ac_cpp_err=
15281 fi
15282else
15283 ac_cpp_err=yes
15284fi
15285if test -z "$ac_cpp_err"; then
15286 ac_header_preproc=yes
15287else
15288 echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_header_preproc=no
15292fi
15293
15294rm -f conftest.err conftest.$ac_ext
15295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296echo "${ECHO_T}$ac_header_preproc" >&6; }
15297
15298# So? What about this header?
15299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15300 yes:no: )
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305 ac_header_preproc=yes
15306 ;;
15307 no:yes:* )
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15320 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015321## ------------------------------------ ##
15322## Report this to http://llvm.org/bugs/ ##
15323## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015324_ASBOX
15325 ) | sed "s/^/$as_me: WARNING: /" >&2
15326 ;;
15327esac
15328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332else
15333 eval "$as_ac_Header=\$ac_header_preproc"
15334fi
15335ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337echo "${ECHO_T}$ac_res" >&6; }
15338
15339fi
15340if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015341 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015343_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015344
15345fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015346
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015347done
15348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015349
15350
15351
15352
Douglas Gregor01746742009-05-11 18:05:52 +000015353for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015354do
15355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361fi
15362ac_res=`eval echo '${'$as_ac_Header'}'`
15363 { echo "$as_me:$LINENO: result: $ac_res" >&5
15364echo "${ECHO_T}$ac_res" >&6; }
15365else
15366 # Is the header compilable?
15367{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15369cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376#include <$ac_header>
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (ac_try="$ac_compile"
15380case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383esac
15384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15393 { (case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396esac
15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_try") 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_header_compiler=yes
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 ac_header_compiler=no
15418fi
15419
15420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422echo "${ECHO_T}$ac_header_compiler" >&6; }
15423
15424# Is the header present?
15425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15427cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433#include <$ac_header>
15434_ACEOF
15435if { (ac_try="$ac_cpp conftest.$ac_ext"
15436case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15442 ac_status=$?
15443 grep -v '^ *+' conftest.er1 >conftest.err
15444 rm -f conftest.er1
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } >/dev/null; then
15448 if test -s conftest.err; then
15449 ac_cpp_err=$ac_c_preproc_warn_flag
15450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15451 else
15452 ac_cpp_err=
15453 fi
15454else
15455 ac_cpp_err=yes
15456fi
15457if test -z "$ac_cpp_err"; then
15458 ac_header_preproc=yes
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 ac_header_preproc=no
15464fi
15465
15466rm -f conftest.err conftest.$ac_ext
15467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468echo "${ECHO_T}$ac_header_preproc" >&6; }
15469
15470# So? What about this header?
15471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15472 yes:no: )
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15477 ac_header_preproc=yes
15478 ;;
15479 no:yes:* )
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15492 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015493## ------------------------------------ ##
15494## Report this to http://llvm.org/bugs/ ##
15495## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015496_ASBOX
15497 ) | sed "s/^/$as_me: WARNING: /" >&2
15498 ;;
15499esac
15500{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504else
15505 eval "$as_ac_Header=\$ac_header_preproc"
15506fi
15507ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509echo "${ECHO_T}$ac_res" >&6; }
15510
15511fi
15512if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015515_ACEOF
15516
15517fi
15518
15519done
15520
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015521
15522for ac_header in valgrind/valgrind.h
15523do
15524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530fi
15531ac_res=`eval echo '${'$as_ac_Header'}'`
15532 { echo "$as_me:$LINENO: result: $ac_res" >&5
15533echo "${ECHO_T}$ac_res" >&6; }
15534else
15535 # Is the header compilable?
15536{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15538cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544$ac_includes_default
15545#include <$ac_header>
15546_ACEOF
15547rm -f conftest.$ac_objext
15548if { (ac_try="$ac_compile"
15549case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15555 ac_status=$?
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_header_compiler=yes
15582else
15583 echo "$as_me: failed program was:" >&5
15584sed 's/^/| /' conftest.$ac_ext >&5
15585
15586 ac_header_compiler=no
15587fi
15588
15589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15591echo "${ECHO_T}$ac_header_compiler" >&6; }
15592
15593# Is the header present?
15594{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15595echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15596cat >conftest.$ac_ext <<_ACEOF
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602#include <$ac_header>
15603_ACEOF
15604if { (ac_try="$ac_cpp conftest.$ac_ext"
15605case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608esac
15609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15611 ac_status=$?
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } >/dev/null; then
15617 if test -s conftest.err; then
15618 ac_cpp_err=$ac_c_preproc_warn_flag
15619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15620 else
15621 ac_cpp_err=
15622 fi
15623else
15624 ac_cpp_err=yes
15625fi
15626if test -z "$ac_cpp_err"; then
15627 ac_header_preproc=yes
15628else
15629 echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ac_header_preproc=no
15633fi
15634
15635rm -f conftest.err conftest.$ac_ext
15636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15637echo "${ECHO_T}$ac_header_preproc" >&6; }
15638
15639# So? What about this header?
15640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15641 yes:no: )
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15646 ac_header_preproc=yes
15647 ;;
15648 no:yes:* )
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15652echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15656echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15661 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015662## ------------------------------------ ##
15663## Report this to http://llvm.org/bugs/ ##
15664## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015665_ASBOX
15666 ) | sed "s/^/$as_me: WARNING: /" >&2
15667 ;;
15668esac
15669{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15673else
15674 eval "$as_ac_Header=\$ac_header_preproc"
15675fi
15676ac_res=`eval echo '${'$as_ac_Header'}'`
15677 { echo "$as_me:$LINENO: result: $ac_res" >&5
15678echo "${ECHO_T}$ac_res" >&6; }
15679
15680fi
15681if test `eval echo '${'$as_ac_Header'}'` = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15684_ACEOF
15685
15686fi
15687
15688done
15689
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015690
15691for ac_header in fenv.h
15692do
15693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15699fi
15700ac_res=`eval echo '${'$as_ac_Header'}'`
15701 { echo "$as_me:$LINENO: result: $ac_res" >&5
15702echo "${ECHO_T}$ac_res" >&6; }
15703else
15704 # Is the header compilable?
15705{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15707cat >conftest.$ac_ext <<_ACEOF
15708/* confdefs.h. */
15709_ACEOF
15710cat confdefs.h >>conftest.$ac_ext
15711cat >>conftest.$ac_ext <<_ACEOF
15712/* end confdefs.h. */
15713$ac_includes_default
15714#include <$ac_header>
15715_ACEOF
15716rm -f conftest.$ac_objext
15717if { (ac_try="$ac_compile"
15718case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721esac
15722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_compile") 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15731 { (case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15734esac
15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_try") 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744esac
15745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_try") 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_header_compiler=yes
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_header_compiler=no
15756fi
15757
15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15760echo "${ECHO_T}$ac_header_compiler" >&6; }
15761
15762# Is the header present?
15763{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15765cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771#include <$ac_header>
15772_ACEOF
15773if { (ac_try="$ac_cpp conftest.$ac_ext"
15774case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } >/dev/null; then
15786 if test -s conftest.err; then
15787 ac_cpp_err=$ac_c_preproc_warn_flag
15788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15789 else
15790 ac_cpp_err=
15791 fi
15792else
15793 ac_cpp_err=yes
15794fi
15795if test -z "$ac_cpp_err"; then
15796 ac_header_preproc=yes
15797else
15798 echo "$as_me: failed program was:" >&5
15799sed 's/^/| /' conftest.$ac_ext >&5
15800
15801 ac_header_preproc=no
15802fi
15803
15804rm -f conftest.err conftest.$ac_ext
15805{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15806echo "${ECHO_T}$ac_header_preproc" >&6; }
15807
15808# So? What about this header?
15809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15810 yes:no: )
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15815 ac_header_preproc=yes
15816 ;;
15817 no:yes:* )
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15830 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015831## ------------------------------------ ##
15832## Report this to http://llvm.org/bugs/ ##
15833## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015834_ASBOX
15835 ) | sed "s/^/$as_me: WARNING: /" >&2
15836 ;;
15837esac
15838{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842else
15843 eval "$as_ac_Header=\$ac_header_preproc"
15844fi
15845ac_res=`eval echo '${'$as_ac_Header'}'`
15846 { echo "$as_me:$LINENO: result: $ac_res" >&5
15847echo "${ECHO_T}$ac_res" >&6; }
15848
15849fi
15850if test `eval echo '${'$as_ac_Header'}'` = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15853_ACEOF
15854
15855fi
15856
15857done
15858
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015859if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015860
15861for ac_header in pthread.h
15862do
15863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869fi
15870ac_res=`eval echo '${'$as_ac_Header'}'`
15871 { echo "$as_me:$LINENO: result: $ac_res" >&5
15872echo "${ECHO_T}$ac_res" >&6; }
15873else
15874 # Is the header compilable?
15875{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15877cat >conftest.$ac_ext <<_ACEOF
15878/* confdefs.h. */
15879_ACEOF
15880cat confdefs.h >>conftest.$ac_ext
15881cat >>conftest.$ac_ext <<_ACEOF
15882/* end confdefs.h. */
15883$ac_includes_default
15884#include <$ac_header>
15885_ACEOF
15886rm -f conftest.$ac_objext
15887if { (ac_try="$ac_compile"
15888case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891esac
15892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_compile") 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15901 { (case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904esac
15905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_try") 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914esac
15915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_header_compiler=yes
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 ac_header_compiler=no
15926fi
15927
15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15930echo "${ECHO_T}$ac_header_compiler" >&6; }
15931
15932# Is the header present?
15933{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15935cat >conftest.$ac_ext <<_ACEOF
15936/* confdefs.h. */
15937_ACEOF
15938cat confdefs.h >>conftest.$ac_ext
15939cat >>conftest.$ac_ext <<_ACEOF
15940/* end confdefs.h. */
15941#include <$ac_header>
15942_ACEOF
15943if { (ac_try="$ac_cpp conftest.$ac_ext"
15944case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947esac
15948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } >/dev/null; then
15956 if test -s conftest.err; then
15957 ac_cpp_err=$ac_c_preproc_warn_flag
15958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15959 else
15960 ac_cpp_err=
15961 fi
15962else
15963 ac_cpp_err=yes
15964fi
15965if test -z "$ac_cpp_err"; then
15966 ac_header_preproc=yes
15967else
15968 echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971 ac_header_preproc=no
15972fi
15973
15974rm -f conftest.err conftest.$ac_ext
15975{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15976echo "${ECHO_T}$ac_header_preproc" >&6; }
15977
15978# So? What about this header?
15979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15980 yes:no: )
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15985 ac_header_preproc=yes
15986 ;;
15987 no:yes:* )
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15995echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16000 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016001## ------------------------------------ ##
16002## Report this to http://llvm.org/bugs/ ##
16003## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016004_ASBOX
16005 ) | sed "s/^/$as_me: WARNING: /" >&2
16006 ;;
16007esac
16008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012else
16013 eval "$as_ac_Header=\$ac_header_preproc"
16014fi
16015ac_res=`eval echo '${'$as_ac_Header'}'`
16016 { echo "$as_me:$LINENO: result: $ac_res" >&5
16017echo "${ECHO_T}$ac_res" >&6; }
16018
16019fi
16020if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016021 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016023_ACEOF
16024 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016025
16026else
16027 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016028
16029fi
16030
Reid Spencerbe3e4192007-08-17 05:45:26 +000016031done
Reid Spencer1000b732006-12-01 00:37:14 +000016032
16033else
16034 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016035
16036fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016037
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016038if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016039
16040
16041for ac_header in ffi.h ffi/ffi.h
16042do
16043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16049fi
16050ac_res=`eval echo '${'$as_ac_Header'}'`
16051 { echo "$as_me:$LINENO: result: $ac_res" >&5
16052echo "${ECHO_T}$ac_res" >&6; }
16053else
16054 # Is the header compilable?
16055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16057cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063$ac_includes_default
16064#include <$ac_header>
16065_ACEOF
16066rm -f conftest.$ac_objext
16067if { (ac_try="$ac_compile"
16068case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16071esac
16072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_compile") 2>conftest.er1
16074 ac_status=$?
16075 grep -v '^ *+' conftest.er1 >conftest.err
16076 rm -f conftest.er1
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084esac
16085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094esac
16095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_header_compiler=yes
16101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 ac_header_compiler=no
16106fi
16107
16108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16110echo "${ECHO_T}$ac_header_compiler" >&6; }
16111
16112# Is the header present?
16113{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16115cat >conftest.$ac_ext <<_ACEOF
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
16121#include <$ac_header>
16122_ACEOF
16123if { (ac_try="$ac_cpp conftest.$ac_ext"
16124case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16127esac
16128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16130 ac_status=$?
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } >/dev/null; then
16136 if test -s conftest.err; then
16137 ac_cpp_err=$ac_c_preproc_warn_flag
16138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16139 else
16140 ac_cpp_err=
16141 fi
16142else
16143 ac_cpp_err=yes
16144fi
16145if test -z "$ac_cpp_err"; then
16146 ac_header_preproc=yes
16147else
16148 echo "$as_me: failed program was:" >&5
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
16151 ac_header_preproc=no
16152fi
16153
16154rm -f conftest.err conftest.$ac_ext
16155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16156echo "${ECHO_T}$ac_header_preproc" >&6; }
16157
16158# So? What about this header?
16159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16160 yes:no: )
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16165 ac_header_preproc=yes
16166 ;;
16167 no:yes:* )
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16180 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016181## ------------------------------------ ##
16182## Report this to http://llvm.org/bugs/ ##
16183## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016184_ASBOX
16185 ) | sed "s/^/$as_me: WARNING: /" >&2
16186 ;;
16187esac
16188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 eval "$as_ac_Header=\$ac_header_preproc"
16194fi
16195ac_res=`eval echo '${'$as_ac_Header'}'`
16196 { echo "$as_me:$LINENO: result: $ac_res" >&5
16197echo "${ECHO_T}$ac_res" >&6; }
16198
16199fi
16200if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016203_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016204
16205fi
16206
16207done
16208
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016209fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016210
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016211
Eric Christopher654dee42010-06-22 21:01:04 +000016212for ac_header in CrashReporterClient.h
16213do
16214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16220fi
16221ac_res=`eval echo '${'$as_ac_Header'}'`
16222 { echo "$as_me:$LINENO: result: $ac_res" >&5
16223echo "${ECHO_T}$ac_res" >&6; }
16224else
16225 # Is the header compilable?
16226{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16227echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16228cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234$ac_includes_default
16235#include <$ac_header>
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (ac_try="$ac_compile"
16239case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16242esac
16243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_compile") 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255esac
16256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest.$ac_objext'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 ac_header_compiler=yes
16272else
16273 echo "$as_me: failed program was:" >&5
16274sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 ac_header_compiler=no
16277fi
16278
16279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16281echo "${ECHO_T}$ac_header_compiler" >&6; }
16282
16283# Is the header present?
16284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16286cat >conftest.$ac_ext <<_ACEOF
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292#include <$ac_header>
16293_ACEOF
16294if { (ac_try="$ac_cpp conftest.$ac_ext"
16295case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } >/dev/null; then
16307 if test -s conftest.err; then
16308 ac_cpp_err=$ac_c_preproc_warn_flag
16309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16310 else
16311 ac_cpp_err=
16312 fi
16313else
16314 ac_cpp_err=yes
16315fi
16316if test -z "$ac_cpp_err"; then
16317 ac_header_preproc=yes
16318else
16319 echo "$as_me: failed program was:" >&5
16320sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 ac_header_preproc=no
16323fi
16324
16325rm -f conftest.err conftest.$ac_ext
16326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16327echo "${ECHO_T}$ac_header_preproc" >&6; }
16328
16329# So? What about this header?
16330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16331 yes:no: )
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16336 ac_header_preproc=yes
16337 ;;
16338 no:yes:* )
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16351 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016352## ------------------------------------ ##
16353## Report this to http://llvm.org/bugs/ ##
16354## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016355_ASBOX
16356 ) | sed "s/^/$as_me: WARNING: /" >&2
16357 ;;
16358esac
16359{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16363else
16364 eval "$as_ac_Header=\$ac_header_preproc"
16365fi
16366ac_res=`eval echo '${'$as_ac_Header'}'`
16367 { echo "$as_me:$LINENO: result: $ac_res" >&5
16368echo "${ECHO_T}$ac_res" >&6; }
16369
16370fi
16371if test `eval echo '${'$as_ac_Header'}'` = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16374_ACEOF
16375
16376fi
16377
16378done
16379
16380
Eric Christopher51e57132010-12-07 02:05:42 +000016381{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16382echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016383cat >conftest.$ac_ext <<_ACEOF
16384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016389extern const char *__crashreporter_info__;
16390 int main() {
16391 __crashreporter_info__ = "test";
16392 return 0;
16393 }
Eric Christopher481d4022010-12-03 07:45:22 +000016394
Eric Christopher481d4022010-12-03 07:45:22 +000016395_ACEOF
16396rm -f conftest.$ac_objext conftest$ac_exeext
16397if { (ac_try="$ac_link"
16398case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414esac
16415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest$ac_exeext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424esac
16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016430 { echo "$as_me:$LINENO: result: yes" >&5
16431echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016432
16433cat >>confdefs.h <<\_ACEOF
16434#define HAVE_CRASHREPORTER_INFO 1
16435_ACEOF
16436
Eric Christopher51e57132010-12-07 02:05:42 +000016437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 { echo "$as_me:$LINENO: result: no" >&5
16442echo "${ECHO_T}no" >&6; }
16443
16444cat >>confdefs.h <<\_ACEOF
16445#define HAVE_CRASHREPORTER_INFO 0
16446_ACEOF
16447
Eric Christopher481d4022010-12-03 07:45:22 +000016448fi
Eric Christopher654dee42010-06-22 21:01:04 +000016449
Eric Christopher51e57132010-12-07 02:05:42 +000016450rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16452
16453
Reid Spencer8085cff2005-01-16 02:58:39 +000016454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016455 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16456echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16457if test "${ac_cv_huge_val_sanity+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016459else
16460
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016461 ac_ext=cpp
16462ac_cpp='$CXXCPP $CPPFLAGS'
16463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016466
Eric Christopherc7718502010-03-02 05:06:54 +000016467 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016468 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016470 ac_cv_huge_val_sanity=yes
16471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016472 cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016477/* end confdefs.h. */
16478#include <math.h>
16479int
16480main ()
16481{
16482double x = HUGE_VAL; return x != x;
16483 ;
16484 return 0;
16485}
16486_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016487rm -f conftest$ac_exeext
16488if { (ac_try="$ac_link"
16489case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492esac
16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_link") 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016507 ac_cv_huge_val_sanity=yes
16508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016509 echo "$as_me: program exited with status $ac_status" >&5
16510echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
16513( exit $ac_status )
16514ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016516rm -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 +000016517fi
16518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016519
Eric Christopherc7718502010-03-02 05:06:54 +000016520 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016521 ac_ext=c
16522ac_cpp='$CPP $CPPFLAGS'
16523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16525ac_compiler_gnu=$ac_cv_c_compiler_gnu
16526
16527
16528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016529{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16530echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016531 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16532
16533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016534{ echo "$as_me:$LINENO: checking for pid_t" >&5
16535echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16536if test "${ac_cv_type_pid_t+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538else
16539 cat >conftest.$ac_ext <<_ACEOF
16540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
16545$ac_includes_default
16546typedef pid_t ac__type_new_;
16547int
16548main ()
16549{
16550if ((ac__type_new_ *) 0)
16551 return 0;
16552if (sizeof (ac__type_new_))
16553 return 0;
16554 ;
16555 return 0;
16556}
16557_ACEOF
16558rm -f conftest.$ac_objext
16559if { (ac_try="$ac_compile"
16560case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563esac
16564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } &&
16582 { ac_try='test -s conftest.$ac_objext'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586esac
16587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_type_pid_t=yes
16593else
16594 echo "$as_me: failed program was:" >&5
16595sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016597 ac_cv_type_pid_t=no
16598fi
16599
16600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601fi
16602{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16603echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16604if test $ac_cv_type_pid_t = yes; then
16605 :
John Criswell7a73b802003-06-30 21:59:07 +000016606else
16607
16608cat >>confdefs.h <<_ACEOF
16609#define pid_t int
16610_ACEOF
16611
16612fi
16613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016614{ echo "$as_me:$LINENO: checking for size_t" >&5
16615echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16616if test "${ac_cv_type_size_t+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
16619 cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
16625$ac_includes_default
16626typedef size_t ac__type_new_;
16627int
16628main ()
16629{
16630if ((ac__type_new_ *) 0)
16631 return 0;
16632if (sizeof (ac__type_new_))
16633 return 0;
16634 ;
16635 return 0;
16636}
16637_ACEOF
16638rm -f conftest.$ac_objext
16639if { (ac_try="$ac_compile"
16640case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_type_size_t=yes
16673else
16674 echo "$as_me: failed program was:" >&5
16675sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016677 ac_cv_type_size_t=no
16678fi
16679
16680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681fi
16682{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16683echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16684if test $ac_cv_type_size_t = yes; then
16685 :
John Criswell7a73b802003-06-30 21:59:07 +000016686else
16687
16688cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016689#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016690_ACEOF
16691
16692fi
16693
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016694
16695cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016696#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016697_ACEOF
16698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016699{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16700echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16701if test "${ac_cv_struct_tm+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016704 cat >conftest.$ac_ext <<_ACEOF
16705/* confdefs.h. */
16706_ACEOF
16707cat confdefs.h >>conftest.$ac_ext
16708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016709/* end confdefs.h. */
16710#include <sys/types.h>
16711#include <time.h>
16712
16713int
16714main ()
16715{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016716struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016717 ;
16718 return 0;
16719}
16720_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016721rm -f conftest.$ac_objext
16722if { (ac_try="$ac_compile"
16723case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_compile") 2>conftest.er1
16729 ac_status=$?
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16739esac
16740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
16746 { (case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749esac
16750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_try") 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016755 ac_cv_struct_tm=time.h
16756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016757 echo "$as_me: failed program was:" >&5
16758sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016762
Reid Spencera773bd52006-08-04 18:18:08 +000016763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016765{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16766echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016767if test $ac_cv_struct_tm = sys/time.h; then
16768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016769cat >>confdefs.h <<\_ACEOF
16770#define TM_IN_SYS_TIME 1
16771_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016772
16773fi
16774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016775{ echo "$as_me:$LINENO: checking for int64_t" >&5
16776echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16777if test "${ac_cv_type_int64_t+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16779else
16780 cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
16786$ac_includes_default
16787typedef int64_t ac__type_new_;
16788int
16789main ()
16790{
16791if ((ac__type_new_ *) 0)
16792 return 0;
16793if (sizeof (ac__type_new_))
16794 return 0;
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest.$ac_objext
16800if { (ac_try="$ac_compile"
16801case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16804esac
16805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_compile") 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16817esac
16818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 ac_cv_type_int64_t=yes
16834else
16835 echo "$as_me: failed program was:" >&5
16836sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 ac_cv_type_int64_t=no
16839fi
16840
16841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842fi
16843{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16844echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16845if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016846
16847cat >>confdefs.h <<_ACEOF
16848#define HAVE_INT64_T 1
16849_ACEOF
16850
16851
16852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016853 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16854echo "$as_me: error: Type int64_t required but not found" >&2;}
16855 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016856fi
16857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016858{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16859echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16860if test "${ac_cv_type_uint64_t+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862else
16863 cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869$ac_includes_default
16870typedef uint64_t ac__type_new_;
16871int
16872main ()
16873{
16874if ((ac__type_new_ *) 0)
16875 return 0;
16876if (sizeof (ac__type_new_))
16877 return 0;
16878 ;
16879 return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext
16883if { (ac_try="$ac_compile"
16884case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16890 ac_status=$?
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest.$ac_objext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_type_uint64_t=yes
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_cv_type_uint64_t=no
16922fi
16923
16924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925fi
16926{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16927echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16928if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016929
16930cat >>confdefs.h <<_ACEOF
16931#define HAVE_UINT64_T 1
16932_ACEOF
16933
16934
16935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016936 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16937echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16938if test "${ac_cv_type_u_int64_t+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 cat >conftest.$ac_ext <<_ACEOF
16942/* confdefs.h. */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h. */
16947$ac_includes_default
16948typedef u_int64_t ac__type_new_;
16949int
16950main ()
16951{
16952if ((ac__type_new_ *) 0)
16953 return 0;
16954if (sizeof (ac__type_new_))
16955 return 0;
16956 ;
16957 return 0;
16958}
16959_ACEOF
16960rm -f conftest.$ac_objext
16961if { (ac_try="$ac_compile"
16962case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965esac
16966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_compile") 2>conftest.er1
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975 { (case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16978esac
16979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_try") 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_type_u_int64_t=yes
16995else
16996 echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
16999 ac_cv_type_u_int64_t=no
17000fi
17001
17002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003fi
17004{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17005echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17006if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017007
17008cat >>confdefs.h <<_ACEOF
17009#define HAVE_U_INT64_T 1
17010_ACEOF
17011
17012
Misha Brukmanceca9042004-09-02 23:02:30 +000017013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017014 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17015echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17016 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017017fi
17018
John Criswell679ff312004-09-02 18:44:44 +000017019fi
17020
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017021
17022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017023
17024
17025
17026
17027
17028
17029
Reid Spencerdf3be822006-01-23 08:15:53 +000017030for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017031do
17032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037else
17038 cat >conftest.$ac_ext <<_ACEOF
17039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
17044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17046#define $ac_func innocuous_$ac_func
17047
17048/* System header to define __stub macros and hopefully few prototypes,
17049 which can conflict with char $ac_func (); below.
17050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17051 <limits.h> exists even on freestanding compilers. */
17052
17053#ifdef __STDC__
17054# include <limits.h>
17055#else
17056# include <assert.h>
17057#endif
17058
17059#undef $ac_func
17060
17061/* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17064#ifdef __cplusplus
17065extern "C"
17066#endif
17067char $ac_func ();
17068/* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071#if defined __stub_$ac_func || defined __stub___$ac_func
17072choke me
17073#endif
17074
17075int
17076main ()
17077{
17078return $ac_func ();
17079 ;
17080 return 0;
17081}
17082_ACEOF
17083rm -f conftest.$ac_objext conftest$ac_exeext
17084if { (ac_try="$ac_link"
17085case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088esac
17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17091 ac_status=$?
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101esac
17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111esac
17112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 eval "$as_ac_var=yes"
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 eval "$as_ac_var=no"
17123fi
17124
17125rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17127fi
17128ac_res=`eval echo '${'$as_ac_var'}'`
17129 { echo "$as_me:$LINENO: result: $ac_res" >&5
17130echo "${ECHO_T}$ac_res" >&6; }
17131if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017132 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017134_ACEOF
17135
17136fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017137done
John Criswell7a73b802003-06-30 21:59:07 +000017138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017139
17140
17141
17142
Reid Spencer96cf5872007-07-13 10:05:30 +000017143for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017144do
17145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151 cat >conftest.$ac_ext <<_ACEOF
17152/* confdefs.h. */
17153_ACEOF
17154cat confdefs.h >>conftest.$ac_ext
17155cat >>conftest.$ac_ext <<_ACEOF
17156/* end confdefs.h. */
17157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17159#define $ac_func innocuous_$ac_func
17160
17161/* System header to define __stub macros and hopefully few prototypes,
17162 which can conflict with char $ac_func (); below.
17163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164 <limits.h> exists even on freestanding compilers. */
17165
17166#ifdef __STDC__
17167# include <limits.h>
17168#else
17169# include <assert.h>
17170#endif
17171
17172#undef $ac_func
17173
17174/* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17177#ifdef __cplusplus
17178extern "C"
17179#endif
17180char $ac_func ();
17181/* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184#if defined __stub_$ac_func || defined __stub___$ac_func
17185choke me
17186#endif
17187
17188int
17189main ()
17190{
17191return $ac_func ();
17192 ;
17193 return 0;
17194}
17195_ACEOF
17196rm -f conftest.$ac_objext conftest$ac_exeext
17197if { (ac_try="$ac_link"
17198case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201esac
17202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214esac
17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17230 eval "$as_ac_var=yes"
17231else
17232 echo "$as_me: failed program was:" >&5
17233sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 eval "$as_ac_var=no"
17236fi
17237
17238rm -f core conftest.err conftest.$ac_objext \
17239 conftest$ac_exeext conftest.$ac_ext
17240fi
17241ac_res=`eval echo '${'$as_ac_var'}'`
17242 { echo "$as_me:$LINENO: result: $ac_res" >&5
17243echo "${ECHO_T}$ac_res" >&6; }
17244if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017245 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017247_ACEOF
17248
17249fi
17250done
17251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017252
17253
17254
17255
17256
Reid Spencerb90645c2007-02-16 19:17:20 +000017257for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017258do
17259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
17271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17273#define $ac_func innocuous_$ac_func
17274
17275/* System header to define __stub macros and hopefully few prototypes,
17276 which can conflict with char $ac_func (); below.
17277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278 <limits.h> exists even on freestanding compilers. */
17279
17280#ifdef __STDC__
17281# include <limits.h>
17282#else
17283# include <assert.h>
17284#endif
17285
17286#undef $ac_func
17287
17288/* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17291#ifdef __cplusplus
17292extern "C"
17293#endif
17294char $ac_func ();
17295/* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298#if defined __stub_$ac_func || defined __stub___$ac_func
17299choke me
17300#endif
17301
17302int
17303main ()
17304{
17305return $ac_func ();
17306 ;
17307 return 0;
17308}
17309_ACEOF
17310rm -f conftest.$ac_objext conftest$ac_exeext
17311if { (ac_try="$ac_link"
17312case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328esac
17329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 eval "$as_ac_var=yes"
17345else
17346 echo "$as_me: failed program was:" >&5
17347sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 eval "$as_ac_var=no"
17350fi
17351
17352rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354fi
17355ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result: $ac_res" >&5
17357echo "${ECHO_T}$ac_res" >&6; }
17358if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017359 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017361_ACEOF
17362
17363fi
17364done
17365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017366
17367
17368
Reid Spencerb90645c2007-02-16 19:17:20 +000017369for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017370do
17371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385#define $ac_func innocuous_$ac_func
17386
17387/* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392#ifdef __STDC__
17393# include <limits.h>
17394#else
17395# include <assert.h>
17396#endif
17397
17398#undef $ac_func
17399
17400/* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406char $ac_func ();
17407/* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410#if defined __stub_$ac_func || defined __stub___$ac_func
17411choke me
17412#endif
17413
17414int
17415main ()
17416{
17417return $ac_func ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (ac_try="$ac_link"
17424case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427esac
17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437 { (case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_try") 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest$ac_exeext'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450esac
17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 eval "$as_ac_var=yes"
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 eval "$as_ac_var=no"
17462fi
17463
17464rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466fi
17467ac_res=`eval echo '${'$as_ac_var'}'`
17468 { echo "$as_me:$LINENO: result: $ac_res" >&5
17469echo "${ECHO_T}$ac_res" >&6; }
17470if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017471 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017473_ACEOF
17474
17475fi
17476done
17477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017478
17479
17480
17481
17482
Eric Christophere4291822010-04-16 05:14:21 +000017483
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017484
17485for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017486do
17487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17488{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17490if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492else
17493 cat >conftest.$ac_ext <<_ACEOF
17494/* confdefs.h. */
17495_ACEOF
17496cat confdefs.h >>conftest.$ac_ext
17497cat >>conftest.$ac_ext <<_ACEOF
17498/* end confdefs.h. */
17499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17501#define $ac_func innocuous_$ac_func
17502
17503/* System header to define __stub macros and hopefully few prototypes,
17504 which can conflict with char $ac_func (); below.
17505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506 <limits.h> exists even on freestanding compilers. */
17507
17508#ifdef __STDC__
17509# include <limits.h>
17510#else
17511# include <assert.h>
17512#endif
17513
17514#undef $ac_func
17515
17516/* Override any GCC internal prototype to avoid an error.
17517 Use char because int might match the return type of a GCC
17518 builtin and then its argument prototype would still apply. */
17519#ifdef __cplusplus
17520extern "C"
17521#endif
17522char $ac_func ();
17523/* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
17526#if defined __stub_$ac_func || defined __stub___$ac_func
17527choke me
17528#endif
17529
17530int
17531main ()
17532{
17533return $ac_func ();
17534 ;
17535 return 0;
17536}
17537_ACEOF
17538rm -f conftest.$ac_objext conftest$ac_exeext
17539if { (ac_try="$ac_link"
17540case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_link") 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 eval "$as_ac_var=yes"
17573else
17574 echo "$as_me: failed program was:" >&5
17575sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 eval "$as_ac_var=no"
17578fi
17579
17580rm -f core conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
17582fi
17583ac_res=`eval echo '${'$as_ac_var'}'`
17584 { echo "$as_me:$LINENO: result: $ac_res" >&5
17585echo "${ECHO_T}$ac_res" >&6; }
17586if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017587 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017589_ACEOF
17590
17591fi
17592done
Reid Spencerdf3be822006-01-23 08:15:53 +000017593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017594
17595
17596
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017597
17598for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017599do
17600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605else
17606 cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17614#define $ac_func innocuous_$ac_func
17615
17616/* System header to define __stub macros and hopefully few prototypes,
17617 which can conflict with char $ac_func (); below.
17618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17619 <limits.h> exists even on freestanding compilers. */
17620
17621#ifdef __STDC__
17622# include <limits.h>
17623#else
17624# include <assert.h>
17625#endif
17626
17627#undef $ac_func
17628
17629/* Override any GCC internal prototype to avoid an error.
17630 Use char because int might match the return type of a GCC
17631 builtin and then its argument prototype would still apply. */
17632#ifdef __cplusplus
17633extern "C"
17634#endif
17635char $ac_func ();
17636/* The GNU C library defines this for functions which it implements
17637 to always fail with ENOSYS. Some functions are actually named
17638 something starting with __ and the normal name is an alias. */
17639#if defined __stub_$ac_func || defined __stub___$ac_func
17640choke me
17641#endif
17642
17643int
17644main ()
17645{
17646return $ac_func ();
17647 ;
17648 return 0;
17649}
17650_ACEOF
17651rm -f conftest.$ac_objext conftest$ac_exeext
17652if { (ac_try="$ac_link"
17653case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17656esac
17657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_link") 2>conftest.er1
17659 ac_status=$?
17660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17669esac
17670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest$ac_exeext'
17676 { (case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_try") 2>&5
17682 ac_status=$?
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 eval "$as_ac_var=yes"
17686else
17687 echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690 eval "$as_ac_var=no"
17691fi
17692
17693rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695fi
17696ac_res=`eval echo '${'$as_ac_var'}'`
17697 { echo "$as_me:$LINENO: result: $ac_res" >&5
17698echo "${ECHO_T}$ac_res" >&6; }
17699if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017700 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017702_ACEOF
17703
17704fi
17705done
17706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017707
17708
17709
17710
Chris Lattner511f11d2005-11-14 07:25:50 +000017711for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017712do
17713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17714{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17716if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719 cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
17725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17727#define $ac_func innocuous_$ac_func
17728
17729/* System header to define __stub macros and hopefully few prototypes,
17730 which can conflict with char $ac_func (); below.
17731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17732 <limits.h> exists even on freestanding compilers. */
17733
17734#ifdef __STDC__
17735# include <limits.h>
17736#else
17737# include <assert.h>
17738#endif
17739
17740#undef $ac_func
17741
17742/* Override any GCC internal prototype to avoid an error.
17743 Use char because int might match the return type of a GCC
17744 builtin and then its argument prototype would still apply. */
17745#ifdef __cplusplus
17746extern "C"
17747#endif
17748char $ac_func ();
17749/* The GNU C library defines this for functions which it implements
17750 to always fail with ENOSYS. Some functions are actually named
17751 something starting with __ and the normal name is an alias. */
17752#if defined __stub_$ac_func || defined __stub___$ac_func
17753choke me
17754#endif
17755
17756int
17757main ()
17758{
17759return $ac_func ();
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext conftest$ac_exeext
17765if { (ac_try="$ac_link"
17766case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769esac
17770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_link") 2>conftest.er1
17772 ac_status=$?
17773 grep -v '^ *+' conftest.er1 >conftest.err
17774 rm -f conftest.er1
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17779 { (case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782esac
17783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_try") 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest$ac_exeext'
17789 { (case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17792esac
17793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_try") 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 eval "$as_ac_var=yes"
17799else
17800 echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 eval "$as_ac_var=no"
17804fi
17805
17806rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808fi
17809ac_res=`eval echo '${'$as_ac_var'}'`
17810 { echo "$as_me:$LINENO: result: $ac_res" >&5
17811echo "${ECHO_T}$ac_res" >&6; }
17812if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017813 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017815_ACEOF
17816
17817fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017818done
John Criswell7a73b802003-06-30 21:59:07 +000017819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017820
17821
17822
17823
Daniel Dunbar3e462932011-02-03 02:40:02 +000017824
17825for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017826do
17827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17828{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17830if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17832else
17833 cat >conftest.$ac_ext <<_ACEOF
17834/* confdefs.h. */
17835_ACEOF
17836cat confdefs.h >>conftest.$ac_ext
17837cat >>conftest.$ac_ext <<_ACEOF
17838/* end confdefs.h. */
17839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17841#define $ac_func innocuous_$ac_func
17842
17843/* System header to define __stub macros and hopefully few prototypes,
17844 which can conflict with char $ac_func (); below.
17845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17846 <limits.h> exists even on freestanding compilers. */
17847
17848#ifdef __STDC__
17849# include <limits.h>
17850#else
17851# include <assert.h>
17852#endif
17853
17854#undef $ac_func
17855
17856/* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
17859#ifdef __cplusplus
17860extern "C"
17861#endif
17862char $ac_func ();
17863/* The GNU C library defines this for functions which it implements
17864 to always fail with ENOSYS. Some functions are actually named
17865 something starting with __ and the normal name is an alias. */
17866#if defined __stub_$ac_func || defined __stub___$ac_func
17867choke me
17868#endif
17869
17870int
17871main ()
17872{
17873return $ac_func ();
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext conftest$ac_exeext
17879if { (ac_try="$ac_link"
17880case "(($ac_try" in
17881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882 *) ac_try_echo=$ac_try;;
17883esac
17884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885 (eval "$ac_link") 2>conftest.er1
17886 ac_status=$?
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896esac
17897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest$ac_exeext'
17903 { (case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906esac
17907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_try") 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 eval "$as_ac_var=yes"
17913else
17914 echo "$as_me: failed program was:" >&5
17915sed 's/^/| /' conftest.$ac_ext >&5
17916
17917 eval "$as_ac_var=no"
17918fi
17919
17920rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922fi
17923ac_res=`eval echo '${'$as_ac_var'}'`
17924 { echo "$as_me:$LINENO: result: $ac_res" >&5
17925echo "${ECHO_T}$ac_res" >&6; }
17926if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017927 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017929_ACEOF
17930
17931fi
17932done
17933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017934{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17935echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17936if test "${llvm_cv_c_printf_a+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017938else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017939 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017940ac_cpp='$CPP $CPPFLAGS'
17941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017945 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017946 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017950 /* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017955
John Criswella0137d32003-10-13 16:22:01 +000017956#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017957#include <stdlib.h>
17958
John Criswella0137d32003-10-13 16:22:01 +000017959int
17960main ()
17961{
17962
Reid Spencer2706f8c2004-09-19 23:53:36 +000017963volatile double A, B;
17964char Buffer[100];
17965A = 1;
17966A /= 10.0;
17967sprintf(Buffer, "%a", A);
17968B = atof(Buffer);
17969if (A != B)
17970 return (1);
17971if (A != 0x1.999999999999ap-4)
17972 return (1);
17973return (0);
John Criswella0137d32003-10-13 16:22:01 +000017974 ;
17975 return 0;
17976}
17977_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017978rm -f conftest$ac_exeext
17979if { (ac_try="$ac_link"
17980case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983esac
17984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017998 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018000 echo "$as_me: program exited with status $ac_status" >&5
18001echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004( exit $ac_status )
18005llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018007rm -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 +000018008fi
Reid Spencera773bd52006-08-04 18:18:08 +000018009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018010
Reid Spencer2706f8c2004-09-19 23:53:36 +000018011 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018012ac_cpp='$CPP $CPPFLAGS'
18013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018018{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18019echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018020 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018022cat >>confdefs.h <<\_ACEOF
18023#define HAVE_PRINTF_A 1
18024_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018025
Reid Spencer2706f8c2004-09-19 23:53:36 +000018026 fi
John Criswella0137d32003-10-13 16:22:01 +000018027
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018029{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18030echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18031if test "${ac_cv_func_rand48+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018033else
Reid Spencera773bd52006-08-04 18:18:08 +000018034 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018035ac_cpp='$CXXCPP $CPPFLAGS'
18036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018040 cat >conftest.$ac_ext <<_ACEOF
18041/* confdefs.h. */
18042_ACEOF
18043cat confdefs.h >>conftest.$ac_ext
18044cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018045/* end confdefs.h. */
18046#include <stdlib.h>
18047int
18048main ()
18049{
18050srand48(0);lrand48();drand48();
18051 ;
18052 return 0;
18053}
18054_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018055rm -f conftest.$ac_objext
18056if { (ac_try="$ac_compile"
18057case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060esac
18061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073esac
18074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; } &&
18079 { ac_try='test -s conftest.$ac_objext'
18080 { (case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18083esac
18084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_try") 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018089 ac_cv_func_rand48=yes
18090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018091 echo "$as_me: failed program was:" >&5
18092sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018096
Reid Spencera773bd52006-08-04 18:18:08 +000018097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018098 ac_ext=c
18099ac_cpp='$CPP $CPPFLAGS'
18100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18102ac_compiler_gnu=$ac_cv_c_compiler_gnu
18103
18104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018105{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18106echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018107
18108if test "$ac_cv_func_rand48" = "yes" ; then
18109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018110cat >>confdefs.h <<\_ACEOF
18111#define HAVE_RAND48 1
18112_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018113
18114fi
John Criswell0021c312004-02-13 21:57:29 +000018115
18116
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018117{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18118echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18119if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18121else
18122 cat >conftest.$ac_ext <<_ACEOF
18123/* confdefs.h. */
18124_ACEOF
18125cat confdefs.h >>conftest.$ac_ext
18126cat >>conftest.$ac_ext <<_ACEOF
18127/* end confdefs.h. */
18128$ac_includes_default
18129int
18130main ()
18131{
18132#ifndef strerror_s
18133 char *p = (char *) strerror_s;
18134 return !p;
18135#endif
18136
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext
18142if { (ac_try="$ac_compile"
18143case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146esac
18147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18156 { (case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159esac
18160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_try") 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_have_decl_strerror_s=yes
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 ac_cv_have_decl_strerror_s=no
18181fi
18182
18183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184fi
18185{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18186echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18187if test $ac_cv_have_decl_strerror_s = yes; then
18188
18189cat >>confdefs.h <<_ACEOF
18190#define HAVE_DECL_STRERROR_S 1
18191_ACEOF
18192
18193
18194else
18195 cat >>confdefs.h <<_ACEOF
18196#define HAVE_DECL_STRERROR_S 0
18197_ACEOF
18198
18199
18200fi
18201
18202
18203
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018204if test "$llvm_cv_os_type" = "MingW" ; then
18205 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18206echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18207if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210 ac_check_lib_save_LIBS=$LIBS
18211LIBS="-lgcc $LIBS"
18212cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h. */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h. */
18218
18219/* Override any GCC internal prototype to avoid an error.
18220 Use char because int might match the return type of a GCC
18221 builtin and then its argument prototype would still apply. */
18222#ifdef __cplusplus
18223extern "C"
18224#endif
18225char _alloca ();
18226int
18227main ()
18228{
18229return _alloca ();
18230 ;
18231 return 0;
18232}
18233_ACEOF
18234rm -f conftest.$ac_objext conftest$ac_exeext
18235if { (ac_try="$ac_link"
18236case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239esac
18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_link") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18249 { (case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_try") 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_lib_gcc__alloca=yes
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 ac_cv_lib_gcc__alloca=no
18274fi
18275
18276rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278LIBS=$ac_check_lib_save_LIBS
18279fi
18280{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18281echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18282if test $ac_cv_lib_gcc__alloca = yes; then
18283
18284cat >>confdefs.h <<\_ACEOF
18285#define HAVE__ALLOCA 1
18286_ACEOF
18287
18288fi
18289
18290 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18291echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18292if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294else
18295 ac_check_lib_save_LIBS=$LIBS
18296LIBS="-lgcc $LIBS"
18297cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303
18304/* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18307#ifdef __cplusplus
18308extern "C"
18309#endif
18310char __alloca ();
18311int
18312main ()
18313{
18314return __alloca ();
18315 ;
18316 return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext conftest$ac_exeext
18320if { (ac_try="$ac_link"
18321case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324esac
18325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_link") 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_gcc___alloca=yes
18354else
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 ac_cv_lib_gcc___alloca=no
18359fi
18360
18361rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363LIBS=$ac_check_lib_save_LIBS
18364fi
18365{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18366echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18367if test $ac_cv_lib_gcc___alloca = yes; then
18368
18369cat >>confdefs.h <<\_ACEOF
18370#define HAVE___ALLOCA 1
18371_ACEOF
18372
18373fi
18374
18375 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18376echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18377if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379else
18380 ac_check_lib_save_LIBS=$LIBS
18381LIBS="-lgcc $LIBS"
18382cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388
18389/* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18392#ifdef __cplusplus
18393extern "C"
18394#endif
18395char __chkstk ();
18396int
18397main ()
18398{
18399return __chkstk ();
18400 ;
18401 return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext conftest$ac_exeext
18405if { (ac_try="$ac_link"
18406case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_link") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18419 { (case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422esac
18423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_try") 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest$ac_exeext'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_gcc___chkstk=yes
18439else
18440 echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
18443 ac_cv_lib_gcc___chkstk=no
18444fi
18445
18446rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448LIBS=$ac_check_lib_save_LIBS
18449fi
18450{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18451echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18452if test $ac_cv_lib_gcc___chkstk = yes; then
18453
18454cat >>confdefs.h <<\_ACEOF
18455#define HAVE___CHKSTK 1
18456_ACEOF
18457
18458fi
18459
18460 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18461echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18462if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18464else
18465 ac_check_lib_save_LIBS=$LIBS
18466LIBS="-lgcc $LIBS"
18467cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
18473
18474/* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18477#ifdef __cplusplus
18478extern "C"
18479#endif
18480char ___chkstk ();
18481int
18482main ()
18483{
18484return ___chkstk ();
18485 ;
18486 return 0;
18487}
18488_ACEOF
18489rm -f conftest.$ac_objext conftest$ac_exeext
18490if { (ac_try="$ac_link"
18491case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18494esac
18495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_link") 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18504 { (case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18507esac
18508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_try") 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; } &&
18513 { ac_try='test -s conftest$ac_exeext'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_cv_lib_gcc____chkstk=yes
18524else
18525 echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528 ac_cv_lib_gcc____chkstk=no
18529fi
18530
18531rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533LIBS=$ac_check_lib_save_LIBS
18534fi
18535{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18536echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18537if test $ac_cv_lib_gcc____chkstk = yes; then
18538
18539cat >>confdefs.h <<\_ACEOF
18540#define HAVE____CHKSTK 1
18541_ACEOF
18542
18543fi
18544
18545
18546 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18547echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18548if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550else
18551 ac_check_lib_save_LIBS=$LIBS
18552LIBS="-lgcc $LIBS"
18553cat >conftest.$ac_ext <<_ACEOF
18554/* confdefs.h. */
18555_ACEOF
18556cat confdefs.h >>conftest.$ac_ext
18557cat >>conftest.$ac_ext <<_ACEOF
18558/* end confdefs.h. */
18559
18560/* Override any GCC internal prototype to avoid an error.
18561 Use char because int might match the return type of a GCC
18562 builtin and then its argument prototype would still apply. */
18563#ifdef __cplusplus
18564extern "C"
18565#endif
18566char __ashldi3 ();
18567int
18568main ()
18569{
18570return __ashldi3 ();
18571 ;
18572 return 0;
18573}
18574_ACEOF
18575rm -f conftest.$ac_objext conftest$ac_exeext
18576if { (ac_try="$ac_link"
18577case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18580esac
18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_link") 2>conftest.er1
18583 ac_status=$?
18584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603esac
18604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_lib_gcc___ashldi3=yes
18610else
18611 echo "$as_me: failed program was:" >&5
18612sed 's/^/| /' conftest.$ac_ext >&5
18613
18614 ac_cv_lib_gcc___ashldi3=no
18615fi
18616
18617rm -f core conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18619LIBS=$ac_check_lib_save_LIBS
18620fi
18621{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18622echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18623if test $ac_cv_lib_gcc___ashldi3 = yes; then
18624
18625cat >>confdefs.h <<\_ACEOF
18626#define HAVE___ASHLDI3 1
18627_ACEOF
18628
18629fi
18630
18631 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18632echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18633if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635else
18636 ac_check_lib_save_LIBS=$LIBS
18637LIBS="-lgcc $LIBS"
18638cat >conftest.$ac_ext <<_ACEOF
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
18643/* end confdefs.h. */
18644
18645/* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18648#ifdef __cplusplus
18649extern "C"
18650#endif
18651char __ashrdi3 ();
18652int
18653main ()
18654{
18655return __ashrdi3 ();
18656 ;
18657 return 0;
18658}
18659_ACEOF
18660rm -f conftest.$ac_objext conftest$ac_exeext
18661if { (ac_try="$ac_link"
18662case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665esac
18666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_link") 2>conftest.er1
18668 ac_status=$?
18669 grep -v '^ *+' conftest.er1 >conftest.err
18670 rm -f conftest.er1
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } &&
18674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678esac
18679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest$ac_exeext'
18685 { (case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688esac
18689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_try") 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_lib_gcc___ashrdi3=yes
18695else
18696 echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 ac_cv_lib_gcc___ashrdi3=no
18700fi
18701
18702rm -f core conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
18704LIBS=$ac_check_lib_save_LIBS
18705fi
18706{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18707echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18708if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18709
18710cat >>confdefs.h <<\_ACEOF
18711#define HAVE___ASHRDI3 1
18712_ACEOF
18713
18714fi
18715
18716 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18717echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18718if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720else
18721 ac_check_lib_save_LIBS=$LIBS
18722LIBS="-lgcc $LIBS"
18723cat >conftest.$ac_ext <<_ACEOF
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
18728/* end confdefs.h. */
18729
18730/* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18733#ifdef __cplusplus
18734extern "C"
18735#endif
18736char __divdi3 ();
18737int
18738main ()
18739{
18740return __divdi3 ();
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext conftest$ac_exeext
18746if { (ac_try="$ac_link"
18747case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750esac
18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest$ac_exeext'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_lib_gcc___divdi3=yes
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_cv_lib_gcc___divdi3=no
18785fi
18786
18787rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789LIBS=$ac_check_lib_save_LIBS
18790fi
18791{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18792echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18793if test $ac_cv_lib_gcc___divdi3 = yes; then
18794
18795cat >>confdefs.h <<\_ACEOF
18796#define HAVE___DIVDI3 1
18797_ACEOF
18798
18799fi
18800
18801 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18802echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18803if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805else
18806 ac_check_lib_save_LIBS=$LIBS
18807LIBS="-lgcc $LIBS"
18808cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814
18815/* Override any GCC internal prototype to avoid an error.
18816 Use char because int might match the return type of a GCC
18817 builtin and then its argument prototype would still apply. */
18818#ifdef __cplusplus
18819extern "C"
18820#endif
18821char __fixdfdi ();
18822int
18823main ()
18824{
18825return __fixdfdi ();
18826 ;
18827 return 0;
18828}
18829_ACEOF
18830rm -f conftest.$ac_objext conftest$ac_exeext
18831if { (ac_try="$ac_link"
18832case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835esac
18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_link") 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845 { (case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18848esac
18849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_try") 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest$ac_exeext'
18855 { (case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18858esac
18859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_try") 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_cv_lib_gcc___fixdfdi=yes
18865else
18866 echo "$as_me: failed program was:" >&5
18867sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 ac_cv_lib_gcc___fixdfdi=no
18870fi
18871
18872rm -f core conftest.err conftest.$ac_objext \
18873 conftest$ac_exeext conftest.$ac_ext
18874LIBS=$ac_check_lib_save_LIBS
18875fi
18876{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18877echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18878if test $ac_cv_lib_gcc___fixdfdi = yes; then
18879
18880cat >>confdefs.h <<\_ACEOF
18881#define HAVE___FIXDFDI 1
18882_ACEOF
18883
18884fi
18885
18886 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18887echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18888if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890else
18891 ac_check_lib_save_LIBS=$LIBS
18892LIBS="-lgcc $LIBS"
18893cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h. */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h. */
18899
18900/* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18903#ifdef __cplusplus
18904extern "C"
18905#endif
18906char __fixsfdi ();
18907int
18908main ()
18909{
18910return __fixsfdi ();
18911 ;
18912 return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext conftest$ac_exeext
18916if { (ac_try="$ac_link"
18917case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_cv_lib_gcc___fixsfdi=yes
18950else
18951 echo "$as_me: failed program was:" >&5
18952sed 's/^/| /' conftest.$ac_ext >&5
18953
18954 ac_cv_lib_gcc___fixsfdi=no
18955fi
18956
18957rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18959LIBS=$ac_check_lib_save_LIBS
18960fi
18961{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18962echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18963if test $ac_cv_lib_gcc___fixsfdi = yes; then
18964
18965cat >>confdefs.h <<\_ACEOF
18966#define HAVE___FIXSFDI 1
18967_ACEOF
18968
18969fi
18970
18971 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18972echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18973if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18974 echo $ECHO_N "(cached) $ECHO_C" >&6
18975else
18976 ac_check_lib_save_LIBS=$LIBS
18977LIBS="-lgcc $LIBS"
18978cat >conftest.$ac_ext <<_ACEOF
18979/* confdefs.h. */
18980_ACEOF
18981cat confdefs.h >>conftest.$ac_ext
18982cat >>conftest.$ac_ext <<_ACEOF
18983/* end confdefs.h. */
18984
18985/* Override any GCC internal prototype to avoid an error.
18986 Use char because int might match the return type of a GCC
18987 builtin and then its argument prototype would still apply. */
18988#ifdef __cplusplus
18989extern "C"
18990#endif
18991char __floatdidf ();
18992int
18993main ()
18994{
18995return __floatdidf ();
18996 ;
18997 return 0;
18998}
18999_ACEOF
19000rm -f conftest.$ac_objext conftest$ac_exeext
19001if { (ac_try="$ac_link"
19002case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028esac
19029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_lib_gcc___floatdidf=yes
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039 ac_cv_lib_gcc___floatdidf=no
19040fi
19041
19042rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext conftest.$ac_ext
19044LIBS=$ac_check_lib_save_LIBS
19045fi
19046{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19047echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19048if test $ac_cv_lib_gcc___floatdidf = yes; then
19049
19050cat >>confdefs.h <<\_ACEOF
19051#define HAVE___FLOATDIDF 1
19052_ACEOF
19053
19054fi
19055
19056 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19057echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19058if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061 ac_check_lib_save_LIBS=$LIBS
19062LIBS="-lgcc $LIBS"
19063cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h. */
19069
19070/* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19073#ifdef __cplusplus
19074extern "C"
19075#endif
19076char __lshrdi3 ();
19077int
19078main ()
19079{
19080return __lshrdi3 ();
19081 ;
19082 return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext conftest$ac_exeext
19086if { (ac_try="$ac_link"
19087case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest$ac_exeext'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_gcc___lshrdi3=yes
19120else
19121 echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_cv_lib_gcc___lshrdi3=no
19125fi
19126
19127rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129LIBS=$ac_check_lib_save_LIBS
19130fi
19131{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19132echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19133if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19134
19135cat >>confdefs.h <<\_ACEOF
19136#define HAVE___LSHRDI3 1
19137_ACEOF
19138
19139fi
19140
19141 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19142echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19143if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146 ac_check_lib_save_LIBS=$LIBS
19147LIBS="-lgcc $LIBS"
19148cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
19154
19155/* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19158#ifdef __cplusplus
19159extern "C"
19160#endif
19161char __moddi3 ();
19162int
19163main ()
19164{
19165return __moddi3 ();
19166 ;
19167 return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext conftest$ac_exeext
19171if { (ac_try="$ac_link"
19172case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_link") 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest$ac_exeext'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_lib_gcc___moddi3=yes
19205else
19206 echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 ac_cv_lib_gcc___moddi3=no
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214LIBS=$ac_check_lib_save_LIBS
19215fi
19216{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19217echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19218if test $ac_cv_lib_gcc___moddi3 = yes; then
19219
19220cat >>confdefs.h <<\_ACEOF
19221#define HAVE___MODDI3 1
19222_ACEOF
19223
19224fi
19225
19226 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19227echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19228if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230else
19231 ac_check_lib_save_LIBS=$LIBS
19232LIBS="-lgcc $LIBS"
19233cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
19239
19240/* Override any GCC internal prototype to avoid an error.
19241 Use char because int might match the return type of a GCC
19242 builtin and then its argument prototype would still apply. */
19243#ifdef __cplusplus
19244extern "C"
19245#endif
19246char __udivdi3 ();
19247int
19248main ()
19249{
19250return __udivdi3 ();
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext conftest$ac_exeext
19256if { (ac_try="$ac_link"
19257case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260esac
19261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19273esac
19274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest$ac_exeext'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_lib_gcc___udivdi3=yes
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_cv_lib_gcc___udivdi3=no
19295fi
19296
19297rm -f core conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299LIBS=$ac_check_lib_save_LIBS
19300fi
19301{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19302echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19303if test $ac_cv_lib_gcc___udivdi3 = yes; then
19304
19305cat >>confdefs.h <<\_ACEOF
19306#define HAVE___UDIVDI3 1
19307_ACEOF
19308
19309fi
19310
19311 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19312echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19313if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19315else
19316 ac_check_lib_save_LIBS=$LIBS
19317LIBS="-lgcc $LIBS"
19318cat >conftest.$ac_ext <<_ACEOF
19319/* confdefs.h. */
19320_ACEOF
19321cat confdefs.h >>conftest.$ac_ext
19322cat >>conftest.$ac_ext <<_ACEOF
19323/* end confdefs.h. */
19324
19325/* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19328#ifdef __cplusplus
19329extern "C"
19330#endif
19331char __umoddi3 ();
19332int
19333main ()
19334{
19335return __umoddi3 ();
19336 ;
19337 return 0;
19338}
19339_ACEOF
19340rm -f conftest.$ac_objext conftest$ac_exeext
19341if { (ac_try="$ac_link"
19342case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_link") 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest$ac_exeext'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19368esac
19369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_lib_gcc___umoddi3=yes
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_cv_lib_gcc___umoddi3=no
19380fi
19381
19382rm -f core conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19384LIBS=$ac_check_lib_save_LIBS
19385fi
19386{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19387echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19388if test $ac_cv_lib_gcc___umoddi3 = yes; then
19389
19390cat >>confdefs.h <<\_ACEOF
19391#define HAVE___UMODDI3 1
19392_ACEOF
19393
19394fi
19395
19396
19397 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19398echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19399if test "${ac_cv_lib_gcc___main+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401else
19402 ac_check_lib_save_LIBS=$LIBS
19403LIBS="-lgcc $LIBS"
19404cat >conftest.$ac_ext <<_ACEOF
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410
19411/* Override any GCC internal prototype to avoid an error.
19412 Use char because int might match the return type of a GCC
19413 builtin and then its argument prototype would still apply. */
19414#ifdef __cplusplus
19415extern "C"
19416#endif
19417char __main ();
19418int
19419main ()
19420{
19421return __main ();
19422 ;
19423 return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext conftest$ac_exeext
19427if { (ac_try="$ac_link"
19428case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431esac
19432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_link") 2>conftest.er1
19434 ac_status=$?
19435 grep -v '^ *+' conftest.er1 >conftest.err
19436 rm -f conftest.er1
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19441 { (case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_try") 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest$ac_exeext'
19451 { (case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19454esac
19455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_try") 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_lib_gcc___main=yes
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 ac_cv_lib_gcc___main=no
19466fi
19467
19468rm -f core conftest.err conftest.$ac_objext \
19469 conftest$ac_exeext conftest.$ac_ext
19470LIBS=$ac_check_lib_save_LIBS
19471fi
19472{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19473echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19474if test $ac_cv_lib_gcc___main = yes; then
19475
19476cat >>confdefs.h <<\_ACEOF
19477#define HAVE___MAIN 1
19478_ACEOF
19479
19480fi
19481
19482 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19483echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19484if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486else
19487 ac_check_lib_save_LIBS=$LIBS
19488LIBS="-lgcc $LIBS"
19489cat >conftest.$ac_ext <<_ACEOF
19490/* confdefs.h. */
19491_ACEOF
19492cat confdefs.h >>conftest.$ac_ext
19493cat >>conftest.$ac_ext <<_ACEOF
19494/* end confdefs.h. */
19495
19496/* Override any GCC internal prototype to avoid an error.
19497 Use char because int might match the return type of a GCC
19498 builtin and then its argument prototype would still apply. */
19499#ifdef __cplusplus
19500extern "C"
19501#endif
19502char __cmpdi2 ();
19503int
19504main ()
19505{
19506return __cmpdi2 ();
19507 ;
19508 return 0;
19509}
19510_ACEOF
19511rm -f conftest.$ac_objext conftest$ac_exeext
19512if { (ac_try="$ac_link"
19513case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516esac
19517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_link") 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529esac
19530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest$ac_exeext'
19536 { (case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_try") 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_lib_gcc___cmpdi2=yes
19546else
19547 echo "$as_me: failed program was:" >&5
19548sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ac_cv_lib_gcc___cmpdi2=no
19551fi
19552
19553rm -f core conftest.err conftest.$ac_objext \
19554 conftest$ac_exeext conftest.$ac_ext
19555LIBS=$ac_check_lib_save_LIBS
19556fi
19557{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19558echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19559if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19560
19561cat >>confdefs.h <<\_ACEOF
19562#define HAVE___CMPDI2 1
19563_ACEOF
19564
19565fi
19566
19567fi
19568
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019569if test "$llvm_cv_os_type" = "MingW" ; then
19570 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19571echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19572 cat >conftest.$ac_ext <<_ACEOF
19573#include <windows.h>
19574#include <imagehlp.h>
19575extern void foo(PENUMLOADED_MODULES_CALLBACK);
19576extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19577_ACEOF
19578rm -f conftest.$ac_objext
19579if { (ac_try="$ac_compile"
19580case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_compile") 2>conftest.er1
19586 ac_status=$?
19587 grep -v '^ *+' conftest.er1 >conftest.err
19588 rm -f conftest.er1
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612
19613 { echo "$as_me:$LINENO: result: yes" >&5
19614echo "${ECHO_T}yes" >&6; }
19615 llvm_cv_win32_elmcb_pcstr="PCSTR"
19616
19617else
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621
19622 { echo "$as_me:$LINENO: result: no" >&5
19623echo "${ECHO_T}no" >&6; }
19624 llvm_cv_win32_elmcb_pcstr="PSTR"
19625
19626fi
19627
19628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629
19630cat >>confdefs.h <<_ACEOF
19631#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19632_ACEOF
19633
19634fi
19635
Torok Edwin871384f2010-01-26 08:50:50 +000019636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19638echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19639if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019641else
Reid Spencera773bd52006-08-04 18:18:08 +000019642 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019643ac_cpp='$CXXCPP $CPPFLAGS'
19644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019648 cat >conftest.$ac_ext <<_ACEOF
19649/* confdefs.h. */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019653/* end confdefs.h. */
19654#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019655int
19656main ()
19657{
19658float f; isnan(f);
19659 ;
19660 return 0;
19661}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019662_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663rm -f conftest.$ac_objext
19664if { (ac_try="$ac_compile"
19665case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19668esac
19669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_compile") 2>conftest.er1
19671 ac_status=$?
19672 grep -v '^ *+' conftest.er1 >conftest.err
19673 rm -f conftest.er1
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19678 { (case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19681esac
19682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_try") 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691esac
19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019697 ac_cv_func_isnan_in_math_h=yes
19698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019704
Reid Spencera773bd52006-08-04 18:18:08 +000019705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019706 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019707ac_cpp='$CPP $CPPFLAGS'
19708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19710ac_compiler_gnu=$ac_cv_c_compiler_gnu
19711
19712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019713{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19714echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019715
19716
19717if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719cat >>confdefs.h <<\_ACEOF
19720#define HAVE_ISNAN_IN_MATH_H 1
19721_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019722
Reid Spencerabec8f92004-10-27 23:03:44 +000019723fi
19724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19726echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19727if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019729else
Reid Spencera773bd52006-08-04 18:18:08 +000019730 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019731ac_cpp='$CXXCPP $CPPFLAGS'
19732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019741/* end confdefs.h. */
19742#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019743int
19744main ()
19745{
19746float f; isnan(f);
19747 ;
19748 return 0;
19749}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019750_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019751rm -f conftest.$ac_objext
19752if { (ac_try="$ac_compile"
19753case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756esac
19757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769esac
19770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_try") 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019785 ac_cv_func_isnan_in_cmath=yes
19786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019787 echo "$as_me: failed program was:" >&5
19788sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792
Reid Spencera773bd52006-08-04 18:18:08 +000019793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019794 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019795ac_cpp='$CPP $CPPFLAGS'
19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798ac_compiler_gnu=$ac_cv_c_compiler_gnu
19799
19800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19802echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019803
19804if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806cat >>confdefs.h <<\_ACEOF
19807#define HAVE_ISNAN_IN_CMATH 1
19808_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019809
Reid Spencerabec8f92004-10-27 23:03:44 +000019810fi
19811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19813echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19814if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019816else
Reid Spencera773bd52006-08-04 18:18:08 +000019817 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019818ac_cpp='$CXXCPP $CPPFLAGS'
19819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823 cat >conftest.$ac_ext <<_ACEOF
19824/* confdefs.h. */
19825_ACEOF
19826cat confdefs.h >>conftest.$ac_ext
19827cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019828/* end confdefs.h. */
19829#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019830int
19831main ()
19832{
19833float f; std::isnan(f);
19834 ;
19835 return 0;
19836}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019837_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838rm -f conftest.$ac_objext
19839if { (ac_try="$ac_compile"
19840case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843esac
19844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_compile") 2>conftest.er1
19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19853 { (case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856esac
19857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_try") 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866esac
19867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_try") 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019872 ac_cv_func_std_isnan_in_cmath=yes
19873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879
Reid Spencera773bd52006-08-04 18:18:08 +000019880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019881 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019882ac_cpp='$CPP $CPPFLAGS'
19883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885ac_compiler_gnu=$ac_cv_c_compiler_gnu
19886
19887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019888{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19889echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019890
19891if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019893cat >>confdefs.h <<\_ACEOF
19894#define HAVE_STD_ISNAN_IN_CMATH 1
19895_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019896
Reid Spencerabec8f92004-10-27 23:03:44 +000019897fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019898
19899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19901echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19902if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019904else
Reid Spencera773bd52006-08-04 18:18:08 +000019905 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019906ac_cpp='$CXXCPP $CPPFLAGS'
19907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911 cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h. */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019916/* end confdefs.h. */
19917#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019918int
19919main ()
19920{
19921float f; isinf(f);
19922 ;
19923 return 0;
19924}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019926rm -f conftest.$ac_objext
19927if { (ac_try="$ac_compile"
19928case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931esac
19932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_compile") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19941 { (case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19944esac
19945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_try") 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest.$ac_objext'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019960 ac_cv_func_isinf_in_math_h=yes
19961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019967
Reid Spencera773bd52006-08-04 18:18:08 +000019968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019969 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019970ac_cpp='$CPP $CPPFLAGS'
19971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19973ac_compiler_gnu=$ac_cv_c_compiler_gnu
19974
19975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019976{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19977echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019978
19979if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019981cat >>confdefs.h <<\_ACEOF
19982#define HAVE_ISINF_IN_MATH_H 1
19983_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019984
Reid Spencerabec8f92004-10-27 23:03:44 +000019985fi
19986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19988echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19989if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019991else
Reid Spencera773bd52006-08-04 18:18:08 +000019992 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019993ac_cpp='$CXXCPP $CPPFLAGS'
19994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019998 cat >conftest.$ac_ext <<_ACEOF
19999/* confdefs.h. */
20000_ACEOF
20001cat confdefs.h >>conftest.$ac_ext
20002cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020003/* end confdefs.h. */
20004#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020005int
20006main ()
20007{
20008float f; isinf(f);
20009 ;
20010 return 0;
20011}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020012_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020013rm -f conftest.$ac_objext
20014if { (ac_try="$ac_compile"
20015case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018esac
20019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031esac
20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020047 ac_cv_func_isinf_in_cmath=yes
20048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049 echo "$as_me: failed program was:" >&5
20050sed 's/^/| /' conftest.$ac_ext >&5
20051
20052 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054
Reid Spencera773bd52006-08-04 18:18:08 +000020055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020056 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020057ac_cpp='$CPP $CPPFLAGS'
20058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20060ac_compiler_gnu=$ac_cv_c_compiler_gnu
20061
20062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020063{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20064echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020065
20066if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020068cat >>confdefs.h <<\_ACEOF
20069#define HAVE_ISINF_IN_CMATH 1
20070_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020071
Reid Spencerabec8f92004-10-27 23:03:44 +000020072fi
20073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20075echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20076if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020078else
Reid Spencera773bd52006-08-04 18:18:08 +000020079 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020080ac_cpp='$CXXCPP $CPPFLAGS'
20081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020090/* end confdefs.h. */
20091#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020092int
20093main ()
20094{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020095float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020096 ;
20097 return 0;
20098}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020100rm -f conftest.$ac_objext
20101if { (ac_try="$ac_compile"
20102case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20105esac
20106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_compile") 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118esac
20119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128esac
20129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_try") 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020134 ac_cv_func_std_isinf_in_cmath=yes
20135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136 echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020141
Reid Spencera773bd52006-08-04 18:18:08 +000020142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020143 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020144ac_cpp='$CPP $CPPFLAGS'
20145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20147ac_compiler_gnu=$ac_cv_c_compiler_gnu
20148
20149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020150{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20151echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020152
20153if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020155cat >>confdefs.h <<\_ACEOF
20156#define HAVE_STD_ISINF_IN_CMATH 1
20157_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020158
Reid Spencerabec8f92004-10-27 23:03:44 +000020159fi
20160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20162echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20163if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020165else
Reid Spencera773bd52006-08-04 18:18:08 +000020166 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020167ac_cpp='$CXXCPP $CPPFLAGS'
20168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020177/* end confdefs.h. */
20178#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020179int
20180main ()
20181{
20182float f; finite(f);
20183 ;
20184 return 0;
20185}
Brian Gaeked59a6472004-07-21 03:33:58 +000020186_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020187rm -f conftest.$ac_objext
20188if { (ac_try="$ac_compile"
20189case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20192esac
20193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_compile") 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20205esac
20206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_try") 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020221 ac_cv_func_finite_in_ieeefp_h=yes
20222else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223 echo "$as_me: failed program was:" >&5
20224sed 's/^/| /' conftest.$ac_ext >&5
20225
20226 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020228
Reid Spencera773bd52006-08-04 18:18:08 +000020229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020230 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020231ac_cpp='$CPP $CPPFLAGS'
20232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234ac_compiler_gnu=$ac_cv_c_compiler_gnu
20235
20236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020237{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20238echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020239
Brian Gaeke6802b552004-10-28 05:06:45 +000020240if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020242cat >>confdefs.h <<\_ACEOF
20243#define HAVE_FINITE_IN_IEEEFP_H 1
20244_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020245
Reid Spencerabec8f92004-10-27 23:03:44 +000020246fi
20247
20248
20249
Reid Spencer30fe5262007-01-20 07:48:49 +000020250if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020251
20252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020253for ac_header in stdlib.h unistd.h
20254do
20255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261fi
20262ac_res=`eval echo '${'$as_ac_Header'}'`
20263 { echo "$as_me:$LINENO: result: $ac_res" >&5
20264echo "${ECHO_T}$ac_res" >&6; }
20265else
20266 # Is the header compilable?
20267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20269cat >conftest.$ac_ext <<_ACEOF
20270/* confdefs.h. */
20271_ACEOF
20272cat confdefs.h >>conftest.$ac_ext
20273cat >>conftest.$ac_ext <<_ACEOF
20274/* end confdefs.h. */
20275$ac_includes_default
20276#include <$ac_header>
20277_ACEOF
20278rm -f conftest.$ac_objext
20279if { (ac_try="$ac_compile"
20280case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283esac
20284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_compile") 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293 { (case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296esac
20297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_try") 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306esac
20307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_header_compiler=yes
20313else
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317 ac_header_compiler=no
20318fi
20319
20320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20322echo "${ECHO_T}$ac_header_compiler" >&6; }
20323
20324# Is the header present?
20325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20327cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
20333#include <$ac_header>
20334_ACEOF
20335if { (ac_try="$ac_cpp conftest.$ac_ext"
20336case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20342 ac_status=$?
20343 grep -v '^ *+' conftest.er1 >conftest.err
20344 rm -f conftest.er1
20345 cat conftest.err >&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } >/dev/null; then
20348 if test -s conftest.err; then
20349 ac_cpp_err=$ac_c_preproc_warn_flag
20350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20351 else
20352 ac_cpp_err=
20353 fi
20354else
20355 ac_cpp_err=yes
20356fi
20357if test -z "$ac_cpp_err"; then
20358 ac_header_preproc=yes
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 ac_header_preproc=no
20364fi
20365
20366rm -f conftest.err conftest.$ac_ext
20367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20368echo "${ECHO_T}$ac_header_preproc" >&6; }
20369
20370# So? What about this header?
20371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20372 yes:no: )
20373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20377 ac_header_preproc=yes
20378 ;;
20379 no:yes:* )
20380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20392 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020393## ------------------------------------ ##
20394## Report this to http://llvm.org/bugs/ ##
20395## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396_ASBOX
20397 ) | sed "s/^/$as_me: WARNING: /" >&2
20398 ;;
20399esac
20400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20404else
20405 eval "$as_ac_Header=\$ac_header_preproc"
20406fi
20407ac_res=`eval echo '${'$as_ac_Header'}'`
20408 { echo "$as_me:$LINENO: result: $ac_res" >&5
20409echo "${ECHO_T}$ac_res" >&6; }
20410
20411fi
20412if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020413 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020415_ACEOF
20416
20417fi
20418
20419done
20420
20421
20422for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423do
20424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20425{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h. */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h. */
20436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20438#define $ac_func innocuous_$ac_func
20439
20440/* System header to define __stub macros and hopefully few prototypes,
20441 which can conflict with char $ac_func (); below.
20442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20443 <limits.h> exists even on freestanding compilers. */
20444
20445#ifdef __STDC__
20446# include <limits.h>
20447#else
20448# include <assert.h>
20449#endif
20450
20451#undef $ac_func
20452
20453/* Override any GCC internal prototype to avoid an error.
20454 Use char because int might match the return type of a GCC
20455 builtin and then its argument prototype would still apply. */
20456#ifdef __cplusplus
20457extern "C"
20458#endif
20459char $ac_func ();
20460/* The GNU C library defines this for functions which it implements
20461 to always fail with ENOSYS. Some functions are actually named
20462 something starting with __ and the normal name is an alias. */
20463#if defined __stub_$ac_func || defined __stub___$ac_func
20464choke me
20465#endif
20466
20467int
20468main ()
20469{
20470return $ac_func ();
20471 ;
20472 return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext conftest$ac_exeext
20476if { (ac_try="$ac_link"
20477case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 eval "$as_ac_var=yes"
20510else
20511 echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 eval "$as_ac_var=no"
20515fi
20516
20517rm -f core conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20519fi
20520ac_res=`eval echo '${'$as_ac_var'}'`
20521 { echo "$as_me:$LINENO: result: $ac_res" >&5
20522echo "${ECHO_T}$ac_res" >&6; }
20523if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020526_ACEOF
20527
20528fi
20529done
20530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531{ echo "$as_me:$LINENO: checking for working mmap" >&5
20532echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20533if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020537 ac_cv_func_mmap_fixed_mapped=no
20538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020539 cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020545$ac_includes_default
20546/* malloc might have been renamed as rpl_malloc. */
20547#undef malloc
20548
20549/* Thanks to Mike Haertel and Jim Avera for this test.
20550 Here is a matrix of mmap possibilities:
20551 mmap private not fixed
20552 mmap private fixed at somewhere currently unmapped
20553 mmap private fixed at somewhere already mapped
20554 mmap shared not fixed
20555 mmap shared fixed at somewhere currently unmapped
20556 mmap shared fixed at somewhere already mapped
20557 For private mappings, we should verify that changes cannot be read()
20558 back from the file, nor mmap's back from the file at a different
20559 address. (There have been systems where private was not correctly
20560 implemented like the infamous i386 svr4.0, and systems where the
20561 VM page cache was not coherent with the file system buffer cache
20562 like early versions of FreeBSD and possibly contemporary NetBSD.)
20563 For shared mappings, we should conversely verify that changes get
20564 propagated back to all the places they're supposed to be.
20565
20566 Grep wants private fixed already mapped.
20567 The main things grep needs to know about mmap are:
20568 * does it exist and is it safe to write into the mmap'd area
20569 * how to use it (BSD variants) */
20570
20571#include <fcntl.h>
20572#include <sys/mman.h>
20573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020575char *malloc ();
20576#endif
20577
20578/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579#if !HAVE_GETPAGESIZE
20580/* Assume that all systems that can run configure have sys/param.h. */
20581# if !HAVE_SYS_PARAM_H
20582# define HAVE_SYS_PARAM_H 1
20583# endif
20584
John Criswell7a73b802003-06-30 21:59:07 +000020585# ifdef _SC_PAGESIZE
20586# define getpagesize() sysconf(_SC_PAGESIZE)
20587# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020589# include <sys/param.h>
20590# ifdef EXEC_PAGESIZE
20591# define getpagesize() EXEC_PAGESIZE
20592# else /* no EXEC_PAGESIZE */
20593# ifdef NBPG
20594# define getpagesize() NBPG * CLSIZE
20595# ifndef CLSIZE
20596# define CLSIZE 1
20597# endif /* no CLSIZE */
20598# else /* no NBPG */
20599# ifdef NBPC
20600# define getpagesize() NBPC
20601# else /* no NBPC */
20602# ifdef PAGESIZE
20603# define getpagesize() PAGESIZE
20604# endif /* PAGESIZE */
20605# endif /* no NBPC */
20606# endif /* no NBPG */
20607# endif /* no EXEC_PAGESIZE */
20608# else /* no HAVE_SYS_PARAM_H */
20609# define getpagesize() 8192 /* punt totally */
20610# endif /* no HAVE_SYS_PARAM_H */
20611# endif /* no _SC_PAGESIZE */
20612
20613#endif /* no HAVE_GETPAGESIZE */
20614
20615int
20616main ()
20617{
20618 char *data, *data2, *data3;
20619 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020621
20622 pagesize = getpagesize ();
20623
20624 /* First, make a file with some known garbage in it. */
20625 data = (char *) malloc (pagesize);
20626 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020627 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020628 for (i = 0; i < pagesize; ++i)
20629 *(data + i) = rand ();
20630 umask (0);
20631 fd = creat ("conftest.mmap", 0600);
20632 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020633 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020634 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020636 close (fd);
20637
20638 /* Next, try to mmap the file at a fixed address which already has
20639 something else allocated at it. If we can, also make sure that
20640 we see the same garbage. */
20641 fd = open ("conftest.mmap", O_RDWR);
20642 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643 return 1;
20644 data2 = (char *) malloc (2 * pagesize);
20645 if (!data2)
20646 return 1;
20647 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020648 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020649 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020651 for (i = 0; i < pagesize; ++i)
20652 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020654
20655 /* Finally, make sure that changes to the mapped area do not
20656 percolate back to the file as seen by read(). (This is a bug on
20657 some variants of i386 svr4.0.) */
20658 for (i = 0; i < pagesize; ++i)
20659 *(data2 + i) = *(data2 + i) + 1;
20660 data3 = (char *) malloc (pagesize);
20661 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020663 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020664 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020665 for (i = 0; i < pagesize; ++i)
20666 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020668 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020669 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020670}
20671_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672rm -f conftest$ac_exeext
20673if { (ac_try="$ac_link"
20674case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677esac
20678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_link") 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20683 { (case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686esac
20687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_try") 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020692 ac_cv_func_mmap_fixed_mapped=yes
20693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020694 echo "$as_me: program exited with status $ac_status" >&5
20695echo "$as_me: failed program was:" >&5
20696sed 's/^/| /' conftest.$ac_ext >&5
20697
20698( exit $ac_status )
20699ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020701rm -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 +000020702fi
Reid Spencera773bd52006-08-04 18:18:08 +000020703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704
John Criswell7a73b802003-06-30 21:59:07 +000020705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020706{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20707echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020708if test $ac_cv_func_mmap_fixed_mapped = yes; then
20709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020710cat >>confdefs.h <<\_ACEOF
20711#define HAVE_MMAP 1
20712_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020713
20714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020715rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020717 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20718echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20719if test "${ac_cv_func_mmap_file+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020721else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020722 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020723ac_cpp='$CPP $CPPFLAGS'
20724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20726ac_compiler_gnu=$ac_cv_c_compiler_gnu
20727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020728 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020729 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020731 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733 /* confdefs.h. */
20734_ACEOF
20735cat confdefs.h >>conftest.$ac_ext
20736cat >>conftest.$ac_ext <<_ACEOF
20737/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020738
John Criswell7a73b802003-06-30 21:59:07 +000020739#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020740#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020741#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020742
20743int
20744main ()
20745{
John Criswell7a73b802003-06-30 21:59:07 +000020746
20747 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020748 fd = creat ("foo",0777);
20749 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20750 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020751 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020752 ;
20753 return 0;
20754}
John Criswell7a73b802003-06-30 21:59:07 +000020755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020756rm -f conftest$ac_exeext
20757if { (ac_try="$ac_link"
20758case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761esac
20762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_link") 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20767 { (case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770esac
20771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_try") 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020776 ac_cv_func_mmap_file=yes
20777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778 echo "$as_me: program exited with status $ac_status" >&5
20779echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782( exit $ac_status )
20783ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785rm -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 +000020786fi
Reid Spencera773bd52006-08-04 18:18:08 +000020787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020788
John Criswell7a73b802003-06-30 21:59:07 +000020789 ac_ext=c
20790ac_cpp='$CPP $CPPFLAGS'
20791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793ac_compiler_gnu=$ac_cv_c_compiler_gnu
20794
20795
20796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020797{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20798echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020799if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020801cat >>confdefs.h <<\_ACEOF
20802#define HAVE_MMAP_FILE
20803_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020804
20805 MMAP_FILE=yes
20806
20807fi
20808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020809 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20810echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20811if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020813else
Reid Spencer582a23c2004-12-29 07:07:57 +000020814 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020815 ac_cv_need_dev_zero_for_mmap=yes
20816 else
20817 ac_cv_need_dev_zero_for_mmap=no
20818 fi
20819
20820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020821{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20822echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020823if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020825cat >>confdefs.h <<\_ACEOF
20826#define NEED_DEV_ZERO_FOR_MMAP 1
20827_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020828
20829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020830
Reid Spencer30fe5262007-01-20 07:48:49 +000020831 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20832 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020833 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20834echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020835 fi
20836 if test "$ac_cv_func_mmap_file" = "no"
20837 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020838 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20839echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020840 fi
John Criswellb13092b2003-07-22 21:00:24 +000020841fi
John Criswell7a73b802003-06-30 21:59:07 +000020842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020843{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20844echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020845ac_ext=cpp
20846ac_cpp='$CXXCPP $CPPFLAGS'
20847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020851cat >conftest.$ac_ext <<_ACEOF
20852/* confdefs.h. */
20853_ACEOF
20854cat confdefs.h >>conftest.$ac_ext
20855cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020856/* end confdefs.h. */
20857int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020858 volatile unsigned long val = 1;
20859 __sync_synchronize();
20860 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020861 __sync_add_and_fetch(&val, 1);
20862 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020863 return 0;
20864 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020865
20866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020867rm -f conftest.$ac_objext conftest$ac_exeext
20868if { (ac_try="$ac_link"
20869case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872esac
20873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_link") 2>conftest.er1
20875 ac_status=$?
20876 grep -v '^ *+' conftest.er1 >conftest.err
20877 rm -f conftest.er1
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } &&
20881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885esac
20886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest$ac_exeext'
20892 { (case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_try") 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020901 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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020907 { echo "$as_me:$LINENO: result: yes" >&5
20908echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020910cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020911#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020913
Owen Andersond4b272b2009-05-18 23:58:51 +000020914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020918 { echo "$as_me:$LINENO: result: no" >&5
20919echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020921cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020922#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923_ACEOF
20924
20925 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20926echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928
Owen Andersond4b272b2009-05-18 23:58:51 +000020929rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020930 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020931
John Criswell7a73b802003-06-30 21:59:07 +000020932
Nick Lewycky4372e692009-09-29 06:18:23 +000020933if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020934 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20935echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20936if test "${llvm_cv_linux_mixed+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020938else
20939 ac_ext=c
20940ac_cpp='$CPP $CPPFLAGS'
20941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020945 cat >conftest.$ac_ext <<_ACEOF
20946/* confdefs.h. */
20947_ACEOF
20948cat confdefs.h >>conftest.$ac_ext
20949cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020950/* end confdefs.h. */
20951#ifndef __x86_64__
20952 error: Not x86-64 even if uname says so!
20953 #endif
20954
20955int
20956main ()
20957{
20958
20959 ;
20960 return 0;
20961}
20962_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020963rm -f conftest.$ac_objext
20964if { (ac_try="$ac_compile"
20965case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20968esac
20969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_compile") 2>conftest.er1
20971 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981esac
20982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020997 llvm_cv_linux_mixed=no
20998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999 echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000021003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004
Nick Lewycky4372e692009-09-29 06:18:23 +000021005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 ac_ext=c
21007ac_cpp='$CPP $CPPFLAGS'
21008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012
21013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21015echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000021016
21017 if test "$llvm_cv_linux_mixed" = "yes"; then
21018 llvm_cv_target_arch="x86"
21019 ARCH="x86"
21020 fi
21021fi
21022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021023
Reid Spencer9372f152007-07-30 20:13:24 +000021024for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025do
21026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21027{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21029if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21031else
21032 cat >conftest.$ac_ext <<_ACEOF
21033/* confdefs.h. */
21034_ACEOF
21035cat confdefs.h >>conftest.$ac_ext
21036cat >>conftest.$ac_ext <<_ACEOF
21037/* end confdefs.h. */
21038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21040#define $ac_func innocuous_$ac_func
21041
21042/* System header to define __stub macros and hopefully few prototypes,
21043 which can conflict with char $ac_func (); below.
21044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21045 <limits.h> exists even on freestanding compilers. */
21046
21047#ifdef __STDC__
21048# include <limits.h>
21049#else
21050# include <assert.h>
21051#endif
21052
21053#undef $ac_func
21054
21055/* Override any GCC internal prototype to avoid an error.
21056 Use char because int might match the return type of a GCC
21057 builtin and then its argument prototype would still apply. */
21058#ifdef __cplusplus
21059extern "C"
21060#endif
21061char $ac_func ();
21062/* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065#if defined __stub_$ac_func || defined __stub___$ac_func
21066choke me
21067#endif
21068
21069int
21070main ()
21071{
21072return $ac_func ();
21073 ;
21074 return 0;
21075}
21076_ACEOF
21077rm -f conftest.$ac_objext conftest$ac_exeext
21078if { (ac_try="$ac_link"
21079case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082esac
21083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_link") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21092 { (case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095esac
21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_try") 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest$ac_exeext'
21102 { (case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21105esac
21106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_try") 2>&5
21108 ac_status=$?
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 eval "$as_ac_var=yes"
21112else
21113 echo "$as_me: failed program was:" >&5
21114sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 eval "$as_ac_var=no"
21117fi
21118
21119rm -f core conftest.err conftest.$ac_objext \
21120 conftest$ac_exeext conftest.$ac_ext
21121fi
21122ac_res=`eval echo '${'$as_ac_var'}'`
21123 { echo "$as_me:$LINENO: result: $ac_res" >&5
21124echo "${ECHO_T}$ac_res" >&6; }
21125if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021126 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021128_ACEOF
21129
21130fi
21131done
21132
21133
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021134SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021135
21136
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021137SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21138
21139
Jeff Cohen28783c32007-01-12 18:22:38 +000021140if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021141 prefix="/usr/local"
21142fi
Reid Spencere9de0912004-08-20 09:03:57 +000021143eval LLVM_PREFIX="${prefix}";
21144eval LLVM_BINDIR="${prefix}/bin";
21145eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021146eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021147eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021148eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021149eval LLVM_INCLUDEDIR="${prefix}/include";
21150eval LLVM_INFODIR="${prefix}/info";
21151eval LLVM_MANDIR="${prefix}/man";
21152LLVM_CONFIGTIME=`date`
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021164if test "${ENABLE_TIMESTAMPS}" = "0"; then
21165 LLVM_CONFIGTIME="(timestamp not enabled)"
21166fi
21167
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021168
Reid Spencere9de0912004-08-20 09:03:57 +000021169cat >>confdefs.h <<_ACEOF
21170#define LLVM_PREFIX "$LLVM_PREFIX"
21171_ACEOF
21172
21173
21174cat >>confdefs.h <<_ACEOF
21175#define LLVM_BINDIR "$LLVM_BINDIR"
21176_ACEOF
21177
21178
21179cat >>confdefs.h <<_ACEOF
21180#define LLVM_LIBDIR "$LLVM_LIBDIR"
21181_ACEOF
21182
21183
21184cat >>confdefs.h <<_ACEOF
21185#define LLVM_DATADIR "$LLVM_DATADIR"
21186_ACEOF
21187
21188
21189cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021190#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021191_ACEOF
21192
21193
21194cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021195#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021196_ACEOF
21197
21198
21199cat >>confdefs.h <<_ACEOF
21200#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21201_ACEOF
21202
21203
21204cat >>confdefs.h <<_ACEOF
21205#define LLVM_INFODIR "$LLVM_INFODIR"
21206_ACEOF
21207
21208
21209cat >>confdefs.h <<_ACEOF
21210#define LLVM_MANDIR "$LLVM_MANDIR"
21211_ACEOF
21212
21213
21214cat >>confdefs.h <<_ACEOF
21215#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21216_ACEOF
21217
21218
Eric Christopher790e11c2007-12-01 00:34:39 +000021219cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021220#define LLVM_HOSTTRIPLE "$host"
21221_ACEOF
21222
21223
21224cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021225#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021226_ACEOF
21227
21228
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021229if test "$BINDINGS_TO_BUILD" = auto ; then
21230 BINDINGS_TO_BUILD=""
21231 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21232 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21233 fi
21234fi
21235BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21236
21237
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021238ALL_BINDINGS=ocaml
21239
21240
Gordon Henriksenf0915682007-10-02 16:42:22 +000021241binding_prereqs_failed=0
21242for a_binding in $BINDINGS_TO_BUILD ; do
21243 case "$a_binding" in
21244 ocaml)
21245 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21247echo "$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 +000021248 binding_prereqs_failed=1
21249 fi
21250 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21252echo "$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 +000021253 binding_prereqs_failed=1
21254 fi
21255 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021256 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21257echo "$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 +000021258 fi
21259 if test "x$with_ocaml_libdir" != xauto ; then
21260 OCAML_LIBDIR=$with_ocaml_libdir
21261
21262 else
21263 ocaml_stdlib="`"$OCAMLC" -where`"
21264 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21265 then
21266 # ocaml stdlib is beneath our prefix; use stdlib
21267 OCAML_LIBDIR=$ocaml_stdlib
21268
21269 else
21270 # ocaml stdlib is outside our prefix; use libdir/ocaml
21271 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21272
21273 fi
21274 fi
21275 ;;
21276 esac
21277done
21278if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021279 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21280echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21281 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021282fi
21283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021284{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21285echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21286if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021288else
21289 ac_ext=cpp
21290ac_cpp='$CXXCPP $CPPFLAGS'
21291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21294
21295 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021296 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 cat >conftest.$ac_ext <<_ACEOF
21298/* confdefs.h. */
21299_ACEOF
21300cat confdefs.h >>conftest.$ac_ext
21301cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021302/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021303template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021304int
21305main ()
21306{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021307X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021308 ;
21309 return 0;
21310}
21311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312rm -f conftest.$ac_objext
21313if { (ac_try="$ac_compile"
21314case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317esac
21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21320 ac_status=$?
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } &&
21326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330esac
21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest.$ac_objext'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340esac
21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021346 llvm_cv_cxx_visibility_inlines_hidden=yes
21347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348 echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
21351 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021353
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21355 CXXFLAGS="$oldcxxflags"
21356 ac_ext=c
21357ac_cpp='$CPP $CPPFLAGS'
21358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360ac_compiler_gnu=$ac_cv_c_compiler_gnu
21361
21362
21363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021364{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21365echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021366if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21367 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21368
21369else
21370 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21371
21372fi
21373
Gordon Henriksenf0915682007-10-02 16:42:22 +000021374
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021375if test "$llvm_cv_link_use_r" = "yes" ; then
21376 RPATH="-Wl,-R"
21377else
21378 RPATH="-Wl,-rpath"
21379fi
21380
21381
21382if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21383 RDYNAMIC="-Wl,-export-dynamic"
21384else
21385 RDYNAMIC=""
21386fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021387
21388
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021389
Eric Christophera1cba682010-08-08 02:44:25 +000021390ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021391
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021392
21393
21394
21395
21396
Douglas Gregor1555a232009-06-16 20:12:29 +000021397ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21398
21399ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21400
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021401ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21402
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021403ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21404
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021405ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021406
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021407
Reid Spencera773bd52006-08-04 18:18:08 +000021408ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021409
Eric Christopher360fa9a2011-10-26 00:42:12 +000021410
Reid Spencerea949cf2006-08-16 00:45:38 +000021411ac_config_files="$ac_config_files llvm.spec"
21412
21413
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021414ac_config_files="$ac_config_files docs/doxygen.cfg"
21415
Eric Christopher63c09512012-02-02 00:16:55 +000021416
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021417if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021418 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021419fi
Eric Christopher63c09512012-02-02 00:16:55 +000021420if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021421 configh="include/clang/Config/config.h"
21422 doxy="docs/doxygen.cfg"
21423 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021424
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021425 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021426
21427fi
21428
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021429ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021430
Eric Christopher360fa9a2011-10-26 00:42:12 +000021431
Jordan Rose92080522012-10-01 18:40:32 +000021432test "x$program_prefix" = "xNONE" && program_prefix=""
21433
21434
21435
Reid Spencera773bd52006-08-04 18:18:08 +000021436ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021437
Reid Spencera773bd52006-08-04 18:18:08 +000021438ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021439
21440
Reid Spencera773bd52006-08-04 18:18:08 +000021441ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021442
21443
Reid Spencera773bd52006-08-04 18:18:08 +000021444ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021445
21446
Reid Spencera773bd52006-08-04 18:18:08 +000021447ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021448
21449
Reid Spencer8b2e1412006-11-17 03:32:33 +000021450ac_config_commands="$ac_config_commands runtime/Makefile"
21451
21452
Reid Spencera773bd52006-08-04 18:18:08 +000021453ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021454
21455
Reid Spencera773bd52006-08-04 18:18:08 +000021456ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021457
21458
Bill Wendlingf24eb392009-01-04 23:12:30 +000021459ac_config_commands="$ac_config_commands unittests/Makefile"
21460
21461
Reid Spencera773bd52006-08-04 18:18:08 +000021462ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021463
21464
Reid Spencera773bd52006-08-04 18:18:08 +000021465ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021466
21467
Reid Spencera773bd52006-08-04 18:18:08 +000021468ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021469
21470
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021471ac_config_commands="$ac_config_commands bindings/Makefile"
21472
21473
21474ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21475
21476
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021477
John Criswell7a73b802003-06-30 21:59:07 +000021478cat >confcache <<\_ACEOF
21479# This file is a shell script that caches the results of configure
21480# tests run on this system so they can be shared between configure
21481# scripts and configure runs, see configure's option --config-cache.
21482# It is not useful on other systems. If it contains results you don't
21483# want to keep, you may remove or edit it.
21484#
21485# config.status only pays attention to the cache file if you give it
21486# the --recheck option to rerun configure.
21487#
John Criswell0c38eaf2003-09-10 15:17:25 +000021488# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021489# loading this file, other *unset* `ac_cv_foo' will be assigned the
21490# following values.
21491
21492_ACEOF
21493
21494# The following way of writing the cache mishandles newlines in values,
21495# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021496# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021497# Ultrix sh set writes to stderr and can't be redirected directly,
21498# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021499(
21500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21501 eval ac_val=\$$ac_var
21502 case $ac_val in #(
21503 *${as_nl}*)
21504 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21506echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021507 esac
21508 case $ac_var in #(
21509 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021511 esac ;;
21512 esac
21513 done
21514
John Criswell7a73b802003-06-30 21:59:07 +000021515 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21517 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518 # `set' does not quote correctly, so add quotes (double-quote
21519 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021520 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021521 "s/'/'\\\\''/g;
21522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021523 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021524 *)
21525 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021527 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021528 esac |
21529 sort
21530) |
John Criswell7a73b802003-06-30 21:59:07 +000021531 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021532 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021533 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021534 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21536 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21538 :end' >>confcache
21539if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21540 if test -w "$cache_file"; then
21541 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21543echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021544 cat confcache >$cache_file
21545 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21547echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021548 fi
21549fi
21550rm -f confcache
21551
21552test "x$prefix" = xNONE && prefix=$ac_default_prefix
21553# Let make expand exec_prefix.
21554test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21555
John Criswell7a73b802003-06-30 21:59:07 +000021556DEFS=-DHAVE_CONFIG_H
21557
John Criswell0c38eaf2003-09-10 15:17:25 +000021558ac_libobjs=
21559ac_ltlibobjs=
21560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21561 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021563 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21565 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021566 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21567 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021568done
21569LIBOBJS=$ac_libobjs
21570
21571LTLIBOBJS=$ac_ltlibobjs
21572
21573
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021574if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21576Usually this means the macro was only invoked conditionally." >&5
21577echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21578Usually this means the macro was only invoked conditionally." >&2;}
21579 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021580fi
21581if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21583Usually this means the macro was only invoked conditionally." >&5
21584echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21585Usually this means the macro was only invoked conditionally." >&2;}
21586 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021587fi
John Criswell7a73b802003-06-30 21:59:07 +000021588
21589: ${CONFIG_STATUS=./config.status}
21590ac_clean_files_save=$ac_clean_files
21591ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21593echo "$as_me: creating $CONFIG_STATUS" >&6;}
21594cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021595#! $SHELL
21596# Generated by $as_me.
21597# Run this file to recreate the current configuration.
21598# Compiler output produced by configure, useful for debugging
21599# configure, is in config.log if it exists.
21600
21601debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021602ac_cs_recheck=false
21603ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021604SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021605_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607cat >>$CONFIG_STATUS <<\_ACEOF
21608## --------------------- ##
21609## M4sh Initialization. ##
21610## --------------------- ##
21611
21612# Be Bourne compatible
21613if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021614 emulate sh
21615 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021617 # is contrary to our usage. Disable this feature.
21618 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021619 setopt NO_GLOB_SUBST
21620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623BIN_SH=xpg4; export BIN_SH # for Tru64
21624DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021625
John Criswell7a73b802003-06-30 21:59:07 +000021626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021627# PATH needs CR
21628# Avoid depending upon Character Ranges.
21629as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21630as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21631as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21632as_cr_digits='0123456789'
21633as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021634
21635# The user is always right.
21636if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637 echo "#! /bin/sh" >conf$$.sh
21638 echo "exit 0" >>conf$$.sh
21639 chmod +x conf$$.sh
21640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21641 PATH_SEPARATOR=';'
21642 else
21643 PATH_SEPARATOR=:
21644 fi
21645 rm -f conf$$.sh
21646fi
21647
21648# Support unset when possible.
21649if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21650 as_unset=unset
21651else
21652 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021653fi
John Criswell7a73b802003-06-30 21:59:07 +000021654
Reid Spencera773bd52006-08-04 18:18:08 +000021655
21656# IFS
21657# We need space, tab and new line, in precisely that order. Quoting is
21658# there to prevent editors from complaining about space-tab.
21659# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21660# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661as_nl='
21662'
Reid Spencera773bd52006-08-04 18:18:08 +000021663IFS=" "" $as_nl"
21664
21665# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021667 *[\\/]* ) as_myself=$0 ;;
21668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021669for as_dir in $PATH
21670do
21671 IFS=$as_save_IFS
21672 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21674done
Reid Spencera773bd52006-08-04 18:18:08 +000021675IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021676
Reid Spencera773bd52006-08-04 18:18:08 +000021677 ;;
21678esac
21679# We did not find ourselves, most probably we were run as `sh COMMAND'
21680# in which case we are not to be found in the path.
21681if test "x$as_myself" = x; then
21682 as_myself=$0
21683fi
21684if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21686 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021687fi
21688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689# Work around bugs in pre-3.0 UWIN ksh.
21690for as_var in ENV MAIL MAILPATH
21691do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021692done
21693PS1='$ '
21694PS2='> '
21695PS4='+ '
21696
21697# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698for as_var in \
21699 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21700 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21701 LC_TELEPHONE LC_TIME
21702do
21703 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21704 eval $as_var=C; export $as_var
21705 else
21706 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021707 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708done
Torok Edwin871384f2010-01-26 08:50:50 +000021709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021711if expr a : '\(a\)' >/dev/null 2>&1 &&
21712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21713 as_expr=expr
21714else
21715 as_expr=false
21716fi
21717
21718if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21719 as_basename=basename
21720else
21721 as_basename=false
21722fi
21723
21724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021725# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021726as_me=`$as_basename -- "$0" ||
21727$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21728 X"$0" : 'X\(//\)$' \| \
21729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021730echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021731 sed '/^.*\/\([^/][^/]*\)\/*$/{
21732 s//\1/
21733 q
21734 }
21735 /^X\/\(\/\/\)$/{
21736 s//\1/
21737 q
21738 }
21739 /^X\/\(\/\).*/{
21740 s//\1/
21741 q
21742 }
21743 s/.*/./; q'`
21744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745# CDPATH.
21746$as_unset CDPATH
21747
21748
21749
21750 as_lineno_1=$LINENO
21751 as_lineno_2=$LINENO
21752 test "x$as_lineno_1" != "x$as_lineno_2" &&
21753 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21754
21755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21756 # uniformly replaced by the line number. The first 'sed' inserts a
21757 # line-number line after each line using $LINENO; the second 'sed'
21758 # does the real work. The second script uses 'N' to pair each
21759 # line-number line with the line containing $LINENO, and appends
21760 # trailing '-' during substitution so that $LINENO is not a special
21761 # case at line end.
21762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21763 # scripts with optimization help from Paolo Bonzini. Blame Lee
21764 # E. McMahon (1931-1989) for sed's syntax. :-)
21765 sed -n '
21766 p
21767 /[$]LINENO/=
21768 ' <$as_myself |
21769 sed '
21770 s/[$]LINENO.*/&-/
21771 t lineno
21772 b
21773 :lineno
21774 N
21775 :loop
21776 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21777 t loop
21778 s/-\n.*//
21779 ' >$as_me.lineno &&
21780 chmod +x "$as_me.lineno" ||
21781 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21782 { (exit 1); exit 1; }; }
21783
21784 # Don't try to exec as it changes $[0], causing all sort of problems
21785 # (the dirname of $[0] is not the place where we might find the
21786 # original and so on. Autoconf is especially sensitive to this).
21787 . "./$as_me.lineno"
21788 # Exit status is that of the last command.
21789 exit
21790}
21791
21792
21793if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21794 as_dirname=dirname
21795else
21796 as_dirname=false
21797fi
Reid Spencera773bd52006-08-04 18:18:08 +000021798
21799ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021801-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021805 esac;;
21806*)
21807 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021808esac
21809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021810if expr a : '\(a\)' >/dev/null 2>&1 &&
21811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21812 as_expr=expr
21813else
21814 as_expr=false
21815fi
21816
John Criswell7a73b802003-06-30 21:59:07 +000021817rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021818if test -d conf$$.dir; then
21819 rm -f conf$$.dir/conf$$.file
21820else
21821 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824echo >conf$$.file
21825if ln -s conf$$.file conf$$ 2>/dev/null; then
21826 as_ln_s='ln -s'
21827 # ... but there are two gotchas:
21828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21830 # In both cases, we have to default to `cp -p'.
21831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021832 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021833elif ln conf$$.file conf$$ 2>/dev/null; then
21834 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021835else
21836 as_ln_s='cp -p'
21837fi
Reid Spencera773bd52006-08-04 18:18:08 +000021838rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21839rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021840
John Criswell0c38eaf2003-09-10 15:17:25 +000021841if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021843else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021844 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021845 as_mkdir_p=false
21846fi
21847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21849# systems may use methods other than mode bits to determine executability.
21850cat >conf$$.file <<_ASEOF
21851#! /bin/sh
21852exit 0
21853_ASEOF
21854chmod +x conf$$.file
21855if test -x conf$$.file >/dev/null 2>&1; then
21856 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021861
21862# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021863as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021864
21865# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021866as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021867
21868
John Criswell7a73b802003-06-30 21:59:07 +000021869exec 6>&1
21870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021871# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021872# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021873# values after options handling.
21874ac_log="
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021875This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021877
21878 CONFIG_FILES = $CONFIG_FILES
21879 CONFIG_HEADERS = $CONFIG_HEADERS
21880 CONFIG_LINKS = $CONFIG_LINKS
21881 CONFIG_COMMANDS = $CONFIG_COMMANDS
21882 $ $0 $@
21883
Reid Spencera773bd52006-08-04 18:18:08 +000021884on `(hostname || uname -n) 2>/dev/null | sed 1q`
21885"
21886
John Criswell7a73b802003-06-30 21:59:07 +000021887_ACEOF
21888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021890# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021891config_files="$ac_config_files"
21892config_headers="$ac_config_headers"
21893config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021894
Reid Spencera773bd52006-08-04 18:18:08 +000021895_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021898ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899\`$as_me' instantiates files from templates according to the
21900current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021903
21904 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905 -V, --version print version number, then exit
21906 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021907 -d, --debug don't remove temporary files
21908 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909 --file=FILE[:TEMPLATE]
21910 instantiate the configuration file FILE
21911 --header=FILE[:TEMPLATE]
21912 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021913
21914Configuration files:
21915$config_files
21916
21917Configuration headers:
21918$config_headers
21919
John Criswellc764fbc2003-09-06 15:17:13 +000021920Configuration commands:
21921$config_commands
21922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021924
Reid Spencera773bd52006-08-04 18:18:08 +000021925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021927ac_cs_version="\\
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021928LLVM config.status 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929configured by $0, generated by GNU Autoconf 2.60,
21930 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021933This config.status script is free software; the Free Software Foundation
21934gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021935
21936ac_pwd='$ac_pwd'
21937srcdir='$srcdir'
21938INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021939_ACEOF
21940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941cat >>$CONFIG_STATUS <<\_ACEOF
21942# If no file are specified by the user, then we need to provide default
21943# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021944ac_need_defaults=:
21945while test $# != 0
21946do
21947 case $1 in
21948 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021951 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021952 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021953 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021954 ac_option=$1
21955 ac_optarg=$2
21956 ac_shift=shift
21957 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021958 esac
21959
John Criswell0c38eaf2003-09-10 15:17:25 +000021960 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021961 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21963 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021965 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021966 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021967 debug=: ;;
21968 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021969 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021971 ac_need_defaults=false;;
21972 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021973 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021974 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021975 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021976 --he | --h)
21977 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978 { echo "$as_me: error: ambiguous option: $1
21979Try \`$0 --help' for more information." >&2
21980 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021981 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21985 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021986
21987 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988 -*) { echo "$as_me: error: unrecognized option: $1
21989Try \`$0 --help' for more information." >&2
21990 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021993 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021994
21995 esac
21996 shift
21997done
21998
John Criswell0c38eaf2003-09-10 15:17:25 +000021999ac_configure_extra_args=
22000
22001if $ac_cs_silent; then
22002 exec 6>/dev/null
22003 ac_configure_extra_args="$ac_configure_extra_args --silent"
22004fi
22005
22006_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022008if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22010 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000022011 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000022013fi
22014
John Criswell7a73b802003-06-30 21:59:07 +000022015_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022016cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022017exec 5>>config.log
22018{
22019 echo
22020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22021## Running $as_me. ##
22022_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000022024} >&5
John Criswell7a73b802003-06-30 21:59:07 +000022025
Reid Spencera773bd52006-08-04 18:18:08 +000022026_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022027cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022028#
Reid Spencera773bd52006-08-04 18:18:08 +000022029# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022030#
Reid Spencerc0682832005-02-24 19:05:19 +000022031llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022032
22033_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022036
22037# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022038for ac_config_target in $ac_config_targets
22039do
Reid Spencera773bd52006-08-04 18:18:08 +000022040 case $ac_config_target in
22041 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022042 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022043 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22044 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022045 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022046 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022047 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022048 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022049 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022050 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022051 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22052 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022053 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022054 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22055 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22056 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22057 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22058 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022059 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022060 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22061 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022062 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022063 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22064 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22065 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022066 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22067 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22070echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22071 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022072 esac
22073done
22074
Reid Spencera773bd52006-08-04 18:18:08 +000022075
John Criswell7a73b802003-06-30 21:59:07 +000022076# If the user did not use the arguments to specify the items to instantiate,
22077# then the envvar interface is used. Set only those that are not.
22078# We use the long form for the default assignment because of an extremely
22079# bizarre bug on SunOS 4.1.3.
22080if $ac_need_defaults; then
22081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022084fi
22085
John Criswell0c38eaf2003-09-10 15:17:25 +000022086# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022087# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022088# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022089# Hook for its removal unless debugging.
22090# Note that there is a small window in which the directory will not be cleaned:
22091# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022092$debug ||
22093{
Reid Spencera773bd52006-08-04 18:18:08 +000022094 tmp=
22095 trap 'exit_status=$?
22096 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22097' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022099}
John Criswell7a73b802003-06-30 21:59:07 +000022100# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022101
John Criswell7a73b802003-06-30 21:59:07 +000022102{
Reid Spencera773bd52006-08-04 18:18:08 +000022103 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022104 test -n "$tmp" && test -d "$tmp"
22105} ||
22106{
Reid Spencera773bd52006-08-04 18:18:08 +000022107 tmp=./conf$$-$RANDOM
22108 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022109} ||
22110{
22111 echo "$me: cannot create a temporary directory in ." >&2
22112 { (exit 1); exit 1; }
22113}
John Criswell7a73b802003-06-30 21:59:07 +000022114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022115#
22116# Set up the sed scripts for CONFIG_FILES section.
22117#
22118
22119# No need to generate the scripts if there are no CONFIG_FILES.
22120# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022121if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022122
22123_ACEOF
22124
Reid Spencera773bd52006-08-04 18:18:08 +000022125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022126
Reid Spencera773bd52006-08-04 18:18:08 +000022127ac_delim='%!_!# '
22128for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022129 cat >conf$$subs.sed <<_ACEOF
22130SHELL!$SHELL$ac_delim
22131PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22132PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22133PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22134PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22135PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22136PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22137exec_prefix!$exec_prefix$ac_delim
22138prefix!$prefix$ac_delim
22139program_transform_name!$program_transform_name$ac_delim
22140bindir!$bindir$ac_delim
22141sbindir!$sbindir$ac_delim
22142libexecdir!$libexecdir$ac_delim
22143datarootdir!$datarootdir$ac_delim
22144datadir!$datadir$ac_delim
22145sysconfdir!$sysconfdir$ac_delim
22146sharedstatedir!$sharedstatedir$ac_delim
22147localstatedir!$localstatedir$ac_delim
22148includedir!$includedir$ac_delim
22149oldincludedir!$oldincludedir$ac_delim
22150docdir!$docdir$ac_delim
22151infodir!$infodir$ac_delim
22152htmldir!$htmldir$ac_delim
22153dvidir!$dvidir$ac_delim
22154pdfdir!$pdfdir$ac_delim
22155psdir!$psdir$ac_delim
22156libdir!$libdir$ac_delim
22157localedir!$localedir$ac_delim
22158mandir!$mandir$ac_delim
22159DEFS!$DEFS$ac_delim
22160ECHO_C!$ECHO_C$ac_delim
22161ECHO_N!$ECHO_N$ac_delim
22162ECHO_T!$ECHO_T$ac_delim
22163LIBS!$LIBS$ac_delim
22164build_alias!$build_alias$ac_delim
22165host_alias!$host_alias$ac_delim
22166target_alias!$target_alias$ac_delim
22167LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022168CC!$CC$ac_delim
22169CFLAGS!$CFLAGS$ac_delim
22170LDFLAGS!$LDFLAGS$ac_delim
22171CPPFLAGS!$CPPFLAGS$ac_delim
22172ac_ct_CC!$ac_ct_CC$ac_delim
22173EXEEXT!$EXEEXT$ac_delim
22174OBJEXT!$OBJEXT$ac_delim
22175CXX!$CXX$ac_delim
22176CXXFLAGS!$CXXFLAGS$ac_delim
22177ac_ct_CXX!$ac_ct_CXX$ac_delim
22178CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022179subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022180ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22181LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182build!$build$ac_delim
22183build_cpu!$build_cpu$ac_delim
22184build_vendor!$build_vendor$ac_delim
22185build_os!$build_os$ac_delim
22186host!$host$ac_delim
22187host_cpu!$host_cpu$ac_delim
22188host_vendor!$host_vendor$ac_delim
22189host_os!$host_os$ac_delim
22190target!$target$ac_delim
22191target_cpu!$target_cpu$ac_delim
22192target_vendor!$target_vendor$ac_delim
22193target_os!$target_os$ac_delim
22194OS!$OS$ac_delim
22195HOST_OS!$HOST_OS$ac_delim
22196TARGET_OS!$TARGET_OS$ac_delim
22197LINKALL!$LINKALL$ac_delim
22198NOLINKALL!$NOLINKALL$ac_delim
22199LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22200LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22201ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022202HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204GREP!$GREP$ac_delim
22205EGREP!$EGREP$ac_delim
22206LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22207BUILD_CC!$BUILD_CC$ac_delim
22208BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22209BUILD_CXX!$BUILD_CXX$ac_delim
22210CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022211ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022212ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000022213ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22214ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22215ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022216ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22217ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22218DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022219ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022220ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22221EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22222DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22223DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022224KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022225JIT!$JIT$ac_delim
22226TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022227_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022229 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022230 break
22231 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22233echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22234 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022235 else
22236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022237 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022238done
22239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022240ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22241if test -n "$ac_eof"; then
22242 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22243 ac_eof=`expr $ac_eof + 1`
22244fi
22245
22246cat >>$CONFIG_STATUS <<_ACEOF
22247cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22248/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250sed '
22251s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22252s/^/s,@/; s/!/@,|#_!!_#|/
22253:n
22254t n
22255s/'"$ac_delim"'$/,g/; t
22256s/$/\\/; p
22257N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22258' >>$CONFIG_STATUS <conf$$subs.sed
22259rm -f conf$$subs.sed
22260cat >>$CONFIG_STATUS <<_ACEOF
22261CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022262_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022263
22264
22265ac_delim='%!_!# '
22266for ac_last_try in false false false false false :; do
22267 cat >conf$$subs.sed <<_ACEOF
Roman Divackyd14baf42012-12-13 16:07:19 +000022268ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22269ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22270LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022271ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022272ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022273ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022274ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022275ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherf0b3b742012-11-19 19:31:02 +000022276ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022277TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22278LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22279LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022280LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022281LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022282OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022283EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022284EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022285CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022286BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022287INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022288NM!$NM$ac_delim
22289ifGNUmake!$ifGNUmake$ac_delim
22290LN_S!$LN_S$ac_delim
22291CMP!$CMP$ac_delim
22292CP!$CP$ac_delim
22293DATE!$DATE$ac_delim
22294FIND!$FIND$ac_delim
22295MKDIR!$MKDIR$ac_delim
22296MV!$MV$ac_delim
22297RANLIB!$RANLIB$ac_delim
22298AR!$AR$ac_delim
22299RM!$RM$ac_delim
22300SED!$SED$ac_delim
22301TAR!$TAR$ac_delim
22302BINPWD!$BINPWD$ac_delim
22303GRAPHVIZ!$GRAPHVIZ$ac_delim
22304DOT!$DOT$ac_delim
22305FDP!$FDP$ac_delim
22306NEATO!$NEATO$ac_delim
22307TWOPI!$TWOPI$ac_delim
22308CIRCO!$CIRCO$ac_delim
22309GV!$GV$ac_delim
22310DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022311XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22313INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22314INSTALL_DATA!$INSTALL_DATA$ac_delim
22315BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022316CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022318GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022319GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022320PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321ZIP!$ZIP$ac_delim
22322OCAMLC!$OCAMLC$ac_delim
22323OCAMLOPT!$OCAMLOPT$ac_delim
22324OCAMLDEP!$OCAMLDEP$ac_delim
22325OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022326GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022327HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022328INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22329INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22330CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22331CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22332LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022333NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22334NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022335COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greened2f82162013-01-09 22:11:13 +000022336NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22337NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338USE_UDIS86!$USE_UDIS86$ac_delim
22339USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022340USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022341XML2CONFIG!$XML2CONFIG$ac_delim
22342LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22343LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022344HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22345HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22346MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022347SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022348SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022349LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22350LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22351LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22352LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22353LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22354LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22355LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22356LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22357LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22358LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22359BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22360ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022361OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22362ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22363RPATH!$RPATH$ac_delim
22364RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022365_ACEOF
22366
Roman Divackyd14baf42012-12-13 16:07:19 +000022367 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022368 break
22369 elif $ac_last_try; then
22370 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22371echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22372 { (exit 1); exit 1; }; }
22373 else
22374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22375 fi
22376done
22377
22378ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22379if test -n "$ac_eof"; then
22380 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22381 ac_eof=`expr $ac_eof + 1`
22382fi
22383
22384cat >>$CONFIG_STATUS <<_ACEOF
22385cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyd14baf42012-12-13 16:07:19 +000022386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22387_ACEOF
22388sed '
22389s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22390s/^/s,@/; s/!/@,|#_!!_#|/
22391:n
22392t n
22393s/'"$ac_delim"'$/,g/; t
22394s/$/\\/; p
22395N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22396' >>$CONFIG_STATUS <conf$$subs.sed
22397rm -f conf$$subs.sed
22398cat >>$CONFIG_STATUS <<_ACEOF
22399CEOF$ac_eof
22400_ACEOF
22401
22402
22403ac_delim='%!_!# '
22404for ac_last_try in false false false false false :; do
22405 cat >conf$$subs.sed <<_ACEOF
David Greened2f82162013-01-09 22:11:13 +000022406program_prefix!$program_prefix$ac_delim
22407LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000022408LTLIBOBJS!$LTLIBOBJS$ac_delim
22409_ACEOF
22410
David Greened2f82162013-01-09 22:11:13 +000022411 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
Roman Divackyd14baf42012-12-13 16:07:19 +000022412 break
22413 elif $ac_last_try; then
22414 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22415echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22416 { (exit 1); exit 1; }; }
22417 else
22418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22419 fi
22420done
22421
22422ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22423if test -n "$ac_eof"; then
22424 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22425 ac_eof=`expr $ac_eof + 1`
22426fi
22427
22428cat >>$CONFIG_STATUS <<_ACEOF
22429cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022430/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022431_ACEOF
22432sed '
22433s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22434s/^/s,@/; s/!/@,|#_!!_#|/
22435:n
22436t n
22437s/'"$ac_delim"'$/,g/; t
22438s/$/\\/; p
22439N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22440' >>$CONFIG_STATUS <conf$$subs.sed
22441rm -f conf$$subs.sed
22442cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022443:end
22444s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022445CEOF$ac_eof
22446_ACEOF
22447
22448
Reid Spencera773bd52006-08-04 18:18:08 +000022449# VPATH may cause trouble with some makes, so we remove $(srcdir),
22450# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22451# trailing colons and then remove the whole line if VPATH becomes empty
22452# (actually we leave an empty line to preserve line numbers).
22453if test "x$srcdir" = x.; then
22454 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22455s/:*\$(srcdir):*/:/
22456s/:*\${srcdir}:*/:/
22457s/:*@srcdir@:*/:/
22458s/^\([^=]*=[ ]*\):*/\1/
22459s/:*$//
22460s/^[^=]*=[ ]*$//
22461}'
22462fi
22463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022464cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022465fi # test -n "$CONFIG_FILES"
22466
Reid Spencera773bd52006-08-04 18:18:08 +000022467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022469do
22470 case $ac_tag in
22471 :[FHLC]) ac_mode=$ac_tag; continue;;
22472 esac
22473 case $ac_mode$ac_tag in
22474 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022475 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22476echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22477 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022478 :[FH]-) ac_tag=-:-;;
22479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22480 esac
22481 ac_save_IFS=$IFS
22482 IFS=:
22483 set x $ac_tag
22484 IFS=$ac_save_IFS
22485 shift
22486 ac_file=$1
22487 shift
22488
22489 case $ac_mode in
22490 :L) ac_source=$1;;
22491 :[FH])
22492 ac_file_inputs=
22493 for ac_f
22494 do
22495 case $ac_f in
22496 -) ac_f="$tmp/stdin";;
22497 *) # Look for the file first in the build tree, then in the source tree
22498 # (if the path is not absolute). The absolute path cannot be DOS-style,
22499 # because $ac_f cannot contain `:'.
22500 test -f "$ac_f" ||
22501 case $ac_f in
22502 [\\/$]*) false;;
22503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22504 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022505 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22506echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22507 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022508 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022509 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022510 done
22511
22512 # Let's still pretend it is `configure' which instantiates (i.e., don't
22513 # use $as_me), people would be surprised to read:
22514 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022515 configure_input="Generated from "`IFS=:
22516 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022517 if test x"$ac_file" != x-; then
22518 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022519 { echo "$as_me:$LINENO: creating $ac_file" >&5
22520echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022521 fi
22522
22523 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022525 esac
22526 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022527 esac
22528
Reid Spencera773bd52006-08-04 18:18:08 +000022529 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022530$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022531 X"$ac_file" : 'X\(//\)[^/]' \| \
22532 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022533 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022534echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22536 s//\1/
22537 q
22538 }
22539 /^X\(\/\/\)[^/].*/{
22540 s//\1/
22541 q
22542 }
22543 /^X\(\/\/\)$/{
22544 s//\1/
22545 q
22546 }
22547 /^X\(\/\).*/{
22548 s//\1/
22549 q
22550 }
22551 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022552 { as_dir="$ac_dir"
22553 case $as_dir in #(
22554 -*) as_dir=./$as_dir;;
22555 esac
22556 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22557 as_dirs=
22558 while :; do
22559 case $as_dir in #(
22560 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22561 *) as_qdir=$as_dir;;
22562 esac
22563 as_dirs="'$as_qdir' $as_dirs"
22564 as_dir=`$as_dirname -- "$as_dir" ||
22565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566 X"$as_dir" : 'X\(//\)[^/]' \| \
22567 X"$as_dir" : 'X\(//\)$' \| \
22568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22569echo X"$as_dir" |
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22571 s//\1/
22572 q
22573 }
22574 /^X\(\/\/\)[^/].*/{
22575 s//\1/
22576 q
22577 }
22578 /^X\(\/\/\)$/{
22579 s//\1/
22580 q
22581 }
22582 /^X\(\/\).*/{
22583 s//\1/
22584 q
22585 }
22586 s/.*/./; q'`
22587 test -d "$as_dir" && break
22588 done
22589 test -z "$as_dirs" || eval "mkdir $as_dirs"
22590 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22591echo "$as_me: error: cannot create directory $as_dir" >&2;}
22592 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022593 ac_builddir=.
22594
Reid Spencera773bd52006-08-04 18:18:08 +000022595case "$ac_dir" in
22596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022599 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022600 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022601 case $ac_top_builddir_sub in
22602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22604 esac ;;
22605esac
22606ac_abs_top_builddir=$ac_pwd
22607ac_abs_builddir=$ac_pwd$ac_dir_suffix
22608# for backward compatibility:
22609ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022610
22611case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022612 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022613 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022614 ac_top_srcdir=$ac_top_builddir_sub
22615 ac_abs_top_srcdir=$ac_pwd ;;
22616 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022617 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022618 ac_top_srcdir=$srcdir
22619 ac_abs_top_srcdir=$srcdir ;;
22620 *) # Relative name.
22621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22622 ac_top_srcdir=$ac_top_build_prefix$srcdir
22623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022624esac
Reid Spencera773bd52006-08-04 18:18:08 +000022625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022626
John Criswell7a73b802003-06-30 21:59:07 +000022627
Reid Spencera773bd52006-08-04 18:18:08 +000022628 case $ac_mode in
22629 :F)
22630 #
22631 # CONFIG_FILE
22632 #
John Criswell7a73b802003-06-30 21:59:07 +000022633
22634 case $INSTALL in
22635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022637 esac
John Criswell7a73b802003-06-30 21:59:07 +000022638_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022640cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022641# If the template does not know about datarootdir, expand it.
22642# FIXME: This hack should be removed a few years after 2.60.
22643ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022644
22645case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022646 p
22647 q
22648}
22649/@datadir@/p
22650/@docdir@/p
22651/@infodir@/p
22652/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022653/@mandir@/p
22654' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022655*datarootdir*) ac_datarootdir_seen=yes;;
22656*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022657 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22658echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022660cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022661 ac_datarootdir_hack='
22662 s&@datadir@&$datadir&g
22663 s&@docdir@&$docdir&g
22664 s&@infodir@&$infodir&g
22665 s&@localedir@&$localedir&g
22666 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022667 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022668esac
22669_ACEOF
22670
22671# Neutralize VPATH when `$srcdir' = `.'.
22672# Shell code in configure.ac might set extrasub.
22673# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022674cat >>$CONFIG_STATUS <<_ACEOF
22675 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022676$extrasub
22677_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022678cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022679:t
22680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022681s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022682s&@top_builddir@&$ac_top_builddir_sub&;t t
22683s&@srcdir@&$ac_srcdir&;t t
22684s&@abs_srcdir@&$ac_abs_srcdir&;t t
22685s&@top_srcdir@&$ac_top_srcdir&;t t
22686s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22687s&@builddir@&$ac_builddir&;t t
22688s&@abs_builddir@&$ac_abs_builddir&;t t
22689s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22690s&@INSTALL@&$ac_INSTALL&;t t
22691$ac_datarootdir_hack
Roman Divackyd14baf42012-12-13 16:07:19 +000022692" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022693
Reid Spencera773bd52006-08-04 18:18:08 +000022694test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22695 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022697 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022698which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022699echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022700which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022701
Reid Spencera773bd52006-08-04 18:18:08 +000022702 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022703 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022704 -) cat "$tmp/out"; rm -f "$tmp/out";;
22705 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22706 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022707 ;;
22708 :H)
22709 #
22710 # CONFIG_HEADER
22711 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022712_ACEOF
22713
22714# Transform confdefs.h into a sed script `conftest.defines', that
22715# substitutes the proper values into config.h.in to produce config.h.
22716rm -f conftest.defines conftest.tail
22717# First, append a space to every undef/define line, to ease matching.
22718echo 's/$/ /' >conftest.defines
22719# Then, protect against being on the right side of a sed subst, or in
22720# an unquoted here document, in config.status. If some macros were
22721# called several times there might be several #defines for the same
22722# symbol, which is useless. But do not sort them, since the last
22723# AC_DEFINE must be honored.
22724ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22725# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22726# NAME is the cpp macro being defined, VALUE is the value it is being given.
22727# PARAMS is the parameter list in the macro definition--in most cases, it's
22728# just an empty string.
22729ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22730ac_dB='\\)[ (].*,\\1define\\2'
22731ac_dC=' '
22732ac_dD=' ,'
22733
22734uniq confdefs.h |
22735 sed -n '
22736 t rset
22737 :rset
22738 s/^[ ]*#[ ]*define[ ][ ]*//
22739 t ok
22740 d
22741 :ok
22742 s/[\\&,]/\\&/g
22743 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22744 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22745 ' >>conftest.defines
22746
22747# Remove the space that was appended to ease matching.
22748# Then replace #undef with comments. This is necessary, for
22749# example, in the case of _POSIX_SOURCE, which is predefined and required
22750# on some systems where configure will not decide to define it.
22751# (The regexp can be short, since the line contains either #define or #undef.)
22752echo 's/ $//
22753s,^[ #]*u.*,/* & */,' >>conftest.defines
22754
22755# Break up conftest.defines:
22756ac_max_sed_lines=50
22757
22758# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22759# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22760# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22761# et cetera.
22762ac_in='$ac_file_inputs'
22763ac_out='"$tmp/out1"'
22764ac_nxt='"$tmp/out2"'
22765
22766while :
22767do
22768 # Write a here document:
22769 cat >>$CONFIG_STATUS <<_ACEOF
22770 # First, check the format of the line:
22771 cat >"\$tmp/defines.sed" <<\\CEOF
22772/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22773/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22774b
22775:def
22776_ACEOF
22777 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22778 echo 'CEOF
22779 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22780 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22781 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22782 grep . conftest.tail >/dev/null || break
22783 rm -f conftest.defines
22784 mv conftest.tail conftest.defines
22785done
22786rm -f conftest.defines conftest.tail
22787
22788echo "ac_result=$ac_in" >>$CONFIG_STATUS
22789cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022790 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022791 echo "/* $configure_input */" >"$tmp/config.h"
22792 cat "$ac_result" >>"$tmp/config.h"
22793 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22794 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22795echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022796 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022797 rm -f $ac_file
22798 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022799 fi
22800 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022801 echo "/* $configure_input */"
22802 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022803 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022804 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022805 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022807 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22808echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022809 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022810 esac
John Criswell7a73b802003-06-30 21:59:07 +000022811
Reid Spencera773bd52006-08-04 18:18:08 +000022812
22813 case $ac_file$ac_mode in
22814 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022815 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022816 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022817 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022818 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022819 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022820 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022821 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022822 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022823 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022824 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022825 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022826 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022827 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022828 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022829 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022830 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022831 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022832 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022833 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022834 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022835 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022836 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022837 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022838 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022839 ${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 +000022840
22841 esac
22842done # for ac_tag
22843
John Criswell7a73b802003-06-30 21:59:07 +000022844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022845{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022846_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022847chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022848ac_clean_files=$ac_clean_files_save
22849
22850
22851# configure is writing to config.log, and then calls config.status.
22852# config.status does its own redirection, appending to config.log.
22853# Unfortunately, on DOS this fails, as config.log is still kept open
22854# by configure, so config.status won't be able to write to it; its
22855# output is simply discarded. So we exec the FD to /dev/null,
22856# effectively closing config.log, so it can be properly (re)opened and
22857# appended to by config.status. When coming back to configure, we
22858# need to make the FD available again.
22859if test "$no_create" != yes; then
22860 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022861 ac_config_status_args=
22862 test "$silent" = yes &&
22863 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022864 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022866 exec 5>>config.log
22867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22868 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022869 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022870fi
22871
John Criswell12399a12003-09-30 15:55:44 +000022872#
22873# CONFIG_SUBDIRS section.
22874#
22875if test "$no_recursion" != yes; then
22876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022877 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022878 ac_sub_configure_args=
22879 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022880 eval "set x $ac_configure_args"
22881 shift
22882 for ac_arg
22883 do
John Criswell12399a12003-09-30 15:55:44 +000022884 if test -n "$ac_prev"; then
22885 ac_prev=
22886 continue
22887 fi
22888 case $ac_arg in
22889 -cache-file | --cache-file | --cache-fil | --cache-fi \
22890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22891 ac_prev=cache_file ;;
22892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22894 | --c=*)
22895 ;;
22896 --config-cache | -C)
22897 ;;
22898 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22899 ac_prev=srcdir ;;
22900 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22901 ;;
22902 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22903 ac_prev=prefix ;;
22904 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22905 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022906 *)
22907 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022908 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022909 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022910 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022911 esac
22912 done
22913
22914 # Always prepend --prefix to ensure using the same prefix
22915 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022916 ac_arg="--prefix=$prefix"
22917 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022918 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022919 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022920 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022921
22922 ac_popdir=`pwd`
22923 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22924
22925 # Do not complain, so a configure script can configure whichever
22926 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022927 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022928
Reid Spencera773bd52006-08-04 18:18:08 +000022929 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022930 echo "$as_me:$LINENO: $ac_msg" >&5
22931 echo "$ac_msg" >&6
22932 { as_dir="$ac_dir"
22933 case $as_dir in #(
22934 -*) as_dir=./$as_dir;;
22935 esac
22936 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22937 as_dirs=
22938 while :; do
22939 case $as_dir in #(
22940 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22941 *) as_qdir=$as_dir;;
22942 esac
22943 as_dirs="'$as_qdir' $as_dirs"
22944 as_dir=`$as_dirname -- "$as_dir" ||
22945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22946 X"$as_dir" : 'X\(//\)[^/]' \| \
22947 X"$as_dir" : 'X\(//\)$' \| \
22948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22949echo X"$as_dir" |
22950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22951 s//\1/
22952 q
22953 }
22954 /^X\(\/\/\)[^/].*/{
22955 s//\1/
22956 q
22957 }
22958 /^X\(\/\/\)$/{
22959 s//\1/
22960 q
22961 }
22962 /^X\(\/\).*/{
22963 s//\1/
22964 q
22965 }
22966 s/.*/./; q'`
22967 test -d "$as_dir" && break
22968 done
22969 test -z "$as_dirs" || eval "mkdir $as_dirs"
22970 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22971echo "$as_me: error: cannot create directory $as_dir" >&2;}
22972 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022973 ac_builddir=.
22974
Reid Spencera773bd52006-08-04 18:18:08 +000022975case "$ac_dir" in
22976.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22977*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022978 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022979 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022980 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022981 case $ac_top_builddir_sub in
22982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22984 esac ;;
22985esac
22986ac_abs_top_builddir=$ac_pwd
22987ac_abs_builddir=$ac_pwd$ac_dir_suffix
22988# for backward compatibility:
22989ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022990
22991case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022992 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022993 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022994 ac_top_srcdir=$ac_top_builddir_sub
22995 ac_abs_top_srcdir=$ac_pwd ;;
22996 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022997 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022998 ac_top_srcdir=$srcdir
22999 ac_abs_top_srcdir=$srcdir ;;
23000 *) # Relative name.
23001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23002 ac_top_srcdir=$ac_top_build_prefix$srcdir
23003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000023004esac
Reid Spencera773bd52006-08-04 18:18:08 +000023005ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000023006
23007
Reid Spencera773bd52006-08-04 18:18:08 +000023008 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000023009
23010 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000023011 if test -f "$ac_srcdir/configure.gnu"; then
23012 ac_sub_configure=$ac_srcdir/configure.gnu
23013 elif test -f "$ac_srcdir/configure"; then
23014 ac_sub_configure=$ac_srcdir/configure
23015 elif test -f "$ac_srcdir/configure.in"; then
23016 # This should be Cygnus configure.
23017 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000023018 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023019 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23020echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000023021 ac_sub_configure=
23022 fi
23023
23024 # The recursion is here.
23025 if test -n "$ac_sub_configure"; then
23026 # Make the cache file name correct relative to the subdirectory.
23027 case $cache_file in
23028 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023029 *) # Relative name.
23030 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000023031 esac
23032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023033 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23034echo "$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 +000023035 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000023036 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23037 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023038 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23039echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23040 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000023041 fi
23042
Reid Spencera773bd52006-08-04 18:18:08 +000023043 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000023044 done
23045fi
23046