blob: 01357a928d0cc1fa44d7e2956439514052103ed2 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
691ENABLE_EXPENSIVE_CHECKS
692EXPENSIVE_CHECKS
693DEBUG_RUNTIME
694DEBUG_SYMBOLS
695JIT
696TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000697ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000699LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000700ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000701ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000702ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000703ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000704ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000705TARGETS_TO_BUILD
706LLVM_ENUM_TARGETS
707LLVM_ENUM_ASM_PRINTERS
708LLVM_ENUM_ASM_PARSERS
709LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000710OPTIMIZE_OPTION
711EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000712EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000713CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000715INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716NM
717ifGNUmake
718LN_S
719CMP
720CP
721DATE
722FIND
723MKDIR
724MV
725RANLIB
726AR
727RM
728SED
729TAR
730BINPWD
731GRAPHVIZ
732DOT
733FDP
734NEATO
735TWOPI
736CIRCO
737GV
738DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000739XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740INSTALL_PROGRAM
741INSTALL_SCRIPT
742INSTALL_DATA
743BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000744CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000746GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000747GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000748PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000754GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000755HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764USE_UDIS86
765USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000766USE_INTEL_JITEVENTS
767INTEL_JITEVENTS_INCDIR
768INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000769XML2CONFIG
770LIBXML2_LIBS
771LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772HAVE_PTHREAD
773HUGE_VAL_SANITY
774MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000803CXX
804CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000805CCC
806CPP'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000819projects/llvm-kernel
820tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001322\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001370 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001388 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001395 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001396 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001397 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001398 --enable-optimized Compile with optimizations enabled (default is NO)
1399 --enable-profiling Compile with profiling enabled (default is NO)
1400 --enable-assertions Compile with assertion checks enabled (default is
1401 YES)
David Greenea696d242007-06-28 19:36:08 +00001402 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001403 Compile with expensive debug checks enabled (default
1404 is NO)
1405 --enable-debug-runtime Build runtime libs with debug symbols (default is
1406 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001407 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1408 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001409 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001410 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001411 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001412 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001413 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001414 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001415 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001416 --enable-shared Build a shared library and link tools against it
1417 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001418 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001419 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001420 --enable-timestamps Enable embedding timestamp information in build
1421 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001422 --enable-targets Build specific host targets: all or
1423 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001424 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001425 xcore, msp430, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001428 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001429 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001430
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001434 --with-optimize-option Select the compiler options to use for optimized
1435 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001436 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001437 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001438 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001440 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001441 --with-clang-resource-dir
1442 Relative directory from the Clang binary for
1443 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001446 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001447 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001450 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001451 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001452 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001453 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001456 --with-intel-jitevents=<vtune-amplifier-dir>
1457 Specify location of run-time support library for
1458 Intel JIT API
1459 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001470 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
Eric Christopherf33ab862011-12-21 00:52:44 +00001475Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001536LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001544Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001552It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$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 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
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 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001906cat >>confdefs.h <<\_ACEOF
1907#define LLVM_VERSION_MAJOR 3
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001912#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001913_ACEOF
1914
1915
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001916LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001917
1918
1919
1920
1921
1922
1923
John Criswell7a73b802003-06-30 21:59:07 +00001924ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001925for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001926 if test -f "$ac_dir/install-sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install-sh -c"
1929 break
1930 elif test -f "$ac_dir/install.sh"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/install.sh -c"
1933 break
1934 elif test -f "$ac_dir/shtool"; then
1935 ac_aux_dir=$ac_dir
1936 ac_install_sh="$ac_aux_dir/shtool install -c"
1937 break
1938 fi
John Criswell7a73b802003-06-30 21:59:07 +00001939done
1940if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001941 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1942echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1943 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001944fi
Reid Spencera773bd52006-08-04 18:18:08 +00001945
1946# These three variables are undocumented and unsupported,
1947# and are intended to be withdrawn in a future Autoconf release.
1948# They can cause serious problems if a builder's source tree is in a directory
1949# whose full name contains unusual characters.
1950ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1951ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1952ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1953
John Criswell7a73b802003-06-30 21:59:07 +00001954
John Criswell392aaa32003-07-22 19:18:09 +00001955
Reid Spencer2706f8c2004-09-19 23:53:36 +00001956if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001957 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001958 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1959echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1960 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001961 fi
John Criswell93e1c722003-09-15 17:04:06 +00001962fi
1963
Nick Lewycky83fc4472009-09-29 05:48:51 +00001964ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001965ac_cpp='$CPP $CPPFLAGS'
1966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001969if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001970 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001971 do
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001978else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001981else
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 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 +00001989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001991 break 2
1992 fi
1993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994done
Reid Spencera773bd52006-08-04 18:18:08 +00001995IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001996
1997fi
1998fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999CC=$ac_cv_prog_CC
2000if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002001 { echo "$as_me:$LINENO: result: $CC" >&5
2002echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004 { echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002006fi
2007
Reid Spencera773bd52006-08-04 18:18:08 +00002008
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002010 done
2011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012if test -z "$CC"; then
2013 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002014 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002015do
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002022else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 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 +00002033 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002035 break 2
2036 fi
2037done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038done
Reid Spencera773bd52006-08-04 18:18:08 +00002039IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002040
2041fi
2042fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048 { echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002050fi
2051
Reid Spencera773bd52006-08-04 18:18:08 +00002052
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002054done
John Criswell7a73b802003-06-30 21:59:07 +00002055
Reid Spencera773bd52006-08-04 18:18:08 +00002056 if test "x$ac_ct_CC" = x; then
2057 CC=""
2058 else
2059 case $cross_compiling:$ac_tool_warned in
2060yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2062whose name does not start with the host triplet. If you think this
2063configuration is useful to you, please write to autoconf@gnu.org." >&5
2064echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2065whose name does not start with the host triplet. If you think this
2066configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002067ac_tool_warned=yes ;;
2068esac
2069 CC=$ac_ct_CC
2070 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071fi
2072
John Criswell7a73b802003-06-30 21:59:07 +00002073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079
John Criswell7a73b802003-06-30 21:59:07 +00002080# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081echo "$as_me:$LINENO: checking for C compiler version" >&5
2082ac_compiler=`set X $ac_compile; echo $2`
2083{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002090 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (ac_try="$ac_compiler -v >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -v >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -V >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -V >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114cat >conftest.$ac_ext <<_ACEOF
2115/* confdefs.h. */
2116_ACEOF
2117cat confdefs.h >>conftest.$ac_ext
2118cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002120
John Criswell7a73b802003-06-30 21:59:07 +00002121int
2122main ()
2123{
2124
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002130ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002131# Try to create an executable without -o first, disregard a.out.
2132# It will help us diagnose broken compilers, and finding out an intuition
2133# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002134{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2136ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137#
2138# List of possible output files, starting from the most likely.
2139# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2140# only as a last resort. b.out is created by i960 compilers.
2141ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2142#
2143# The IRIX 6 linker writes into existing files which may not be
2144# executable, retaining their permissions. Remove them first so a
2145# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002146ac_rmfiles=
2147for ac_file in $ac_files
2148do
2149 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152 esac
2153done
2154rm -f $ac_rmfiles
2155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002157case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002162 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002163 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2167# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2168# in a Makefile. We should not override ac_cv_exeext if it was cached,
2169# so that the user can short-circuit this test for compilers unknown to
2170# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002172do
2173 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002174 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 # We found the default executable, but exeext='' is most
2179 # certainly right.
2180 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002181 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002182 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002183 then :; else
2184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185 fi
2186 # We set ac_cv_exeext here because the later test for it is not
2187 # safe: cross compilers may not add the suffix if given an `-o'
2188 # argument, so we may need to know it at that point already.
2189 # Even if this section looks crufty: it has the advantage of
2190 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002192 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002193 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002194 esac
2195done
Reid Spencera773bd52006-08-04 18:18:08 +00002196test "$ac_cv_exeext" = no && ac_cv_exeext=
2197
John Criswell7a73b802003-06-30 21:59:07 +00002198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002200sed 's/^/| /' conftest.$ac_ext >&5
2201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: C compiler cannot create executables
2205See \`config.log' for more details." >&2;}
2206 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002207fi
John Criswell7a73b802003-06-30 21:59:07 +00002208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002209ac_exeext=$ac_cv_exeext
2210{ echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6; }
2212
2213# Check that the compiler produces executables we can run. If not, either
2214# the compiler is broken, or we cross compile.
2215{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224esac
2225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226 (eval "$ac_try") 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 cross_compiling=no
2231 else
2232 if test "$cross_compiling" = maybe; then
2233 cross_compiling=yes
2234 else
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236If you meant to cross compile, use \`--host'.
2237See \`config.log' for more details." >&5
2238echo "$as_me: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2242 fi
2243 fi
2244fi
2245{ echo "$as_me:$LINENO: result: yes" >&5
2246echo "${ECHO_T}yes" >&6; }
2247
2248rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002249ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250# Check that the compiler produces executables we can run. If not, either
2251# the compiler is broken, or we cross compile.
2252{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2254{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255echo "${ECHO_T}$cross_compiling" >&6; }
2256
2257{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2259if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002260case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002265 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002266 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271# work properly (i.e., refer to `conftest.exe'), while it won't with
2272# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002273for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002275 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002278 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002279 * ) break;;
2280 esac
2281done
2282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002289
2290rm -f conftest$ac_cv_exeext
2291{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2299if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302 cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002308
John Criswell7a73b802003-06-30 21:59:07 +00002309int
2310main ()
2311{
2312
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002319case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2322esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002324 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002325 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002328 for ac_file in conftest.o conftest.obj conftest.*; do
2329 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002330 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333 break;;
2334 esac
2335done
2336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002338sed 's/^/| /' conftest.$ac_ext >&5
2339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&5
2342echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346
John Criswell7a73b802003-06-30 21:59:07 +00002347rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002351OBJEXT=$ac_cv_objext
2352ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002353{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2355if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358 cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002364
John Criswell7a73b802003-06-30 21:59:07 +00002365int
2366main ()
2367{
2368#ifndef __GNUC__
2369 choke me
2370#endif
2371
2372 ;
2373 return 0;
2374}
2375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376rm -f conftest.$ac_objext
2377if { (ac_try="$ac_compile"
2378case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compile") 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002410 ac_compiler_gnu=yes
2411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417
Reid Spencera773bd52006-08-04 18:18:08 +00002418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002420
2421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002431else
Reid Spencera773bd52006-08-04 18:18:08 +00002432 ac_save_c_werror_flag=$ac_c_werror_flag
2433 ac_c_werror_flag=yes
2434 ac_cv_prog_cc_g=no
2435 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002442
John Criswell7a73b802003-06-30 21:59:07 +00002443int
2444main ()
2445{
2446
2447 ;
2448 return 0;
2449}
2450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451rm -f conftest.$ac_objext
2452if { (ac_try="$ac_compile"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002487 echo "$as_me: failed program was:" >&5
2488sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 CFLAGS=""
2491 cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h. */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002496/* end confdefs.h. */
2497
2498int
2499main ()
2500{
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506rm -f conftest.$ac_objext
2507if { (ac_try="$ac_compile"
2508case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511esac
2512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_compile") 2>conftest.er1
2514 ac_status=$?
2515 grep -v '^ *+' conftest.er1 >conftest.err
2516 rm -f conftest.er1
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 :
Torok Edwin871384f2010-01-26 08:50:50 +00002541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002546 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002547 cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562rm -f conftest.$ac_objext
2563if { (ac_try="$ac_compile"
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002596 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002597else
2598 echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601
John Criswell7a73b802003-06-30 21:59:07 +00002602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603
Reid Spencera773bd52006-08-04 18:18:08 +00002604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606
Reid Spencera773bd52006-08-04 18:18:08 +00002607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609
Reid Spencera773bd52006-08-04 18:18:08 +00002610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_c_werror_flag=$ac_save_c_werror_flag
2612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2614echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615if test "$ac_test_CFLAGS" = set; then
2616 CFLAGS=$ac_save_CFLAGS
2617elif test $ac_cv_prog_cc_g = yes; then
2618 if test "$GCC" = yes; then
2619 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002620 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002622 fi
2623else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 if test "$GCC" = yes; then
2625 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002626 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002628 fi
2629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002630{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2631echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2632if test "${ac_cv_prog_cc_c89+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634else
Reid Spencera773bd52006-08-04 18:18:08 +00002635 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642/* end confdefs.h. */
2643#include <stdarg.h>
2644#include <stdio.h>
2645#include <sys/types.h>
2646#include <sys/stat.h>
2647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2648struct buf { int x; };
2649FILE * (*rcsopen) (struct buf *, struct stat *, int);
2650static char *e (p, i)
2651 char **p;
2652 int i;
2653{
2654 return p[i];
2655}
2656static char *f (char * (*g) (char **, int), char **p, ...)
2657{
2658 char *s;
2659 va_list v;
2660 va_start (v,p);
2661 s = g (p, va_arg (v,int));
2662 va_end (v);
2663 return s;
2664}
2665
2666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2667 function prototypes and stuff, but not '\xHH' hex character constants.
2668 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002669 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2671 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002672 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2674
Reid Spencera773bd52006-08-04 18:18:08 +00002675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2676 inside strings and character constants. */
2677#define FOO(x) 'x'
2678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2679
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680int test (int i, double x);
2681struct s1 {int (*f) (int a);};
2682struct s2 {int (*f) (double a);};
2683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684int argc;
2685char **argv;
2686int
2687main ()
2688{
2689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 ;
2691 return 0;
2692}
2693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696do
2697 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698 rm -f conftest.$ac_objext
2699if { (ac_try="$ac_compile"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002732 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733else
2734 echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002739
Reid Spencera773bd52006-08-04 18:18:08 +00002740rm -f core conftest.err conftest.$ac_objext
2741 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742done
Reid Spencera773bd52006-08-04 18:18:08 +00002743rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002744CC=$ac_save_CC
2745
2746fi
Reid Spencera773bd52006-08-04 18:18:08 +00002747# AC_CACHE_VAL
2748case "x$ac_cv_prog_cc_c89" in
2749 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750 { echo "$as_me:$LINENO: result: none needed" >&5
2751echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002752 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753 { echo "$as_me:$LINENO: result: unsupported" >&5
2754echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002755 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002756 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2758echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759esac
2760
John Criswell0c38eaf2003-09-10 15:17:25 +00002761
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
Eric Christopherffee5722011-09-16 20:36:25 +00002768ac_ext=cpp
2769ac_cpp='$CXXCPP $CPPFLAGS'
2770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773if test -z "$CXX"; then
2774 if test -n "$CCC"; then
2775 CXX=$CCC
2776 else
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in clang++ llvm-g++ g++
2779 do
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784if test "${ac_cv_prog_CXX+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 if test -n "$CXX"; then
2788 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807CXX=$ac_cv_prog_CXX
2808if test -n "$CXX"; then
2809 { echo "$as_me:$LINENO: result: $CXX" >&5
2810echo "${ECHO_T}$CXX" >&6; }
2811else
2812 { echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6; }
2814fi
2815
2816
2817 test -n "$CXX" && break
2818 done
2819fi
2820if test -z "$CXX"; then
2821 ac_ct_CXX=$CXX
2822 for ac_prog in clang++ llvm-g++ g++
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
2826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 if test -n "$ac_ct_CXX"; then
2832 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CXX="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2852if test -n "$ac_ct_CXX"; then
2853 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2854echo "${ECHO_T}$ac_ct_CXX" >&6; }
2855else
2856 { echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6; }
2858fi
2859
2860
2861 test -n "$ac_ct_CXX" && break
2862done
2863
2864 if test "x$ac_ct_CXX" = x; then
2865 CXX="g++"
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868yes:)
2869{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870whose name does not start with the host triplet. If you think this
2871configuration is useful to you, please write to autoconf@gnu.org." >&5
2872echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873whose name does not start with the host triplet. If you think this
2874configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877 CXX=$ac_ct_CXX
2878 fi
2879fi
2880
2881 fi
2882fi
2883# Provide some information about the compiler.
2884echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2885ac_compiler=`set X $ac_compile; echo $2`
2886{ (ac_try="$ac_compiler --version >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler --version >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (ac_try="$ac_compiler -v >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -v >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -V >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -V >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916
2917{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2918echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2919if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932#ifndef __GNUC__
2933 choke me
2934#endif
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext
2941if { (ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_compiler_gnu=yes
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 ac_compiler_gnu=no
2980fi
2981
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984
2985fi
2986{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2988GXX=`test $ac_compiler_gnu = yes && echo yes`
2989ac_test_CXXFLAGS=${CXXFLAGS+set}
2990ac_save_CXXFLAGS=$CXXFLAGS
2991{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2992echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2993if test "${ac_cv_prog_cxx_g+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2997 ac_cxx_werror_flag=yes
2998 ac_cv_prog_cxx_g=no
2999 CXXFLAGS="-g"
3000 cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
3016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_prog_cxx_g=yes
3050else
3051 echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 CXXFLAGS=""
3055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 :
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110 CXXFLAGS="-g"
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_prog_cxx_g=yes
3161else
3162 echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166fi
3167
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176fi
3177{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3178echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3179if test "$ac_test_CXXFLAGS" = set; then
3180 CXXFLAGS=$ac_save_CXXFLAGS
3181elif test $ac_cv_prog_cxx_g = yes; then
3182 if test "$GXX" = yes; then
3183 CXXFLAGS="-g -O2"
3184 else
3185 CXXFLAGS="-g"
3186 fi
3187else
3188 if test "$GXX" = yes; then
3189 CXXFLAGS="-O2"
3190 else
3191 CXXFLAGS=
3192 fi
3193fi
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003199
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003205{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207# On Suns, sometimes $CPP names a directory.
3208if test -n "$CPP" && test -d "$CPP"; then
3209 CPP=
3210fi
3211if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003212 if test "${ac_cv_prog_CPP+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214else
3215 # Double quotes because CPP needs to be expanded
3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217 do
3218 ac_preproc_ok=false
3219for ac_c_preproc_warn_flag in '' yes
3220do
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227 cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232/* end confdefs.h. */
3233#ifdef __STDC__
3234# include <limits.h>
3235#else
3236# include <assert.h>
3237#endif
3238 Syntax error
3239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003240if { (ac_try="$ac_cpp conftest.$ac_ext"
3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 else
3257 ac_cpp_err=
3258 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003260 ac_cpp_err=yes
3261fi
3262if test -z "$ac_cpp_err"; then
3263 :
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268 # Broken: fails on valid input.
3269continue
3270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272rm -f conftest.err conftest.$ac_ext
3273
Reid Spencera773bd52006-08-04 18:18:08 +00003274 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003276 cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281/* end confdefs.h. */
3282#include <ac_nonexistent.h>
3283_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003284if { (ac_try="$ac_cpp conftest.$ac_ext"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307 # Broken: success on invalid input.
3308continue
3309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313 # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318rm -f conftest.err conftest.$ac_ext
3319
3320done
3321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003323if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324 break
3325fi
3326
3327 done
3328 ac_cv_prog_CPP=$CPP
3329
3330fi
3331 CPP=$ac_cv_prog_CPP
3332else
3333 ac_cv_prog_CPP=$CPP
3334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003335{ echo "$as_me:$LINENO: result: $CPP" >&5
3336echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337ac_preproc_ok=false
3338for ac_c_preproc_warn_flag in '' yes
3339do
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003346 cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351/* end confdefs.h. */
3352#ifdef __STDC__
3353# include <limits.h>
3354#else
3355# include <assert.h>
3356#endif
3357 Syntax error
3358_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003359if { (ac_try="$ac_cpp conftest.$ac_ext"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
3374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 else
3376 ac_cpp_err=
3377 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003379 ac_cpp_err=yes
3380fi
3381if test -z "$ac_cpp_err"; then
3382 :
3383else
3384 echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387 # Broken: fails on valid input.
3388continue
3389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391rm -f conftest.err conftest.$ac_ext
3392
Reid Spencera773bd52006-08-04 18:18:08 +00003393 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395 cat >conftest.$ac_ext <<_ACEOF
3396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400/* end confdefs.h. */
3401#include <ac_nonexistent.h>
3402_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003403if { (ac_try="$ac_cpp conftest.$ac_ext"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 else
3420 ac_cpp_err=
3421 fi
3422else
3423 ac_cpp_err=yes
3424fi
3425if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426 # Broken: success on invalid input.
3427continue
3428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429 echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432 # Passes both tests.
3433ac_preproc_ok=:
3434break
3435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437rm -f conftest.err conftest.$ac_ext
3438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003442if $ac_preproc_ok; then
3443 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003445 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&5
3447echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&2;}
3449 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003450fi
3451
John Criswell7a73b802003-06-30 21:59:07 +00003452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
John Criswell7a73b802003-06-30 21:59:07 +00003458
Eric Christopherffee5722011-09-16 20:36:25 +00003459
3460
3461if test -d ${srcdir}/projects/llvm-gcc ; then
3462 subdirs="$subdirs projects/llvm-gcc"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/test-suite ; then
3467 subdirs="$subdirs projects/test-suite"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/llvm-test ; then
3472 subdirs="$subdirs projects/llvm-test"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/poolalloc ; then
3477 subdirs="$subdirs projects/poolalloc"
3478
3479fi
3480
3481if test -d ${srcdir}/projects/llvm-poolalloc ; then
3482 subdirs="$subdirs projects/llvm-poolalloc"
3483
3484fi
3485
3486for i in `ls ${srcdir}/projects`
3487do
3488 if test -d ${srcdir}/projects/${i} ; then
3489 case ${i} in
3490 sample) subdirs="$subdirs projects/sample"
3491 ;;
3492 privbracket) subdirs="$subdirs projects/privbracket"
3493 ;;
3494 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3495 ;;
3496 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3497;;
3498 llvm-java) subdirs="$subdirs projects/llvm-java"
3499 ;;
3500 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3501 ;;
3502 safecode) subdirs="$subdirs projects/safecode"
3503 ;;
3504 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3505 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003506 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003507 llvm-gcc) ;;
3508 test-suite) ;;
3509 llvm-test) ;;
3510 poolalloc) ;;
3511 llvm-poolalloc) ;;
3512 *)
3513 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3514echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3515 ;;
3516 esac
3517 fi
3518done
3519
3520# Check whether --enable-polly was given.
3521if test "${enable_polly+set}" = set; then
3522 enableval=$enable_polly;
3523else
3524 enableval=default
3525fi
3526
3527case "$enableval" in
3528 yes) ENABLE_POLLY=1
3529 ;;
3530 no) ENABLE_POLLY=0
3531 ;;
3532 default) ENABLE_POLLY=1
3533 ;;
3534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3535echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3536 { (exit 1); exit 1; }; } ;;
3537esac
3538
3539
3540if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3541 LLVM_HAS_POLLY=1
3542
3543 subdirs="$subdirs tools/polly"
3544
3545fi
3546
3547
3548# Make sure we can run config.sub.
3549$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3550 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3551echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3552 { (exit 1); exit 1; }; }
3553
3554{ echo "$as_me:$LINENO: checking build system type" >&5
3555echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3556if test "${ac_cv_build+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 ac_build_alias=$build_alias
3560test "x$ac_build_alias" = x &&
3561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562test "x$ac_build_alias" = x &&
3563 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3564echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3565 { (exit 1); exit 1; }; }
3566ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3567 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3568echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3569 { (exit 1); exit 1; }; }
3570
3571fi
3572{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3573echo "${ECHO_T}$ac_cv_build" >&6; }
3574case $ac_cv_build in
3575*-*-*) ;;
3576*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3577echo "$as_me: error: invalid value of canonical build" >&2;}
3578 { (exit 1); exit 1; }; };;
3579esac
3580build=$ac_cv_build
3581ac_save_IFS=$IFS; IFS='-'
3582set x $ac_cv_build
3583shift
3584build_cpu=$1
3585build_vendor=$2
3586shift; shift
3587# Remember, the first character of IFS is used to create $*,
3588# except with old shells:
3589build_os=$*
3590IFS=$ac_save_IFS
3591case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592
3593
3594{ echo "$as_me:$LINENO: checking host system type" >&5
3595echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3596if test "${ac_cv_host+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 if test "x$host_alias" = x; then
3600 ac_cv_host=$ac_cv_build
3601else
3602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3603 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3604echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3605 { (exit 1); exit 1; }; }
3606fi
3607
3608fi
3609{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3610echo "${ECHO_T}$ac_cv_host" >&6; }
3611case $ac_cv_host in
3612*-*-*) ;;
3613*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3614echo "$as_me: error: invalid value of canonical host" >&2;}
3615 { (exit 1); exit 1; }; };;
3616esac
3617host=$ac_cv_host
3618ac_save_IFS=$IFS; IFS='-'
3619set x $ac_cv_host
3620shift
3621host_cpu=$1
3622host_vendor=$2
3623shift; shift
3624# Remember, the first character of IFS is used to create $*,
3625# except with old shells:
3626host_os=$*
3627IFS=$ac_save_IFS
3628case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629
3630
3631{ echo "$as_me:$LINENO: checking target system type" >&5
3632echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3633if test "${ac_cv_target+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636 if test "x$target_alias" = x; then
3637 ac_cv_target=$ac_cv_host
3638else
3639 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3640 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3641echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3642 { (exit 1); exit 1; }; }
3643fi
3644
3645fi
3646{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3647echo "${ECHO_T}$ac_cv_target" >&6; }
3648case $ac_cv_target in
3649*-*-*) ;;
3650*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3651echo "$as_me: error: invalid value of canonical target" >&2;}
3652 { (exit 1); exit 1; }; };;
3653esac
3654target=$ac_cv_target
3655ac_save_IFS=$IFS; IFS='-'
3656set x $ac_cv_target
3657shift
3658target_cpu=$1
3659target_vendor=$2
3660shift; shift
3661# Remember, the first character of IFS is used to create $*,
3662# except with old shells:
3663target_os=$*
3664IFS=$ac_save_IFS
3665case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3666
3667
3668# The aliases save the names the user supplied, while $host etc.
3669# will get canonicalized.
3670test -n "$target_alias" &&
3671 test "$program_prefix$program_suffix$program_transform_name" = \
3672 NONENONEs,x,x, &&
3673 program_prefix=${target_alias}-
3674
3675{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3676echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3677if test "${llvm_cv_os_type+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680 case $host in
3681 *-*-aix*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="AIX"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-irix*)
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="IRIX"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-cygwin*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="Cygwin"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-darwin*)
3697 llvm_cv_link_all_option="-Wl,-all_load"
3698 llvm_cv_no_link_all_option="-Wl,-noall_load"
3699 llvm_cv_os_type="Darwin"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-minix*)
3702 llvm_cv_link_all_option="-Wl,-all_load"
3703 llvm_cv_no_link_all_option="-Wl,-noall_load"
3704 llvm_cv_os_type="Minix"
3705 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003706 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="FreeBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-openbsd*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="OpenBSD"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-netbsd*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="NetBSD"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-dragonfly*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="DragonFly"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-hpux*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="HP-UX"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-interix*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="Interix"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-linux*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Linux"
3740 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003741 *-*-gnu*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="GNU"
3745 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003746 *-*-solaris*)
3747 llvm_cv_link_all_option="-Wl,-z,allextract"
3748 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3749 llvm_cv_os_type="SunOS"
3750 llvm_cv_platform_type="Unix" ;;
3751 *-*-auroraux*)
3752 llvm_cv_link_all_option="-Wl,-z,allextract"
3753 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3754 llvm_cv_os_type="AuroraUX"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-*-win32*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Win32"
3760 llvm_cv_platform_type="Win32" ;;
3761 *-*-mingw*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="MingW"
3765 llvm_cv_platform_type="Win32" ;;
3766 *-*-haiku*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Haiku"
3770 llvm_cv_platform_type="Unix" ;;
3771 *-unknown-eabi*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Freestanding"
3775 llvm_cv_platform_type="Unix" ;;
3776 *-unknown-elf*)
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Freestanding"
3780 llvm_cv_platform_type="Unix" ;;
3781 *)
3782 llvm_cv_link_all_option=""
3783 llvm_cv_no_link_all_option=""
3784 llvm_cv_os_type="Unknown"
3785 llvm_cv_platform_type="Unknown" ;;
3786esac
3787fi
3788{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3789echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3790
3791{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3792echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3793if test "${llvm_cv_target_os_type+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 case $target in
3797 *-*-aix*)
3798 llvm_cv_target_os_type="AIX" ;;
3799 *-*-irix*)
3800 llvm_cv_target_os_type="IRIX" ;;
3801 *-*-cygwin*)
3802 llvm_cv_target_os_type="Cygwin" ;;
3803 *-*-darwin*)
3804 llvm_cv_target_os_type="Darwin" ;;
3805 *-*-minix*)
3806 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003807 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003808 llvm_cv_target_os_type="FreeBSD" ;;
3809 *-*-openbsd*)
3810 llvm_cv_target_os_type="OpenBSD" ;;
3811 *-*-netbsd*)
3812 llvm_cv_target_os_type="NetBSD" ;;
3813 *-*-dragonfly*)
3814 llvm_cv_target_os_type="DragonFly" ;;
3815 *-*-hpux*)
3816 llvm_cv_target_os_type="HP-UX" ;;
3817 *-*-interix*)
3818 llvm_cv_target_os_type="Interix" ;;
3819 *-*-linux*)
3820 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003821 *-*-gnu*)
3822 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003823 *-*-solaris*)
3824 llvm_cv_target_os_type="SunOS" ;;
3825 *-*-auroraux*)
3826 llvm_cv_target_os_type="AuroraUX" ;;
3827 *-*-win32*)
3828 llvm_cv_target_os_type="Win32" ;;
3829 *-*-mingw*)
3830 llvm_cv_target_os_type="MingW" ;;
3831 *-*-haiku*)
3832 llvm_cv_target_os_type="Haiku" ;;
3833 *-*-rtems*)
3834 llvm_cv_target_os_type="RTEMS" ;;
3835 *-*-nacl*)
3836 llvm_cv_target_os_type="NativeClient" ;;
3837 *-unknown-eabi*)
3838 llvm_cv_target_os_type="Freestanding" ;;
3839 *)
3840 llvm_cv_target_os_type="Unknown" ;;
3841esac
3842fi
3843{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3844echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3845
3846if test "$llvm_cv_os_type" = "Unknown" ; then
3847 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3848echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3849 { (exit 1); exit 1; }; }
3850fi
3851
3852OS=$llvm_cv_os_type
3853
3854HOST_OS=$llvm_cv_os_type
3855
3856TARGET_OS=$llvm_cv_target_os_type
3857
3858
3859LINKALL=$llvm_cv_link_all_option
3860
3861NOLINKALL=$llvm_cv_no_link_all_option
3862
3863
3864case $llvm_cv_platform_type in
3865 Unix)
3866
3867cat >>confdefs.h <<\_ACEOF
3868#define LLVM_ON_UNIX 1
3869_ACEOF
3870
3871 LLVM_ON_UNIX=1
3872
3873 LLVM_ON_WIN32=0
3874
3875 ;;
3876 Win32)
3877
3878cat >>confdefs.h <<\_ACEOF
3879#define LLVM_ON_WIN32 1
3880_ACEOF
3881
3882 LLVM_ON_UNIX=0
3883
3884 LLVM_ON_WIN32=1
3885
3886 ;;
3887esac
3888
3889{ echo "$as_me:$LINENO: checking target architecture" >&5
3890echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3891if test "${llvm_cv_target_arch+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 case $target in
3895 i?86-*) llvm_cv_target_arch="x86" ;;
3896 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3897 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3898 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003899 arm*-*) llvm_cv_target_arch="ARM" ;;
3900 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003901 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003902 xcore-*) llvm_cv_target_arch="XCore" ;;
3903 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003904 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003905 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003906 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003907 *) llvm_cv_target_arch="Unknown" ;;
3908esac
3909fi
3910{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912
3913if test "$llvm_cv_target_arch" = "Unknown" ; then
3914 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916fi
3917
Eric Christopherffee5722011-09-16 20:36:25 +00003918case "$llvm_cv_target_arch" in
3919 x86) LLVM_NATIVE_ARCH="X86" ;;
3920 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3921 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922esac
3923
3924ARCH=$llvm_cv_target_arch
3925
3926
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003927case $host in
3928 i?86-*) host_arch="x86" ;;
3929 amd64-* | x86_64-*) host_arch="x86_64" ;;
3930 sparc*-*) host_arch="Sparc" ;;
3931 powerpc*-*) host_arch="PowerPC" ;;
3932 arm*-*) host_arch="ARM" ;;
3933 mips-*) host_arch="Mips" ;;
3934 mipsel-*) host_arch="Mips" ;;
3935 xcore-*) host_arch="XCore" ;;
3936 msp430-*) host_arch="MSP430" ;;
3937 hexagon-*) host_arch="Hexagon" ;;
3938 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003939 *) host_arch="Unknown" ;;
3940esac
3941
3942if test "$host_arch" = "Unknown" ; then
3943 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3945fi
3946
3947HOST_ARCH=$host_arch
3948
3949
Eric Christopherffee5722011-09-16 20:36:25 +00003950
3951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954if test "${ac_cv_path_GREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 # Extract the first word of "grep ggrep" to use in msg output
3958if test -z "$GREP"; then
3959set dummy grep ggrep; ac_prog_name=$2
3960if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
Reid Spencera773bd52006-08-04 18:18:08 +00003963 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964# Loop through the user's path and test for each of PROGNAME-LIST
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970 for ac_prog in grep ggrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003975 # Check for GNU $ac_path_GREP
3976case `"$ac_path_GREP" --version 2>&1` in
3977*GNU*)
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979*)
3980 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003995 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000esac
4001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002
4003 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004004 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005done
4006
4007done
Reid Spencera773bd52006-08-04 18:18:08 +00004008IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009
4010
4011fi
4012
4013GREP="$ac_cv_path_GREP"
4014if test -z "$GREP"; then
4015 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017 { (exit 1); exit 1; }; }
4018fi
4019
Reid Spencera773bd52006-08-04 18:18:08 +00004020else
4021 ac_cv_path_GREP=$GREP
4022fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024
Reid Spencera773bd52006-08-04 18:18:08 +00004025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004028 GREP="$ac_cv_path_GREP"
4029
4030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031{ echo "$as_me:$LINENO: checking for egrep" >&5
4032echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033if test "${ac_cv_path_EGREP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004035else
4036 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037 then ac_cv_path_EGREP="$GREP -E"
4038 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039 # Extract the first word of "egrep" to use in msg output
4040if test -z "$EGREP"; then
4041set dummy egrep; ac_prog_name=$2
4042if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
Reid Spencera773bd52006-08-04 18:18:08 +00004045 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046# Loop through the user's path and test for each of PROGNAME-LIST
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004048for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052 for ac_prog in egrep; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004057 # Check for GNU $ac_path_EGREP
4058case `"$ac_path_EGREP" --version 2>&1` in
4059*GNU*)
4060 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061*)
4062 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004064 while :
4065 do
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_EGREP="$ac_path_EGREP"
4076 ac_path_EGREP_max=$ac_count
4077 fi
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4080 done
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082esac
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084
4085 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004086 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087done
4088
4089done
Reid Spencera773bd52006-08-04 18:18:08 +00004090IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091
4092
4093fi
4094
4095EGREP="$ac_cv_path_EGREP"
4096if test -z "$EGREP"; then
4097 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099 { (exit 1); exit 1; }; }
4100fi
4101
Reid Spencera773bd52006-08-04 18:18:08 +00004102else
4103 ac_cv_path_EGREP=$EGREP
4104fi
4105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004106
Reid Spencera773bd52006-08-04 18:18:08 +00004107 fi
4108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004109{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004111 EGREP="$ac_cv_path_EGREP"
4112
4113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116if test "${ac_cv_header_stdc+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119 cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004125#include <stdlib.h>
4126#include <stdarg.h>
4127#include <string.h>
4128#include <float.h>
4129
John Criswell0c38eaf2003-09-10 15:17:25 +00004130int
4131main ()
4132{
4133
4134 ;
4135 return 0;
4136}
John Criswell7a73b802003-06-30 21:59:07 +00004137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138rm -f conftest.$ac_objext
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004172 ac_cv_header_stdc=yes
4173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004179
Reid Spencera773bd52006-08-04 18:18:08 +00004180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004181
4182if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004190#include <string.h>
4191
4192_ACEOF
4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194 $EGREP "memchr" >/dev/null 2>&1; then
4195 :
John Criswell7a73b802003-06-30 21:59:07 +00004196else
4197 ac_cv_header_stdc=no
4198fi
4199rm -f conftest*
4200
4201fi
4202
4203if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004211#include <stdlib.h>
4212
4213_ACEOF
4214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004215 $EGREP "free" >/dev/null 2>&1; then
4216 :
John Criswell7a73b802003-06-30 21:59:07 +00004217else
4218 ac_cv_header_stdc=no
4219fi
4220rm -f conftest*
4221
4222fi
4223
4224if test $ac_cv_header_stdc = yes; then
4225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004227 :
4228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004235#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004236#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004237#if ((' ' & 0x0FF) == 0x020)
4238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004241# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004242 (('a' <= (c) && (c) <= 'i') \
4243 || ('j' <= (c) && (c) <= 'r') \
4244 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246#endif
4247
4248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249int
4250main ()
4251{
4252 int i;
4253 for (i = 0; i < 256; i++)
4254 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004255 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004256 return 2;
4257 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004258}
4259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260rm -f conftest$ac_exeext
4261if { (ac_try="$ac_link"
4262case "(($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_link") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 :
John Criswell7a73b802003-06-30 21:59:07 +00004281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 echo "$as_me: program exited with status $ac_status" >&5
4283echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286( exit $ac_status )
4287ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289rm -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 +00004290fi
4291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292
John Criswell7a73b802003-06-30 21:59:07 +00004293fi
4294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004295{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004297if test $ac_cv_header_stdc = yes; then
4298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299cat >>confdefs.h <<\_ACEOF
4300#define STDC_HEADERS 1
4301_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004302
4303fi
4304
Reid Spencera773bd52006-08-04 18:18:08 +00004305# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004306
4307
4308
4309
4310
4311
4312
4313
4314
Reid Spencera773bd52006-08-04 18:18:08 +00004315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317do
4318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324 cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
4330$ac_includes_default
4331
4332#include <$ac_header>
4333_ACEOF
4334rm -f conftest.$ac_objext
4335if { (ac_try="$ac_compile"
4336case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_Header=yes"
4369else
4370 echo "$as_me: failed program was:" >&5
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 eval "$as_ac_Header=no"
4374fi
4375
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377fi
4378ac_res=`eval echo '${'$as_ac_Header'}'`
4379 { echo "$as_me:$LINENO: result: $ac_res" >&5
4380echo "${ECHO_T}$ac_res" >&6; }
4381if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004382 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004384_ACEOF
4385
4386fi
4387
4388done
4389
4390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393if test "${ac_cv_c_bigendian+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004395else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396 # See if sys/param.h defines the BYTE_ORDER macro.
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004402/* end confdefs.h. */
4403#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004404#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004405
4406int
4407main ()
4408{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410 bogus endian macros
4411#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004412
4413 ;
4414 return 0;
4415}
4416_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417rm -f conftest.$ac_objext
4418if { (ac_try="$ac_compile"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432 { (case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_try") 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004451 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004457/* end confdefs.h. */
4458#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004459#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004460
4461int
4462main ()
4463{
4464#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465 not big endian
4466#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004467
4468 ;
4469 return 0;
4470}
4471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472rm -f conftest.$ac_objext
4473if { (ac_try="$ac_compile"
4474case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477esac
4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487 { (case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490esac
4491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_try") 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004506 ac_cv_c_bigendian=yes
4507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 echo "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511 ac_cv_c_bigendian=no
4512fi
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515else
4516 echo "$as_me: failed program was:" >&5
4517sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 # It does not; compile a test program.
4520if test "$cross_compiling" = yes; then
4521 # try to guess the endianness by grepping values into an object file
4522 ac_cv_c_bigendian=unknown
4523 cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
4529short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004535int
4536main ()
4537{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004539 ;
4540 return 0;
4541}
4542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543rm -f conftest.$ac_objext
4544if { (ac_try="$ac_compile"
4545case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004578 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579fi
4580if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581 if test "$ac_cv_c_bigendian" = unknown; then
4582 ac_cv_c_bigendian=no
4583 else
4584 # finding both strings is unlikely to happen, but who knows?
4585 ac_cv_c_bigendian=unknown
4586 fi
4587fi
Reid Spencera773bd52006-08-04 18:18:08 +00004588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589 echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592
Torok Edwin871384f2010-01-26 08:50:50 +00004593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594
Reid Spencera773bd52006-08-04 18:18:08 +00004595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004602/* end confdefs.h. */
4603$ac_includes_default
4604int
4605main ()
4606{
4607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 /* Are we little or big endian? From Harbison&Steele. */
4609 union
4610 {
4611 long int l;
4612 char c[sizeof (long int)];
4613 } u;
4614 u.l = 1;
4615 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004616
4617 ;
4618 return 0;
4619}
4620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621rm -f conftest$ac_exeext
4622if { (ac_try="$ac_link"
4623case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004641 ac_cv_c_bigendian=no
4642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 echo "$as_me: program exited with status $ac_status" >&5
4644echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647( exit $ac_status )
4648ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650rm -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 +00004651fi
4652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653
Reid Spencera773bd52006-08-04 18:18:08 +00004654fi
4655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657fi
4658{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660case $ac_cv_c_bigendian in
4661 yes)
4662 ENDIAN=big
4663 ;;
4664 no)
4665 ENDIAN=little
4666 ;;
4667 *)
4668 { { echo "$as_me:$LINENO: error: unknown endianness
4669presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670echo "$as_me: error: unknown endianness
4671presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4673esac
Reid Spencera773bd52006-08-04 18:18:08 +00004674
4675
4676if test "$cross_compiling" = yes; then
4677 LLVM_CROSS_COMPILING=1
4678
4679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682if test "${ac_cv_build_exeext+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004684else
4685 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686 ac_cv_build_exeext=.exe
4687else
4688 ac_build_prefix=${build_alias}-
4689
4690 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004696else
4697 if test -n "$BUILD_CC"; then
4698 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 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 +00004707 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004709 break 2
4710 fi
4711done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712done
Reid Spencera773bd52006-08-04 18:18:08 +00004713IFS=$as_save_IFS
4714
4715fi
4716fi
4717BUILD_CC=$ac_cv_prog_BUILD_CC
4718if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722 { echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004724fi
4725
4726
4727 if test -z "$BUILD_CC"; then
4728 # Extract the first word of "gcc", so it can be a program name with args.
4729set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004734else
4735 if test -n "$BUILD_CC"; then
4736 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 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 +00004745 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004747 break 2
4748 fi
4749done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750done
Reid Spencera773bd52006-08-04 18:18:08 +00004751IFS=$as_save_IFS
4752
4753fi
4754fi
4755BUILD_CC=$ac_cv_prog_BUILD_CC
4756if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760 { echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004762fi
4763
4764
4765 if test -z "$BUILD_CC"; then
4766 # Extract the first word of "cc", so it can be a program name with args.
4767set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004772else
4773 if test -n "$BUILD_CC"; then
4774 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4775else
4776 ac_prog_rejected=no
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 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 +00004784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785 ac_prog_rejected=yes
4786 continue
4787 fi
4788 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004790 break 2
4791 fi
4792done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793done
Reid Spencera773bd52006-08-04 18:18:08 +00004794IFS=$as_save_IFS
4795
4796if test $ac_prog_rejected = yes; then
4797 # We found a bogon in the path, so make sure we never use it.
4798 set dummy $ac_cv_prog_BUILD_CC
4799 shift
4800 if test $# != 0; then
4801 # We chose a different compiler from the bogus one.
4802 # However, it has the same basename, so the bogon will be chosen
4803 # first if we set BUILD_CC to just the basename; use the full file name.
4804 shift
4805 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4806 fi
4807fi
4808fi
4809fi
4810BUILD_CC=$ac_cv_prog_BUILD_CC
4811if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815 { echo "$as_me:$LINENO: result: no" >&5
4816echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004817fi
4818
4819
4820 fi
4821 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004825 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4826 rm -f conftest*
4827 echo 'int main () { return 0; }' > conftest.$ac_ext
4828 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004830 (eval $ac_build_link) 2>&5
4831 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004834 for file in conftest.*; do
4835 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004836 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004837 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4838 esac
4839 done
4840 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004844 fi
4845 rm -f conftest*
4846 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4847fi
4848fi
4849
4850BUILD_EXEEXT=""
4851test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004854ac_build_exeext=$BUILD_EXEEXT
4855
Jim Grosbach673612e2008-10-02 22:56:44 +00004856 ac_build_prefix=${build_alias}-
4857 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004863else
4864 if test -n "$BUILD_CXX"; then
4865 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 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 +00004874 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004876 break 2
4877 fi
4878done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879done
Jim Grosbach673612e2008-10-02 22:56:44 +00004880IFS=$as_save_IFS
4881
4882fi
4883fi
4884BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889 { echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004891fi
4892
4893
4894 if test -z "$BUILD_CXX"; then
4895 # Extract the first word of "g++", so it can be a program name with args.
4896set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004901else
4902 if test -n "$BUILD_CXX"; then
4903 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 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 +00004912 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004914 break 2
4915 fi
4916done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917done
Jim Grosbach673612e2008-10-02 22:56:44 +00004918IFS=$as_save_IFS
4919
4920fi
4921fi
4922BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004927 { echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004929fi
4930
4931
4932 if test -z "$BUILD_CXX"; then
4933 # Extract the first word of "c++", so it can be a program name with args.
4934set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004939else
4940 if test -n "$BUILD_CXX"; then
4941 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4942else
4943 ac_prog_rejected=no
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 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 +00004951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952 ac_prog_rejected=yes
4953 continue
4954 fi
4955 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004957 break 2
4958 fi
4959done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004960done
Jim Grosbach673612e2008-10-02 22:56:44 +00004961IFS=$as_save_IFS
4962
4963if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_BUILD_CXX
4966 shift
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set BUILD_CXX to just the basename; use the full file name.
4971 shift
4972 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4973 fi
4974fi
4975fi
4976fi
4977BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004979 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004982 { echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004984fi
4985
4986
4987 fi
4988 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004989else
4990 LLVM_CROSS_COMPILING=0
4991
4992fi
4993
Dan Gohman56fb5f92010-08-04 16:25:01 +00004994if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004995 cvsbuild="yes"
4996 optimize="no"
4997 CVSBUILD=CVSBUILD=1
4998
4999else
5000 cvsbuild="no"
5001 optimize="yes"
5002fi
5003
5004
Eric Christopherbee515f2011-11-11 22:51:42 +00005005# Check whether --enable-libcpp was given.
5006if test "${enable_libcpp+set}" = set; then
5007 enableval=$enable_libcpp;
5008else
5009 enableval=default
5010fi
5011
5012case "$enableval" in
5013 yes) ENABLE_LIBCPP=1
5014 ;;
5015 no) ENABLE_LIBCPP=0
5016 ;;
5017 default) ENABLE_LIBCPP=0
5018;;
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5022esac
5023
Eric Christopher82120022012-08-03 19:47:14 +00005024# Check whether --enable-cxx11 was given.
5025if test "${enable_cxx11+set}" = set; then
5026 enableval=$enable_cxx11;
5027else
5028 enableval=default
5029fi
5030
5031case "$enableval" in
5032 yes) ENABLE_CXX11=1
5033 ;;
5034 no) ENABLE_CXX11=0
5035 ;;
5036 default) ENABLE_CXX11=0
5037;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5039echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041esac
5042
Reid Spencera773bd52006-08-04 18:18:08 +00005043# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005044if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005045 enableval=$enable_optimized;
5046else
5047 enableval=$optimize
5048fi
5049
5050if test ${enableval} = "no" ; then
5051 ENABLE_OPTIMIZED=
5052
5053else
5054 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5055
5056fi
5057
David Greene2a5a12c2009-04-17 14:50:39 +00005058# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005059if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005060 enableval=$enable_profiling;
5061else
5062 enableval="no"
5063fi
5064
5065if test ${enableval} = "no" ; then
5066 ENABLE_PROFILING=
5067
5068else
5069 ENABLE_PROFILING=ENABLE_PROFILING=1
5070
5071fi
5072
Reid Spencera773bd52006-08-04 18:18:08 +00005073# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005074if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005075 enableval=$enable_assertions;
5076else
5077 enableval="yes"
5078fi
5079
5080if test ${enableval} = "yes" ; then
5081 DISABLE_ASSERTIONS=
5082
5083else
5084 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5085
5086fi
5087
David Greenea696d242007-06-28 19:36:08 +00005088# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005089if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005090 enableval=$enable_expensive_checks;
5091else
5092 enableval="no"
5093fi
5094
5095if test ${enableval} = "yes" ; then
5096 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5097
5098 EXPENSIVE_CHECKS=yes
5099
5100else
5101 ENABLE_EXPENSIVE_CHECKS=
5102
5103 EXPENSIVE_CHECKS=no
5104
5105fi
5106
Reid Spencer8b2e1412006-11-17 03:32:33 +00005107# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005108if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005109 enableval=$enable_debug_runtime;
5110else
5111 enableval=no
5112fi
5113
5114if test ${enableval} = "no" ; then
5115 DEBUG_RUNTIME=
5116
5117else
5118 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5119
5120fi
5121
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005122# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005123if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005124 enableval=$enable_debug_symbols;
5125else
5126 enableval=no
5127fi
5128
5129if test ${enableval} = "no" ; then
5130 DEBUG_SYMBOLS=
5131
5132else
5133 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5134
5135fi
5136
Reid Spencera773bd52006-08-04 18:18:08 +00005137# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005138if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005139 enableval=$enable_jit;
5140else
5141 enableval=default
5142fi
5143
5144if test ${enableval} = "no"
5145then
5146 JIT=
5147
5148else
5149 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005150 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005151 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005152 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005153 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005154 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005155 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005156 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005157 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005158 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005159 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005160 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005161 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005162 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005163 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005164 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005165 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005166 Hexagon) TARGET_HAS_JIT=0
5167 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005168 MBlaze) TARGET_HAS_JIT=0
5169 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005170 NVPTX) TARGET_HAS_JIT=0
5171 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005172 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005173 ;;
5174 esac
5175fi
5176
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005177# Check whether --enable-docs was given.
5178if test "${enable_docs+set}" = set; then
5179 enableval=$enable_docs;
5180else
5181 enableval=default
5182fi
5183
5184case "$enableval" in
5185 yes) ENABLE_DOCS=1
5186 ;;
5187 no) ENABLE_DOCS=0
5188 ;;
5189 default) ENABLE_DOCS=1
5190 ;;
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5192echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5194esac
5195
Reid Spencera773bd52006-08-04 18:18:08 +00005196# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005197if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005198 enableval=$enable_doxygen;
5199else
5200 enableval=default
5201fi
5202
5203case "$enableval" in
5204 yes) ENABLE_DOXYGEN=1
5205 ;;
5206 no) ENABLE_DOXYGEN=0
5207 ;;
5208 default) ENABLE_DOXYGEN=0
5209 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5211echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005213esac
5214
5215# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005216if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005217 enableval=$enable_threads;
5218else
Reid Spencer65c5d752006-11-05 17:08:18 +00005219 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005220fi
5221
5222case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005223 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005224 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005225 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005226 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005227 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005228 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5230echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005232esac
5233
Owen Andersona8603702009-05-19 22:18:56 +00005234cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005235#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005236_ACEOF
5237
5238
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005239# Check whether --enable-pthreads was given.
5240if test "${enable_pthreads+set}" = set; then
5241 enableval=$enable_pthreads;
5242else
5243 enableval=default
5244fi
5245
5246case "$enableval" in
5247 yes) ENABLE_PTHREADS=1
5248 ;;
5249 no) ENABLE_PTHREADS=0
5250 ;;
5251 default) ENABLE_PTHREADS=1
5252 ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5254echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5256esac
5257
Reid Spencer89b0d992006-12-16 22:07:52 +00005258# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005259if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005260 enableval=$enable_pic;
5261else
5262 enableval=default
5263fi
5264
5265case "$enableval" in
5266 yes) ENABLE_PIC=1
5267 ;;
5268 no) ENABLE_PIC=0
5269 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005270 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005271 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5273echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005275esac
5276
5277cat >>confdefs.h <<_ACEOF
5278#define ENABLE_PIC $ENABLE_PIC
5279_ACEOF
5280
5281
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005282# Check whether --enable-shared was given.
5283if test "${enable_shared+set}" = set; then
5284 enableval=$enable_shared;
5285else
5286 enableval=default
5287fi
5288
5289case "$enableval" in
5290 yes) ENABLE_SHARED=1
5291 ;;
5292 no) ENABLE_SHARED=0
5293 ;;
5294 default) ENABLE_SHARED=0
5295 ;;
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5297echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5299esac
5300
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005301# Check whether --enable-embed-stdcxx was given.
5302if test "${enable_embed_stdcxx+set}" = set; then
5303 enableval=$enable_embed_stdcxx;
5304else
5305 enableval=default
5306fi
5307
5308case "$enableval" in
5309 yes) ENABLE_EMBED_STDCXX=1
5310 ;;
5311 no) ENABLE_EMBED_STDCXX=0
5312 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005313 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005314 ;;
5315 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5316echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5317 { (exit 1); exit 1; }; } ;;
5318esac
5319
Daniel Dunbardd464df2010-05-10 20:11:56 +00005320# Check whether --enable-timestamps was given.
5321if test "${enable_timestamps+set}" = set; then
5322 enableval=$enable_timestamps;
5323else
5324 enableval=default
5325fi
5326
5327case "$enableval" in
5328 yes) ENABLE_TIMESTAMPS=1
5329 ;;
5330 no) ENABLE_TIMESTAMPS=0
5331 ;;
5332 default) ENABLE_TIMESTAMPS=1
5333 ;;
5334 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5335echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5336 { (exit 1); exit 1; }; } ;;
5337esac
5338
5339cat >>confdefs.h <<_ACEOF
5340#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5341_ACEOF
5342
5343
Reid Spencera773bd52006-08-04 18:18:08 +00005344TARGETS_TO_BUILD=""
5345# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005347 enableval=$enable_targets;
5348else
5349 enableval=all
5350fi
5351
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005352if test "$enableval" = host-only ; then
5353 enableval=host
5354fi
Reid Spencera773bd52006-08-04 18:18:08 +00005355case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005356 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005357 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5358 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005359 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005363 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5364 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005365 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005366 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005367 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5368 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005369 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005370 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005371 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005372 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005373 host) case "$llvm_cv_target_arch" in
5374 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5376 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5377 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005378 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5379 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005380 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005381 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005382 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5383 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005384 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005385 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005386 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5387echo "$as_me: error: Can not set target to build" >&2;}
5388 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005389 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005390 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5391echo "$as_me: error: Unrecognized target $a_target" >&2;}
5392 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005393 esac
5394 done
5395 ;;
5396esac
Reid Spencera773bd52006-08-04 18:18:08 +00005397TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5398
5399
Douglas Gregor0711c302009-06-17 00:43:20 +00005400for a_target in $TARGETS_TO_BUILD; do
5401 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5402
5403cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005404#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5405_ACEOF
5406
5407 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5408 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005409 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005410 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005411 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5412 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5413 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005414 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5415 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5416 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005417
5418cat >>confdefs.h <<_ACEOF
5419#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005420_ACEOF
5421
5422
5423cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005424#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5425_ACEOF
5426
5427
5428cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005429#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005430_ACEOF
5431
5432
5433cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005434#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005435_ACEOF
5436
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005437 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005438
5439cat >>confdefs.h <<_ACEOF
5440#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5441_ACEOF
5442
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005443 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005444 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5445
5446cat >>confdefs.h <<_ACEOF
5447#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5448_ACEOF
5449
5450 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005451 fi
5452done
5453
Douglas Gregor1555a232009-06-16 20:12:29 +00005454LLVM_ENUM_TARGETS=""
5455LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005456LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005457LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005458for target_to_build in $TARGETS_TO_BUILD; do
5459 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005460 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005461 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5462 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005463 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5464 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5465 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005466 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5467 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5468 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005469done
5470
5471
5472
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005473
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005474
Reid Spencera773bd52006-08-04 18:18:08 +00005475
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005476# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005477if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005478 withval=$with_optimize_option;
5479else
5480 withval=default
5481fi
5482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005483{ echo "$as_me:$LINENO: checking optimization flags" >&5
5484echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005485case "$withval" in
5486 default)
5487 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005488 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005489 MingW) optimize_option=-O2 ;;
5490 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005491 esac ;;
5492 *) optimize_option="$withval" ;;
5493esac
5494OPTIMIZE_OPTION=$optimize_option
5495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005496{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5497echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005498
5499
Reid Spencera773bd52006-08-04 18:18:08 +00005500# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005501if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005502 withval=$with_extra_options;
5503else
5504 withval=default
5505fi
5506
5507case "$withval" in
5508 default) EXTRA_OPTIONS= ;;
5509 *) EXTRA_OPTIONS=$withval ;;
5510esac
5511EXTRA_OPTIONS=$EXTRA_OPTIONS
5512
5513
Daniel Dunbared344d22011-06-16 22:30:41 +00005514
5515# Check whether --with-extra-ld-options was given.
5516if test "${with_extra_ld_options+set}" = set; then
5517 withval=$with_extra_ld_options;
5518else
5519 withval=default
5520fi
5521
5522case "$withval" in
5523 default) EXTRA_LD_OPTIONS= ;;
5524 *) EXTRA_LD_OPTIONS=$withval ;;
5525esac
5526EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5527
5528
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005529# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005531 enableval=$enable_bindings;
5532else
5533 enableval=default
5534fi
5535
5536BINDINGS_TO_BUILD=""
5537case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005538 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005539 all ) BINDINGS_TO_BUILD="ocaml" ;;
5540 none | no) BINDINGS_TO_BUILD="" ;;
5541 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5542 case "$a_binding" in
5543 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5545echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5546 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005547 esac
5548 done
5549 ;;
5550esac
5551
Reid Spencera773bd52006-08-04 18:18:08 +00005552
Gordon Henriksenf0915682007-10-02 16:42:22 +00005553# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005554if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005555 withval=$with_ocaml_libdir;
5556else
5557 withval=auto
5558fi
5559
5560case "$withval" in
5561 auto) with_ocaml_libdir="$withval" ;;
5562 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5564echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5565 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005566esac
5567
5568
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005569# Check whether --with-clang-srcdir was given.
5570if test "${with_clang_srcdir+set}" = set; then
5571 withval=$with_clang_srcdir;
5572else
5573 withval="-"
5574fi
5575
5576case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005577 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005578 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5579 *) clang_src_root="$ac_pwd/$withval" ;;
5580esac
5581CLANG_SRC_ROOT=$clang_src_root
5582
5583
5584
Chandler Carruth6b241162010-10-19 08:21:25 +00005585# Check whether --with-clang-resource-dir was given.
5586if test "${with_clang_resource_dir+set}" = set; then
5587 withval=$with_clang_resource_dir;
5588else
5589 withval=""
5590fi
5591
5592
5593cat >>confdefs.h <<_ACEOF
5594#define CLANG_RESOURCE_DIR "$withval"
5595_ACEOF
5596
5597
5598
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005599# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005600if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005601 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005602else
5603 withval=""
5604fi
5605
5606
5607cat >>confdefs.h <<_ACEOF
5608#define C_INCLUDE_DIRS "$withval"
5609_ACEOF
5610
5611
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005612# Clang normally uses the system c++ headers and libraries. With this option,
5613# clang will use the ones provided by a gcc installation instead. This option should
5614# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005615
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005616# Check whether --with-gcc-toolchain was given.
5617if test "${with_gcc_toolchain+set}" = set; then
5618 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005619else
5620 withval=""
5621fi
5622
5623
5624cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005625#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005626_ACEOF
5627
5628
5629
Sebastian Pope4f1b372012-04-30 20:06:58 +00005630# Check whether --with-default-sysroot was given.
5631if test "${with_default_sysroot+set}" = set; then
5632 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005633else
5634 withval=""
5635fi
5636
5637
5638cat >>confdefs.h <<_ACEOF
5639#define DEFAULT_SYSROOT "$withval"
5640_ACEOF
5641
5642
5643
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005644# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005646 withval=$with_binutils_include;
5647else
5648 withval=default
5649fi
5650
5651case "$withval" in
5652 default) WITH_BINUTILS_INCDIR=default ;;
5653 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5655echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5656 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005657esac
5658if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5659 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5660
5661 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5662 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5664echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5665 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005666 fi
5667fi
5668
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005669
5670# Check whether --with-bug-report-url was given.
5671if test "${with_bug_report_url+set}" = set; then
5672 withval=$with_bug_report_url;
5673else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005674 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005675fi
5676
5677
5678cat >>confdefs.h <<_ACEOF
5679#define BUG_REPORT_URL "$withval"
5680_ACEOF
5681
5682
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005683# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005685 enableval=$enable_libffi; case "$enableval" in
5686 yes) llvm_cv_enable_libffi="yes" ;;
5687 no) llvm_cv_enable_libffi="no" ;;
5688 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005689echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5690 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005691 esac
5692else
5693 llvm_cv_enable_libffi=no
5694fi
5695
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005696
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005697
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005698# Check whether --with-internal-prefix was given.
5699if test "${with_internal_prefix+set}" = set; then
5700 withval=$with_internal_prefix;
5701else
5702 withval=""
5703fi
5704
5705INTERNAL_PREFIX=$withval
5706
5707
5708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5710echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5711if test "${lt_cv_path_NM+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005713else
5714 if test -n "$NM"; then
5715 # Let the user override the test.
5716 lt_cv_path_NM="$NM"
5717else
5718 lt_nm_to_check="${ac_tool_prefix}nm"
5719 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5720 lt_nm_to_check="$lt_nm_to_check nm"
5721 fi
5722 for lt_tmp_nm in $lt_nm_to_check; do
5723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5724 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5725 IFS="$lt_save_ifs"
5726 test -z "$ac_dir" && ac_dir=.
5727 tmp_nm="$ac_dir/$lt_tmp_nm"
5728 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5729 # Check to see if the nm accepts a BSD-compat flag.
5730 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5731 # nm: unknown option "B" ignored
5732 # Tru64's nm complains that /dev/null is an invalid object file
5733 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5734 */dev/null* | *'Invalid file or object type'*)
5735 lt_cv_path_NM="$tmp_nm -B"
5736 break
5737 ;;
5738 *)
5739 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5740 */dev/null*)
5741 lt_cv_path_NM="$tmp_nm -p"
5742 break
5743 ;;
5744 *)
5745 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5746 continue # so that we can try to find one that supports BSD flags
5747 ;;
5748 esac
5749 ;;
5750 esac
5751 fi
5752 done
5753 IFS="$lt_save_ifs"
5754 done
5755 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5756fi
5757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5759echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005760NM="$lt_cv_path_NM"
5761
5762
5763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764{ echo "$as_me:$LINENO: checking for GNU make" >&5
5765echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5766if test "${llvm_cv_gnu_make_command+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005768else
5769 llvm_cv_gnu_make_command=''
5770 for a in "$MAKE" make gmake gnumake ; do
5771 if test -z "$a" ; then continue ; fi ;
5772 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5773 then
5774 llvm_cv_gnu_make_command=$a ;
5775 break;
5776 fi
5777 done
5778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5780echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5782 ifGNUmake='' ;
5783 else
5784 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5786echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005787 fi
5788
5789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5791echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005792LN_S=$as_ln_s
5793if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 { echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5798echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005799fi
5800
5801# Extract the first word of "cmp", so it can be a program name with args.
5802set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805if test "${ac_cv_path_CMP+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005807else
5808 case $CMP in
5809 [\\/]* | ?:[\\/]*)
5810 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5811 ;;
5812 *)
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814for as_dir in $PATH
5815do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 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 +00005820 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005822 break 2
5823 fi
5824done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825done
Reid Spencera773bd52006-08-04 18:18:08 +00005826IFS=$as_save_IFS
5827
5828 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5829 ;;
5830esac
5831fi
5832CMP=$ac_cv_path_CMP
5833if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005834 { echo "$as_me:$LINENO: result: $CMP" >&5
5835echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837 { echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005839fi
5840
5841
5842# Extract the first word of "cp", so it can be a program name with args.
5843set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846if test "${ac_cv_path_CP+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005848else
5849 case $CP in
5850 [\\/]* | ?:[\\/]*)
5851 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5852 ;;
5853 *)
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 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 +00005861 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005863 break 2
5864 fi
5865done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866done
Reid Spencera773bd52006-08-04 18:18:08 +00005867IFS=$as_save_IFS
5868
5869 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5870 ;;
5871esac
5872fi
5873CP=$ac_cv_path_CP
5874if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875 { echo "$as_me:$LINENO: result: $CP" >&5
5876echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878 { echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005880fi
5881
5882
5883# Extract the first word of "date", so it can be a program name with args.
5884set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887if test "${ac_cv_path_DATE+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005889else
5890 case $DATE in
5891 [\\/]* | ?:[\\/]*)
5892 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5893 ;;
5894 *)
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 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 +00005902 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005904 break 2
5905 fi
5906done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907done
Reid Spencera773bd52006-08-04 18:18:08 +00005908IFS=$as_save_IFS
5909
5910 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5911 ;;
5912esac
5913fi
5914DATE=$ac_cv_path_DATE
5915if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 { echo "$as_me:$LINENO: result: $DATE" >&5
5917echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919 { echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005921fi
5922
5923
5924# Extract the first word of "find", so it can be a program name with args.
5925set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928if test "${ac_cv_path_FIND+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005930else
5931 case $FIND in
5932 [\\/]* | ?:[\\/]*)
5933 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5934 ;;
5935 *)
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 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 +00005943 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005945 break 2
5946 fi
5947done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948done
Reid Spencera773bd52006-08-04 18:18:08 +00005949IFS=$as_save_IFS
5950
5951 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5952 ;;
5953esac
5954fi
5955FIND=$ac_cv_path_FIND
5956if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005957 { echo "$as_me:$LINENO: result: $FIND" >&5
5958echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960 { echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005962fi
5963
5964
5965# Extract the first word of "grep", so it can be a program name with args.
5966set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969if test "${ac_cv_path_GREP+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005971else
5972 case $GREP in
5973 [\\/]* | ?:[\\/]*)
5974 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5975 ;;
5976 *)
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 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 +00005984 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005986 break 2
5987 fi
5988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989done
Reid Spencera773bd52006-08-04 18:18:08 +00005990IFS=$as_save_IFS
5991
5992 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5993 ;;
5994esac
5995fi
5996GREP=$ac_cv_path_GREP
5997if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005998 { echo "$as_me:$LINENO: result: $GREP" >&5
5999echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001 { echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006003fi
6004
6005
6006# Extract the first word of "mkdir", so it can be a program name with args.
6007set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010if test "${ac_cv_path_MKDIR+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006012else
6013 case $MKDIR in
6014 [\\/]* | ?:[\\/]*)
6015 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6016 ;;
6017 *)
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 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 +00006025 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006027 break 2
6028 fi
6029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030done
Reid Spencera773bd52006-08-04 18:18:08 +00006031IFS=$as_save_IFS
6032
6033 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6034 ;;
6035esac
6036fi
6037MKDIR=$ac_cv_path_MKDIR
6038if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6040echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042 { echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006044fi
6045
6046
6047# Extract the first word of "mv", so it can be a program name with args.
6048set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051if test "${ac_cv_path_MV+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006053else
6054 case $MV in
6055 [\\/]* | ?:[\\/]*)
6056 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6057 ;;
6058 *)
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 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 +00006066 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006068 break 2
6069 fi
6070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071done
Reid Spencera773bd52006-08-04 18:18:08 +00006072IFS=$as_save_IFS
6073
6074 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6075 ;;
6076esac
6077fi
6078MV=$ac_cv_path_MV
6079if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 { echo "$as_me:$LINENO: result: $MV" >&5
6081echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006085fi
6086
6087
6088if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_RANLIB+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006095else
6096 if test -n "$RANLIB"; then
6097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 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 +00006106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006108 break 2
6109 fi
6110done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111done
Reid Spencera773bd52006-08-04 18:18:08 +00006112IFS=$as_save_IFS
6113
6114fi
6115fi
6116RANLIB=$ac_cv_prog_RANLIB
6117if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6119echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006123fi
6124
6125
6126fi
6127if test -z "$ac_cv_prog_RANLIB"; then
6128 ac_ct_RANLIB=$RANLIB
6129 # Extract the first word of "ranlib", so it can be a program name with args.
6130set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006135else
6136 if test -n "$ac_ct_RANLIB"; then
6137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 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 +00006146 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006148 break 2
6149 fi
6150done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151done
Reid Spencera773bd52006-08-04 18:18:08 +00006152IFS=$as_save_IFS
6153
6154fi
6155fi
6156ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6159echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006163fi
6164
6165 if test "x$ac_ct_RANLIB" = x; then
6166 RANLIB=":"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171whose name does not start with the host triplet. If you think this
6172configuration is useful to you, please write to autoconf@gnu.org." >&5
6173echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174whose name does not start with the host triplet. If you think this
6175configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006176ac_tool_warned=yes ;;
6177esac
6178 RANLIB=$ac_ct_RANLIB
6179 fi
6180else
6181 RANLIB="$ac_cv_prog_RANLIB"
6182fi
6183
Torok Edwin871384f2010-01-26 08:50:50 +00006184if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6186set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189if test "${ac_cv_prog_AR+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006191else
6192 if test -n "$AR"; then
6193 ac_cv_prog_AR="$AR" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 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 +00006202 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006204 break 2
6205 fi
6206done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207done
Torok Edwin871384f2010-01-26 08:50:50 +00006208IFS=$as_save_IFS
6209
6210fi
6211fi
6212AR=$ac_cv_prog_AR
6213if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: $AR" >&5
6215echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 { echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006219fi
6220
6221
6222fi
6223if test -z "$ac_cv_prog_AR"; then
6224 ac_ct_AR=$AR
6225 # Extract the first word of "ar", so it can be a program name with args.
6226set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006231else
6232 if test -n "$ac_ct_AR"; then
6233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 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 +00006242 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006244 break 2
6245 fi
6246done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247done
Torok Edwin871384f2010-01-26 08:50:50 +00006248IFS=$as_save_IFS
6249
6250fi
6251fi
6252ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6255echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257 { echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006259fi
6260
6261 if test "x$ac_ct_AR" = x; then
6262 AR="false"
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6267whose name does not start with the host triplet. If you think this
6268configuration is useful to you, please write to autoconf@gnu.org." >&5
6269echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6270whose name does not start with the host triplet. If you think this
6271configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006272ac_tool_warned=yes ;;
6273esac
6274 AR=$ac_ct_AR
6275 fi
6276else
6277 AR="$ac_cv_prog_AR"
6278fi
6279
Reid Spencera773bd52006-08-04 18:18:08 +00006280# Extract the first word of "rm", so it can be a program name with args.
6281set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284if test "${ac_cv_path_RM+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006286else
6287 case $RM in
6288 [\\/]* | ?:[\\/]*)
6289 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6290 ;;
6291 *)
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 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 +00006299 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006301 break 2
6302 fi
6303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304done
Reid Spencera773bd52006-08-04 18:18:08 +00006305IFS=$as_save_IFS
6306
6307 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6308 ;;
6309esac
6310fi
6311RM=$ac_cv_path_RM
6312if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313 { echo "$as_me:$LINENO: result: $RM" >&5
6314echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316 { echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006318fi
6319
6320
6321# Extract the first word of "sed", so it can be a program name with args.
6322set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325if test "${ac_cv_path_SED+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006327else
6328 case $SED in
6329 [\\/]* | ?:[\\/]*)
6330 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6331 ;;
6332 *)
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 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 +00006340 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006342 break 2
6343 fi
6344done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006345done
Reid Spencera773bd52006-08-04 18:18:08 +00006346IFS=$as_save_IFS
6347
6348 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6349 ;;
6350esac
6351fi
6352SED=$ac_cv_path_SED
6353if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354 { echo "$as_me:$LINENO: result: $SED" >&5
6355echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357 { echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006359fi
6360
6361
6362# Extract the first word of "tar", so it can be a program name with args.
6363set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366if test "${ac_cv_path_TAR+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006368else
6369 case $TAR in
6370 [\\/]* | ?:[\\/]*)
6371 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6372 ;;
6373 *)
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 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 +00006381 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006383 break 2
6384 fi
6385done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386done
Reid Spencera773bd52006-08-04 18:18:08 +00006387IFS=$as_save_IFS
6388
6389 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6390 ;;
6391esac
6392fi
6393TAR=$ac_cv_path_TAR
6394if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 { echo "$as_me:$LINENO: result: $TAR" >&5
6396echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398 { echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006400fi
6401
6402
6403# Extract the first word of "pwd", so it can be a program name with args.
6404set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407if test "${ac_cv_path_BINPWD+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006409else
6410 case $BINPWD in
6411 [\\/]* | ?:[\\/]*)
6412 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6413 ;;
6414 *)
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 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 +00006422 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006424 break 2
6425 fi
6426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427done
Reid Spencera773bd52006-08-04 18:18:08 +00006428IFS=$as_save_IFS
6429
6430 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6431 ;;
6432esac
6433fi
6434BINPWD=$ac_cv_path_BINPWD
6435if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6437echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439 { echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006441fi
6442
6443
6444
6445# Extract the first word of "Graphviz", so it can be a program name with args.
6446set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006451else
6452 case $GRAPHVIZ in
6453 [\\/]* | ?:[\\/]*)
6454 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6455 ;;
6456 *)
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 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 +00006464 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006466 break 2
6467 fi
6468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469done
Reid Spencera773bd52006-08-04 18:18:08 +00006470IFS=$as_save_IFS
6471
6472 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6473 ;;
6474esac
6475fi
6476GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6477if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6479echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 { echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006483fi
6484
6485
6486if test "$GRAPHVIZ" != "echo Graphviz" ; then
6487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006488cat >>confdefs.h <<\_ACEOF
6489#define HAVE_GRAPHVIZ 1
6490_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006491
Jeff Cohen28783c32007-01-12 18:22:38 +00006492 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006493 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494 fi
6495
6496cat >>confdefs.h <<_ACEOF
6497#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6498_ACEOF
6499
6500fi
6501# Extract the first word of "dot", so it can be a program name with args.
6502set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505if test "${ac_cv_path_DOT+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006507else
6508 case $DOT in
6509 [\\/]* | ?:[\\/]*)
6510 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6511 ;;
6512 *)
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 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 +00006520 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006522 break 2
6523 fi
6524done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006525done
Reid Spencera773bd52006-08-04 18:18:08 +00006526IFS=$as_save_IFS
6527
6528 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6529 ;;
6530esac
6531fi
6532DOT=$ac_cv_path_DOT
6533if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 { echo "$as_me:$LINENO: result: $DOT" >&5
6535echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 { echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006539fi
6540
6541
6542if test "$DOT" != "echo dot" ; then
6543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544cat >>confdefs.h <<\_ACEOF
6545#define HAVE_DOT 1
6546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006547
Jeff Cohen28783c32007-01-12 18:22:38 +00006548 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006549 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550 fi
6551
6552cat >>confdefs.h <<_ACEOF
6553#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6554_ACEOF
6555
6556fi
David Greenef0b9eff2009-07-09 17:16:26 +00006557# Extract the first word of "fdp", so it can be a program name with args.
6558set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561if test "${ac_cv_path_FDP+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006563else
6564 case $FDP in
6565 [\\/]* | ?:[\\/]*)
6566 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6567 ;;
6568 *)
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 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 +00006576 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006578 break 2
6579 fi
6580done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581done
David Greenef0b9eff2009-07-09 17:16:26 +00006582IFS=$as_save_IFS
6583
6584 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6585 ;;
6586esac
6587fi
6588FDP=$ac_cv_path_FDP
6589if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590 { echo "$as_me:$LINENO: result: $FDP" >&5
6591echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593 { echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006595fi
6596
6597
6598if test "$FDP" != "echo fdp" ; then
6599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600cat >>confdefs.h <<\_ACEOF
6601#define HAVE_FDP 1
6602_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006603
6604 if test "$llvm_cv_os_type" = "MingW" ; then
6605 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606 fi
6607
6608cat >>confdefs.h <<_ACEOF
6609#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6610_ACEOF
6611
6612fi
6613# Extract the first word of "neato", so it can be a program name with args.
6614set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617if test "${ac_cv_path_NEATO+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006619else
6620 case $NEATO in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6623 ;;
6624 *)
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 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 +00006632 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006634 break 2
6635 fi
6636done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637done
David Greenef0b9eff2009-07-09 17:16:26 +00006638IFS=$as_save_IFS
6639
6640 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6641 ;;
6642esac
6643fi
6644NEATO=$ac_cv_path_NEATO
6645if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 { echo "$as_me:$LINENO: result: $NEATO" >&5
6647echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649 { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006651fi
6652
6653
6654if test "$NEATO" != "echo neato" ; then
6655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656cat >>confdefs.h <<\_ACEOF
6657#define HAVE_NEATO 1
6658_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006659
6660 if test "$llvm_cv_os_type" = "MingW" ; then
6661 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662 fi
6663
6664cat >>confdefs.h <<_ACEOF
6665#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6666_ACEOF
6667
6668fi
6669# Extract the first word of "twopi", so it can be a program name with args.
6670set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673if test "${ac_cv_path_TWOPI+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006675else
6676 case $TWOPI in
6677 [\\/]* | ?:[\\/]*)
6678 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6679 ;;
6680 *)
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 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 +00006688 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006690 break 2
6691 fi
6692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693done
David Greenef0b9eff2009-07-09 17:16:26 +00006694IFS=$as_save_IFS
6695
6696 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6697 ;;
6698esac
6699fi
6700TWOPI=$ac_cv_path_TWOPI
6701if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6703echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705 { echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006707fi
6708
6709
6710if test "$TWOPI" != "echo twopi" ; then
6711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712cat >>confdefs.h <<\_ACEOF
6713#define HAVE_TWOPI 1
6714_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006715
6716 if test "$llvm_cv_os_type" = "MingW" ; then
6717 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718 fi
6719
6720cat >>confdefs.h <<_ACEOF
6721#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6722_ACEOF
6723
6724fi
6725# Extract the first word of "circo", so it can be a program name with args.
6726set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729if test "${ac_cv_path_CIRCO+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006731else
6732 case $CIRCO in
6733 [\\/]* | ?:[\\/]*)
6734 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6735 ;;
6736 *)
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 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 +00006744 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006746 break 2
6747 fi
6748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749done
David Greenef0b9eff2009-07-09 17:16:26 +00006750IFS=$as_save_IFS
6751
6752 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6753 ;;
6754esac
6755fi
6756CIRCO=$ac_cv_path_CIRCO
6757if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6759echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006761 { echo "$as_me:$LINENO: result: no" >&5
6762echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006763fi
6764
6765
6766if test "$CIRCO" != "echo circo" ; then
6767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768cat >>confdefs.h <<\_ACEOF
6769#define HAVE_CIRCO 1
6770_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006771
6772 if test "$llvm_cv_os_type" = "MingW" ; then
6773 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6774 fi
6775
6776cat >>confdefs.h <<_ACEOF
6777#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6778_ACEOF
6779
6780fi
Reid Spencera773bd52006-08-04 18:18:08 +00006781for ac_prog in gv gsview32
6782do
6783 # Extract the first word of "$ac_prog", so it can be a program name with args.
6784set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_GV+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006789else
6790 case $GV in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006802 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006804 break 2
6805 fi
6806done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807done
Reid Spencera773bd52006-08-04 18:18:08 +00006808IFS=$as_save_IFS
6809
6810 ;;
6811esac
6812fi
6813GV=$ac_cv_path_GV
6814if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 { echo "$as_me:$LINENO: result: $GV" >&5
6816echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006820fi
6821
6822
6823 test -n "$GV" && break
6824done
6825test -n "$GV" || GV="echo gv"
6826
6827if test "$GV" != "echo gv" ; then
6828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829cat >>confdefs.h <<\_ACEOF
6830#define HAVE_GV 1
6831_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006832
Jeff Cohen28783c32007-01-12 18:22:38 +00006833 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006834 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835 fi
6836
6837cat >>confdefs.h <<_ACEOF
6838#define LLVM_PATH_GV "$GV${EXEEXT}"
6839_ACEOF
6840
6841fi
6842# Extract the first word of "dotty", so it can be a program name with args.
6843set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_DOTTY+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006848else
6849 case $DOTTY in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 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 +00006861 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006863 break 2
6864 fi
6865done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866done
Reid Spencera773bd52006-08-04 18:18:08 +00006867IFS=$as_save_IFS
6868
6869 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6870 ;;
6871esac
6872fi
6873DOTTY=$ac_cv_path_DOTTY
6874if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6876echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006880fi
6881
6882
6883if test "$DOTTY" != "echo dotty" ; then
6884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885cat >>confdefs.h <<\_ACEOF
6886#define HAVE_DOTTY 1
6887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006888
Jeff Cohen28783c32007-01-12 18:22:38 +00006889 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006890 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6891 fi
6892
6893cat >>confdefs.h <<_ACEOF
6894#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6895_ACEOF
6896
6897fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006898# Extract the first word of "xdot.py", so it can be a program name with args.
6899set dummy xdot.py; ac_word=$2
6900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902if test "${ac_cv_path_XDOT_PY+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905 case $XDOT_PY in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6908 ;;
6909 *)
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923IFS=$as_save_IFS
6924
6925 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6926 ;;
6927esac
6928fi
6929XDOT_PY=$ac_cv_path_XDOT_PY
6930if test -n "$XDOT_PY"; then
6931 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6932echo "${ECHO_T}$XDOT_PY" >&6; }
6933else
6934 { echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6; }
6936fi
6937
6938
6939if test "$XDOT_PY" != "echo xdot.py" ; then
6940
6941cat >>confdefs.h <<\_ACEOF
6942#define HAVE_XDOT_PY 1
6943_ACEOF
6944
6945 if test "$llvm_cv_os_type" = "MingW" ; then
6946 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6947 fi
6948
6949cat >>confdefs.h <<_ACEOF
6950#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6951_ACEOF
6952
6953fi
Reid Spencera773bd52006-08-04 18:18:08 +00006954
Reid Spencera773bd52006-08-04 18:18:08 +00006955# Find a good install program. We prefer a C program (faster),
6956# so one script is as good as another. But avoid the broken or
6957# incompatible versions:
6958# SysV /etc/install, /usr/sbin/install
6959# SunOS /usr/etc/install
6960# IRIX /sbin/install
6961# AIX /bin/install
6962# AmigaOS /C/install, which installs bootblocks on floppy discs
6963# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6964# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6965# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6966# OS/2's system install, which has a completely different semantic
6967# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6969echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006970if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971if test "${ac_cv_path_install+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006973else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 # Account for people who put trailing slashes in PATH elements.
6980case $as_dir/ in
6981 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006984 /usr/ucb/* ) ;;
6985 *)
6986 # OSF1 and SCO ODT 3.0 have their own names for install.
6987 # Don't use installbsd from OSF since it installs stuff as root
6988 # by default.
6989 for ac_prog in ginstall scoinst install; do
6990 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 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 +00006992 if test $ac_prog = install &&
6993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6994 # AIX install. It has an incompatible calling convention.
6995 :
6996 elif test $ac_prog = install &&
6997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6998 # program-specific install script used by HP pwplus--don't use.
6999 :
7000 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7002 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007003 fi
7004 fi
7005 done
7006 done
7007 ;;
7008esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009done
Reid Spencera773bd52006-08-04 18:18:08 +00007010IFS=$as_save_IFS
7011
7012
7013fi
7014 if test "${ac_cv_path_install+set}" = set; then
7015 INSTALL=$ac_cv_path_install
7016 else
7017 # As a last resort, use the slow shell script. Don't cache a
7018 # value for INSTALL within a source directory, because that will
7019 # break other packages using the cache if that directory is
7020 # removed, or if the value is a relative name.
7021 INSTALL=$ac_install_sh
7022 fi
7023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7025echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007026
7027# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7028# It thinks the first close brace ends the variable substitution.
7029test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7030
7031test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7032
7033test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7034
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007035case "$INSTALL" in
7036 [\\/$]* | ?:[\\/]* ) ;;
7037 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7038esac
Reid Spencera773bd52006-08-04 18:18:08 +00007039
7040# Extract the first word of "bzip2", so it can be a program name with args.
7041set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044if test "${ac_cv_path_BZIP2+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007046else
7047 case $BZIP2 in
7048 [\\/]* | ?:[\\/]*)
7049 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7050 ;;
7051 *)
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 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 +00007059 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007061 break 2
7062 fi
7063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064done
Reid Spencera773bd52006-08-04 18:18:08 +00007065IFS=$as_save_IFS
7066
Reid Spencera773bd52006-08-04 18:18:08 +00007067 ;;
7068esac
7069fi
7070BZIP2=$ac_cv_path_BZIP2
7071if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007072 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7073echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007075 { echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007077fi
7078
7079
mike-m68cb3192010-05-06 23:45:43 +00007080# Extract the first word of "cat", so it can be a program name with args.
7081set dummy cat; ac_word=$2
7082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084if test "${ac_cv_path_CAT+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 case $CAT in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7090 ;;
7091 *)
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103done
7104done
7105IFS=$as_save_IFS
7106
7107 ;;
7108esac
7109fi
7110CAT=$ac_cv_path_CAT
7111if test -n "$CAT"; then
7112 { echo "$as_me:$LINENO: result: $CAT" >&5
7113echo "${ECHO_T}$CAT" >&6; }
7114else
7115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
7117fi
7118
7119
Reid Spencera773bd52006-08-04 18:18:08 +00007120# Extract the first word of "doxygen", so it can be a program name with args.
7121set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_DOXYGEN+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007126else
7127 case $DOXYGEN in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 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 +00007139 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007141 break 2
7142 fi
7143done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144done
Reid Spencera773bd52006-08-04 18:18:08 +00007145IFS=$as_save_IFS
7146
Reid Spencera773bd52006-08-04 18:18:08 +00007147 ;;
7148esac
7149fi
7150DOXYGEN=$ac_cv_path_DOXYGEN
7151if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7153echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007157fi
7158
7159
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007160# Extract the first word of "groff", so it can be a program name with args.
7161set dummy groff; ac_word=$2
7162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164if test "${ac_cv_path_GROFF+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 case $GROFF in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7170 ;;
7171 *)
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184done
7185IFS=$as_save_IFS
7186
7187 ;;
7188esac
7189fi
7190GROFF=$ac_cv_path_GROFF
7191if test -n "$GROFF"; then
7192 { echo "$as_me:$LINENO: result: $GROFF" >&5
7193echo "${ECHO_T}$GROFF" >&6; }
7194else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6; }
7197fi
7198
7199
Reid Spencera773bd52006-08-04 18:18:08 +00007200# Extract the first word of "gzip", so it can be a program name with args.
7201set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007204if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007206else
Eric Christopher031d3072010-12-10 01:31:51 +00007207 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007208 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007209 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007210 ;;
7211 *)
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 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 +00007219 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007221 break 2
7222 fi
7223done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224done
Reid Spencera773bd52006-08-04 18:18:08 +00007225IFS=$as_save_IFS
7226
Reid Spencera773bd52006-08-04 18:18:08 +00007227 ;;
7228esac
7229fi
Eric Christopher031d3072010-12-10 01:31:51 +00007230GZIPBIN=$ac_cv_path_GZIPBIN
7231if test -n "$GZIPBIN"; then
7232 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7233echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 { echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007237fi
7238
7239
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007240# Extract the first word of "pdfroff", so it can be a program name with args.
7241set dummy pdfroff; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_path_PDFROFF+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 case $PDFROFF in
7248 [\\/]* | ?:[\\/]*)
7249 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7250 ;;
7251 *)
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267 ;;
7268esac
7269fi
7270PDFROFF=$ac_cv_path_PDFROFF
7271if test -n "$PDFROFF"; then
7272 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7273echo "${ECHO_T}$PDFROFF" >&6; }
7274else
7275 { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
7277fi
7278
7279
Reid Spencera773bd52006-08-04 18:18:08 +00007280# Extract the first word of "zip", so it can be a program name with args.
7281set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284if test "${ac_cv_path_ZIP+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007286else
7287 case $ZIP in
7288 [\\/]* | ?:[\\/]*)
7289 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7290 ;;
7291 *)
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 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 +00007299 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007301 break 2
7302 fi
7303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304done
Reid Spencera773bd52006-08-04 18:18:08 +00007305IFS=$as_save_IFS
7306
Reid Spencera773bd52006-08-04 18:18:08 +00007307 ;;
7308esac
7309fi
7310ZIP=$ac_cv_path_ZIP
7311if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007312 { echo "$as_me:$LINENO: result: $ZIP" >&5
7313echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315 { echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007317fi
7318
7319
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007320for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007321do
7322 # Extract the first word of "$ac_prog", so it can be a program name with args.
7323set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326if test "${ac_cv_path_OCAMLC+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007328else
7329 case $OCAMLC in
7330 [\\/]* | ?:[\\/]*)
7331 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7332 ;;
7333 *)
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 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 +00007341 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007343 break 2
7344 fi
7345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007347IFS=$as_save_IFS
7348
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007349 ;;
7350esac
7351fi
7352OCAMLC=$ac_cv_path_OCAMLC
7353if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7355echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 { echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007359fi
7360
7361
Gordon Henriksene7072162008-03-07 18:20:01 +00007362 test -n "$OCAMLC" && break
7363done
7364
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007365for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007366do
7367 # Extract the first word of "$ac_prog", so it can be a program name with args.
7368set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007373else
7374 case $OCAMLOPT in
7375 [\\/]* | ?:[\\/]*)
7376 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7377 ;;
7378 *)
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 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 +00007386 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007388 break 2
7389 fi
7390done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007392IFS=$as_save_IFS
7393
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007394 ;;
7395esac
7396fi
7397OCAMLOPT=$ac_cv_path_OCAMLOPT
7398if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7400echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402 { echo "$as_me:$LINENO: result: no" >&5
7403echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007404fi
7405
7406
Gordon Henriksene7072162008-03-07 18:20:01 +00007407 test -n "$OCAMLOPT" && break
7408done
7409
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007410for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007411do
7412 # Extract the first word of "$ac_prog", so it can be a program name with args.
7413set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007418else
7419 case $OCAMLDEP in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 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 +00007431 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007437IFS=$as_save_IFS
7438
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007439 ;;
7440esac
7441fi
7442OCAMLDEP=$ac_cv_path_OCAMLDEP
7443if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7445echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007449fi
7450
7451
Gordon Henriksene7072162008-03-07 18:20:01 +00007452 test -n "$OCAMLDEP" && break
7453done
7454
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007455for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007456do
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007463else
7464 case $OCAMLDOC in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 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 +00007476 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007478 break 2
7479 fi
7480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007482IFS=$as_save_IFS
7483
7484 ;;
7485esac
7486fi
7487OCAMLDOC=$ac_cv_path_OCAMLDOC
7488if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7490echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007494fi
7495
7496
7497 test -n "$OCAMLDOC" && break
7498done
7499
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007500for ac_prog in gas as
7501do
7502 # Extract the first word of "$ac_prog", so it can be a program name with args.
7503set dummy $ac_prog; ac_word=$2
7504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506if test "${ac_cv_path_GAS+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 case $GAS in
7510 [\\/]* | ?:[\\/]*)
7511 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7512 ;;
7513 *)
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525done
7526done
7527IFS=$as_save_IFS
7528
7529 ;;
7530esac
7531fi
7532GAS=$ac_cv_path_GAS
7533if test -n "$GAS"; then
7534 { echo "$as_me:$LINENO: result: $GAS" >&5
7535echo "${ECHO_T}$GAS" >&6; }
7536else
7537 { echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6; }
7539fi
7540
7541
7542 test -n "$GAS" && break
7543done
7544
Reid Spencera773bd52006-08-04 18:18:08 +00007545
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007546{ echo "$as_me:$LINENO: checking for linker version" >&5
7547echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7548if test "${llvm_cv_link_version+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551
7552 version_string="$(ld -v 2>&1 | head -1)"
7553
7554 # Check for ld64.
7555 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007556 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007557 else
7558 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7559 fi
7560
7561fi
7562{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7563echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7564
7565cat >>confdefs.h <<_ACEOF
7566#define HOST_LINK_VERSION "$llvm_cv_link_version"
7567_ACEOF
7568
7569
7570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7572echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7573if test "${llvm_cv_link_use_r+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007575else
7576 ac_ext=c
7577ac_cpp='$CPP $CPPFLAGS'
7578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581
7582 oldcflags="$CFLAGS"
7583 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 cat >conftest.$ac_ext <<_ACEOF
7585/* confdefs.h. */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007589/* end confdefs.h. */
7590
7591int
7592main ()
7593{
Dan Gohman39ed6782010-04-25 00:12:20 +00007594
Reid Spencera773bd52006-08-04 18:18:08 +00007595 ;
7596 return 0;
7597}
7598_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599rm -f conftest.$ac_objext conftest$ac_exeext
7600if { (ac_try="$ac_link"
7601case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604esac
7605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_link") 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7614 { (case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_try") 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest$ac_exeext'
7624 { (case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627esac
7628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_try") 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007633 llvm_cv_link_use_r=yes
7634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 echo "$as_me: failed program was:" >&5
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640
Bill Wendlingebcceee2009-04-18 11:20:33 +00007641rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007643 CFLAGS="$oldcflags"
7644 ac_ext=c
7645ac_cpp='$CPP $CPPFLAGS'
7646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649
7650
7651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7653echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007654if test "$llvm_cv_link_use_r" = yes ; then
7655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656cat >>confdefs.h <<\_ACEOF
7657#define HAVE_LINK_R 1
7658_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007659
7660 fi
7661
7662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7664echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7665if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007667else
7668 ac_ext=c
7669ac_cpp='$CPP $CPPFLAGS'
7670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673
7674 oldcflags="$CFLAGS"
7675 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 cat >conftest.$ac_ext <<_ACEOF
7677/* confdefs.h. */
7678_ACEOF
7679cat confdefs.h >>conftest.$ac_ext
7680cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007681/* end confdefs.h. */
7682
7683int
7684main ()
7685{
Dan Gohman39ed6782010-04-25 00:12:20 +00007686
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007687 ;
7688 return 0;
7689}
7690_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691rm -f conftest.$ac_objext conftest$ac_exeext
7692if { (ac_try="$ac_link"
7693case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_link") 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7706 { (case "(($ac_try" in
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7709esac
7710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_try") 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719esac
7720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_try") 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007725 llvm_cv_link_use_export_dynamic=yes
7726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007727 echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732
Bill Wendlingebcceee2009-04-18 11:20:33 +00007733rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007735 CFLAGS="$oldcflags"
7736 ac_ext=c
7737ac_cpp='$CPP $CPPFLAGS'
7738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741
7742
7743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7745echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007746if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748cat >>confdefs.h <<\_ACEOF
7749#define HAVE_LINK_EXPORT_DYNAMIC 1
7750_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007751
7752 fi
7753
7754
Dan Gohmanda612d62010-06-01 14:56:56 +00007755{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7756echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7757if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 ac_ext=c
7761ac_cpp='$CPP $CPPFLAGS'
7762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765
7766 oldcflags="$CFLAGS"
7767
7768 # The following code is from the autoconf manual,
7769 # "11.13: Limitations of Usual Tools".
7770 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7771 # Use mktemp if possible; otherwise fall back on mkdir,
7772 # with $RANDOM to make collisions less likely.
7773 : ${TMPDIR=/tmp}
7774 {
7775 tmp=`
7776 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7777 ` &&
7778 test -n "$tmp" && test -d "$tmp"
7779 } || {
7780 tmp=$TMPDIR/foo$$-$RANDOM
7781 (umask 077 && mkdir "$tmp")
7782 } || exit $?
7783
Dan Gohmanda612d62010-06-01 14:56:56 +00007784 echo "{" > "$tmp/export.map"
7785 echo " global: main;" >> "$tmp/export.map"
7786 echo " local: *;" >> "$tmp/export.map"
7787 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007788
Dan Gohmanda612d62010-06-01 14:56:56 +00007789 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007790 cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796
7797int
7798main ()
7799{
Dan Gohman39ed6782010-04-25 00:12:20 +00007800
Dan Gohman391569c2010-04-16 22:59:06 +00007801 ;
7802 return 0;
7803}
7804_ACEOF
7805rm -f conftest.$ac_objext conftest$ac_exeext
7806if { (ac_try="$ac_link"
7807case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810esac
7811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820 { (case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823esac
7824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_try") 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833esac
7834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_try") 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007839 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007840else
7841 echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
Dan Gohman943005e2010-06-01 16:22:27 +00007844 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007845fi
7846
7847rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007849 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007850 rmdir "$tmp"
7851 CFLAGS="$oldcflags"
7852 ac_ext=c
7853ac_cpp='$CPP $CPPFLAGS'
7854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857
7858
7859fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007860{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7861echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7862if test "$llvm_cv_link_use_version_script" = yes ; then
7863 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007864
7865 fi
7866
7867
Reid Spencera773bd52006-08-04 18:18:08 +00007868
7869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7871echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7872if test "${ac_cv_c_const+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875 cat >conftest.$ac_ext <<_ACEOF
7876/* confdefs.h. */
7877_ACEOF
7878cat confdefs.h >>conftest.$ac_ext
7879cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007880/* end confdefs.h. */
7881
7882int
7883main ()
7884{
7885/* FIXME: Include the comments suggested by Paul. */
7886#ifndef __cplusplus
7887 /* Ultrix mips cc rejects this. */
7888 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007890 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891 char const *const *ccp;
7892 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007893 /* NEC SVR4.0.2 mips cc rejects this. */
7894 struct point {int x, y;};
7895 static struct point const zero = {0,0};
7896 /* AIX XL C 1.02.0.0 rejects this.
7897 It does not let you subtract one const X* pointer from another in
7898 an arm of an if-expression whose if-part is not a constant
7899 expression */
7900 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007902 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 ++ccp;
7904 p = (char**) ccp;
7905 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007906 { /* SCO 3.2v4 cc rejects this. */
7907 char *t;
7908 char const *s = 0 ? (char *) 0 : (char const *) 0;
7909
7910 *t++ = 0;
7911 if (s) return 0;
7912 }
7913 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7914 int x[] = {25, 17};
7915 const int *foo = &x[0];
7916 ++foo;
7917 }
7918 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7919 typedef const int *iptr;
7920 iptr p = 0;
7921 ++p;
7922 }
7923 { /* AIX XL C 1.02.0.0 rejects this saying
7924 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7925 struct s { int j; const int *ap[3]; };
7926 struct s *b; b->j = 5;
7927 }
7928 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7929 const int foo = 10;
7930 if (!foo) return 0;
7931 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007933#endif
7934
7935 ;
7936 return 0;
7937}
7938_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007939rm -f conftest.$ac_objext
7940if { (ac_try="$ac_compile"
7941case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944esac
7945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957esac
7958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_try") 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967esac
7968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_try") 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007973 ac_cv_c_const=yes
7974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975 echo "$as_me: failed program was:" >&5
7976sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00007979fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980
Reid Spencera773bd52006-08-04 18:18:08 +00007981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7984echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007985if test $ac_cv_c_const = no; then
7986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987cat >>confdefs.h <<\_ACEOF
7988#define const
7989_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007990
7991fi
7992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993
7994
7995
7996
7997
Reid Spencer2bc7bd52004-11-29 12:29:58 +00007998ac_header_dirent=no
7999for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8001{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8002echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008011/* end confdefs.h. */
8012#include <sys/types.h>
8013#include <$ac_hdr>
8014
8015int
8016main ()
8017{
8018if ((DIR *) 0)
8019return 0;
8020 ;
8021 return 0;
8022}
8023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008024rm -f conftest.$ac_objext
8025if { (ac_try="$ac_compile"
8026case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029esac
8030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008058 eval "$as_ac_Header=yes"
8059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065
Reid Spencera773bd52006-08-04 18:18:08 +00008066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008068ac_res=`eval echo '${'$as_ac_Header'}'`
8069 { echo "$as_me:$LINENO: result: $ac_res" >&5
8070echo "${ECHO_T}$ac_res" >&6; }
8071if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008072 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008074_ACEOF
8075
8076ac_header_dirent=$ac_hdr; break
8077fi
8078
8079done
8080# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8081if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8083echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8084if test "${ac_cv_search_opendir+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008086else
8087 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008093/* end confdefs.h. */
8094
Reid Spencera773bd52006-08-04 18:18:08 +00008095/* Override any GCC internal prototype to avoid an error.
8096 Use char because int might match the return type of a GCC
8097 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008098#ifdef __cplusplus
8099extern "C"
8100#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008101char opendir ();
8102int
8103main ()
8104{
Reid Spencera773bd52006-08-04 18:18:08 +00008105return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008106 ;
8107 return 0;
8108}
8109_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008110for ac_lib in '' dir; do
8111 if test -z "$ac_lib"; then
8112 ac_res="none required"
8113 else
8114 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008116 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 rm -f conftest.$ac_objext conftest$ac_exeext
8118if { (ac_try="$ac_link"
8119case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122esac
8123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_link") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_try") 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008151 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152else
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158
Bill Wendlingebcceee2009-04-18 11:20:33 +00008159rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160 conftest$ac_exeext
8161 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008162 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008163fi
John Criswell7a73b802003-06-30 21:59:07 +00008164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165if test "${ac_cv_search_opendir+set}" = set; then
8166 :
Reid Spencera773bd52006-08-04 18:18:08 +00008167else
8168 ac_cv_search_opendir=no
8169fi
8170rm conftest.$ac_ext
8171LIBS=$ac_func_search_save_LIBS
8172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008173{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8174echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008175ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008178
Reid Spencera773bd52006-08-04 18:18:08 +00008179fi
8180
8181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8183echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8184if test "${ac_cv_search_opendir+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008186else
8187 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008193/* end confdefs.h. */
8194
8195/* Override any GCC internal prototype to avoid an error.
8196 Use char because int might match the return type of a GCC
8197 builtin and then its argument prototype would still apply. */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201char opendir ();
8202int
8203main ()
8204{
8205return opendir ();
8206 ;
8207 return 0;
8208}
8209_ACEOF
8210for ac_lib in '' x; do
8211 if test -z "$ac_lib"; then
8212 ac_res="none required"
8213 else
8214 ac_res=-l$ac_lib
8215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8216 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217 rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (ac_try="$ac_link"
8219case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_link") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_try") 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008251 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252else
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256
Reid Spencera773bd52006-08-04 18:18:08 +00008257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258
Bill Wendlingebcceee2009-04-18 11:20:33 +00008259rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260 conftest$ac_exeext
8261 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008262 break
8263fi
8264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265if test "${ac_cv_search_opendir+set}" = set; then
8266 :
Reid Spencera773bd52006-08-04 18:18:08 +00008267else
8268 ac_cv_search_opendir=no
8269fi
8270rm conftest.$ac_ext
8271LIBS=$ac_func_search_save_LIBS
8272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8274echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008275ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8278
8279fi
8280
8281fi
John Criswell7a73b802003-06-30 21:59:07 +00008282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008283
John Criswell7a73b802003-06-30 21:59:07 +00008284for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285do
8286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292fi
8293ac_res=`eval echo '${'$as_ac_Header'}'`
8294 { echo "$as_me:$LINENO: result: $ac_res" >&5
8295echo "${ECHO_T}$ac_res" >&6; }
8296else
8297 # Is the header compilable?
8298{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306$ac_includes_default
8307#include <$ac_header>
8308_ACEOF
8309rm -f conftest.$ac_objext
8310if { (ac_try="$ac_compile"
8311case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_header_compiler=yes
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 ac_header_compiler=no
8349fi
8350
8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8353echo "${ECHO_T}$ac_header_compiler" >&6; }
8354
8355# Is the header present?
8356{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8358cat >conftest.$ac_ext <<_ACEOF
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364#include <$ac_header>
8365_ACEOF
8366if { (ac_try="$ac_cpp conftest.$ac_ext"
8367case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } >/dev/null; then
8379 if test -s conftest.err; then
8380 ac_cpp_err=$ac_c_preproc_warn_flag
8381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8382 else
8383 ac_cpp_err=
8384 fi
8385else
8386 ac_cpp_err=yes
8387fi
8388if test -z "$ac_cpp_err"; then
8389 ac_header_preproc=yes
8390else
8391 echo "$as_me: failed program was:" >&5
8392sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ac_header_preproc=no
8395fi
8396
8397rm -f conftest.err conftest.$ac_ext
8398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399echo "${ECHO_T}$ac_header_preproc" >&6; }
8400
8401# So? What about this header?
8402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8403 yes:no: )
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8408 ac_header_preproc=yes
8409 ;;
8410 no:yes:* )
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8423 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008424## ------------------------------------ ##
8425## Report this to http://llvm.org/bugs/ ##
8426## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427_ASBOX
8428 ) | sed "s/^/$as_me: WARNING: /" >&2
8429 ;;
8430esac
8431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435else
8436 eval "$as_ac_Header=\$ac_header_preproc"
8437fi
8438ac_res=`eval echo '${'$as_ac_Header'}'`
8439 { echo "$as_me:$LINENO: result: $ac_res" >&5
8440echo "${ECHO_T}$ac_res" >&6; }
8441
8442fi
8443if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008444 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008446_ACEOF
8447
8448fi
8449
8450done
8451
Reid Spencera773bd52006-08-04 18:18:08 +00008452# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008453if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008454 enableval=$enable_ltdl_install;
8455fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008456
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458
8459
8460if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008461 INSTALL_LTDL_TRUE=
8462 INSTALL_LTDL_FALSE='#'
8463else
8464 INSTALL_LTDL_TRUE='#'
8465 INSTALL_LTDL_FALSE=
8466fi
8467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468
8469
8470if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008471 CONVENIENCE_LTDL_TRUE=
8472 CONVENIENCE_LTDL_FALSE='#'
8473else
8474 CONVENIENCE_LTDL_TRUE='#'
8475 CONVENIENCE_LTDL_FALSE=
8476fi
8477
8478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8480echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008481library_names_spec=
8482libname_spec='lib$name'
8483soname_spec=
8484shrext_cmds=".so"
8485postinstall_cmds=
8486postuninstall_cmds=
8487finish_cmds=
8488finish_eval=
8489shlibpath_var=
8490shlibpath_overrides_runpath=unknown
8491version_type=none
8492dynamic_linker="$host_os ld.so"
8493sys_lib_dlsearch_path_spec="/lib /usr/lib"
8494if test "$GCC" = yes; then
8495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8497 # if the path contains ";" then we assume it to be the separator
8498 # otherwise default to the standard path separator (i.e. ":") - it is
8499 # assumed that no part of a normal pathname contains ";" but that should
8500 # okay in the real world where ";" in dirpaths is itself problematic.
8501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8502 else
8503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8504 fi
8505else
8506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8507fi
8508need_lib_prefix=unknown
8509hardcode_into_libs=no
8510
8511# when you set need_version to no, make sure it does not cause -set_version
8512# flags to be left without arguments
8513need_version=unknown
8514
8515case $host_os in
8516aix3*)
8517 version_type=linux
8518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8519 shlibpath_var=LIBPATH
8520
8521 # AIX 3 has no versioning support, so we append a major version to the name.
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 ;;
8524
8525aix4* | aix5*)
8526 version_type=linux
8527 need_lib_prefix=no
8528 need_version=no
8529 hardcode_into_libs=yes
8530 if test "$host_cpu" = ia64; then
8531 # AIX 5 supports IA64
8532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 else
8535 # With GCC up to 2.95.x, collect2 would create an import file
8536 # for dependence libraries. The import file would start with
8537 # the line `#! .'. This would cause the generated library to
8538 # depend on `.', always an invalid library. This was fixed in
8539 # development snapshots of GCC prior to 3.0.
8540 case $host_os in
8541 aix4 | aix4.[01] | aix4.[01].*)
8542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8543 echo ' yes '
8544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8545 :
8546 else
8547 can_build_shared=no
8548 fi
8549 ;;
8550 esac
8551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8552 # soname into executable. Probably we can add versioning support to
8553 # collect2, so additional links can be useful in future.
8554 if test "$aix_use_runtimelinking" = yes; then
8555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8556 # instead of lib<name>.a to let people know that these are not
8557 # typical AIX shared libraries.
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559 else
8560 # We preserve .a as extension for shared libraries through AIX4.2
8561 # and later when we are not doing run time linking.
8562 library_names_spec='${libname}${release}.a $libname.a'
8563 soname_spec='${libname}${release}${shared_ext}$major'
8564 fi
8565 shlibpath_var=LIBPATH
8566 fi
8567 ;;
8568
8569amigaos*)
8570 library_names_spec='$libname.ixlibrary $libname.a'
8571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8572 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'
8573 ;;
8574
8575beos*)
8576 library_names_spec='${libname}${shared_ext}'
8577 dynamic_linker="$host_os ld.so"
8578 shlibpath_var=LIBRARY_PATH
8579 ;;
8580
8581bsdi[45]*)
8582 version_type=linux
8583 need_version=no
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585 soname_spec='${libname}${release}${shared_ext}$major'
8586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8587 shlibpath_var=LD_LIBRARY_PATH
8588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8590 # the default ld.so.conf also contains /usr/contrib/lib and
8591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8592 # libtool to hard-code these into programs
8593 ;;
8594
8595cygwin* | mingw* | pw32*)
8596 version_type=windows
8597 shrext_cmds=".dll"
8598 need_version=no
8599 need_lib_prefix=no
8600
8601 case $GCC,$host_os in
8602 yes,cygwin* | yes,mingw* | yes,pw32*)
8603 library_names_spec='$libname.dll.a'
8604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8605 postinstall_cmds='base_file=`basename \${file}`~
8606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8607 dldir=$destdir/`dirname \$dlpath`~
8608 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008609 $install_prog $dir/$dlname \$dldir/$dlname~
8610 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8612 dlpath=$dir/\$dldll~
8613 $rm \$dlpath'
8614 shlibpath_overrides_runpath=yes
8615
8616 case $host_os in
8617 cygwin*)
8618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8621 ;;
8622 mingw*)
8623 # MinGW DLLs use traditional 'lib' prefix
8624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8627 # It is most probably a Windows format PATH printed by
8628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8629 # path with ; separators, and with drive letters. We can handle the
8630 # drive letters (cygwin fileutils understands them), so leave them,
8631 # especially as we might pass files found there to a mingw objdump,
8632 # which wouldn't understand a cygwinified path. Ahh.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634 else
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8636 fi
8637 ;;
8638 pw32*)
8639 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008640 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 +00008641 ;;
8642 esac
8643 ;;
8644
8645 *)
8646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8647 ;;
8648 esac
8649 dynamic_linker='Win32 ld.exe'
8650 # FIXME: first we should search . and the directory the executable is in
8651 shlibpath_var=PATH
8652 ;;
8653
8654darwin* | rhapsody*)
8655 dynamic_linker="$host_os dyld"
8656 version_type=darwin
8657 need_lib_prefix=no
8658 need_version=no
8659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8660 soname_spec='${libname}${release}${major}$shared_ext'
8661 shlibpath_overrides_runpath=yes
8662 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008663 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8665 if test "$GCC" = yes; then
8666 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"`
8667 else
8668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8669 fi
8670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8671 ;;
8672
8673dgux*)
8674 version_type=linux
8675 need_lib_prefix=no
8676 need_version=no
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 shlibpath_var=LD_LIBRARY_PATH
8680 ;;
8681
Eric Christopher360fa9a2011-10-26 00:42:12 +00008682freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008683 dynamic_linker=no
8684 ;;
8685
8686kfreebsd*-gnu)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 shlibpath_overrides_runpath=no
8694 hardcode_into_libs=yes
8695 dynamic_linker='GNU ld.so'
8696 ;;
8697
Reid Spencera773bd52006-08-04 18:18:08 +00008698freebsd* | dragonfly*)
8699 # DragonFly does not have aout. When/if they implement a new
8700 # versioning mechanism, adjust this.
8701 if test -x /usr/bin/objformat; then
8702 objformat=`/usr/bin/objformat`
8703 else
8704 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008705 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008706 *) objformat=elf ;;
8707 esac
8708 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008709 version_type=freebsd-$objformat
8710 case $version_type in
8711 freebsd-elf*)
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8713 need_version=no
8714 need_lib_prefix=no
8715 ;;
8716 freebsd-*)
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8718 need_version=yes
8719 ;;
8720 esac
8721 shlibpath_var=LD_LIBRARY_PATH
8722 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008723 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008724 shlibpath_overrides_runpath=yes
8725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008726 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008727 shlibpath_overrides_runpath=yes
8728 hardcode_into_libs=yes
8729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008732 shlibpath_overrides_runpath=no
8733 hardcode_into_libs=yes
8734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008735 freebsd*) # from 4.6 on
8736 shlibpath_overrides_runpath=yes
8737 hardcode_into_libs=yes
8738 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008739 esac
8740 ;;
8741
8742gnu*)
8743 version_type=linux
8744 need_lib_prefix=no
8745 need_version=no
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 hardcode_into_libs=yes
8750 ;;
8751
8752hpux9* | hpux10* | hpux11*)
8753 # Give a soname corresponding to the major version so that dld.sl refuses to
8754 # link against other versions.
8755 version_type=sunos
8756 need_lib_prefix=no
8757 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008758 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008759 ia64*)
8760 shrext_cmds='.so'
8761 hardcode_into_libs=yes
8762 dynamic_linker="$host_os dld.so"
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 if test "X$HPUX_IA64_MODE" = X32; then
8768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8769 else
8770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8771 fi
8772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8773 ;;
8774 hppa*64*)
8775 shrext_cmds='.sl'
8776 hardcode_into_libs=yes
8777 dynamic_linker="$host_os dld.sl"
8778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8784 ;;
8785 *)
8786 shrext_cmds='.sl'
8787 dynamic_linker="$host_os dld.sl"
8788 shlibpath_var=SHLIB_PATH
8789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 ;;
8793 esac
8794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8795 postinstall_cmds='chmod 555 $lib'
8796 ;;
8797
Reid Spencera773bd52006-08-04 18:18:08 +00008798interix3*)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8805 shlibpath_var=LD_LIBRARY_PATH
8806 shlibpath_overrides_runpath=no
8807 hardcode_into_libs=yes
8808 ;;
8809
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008810irix5* | irix6* | nonstopux*)
8811 case $host_os in
8812 nonstopux*) version_type=nonstopux ;;
8813 *)
8814 if test "$lt_cv_prog_gnu_ld" = yes; then
8815 version_type=linux
8816 else
8817 version_type=irix
8818 fi ;;
8819 esac
8820 need_lib_prefix=no
8821 need_version=no
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8824 case $host_os in
8825 irix5* | nonstopux*)
8826 libsuff= shlibsuff=
8827 ;;
8828 *)
8829 case $LD in # libtool.m4 will add one of these switches to LD
8830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8831 libsuff= shlibsuff= libmagic=32-bit;;
8832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8833 libsuff=32 shlibsuff=N32 libmagic=N32;;
8834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8836 *) libsuff= shlibsuff= libmagic=never-match;;
8837 esac
8838 ;;
8839 esac
8840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8841 shlibpath_overrides_runpath=no
8842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8844 hardcode_into_libs=yes
8845 ;;
8846
8847# No shared lib support for Linux oldld, aout, or coff.
8848linux*oldld* | linux*aout* | linux*coff*)
8849 dynamic_linker=no
8850 ;;
8851
8852# This must be Linux ELF.
8853linux*)
8854 version_type=linux
8855 need_lib_prefix=no
8856 need_version=no
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 # This implies no fast_install, which is unacceptable.
8863 # Some rework will be needed to allow for fast_install
8864 # before this can be enabled.
8865 hardcode_into_libs=yes
8866
8867 # Append ld.so.conf contents to the search path
8868 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008869 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 +00008870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8871 fi
8872
8873 # We used to test for /lib/ld.so.1 and disable shared libraries on
8874 # powerpc, because MkLinux only supported shared libraries with the
8875 # GNU dynamic linker. Since this was broken with cross compilers,
8876 # most powerpc-linux boxes support dynamic linking these days and
8877 # people can always --disable-shared, the test was removed, and we
8878 # assume the GNU/Linux dynamic linker is in use.
8879 dynamic_linker='GNU/Linux ld.so'
8880 ;;
8881
8882knetbsd*-gnu)
8883 version_type=linux
8884 need_lib_prefix=no
8885 need_version=no
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=no
8890 hardcode_into_libs=yes
8891 dynamic_linker='GNU ld.so'
8892 ;;
8893
8894netbsd*)
8895 version_type=sunos
8896 need_lib_prefix=no
8897 need_version=no
8898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8901 dynamic_linker='NetBSD (a.out) ld.so'
8902 else
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 dynamic_linker='NetBSD ld.elf_so'
8906 fi
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8910 ;;
8911
8912newsos6)
8913 version_type=linux
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 ;;
8918
8919nto-qnx*)
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=yes
8927 ;;
8928
8929openbsd*)
8930 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008931 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008932 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8934 case $host_os in
8935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8936 *) need_version=no ;;
8937 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8942 case $host_os in
8943 openbsd2.[89] | openbsd2.[89].*)
8944 shlibpath_overrides_runpath=no
8945 ;;
8946 *)
8947 shlibpath_overrides_runpath=yes
8948 ;;
8949 esac
8950 else
8951 shlibpath_overrides_runpath=yes
8952 fi
8953 ;;
8954
8955os2*)
8956 libname_spec='$name'
8957 shrext_cmds=".dll"
8958 need_lib_prefix=no
8959 library_names_spec='$libname${shared_ext} $libname.a'
8960 dynamic_linker='OS/2 ld.exe'
8961 shlibpath_var=LIBPATH
8962 ;;
8963
8964osf3* | osf4* | osf5*)
8965 version_type=osf
8966 need_lib_prefix=no
8967 need_version=no
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8973 ;;
8974
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975solaris*)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 # ldd complains unless libraries are executable
8985 postinstall_cmds='chmod +x $lib'
8986 ;;
8987
8988sunos4*)
8989 version_type=sunos
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8994 if test "$with_gnu_ld" = yes; then
8995 need_lib_prefix=no
8996 fi
8997 need_version=yes
8998 ;;
8999
Reid Spencera773bd52006-08-04 18:18:08 +00009000sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001 version_type=linux
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 case $host_vendor in
9006 sni)
9007 shlibpath_overrides_runpath=no
9008 need_lib_prefix=no
9009 export_dynamic_flag_spec='${wl}-Blargedynsym'
9010 runpath_var=LD_RUN_PATH
9011 ;;
9012 siemens)
9013 need_lib_prefix=no
9014 ;;
9015 motorola)
9016 need_lib_prefix=no
9017 need_version=no
9018 shlibpath_overrides_runpath=no
9019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9020 ;;
9021 esac
9022 ;;
9023
9024sysv4*MP*)
9025 if test -d /usr/nec ;then
9026 version_type=linux
9027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9028 soname_spec='$libname${shared_ext}.$major'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 fi
9031 ;;
9032
Reid Spencera773bd52006-08-04 18:18:08 +00009033sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9034 version_type=freebsd-elf
9035 need_lib_prefix=no
9036 need_version=no
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 hardcode_into_libs=yes
9041 if test "$with_gnu_ld" = yes; then
9042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9043 shlibpath_overrides_runpath=no
9044 else
9045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9046 shlibpath_overrides_runpath=yes
9047 case $host_os in
9048 sco3.2v5*)
9049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9050 ;;
9051 esac
9052 fi
9053 sys_lib_dlsearch_path_spec='/usr/lib'
9054 ;;
9055
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009056uts4*)
9057 version_type=linux
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 ;;
9062
9063*)
9064 dynamic_linker=no
9065 ;;
9066esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009067{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9068echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009069test "$dynamic_linker" = no && can_build_shared=no
9070
Reid Spencera773bd52006-08-04 18:18:08 +00009071variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9072if test "$GCC" = yes; then
9073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9074fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009075
Reid Spencera773bd52006-08-04 18:18:08 +00009076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009077{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9078echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9079if test "${libltdl_cv_shlibext+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009081else
9082
9083module=yes
9084eval libltdl_cv_shlibext=$shrext_cmds
9085
9086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9088echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009089if test -n "$libltdl_cv_shlibext"; then
9090
9091cat >>confdefs.h <<_ACEOF
9092#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9093_ACEOF
9094
9095fi
9096
9097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009098{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9099echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9100if test "${libltdl_cv_shlibpath_var+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102else
9103 libltdl_cv_shlibpath_var="$shlibpath_var"
9104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9106echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107if test -n "$libltdl_cv_shlibpath_var"; then
9108
9109cat >>confdefs.h <<_ACEOF
9110#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9111_ACEOF
9112
9113fi
9114
9115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009116{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9117echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9118if test "${libltdl_cv_sys_search_path+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009120else
9121 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009123{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9124echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009125if test -n "$libltdl_cv_sys_search_path"; then
9126 sys_search_path=
9127 for dir in $libltdl_cv_sys_search_path; do
9128 if test -z "$sys_search_path"; then
9129 sys_search_path="$dir"
9130 else
9131 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9132 fi
9133 done
9134
9135cat >>confdefs.h <<_ACEOF
9136#define LTDL_SYSSEARCHPATH "$sys_search_path"
9137_ACEOF
9138
9139fi
9140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009141{ echo "$as_me:$LINENO: checking for objdir" >&5
9142echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9143if test "${libltdl_cv_objdir+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009145else
9146 libltdl_cv_objdir="$objdir"
9147 if test -n "$objdir"; then
9148 :
9149 else
9150 rm -f .libs 2>/dev/null
9151 mkdir .libs 2>/dev/null
9152 if test -d .libs; then
9153 libltdl_cv_objdir=.libs
9154 else
9155 # MS-DOS does not allow filenames that begin with a dot.
9156 libltdl_cv_objdir=_libs
9157 fi
9158 rmdir .libs 2>/dev/null
9159 fi
9160
9161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009162{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9163echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164
9165cat >>confdefs.h <<_ACEOF
9166#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9167_ACEOF
9168
9169
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009170
9171
9172
9173
9174# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009175{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9176echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9177if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009179else
9180
9181# These are sane defaults that work on at least a few old systems.
9182# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9183
9184# Character class describing NM global symbol codes.
9185symcode='[BCDEGRST]'
9186
9187# Regexp to match symbols that can be accessed directly from C.
9188sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9189
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190# Transform an extracted symbol line into a proper C declaration
9191lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9192
9193# Transform an extracted symbol line into symbol name and symbol address
9194lt_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'"
9195
9196# Define system-specific variables.
9197case $host_os in
9198aix*)
9199 symcode='[BCDT]'
9200 ;;
9201cygwin* | mingw* | pw32*)
9202 symcode='[ABCDGISTW]'
9203 ;;
9204hpux*) # Its linker distinguishes data from code symbols
9205 if test "$host_cpu" = ia64; then
9206 symcode='[ABCDEGRST]'
9207 fi
9208 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9209 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'"
9210 ;;
9211linux*)
9212 if test "$host_cpu" = ia64; then
9213 symcode='[ABCDGIRSTW]'
9214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9215 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'"
9216 fi
9217 ;;
9218irix* | nonstopux*)
9219 symcode='[BCDEGRST]'
9220 ;;
9221osf*)
9222 symcode='[BCDEGQRST]'
9223 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009224solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225 symcode='[BDRT]'
9226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009227sco3.2v5*)
9228 symcode='[DT]'
9229 ;;
9230sysv4.2uw2*)
9231 symcode='[DT]'
9232 ;;
9233sysv5* | sco5v6* | unixware* | OpenUNIX*)
9234 symcode='[ABDT]'
9235 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009236sysv4)
9237 symcode='[DFNSTU]'
9238 ;;
9239esac
9240
9241# Handle CRLF in mingw tool chain
9242opt_cr=
9243case $build_os in
9244mingw*)
9245 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9246 ;;
9247esac
9248
9249# If we're using GNU nm, then use its standard symbol codes.
9250case `$NM -V 2>&1` in
9251*GNU* | *'with BFD'*)
9252 symcode='[ABCDGIRSTW]' ;;
9253esac
9254
9255# Try without a prefix undercore, then with it.
9256for ac_symprfx in "" "_"; do
9257
Reid Spencera773bd52006-08-04 18:18:08 +00009258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9259 symxfrm="\\1 $ac_symprfx\\2 \\2"
9260
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009262 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 +00009263
9264 # Check to see that the pipe works correctly.
9265 pipe_works=no
9266
9267 rm -f conftest*
9268 cat > conftest.$ac_ext <<EOF
9269#ifdef __cplusplus
9270extern "C" {
9271#endif
9272char nm_test_var;
9273void nm_test_func(){}
9274#ifdef __cplusplus
9275}
9276#endif
9277int main(){nm_test_var='a';nm_test_func();return(0);}
9278EOF
9279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009281 (eval $ac_compile) 2>&5
9282 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285 # Now try to grab the symbols.
9286 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009287 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 +00009288 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9289 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292 # Try sorting and uniquifying the output.
9293 if sort "$nlist" | uniq > "$nlist"T; then
9294 mv -f "$nlist"T "$nlist"
9295 else
9296 rm -f "$nlist"T
9297 fi
9298
9299 # Make sure that we snagged all the symbols we need.
9300 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9301 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9302 cat <<EOF > conftest.$ac_ext
9303#ifdef __cplusplus
9304extern "C" {
9305#endif
9306
9307EOF
9308 # Now generate the symbol file.
9309 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9310
9311 cat <<EOF >> conftest.$ac_ext
9312#if defined (__STDC__) && __STDC__
9313# define lt_ptr_t void *
9314#else
9315# define lt_ptr_t char *
9316# define const
9317#endif
9318
9319/* The mapping between symbol names and symbols. */
9320const struct {
9321 const char *name;
9322 lt_ptr_t address;
9323}
9324lt_preloaded_symbols[] =
9325{
9326EOF
9327 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9328 cat <<\EOF >> conftest.$ac_ext
9329 {0, (lt_ptr_t) 0}
9330};
9331
9332#ifdef __cplusplus
9333}
9334#endif
9335EOF
9336 # Now try linking the two files.
9337 mv conftest.$ac_objext conftstm.$ac_objext
9338 lt_save_LIBS="$LIBS"
9339 lt_save_CFLAGS="$CFLAGS"
9340 LIBS="conftstm.$ac_objext"
9341 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343 (eval $ac_link) 2>&5
9344 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347 pipe_works=yes
9348 fi
9349 LIBS="$lt_save_LIBS"
9350 CFLAGS="$lt_save_CFLAGS"
9351 else
9352 echo "cannot find nm_test_func in $nlist" >&5
9353 fi
9354 else
9355 echo "cannot find nm_test_var in $nlist" >&5
9356 fi
9357 else
9358 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9359 fi
9360 else
9361 echo "$progname: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 fi
9364 rm -f conftest* conftst*
9365
9366 # Do not use the global_symbol_pipe unless it works.
9367 if test "$pipe_works" = yes; then
9368 break
9369 else
9370 lt_cv_sys_global_symbol_pipe=
9371 fi
9372done
9373
9374fi
9375
9376if test -z "$lt_cv_sys_global_symbol_pipe"; then
9377 lt_cv_sys_global_symbol_to_cdecl=
9378fi
9379if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380 { echo "$as_me:$LINENO: result: failed" >&5
9381echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009383 { echo "$as_me:$LINENO: result: ok" >&5
9384echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385fi
9386
9387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009388{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9389echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9390if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009392else
9393 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9394 libltdl_cv_preloaded_symbols=yes
9395 else
9396 libltdl_cv_preloaded_symbols=no
9397 fi
9398
9399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009400{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9401echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009402if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404cat >>confdefs.h <<\_ACEOF
9405#define HAVE_PRELOADED_SYMBOLS 1
9406_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407
9408fi
9409
9410LIBADD_DL=
9411
9412ac_ext=c
9413ac_cpp='$CPP $CPPFLAGS'
9414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416ac_compiler_gnu=$ac_cv_c_compiler_gnu
9417
9418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009419{ echo "$as_me:$LINENO: checking for shl_load" >&5
9420echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9421if test "${ac_cv_func_shl_load+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423else
9424 cat >conftest.$ac_ext <<_ACEOF
9425/* confdefs.h. */
9426_ACEOF
9427cat confdefs.h >>conftest.$ac_ext
9428cat >>conftest.$ac_ext <<_ACEOF
9429/* end confdefs.h. */
9430/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9432#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009434/* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char shl_load (); below.
9436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437 <limits.h> exists even on freestanding compilers. */
9438
9439#ifdef __STDC__
9440# include <limits.h>
9441#else
9442# include <assert.h>
9443#endif
9444
9445#undef shl_load
9446
9447/* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9450#ifdef __cplusplus
9451extern "C"
9452#endif
9453char shl_load ();
9454/* The GNU C library defines this for functions which it implements
9455 to always fail with ENOSYS. Some functions are actually named
9456 something starting with __ and the normal name is an alias. */
9457#if defined __stub_shl_load || defined __stub___shl_load
9458choke me
9459#endif
9460
9461int
9462main ()
9463{
9464return shl_load ();
9465 ;
9466 return 0;
9467}
9468_ACEOF
9469rm -f conftest.$ac_objext conftest$ac_exeext
9470if { (ac_try="$ac_link"
9471case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474esac
9475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_link") 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497esac
9498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_func_shl_load=yes
9504else
9505 echo "$as_me: failed program was:" >&5
9506sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 ac_cv_func_shl_load=no
9509fi
9510
9511rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513fi
9514{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9515echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9516if test $ac_cv_func_shl_load = yes; then
9517
9518cat >>confdefs.h <<\_ACEOF
9519#define HAVE_SHL_LOAD 1
9520_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521
9522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009523 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9524echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9525if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527else
9528 ac_check_lib_save_LIBS=$LIBS
9529LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009530cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009535/* end confdefs.h. */
9536
Reid Spencera773bd52006-08-04 18:18:08 +00009537/* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540#ifdef __cplusplus
9541extern "C"
9542#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009543char shl_load ();
9544int
9545main ()
9546{
Reid Spencera773bd52006-08-04 18:18:08 +00009547return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548 ;
9549 return 0;
9550}
9551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009552rm -f conftest.$ac_objext conftest$ac_exeext
9553if { (ac_try="$ac_link"
9554case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557esac
9558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570esac
9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586 ac_cv_lib_dld_shl_load=yes
9587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009588 echo "$as_me: failed program was:" >&5
9589sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009593
Bill Wendlingebcceee2009-04-18 11:20:33 +00009594rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596LIBS=$ac_check_lib_save_LIBS
9597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009598{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9599echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9600if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602cat >>confdefs.h <<\_ACEOF
9603#define HAVE_SHL_LOAD 1
9604_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605
9606 LIBADD_DL="$LIBADD_DL -ldld"
9607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009608 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9609echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9610if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612else
9613 ac_check_lib_save_LIBS=$LIBS
9614LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009615cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009620/* end confdefs.h. */
9621
Reid Spencera773bd52006-08-04 18:18:08 +00009622/* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625#ifdef __cplusplus
9626extern "C"
9627#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628char dlopen ();
9629int
9630main ()
9631{
Reid Spencera773bd52006-08-04 18:18:08 +00009632return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633 ;
9634 return 0;
9635}
9636_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009637rm -f conftest.$ac_objext conftest$ac_exeext
9638if { (ac_try="$ac_link"
9639case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655esac
9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_try") 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009671 ac_cv_lib_dl_dlopen=yes
9672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009673 echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009678
Bill Wendlingebcceee2009-04-18 11:20:33 +00009679rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009681LIBS=$ac_check_lib_save_LIBS
9682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009683{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9684echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9685if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009687cat >>confdefs.h <<\_ACEOF
9688#define HAVE_LIBDL 1
9689_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690
9691 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009693 cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698/* end confdefs.h. */
9699#if HAVE_DLFCN_H
9700# include <dlfcn.h>
9701#endif
9702
9703int
9704main ()
9705{
9706dlopen(0, 0);
9707 ;
9708 return 0;
9709}
9710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739esac
9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009746cat >>confdefs.h <<\_ACEOF
9747#define HAVE_LIBDL 1
9748_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749 libltdl_cv_func_dlopen="yes"
9750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009751 echo "$as_me: failed program was:" >&5
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9755echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9756if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758else
9759 ac_check_lib_save_LIBS=$LIBS
9760LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761cat >conftest.$ac_ext <<_ACEOF
9762/* confdefs.h. */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766/* end confdefs.h. */
9767
Reid Spencera773bd52006-08-04 18:18:08 +00009768/* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771#ifdef __cplusplus
9772extern "C"
9773#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774char dlopen ();
9775int
9776main ()
9777{
Reid Spencera773bd52006-08-04 18:18:08 +00009778return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779 ;
9780 return 0;
9781}
9782_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009783rm -f conftest.$ac_objext conftest$ac_exeext
9784if { (ac_try="$ac_link"
9785case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788esac
9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest$ac_exeext'
9808 { (case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_try") 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817 ac_cv_lib_svld_dlopen=yes
9818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009819 echo "$as_me: failed program was:" >&5
9820sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009824
Bill Wendlingebcceee2009-04-18 11:20:33 +00009825rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009826 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827LIBS=$ac_check_lib_save_LIBS
9828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009829{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9830echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9831if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009833cat >>confdefs.h <<\_ACEOF
9834#define HAVE_LIBDL 1
9835_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836
9837 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9840echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9841if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843else
9844 ac_check_lib_save_LIBS=$LIBS
9845LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h. */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851/* end confdefs.h. */
9852
Reid Spencera773bd52006-08-04 18:18:08 +00009853/* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856#ifdef __cplusplus
9857extern "C"
9858#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859char dld_link ();
9860int
9861main ()
9862{
Reid Spencera773bd52006-08-04 18:18:08 +00009863return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864 ;
9865 return 0;
9866}
9867_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009868rm -f conftest.$ac_objext conftest$ac_exeext
9869if { (ac_try="$ac_link"
9870case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
9887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902 ac_cv_lib_dld_dld_link=yes
9903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009909
Bill Wendlingebcceee2009-04-18 11:20:33 +00009910rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009911 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912LIBS=$ac_check_lib_save_LIBS
9913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9915echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9916if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009918cat >>confdefs.h <<\_ACEOF
9919#define HAVE_DLD 1
9920_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921
9922 LIBADD_DL="$LIBADD_DL -ldld"
9923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009924 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9925echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9926if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928else
9929 cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
9935/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939/* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char _dyld_func_lookup (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009944#ifdef __STDC__
9945# include <limits.h>
9946#else
9947# include <assert.h>
9948#endif
9949
9950#undef _dyld_func_lookup
9951
9952/* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9955#ifdef __cplusplus
9956extern "C"
9957#endif
9958char _dyld_func_lookup ();
9959/* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9963choke me
9964#endif
9965
9966int
9967main ()
9968{
9969return _dyld_func_lookup ();
9970 ;
9971 return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext conftest$ac_exeext
9975if { (ac_try="$ac_link"
9976case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002esac
10003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_func__dyld_func_lookup=yes
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010014fi
Reid Spencera773bd52006-08-04 18:18:08 +000010015
Bill Wendlingebcceee2009-04-18 11:20:33 +000010016rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010017 conftest$ac_exeext conftest.$ac_ext
10018fi
10019{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10020echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10021if test $ac_cv_func__dyld_func_lookup = yes; then
10022
10023cat >>confdefs.h <<\_ACEOF
10024#define HAVE_DYLD 1
10025_ACEOF
10026
10027fi
10028
10029
10030fi
10031
10032
10033fi
10034
10035
10036fi
10037
10038rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040
10041fi
10042
10043
10044fi
10045
10046
10047fi
10048
10049
10050if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10051then
10052 lt_save_LIBS="$LIBS"
10053 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054
10055for ac_func in dlerror
10056do
10057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10058{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10060if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063 cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h. */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h. */
10069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10071#define $ac_func innocuous_$ac_func
10072
10073/* System header to define __stub macros and hopefully few prototypes,
10074 which can conflict with char $ac_func (); below.
10075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076 <limits.h> exists even on freestanding compilers. */
10077
10078#ifdef __STDC__
10079# include <limits.h>
10080#else
10081# include <assert.h>
10082#endif
10083
10084#undef $ac_func
10085
10086/* Override any GCC internal prototype to avoid an error.
10087 Use char because int might match the return type of a GCC
10088 builtin and then its argument prototype would still apply. */
10089#ifdef __cplusplus
10090extern "C"
10091#endif
10092char $ac_func ();
10093/* The GNU C library defines this for functions which it implements
10094 to always fail with ENOSYS. Some functions are actually named
10095 something starting with __ and the normal name is an alias. */
10096#if defined __stub_$ac_func || defined __stub___$ac_func
10097choke me
10098#endif
10099
10100int
10101main ()
10102{
10103return $ac_func ();
10104 ;
10105 return 0;
10106}
10107_ACEOF
10108rm -f conftest.$ac_objext conftest$ac_exeext
10109if { (ac_try="$ac_link"
10110case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_link") 2>conftest.er1
10116 ac_status=$?
10117 grep -v '^ *+' conftest.er1 >conftest.err
10118 rm -f conftest.er1
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123 { (case "(($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_try") 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 eval "$as_ac_var=yes"
10143else
10144 echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 eval "$as_ac_var=no"
10148fi
10149
10150rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10152fi
10153ac_res=`eval echo '${'$as_ac_var'}'`
10154 { echo "$as_me:$LINENO: result: $ac_res" >&5
10155echo "${ECHO_T}$ac_res" >&6; }
10156if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159_ACEOF
10160
10161fi
10162done
10163
10164 LIBS="$lt_save_LIBS"
10165fi
10166ac_ext=c
10167ac_cpp='$CPP $CPPFLAGS'
10168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171
10172
10173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010174{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10175echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10176if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178else
10179 ac_cv_sys_symbol_underscore=no
10180 cat > conftest.$ac_ext <<EOF
10181void nm_test_func(){}
10182int main(){nm_test_func;return 0;}
10183EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185 (eval $ac_compile) 2>&5
10186 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189 # Now try to grab the symbols.
10190 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010191 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 +000010192 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10193 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 # See whether the symbols have a leading underscore.
10197 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10198 ac_cv_sys_symbol_underscore=yes
10199 else
10200 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10201 :
10202 else
10203 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10204 fi
10205 fi
10206 else
10207 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10208 fi
10209 else
10210 echo "configure: failed program was:" >&5
10211 cat conftest.c >&5
10212 fi
10213 rm -rf conftest*
10214
10215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010216{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10217echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218
10219
10220if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10221 if test x"$libltdl_cv_func_dlopen" = xyes ||
10222 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010223 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10224echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10225if test "${libltdl_cv_need_uscore+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227else
10228 libltdl_cv_need_uscore=unknown
10229 save_LIBS="$LIBS"
10230 LIBS="$LIBS $LIBADD_DL"
10231 if test "$cross_compiling" = yes; then :
10232 libltdl_cv_need_uscore=cross
10233else
10234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10235 lt_status=$lt_dlunknown
10236 cat > conftest.$ac_ext <<EOF
Eric Christopher46e6bcf2012-08-03 19:47:19 +000010237#line 10237 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238#include "confdefs.h"
10239
10240#if HAVE_DLFCN_H
10241#include <dlfcn.h>
10242#endif
10243
10244#include <stdio.h>
10245
10246#ifdef RTLD_GLOBAL
10247# define LT_DLGLOBAL RTLD_GLOBAL
10248#else
10249# ifdef DL_GLOBAL
10250# define LT_DLGLOBAL DL_GLOBAL
10251# else
10252# define LT_DLGLOBAL 0
10253# endif
10254#endif
10255
10256/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10257 find out it does not work in some platform. */
10258#ifndef LT_DLLAZY_OR_NOW
10259# ifdef RTLD_LAZY
10260# define LT_DLLAZY_OR_NOW RTLD_LAZY
10261# else
10262# ifdef DL_LAZY
10263# define LT_DLLAZY_OR_NOW DL_LAZY
10264# else
10265# ifdef RTLD_NOW
10266# define LT_DLLAZY_OR_NOW RTLD_NOW
10267# else
10268# ifdef DL_NOW
10269# define LT_DLLAZY_OR_NOW DL_NOW
10270# else
10271# define LT_DLLAZY_OR_NOW 0
10272# endif
10273# endif
10274# endif
10275# endif
10276#endif
10277
10278#ifdef __cplusplus
10279extern "C" void exit (int);
10280#endif
10281
10282void fnord() { int i=42;}
10283int main ()
10284{
10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286 int status = $lt_dlunknown;
10287
10288 if (self)
10289 {
10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292 /* dlclose (self); */
10293 }
Reid Spencera773bd52006-08-04 18:18:08 +000010294 else
10295 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296
10297 exit (status);
10298}
10299EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301 (eval $ac_link) 2>&5
10302 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010305 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 lt_status=$?
10307 case x$lt_status in
10308 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10309 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010310 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311 esac
10312 else :
10313 # compilation failed
10314
10315 fi
10316fi
10317rm -fr conftest*
10318
10319 LIBS="$save_LIBS"
10320
10321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010322{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10323echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324 fi
10325fi
10326
10327if test x"$libltdl_cv_need_uscore" = xyes; then
10328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010329cat >>confdefs.h <<\_ACEOF
10330#define NEED_USCORE 1
10331_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332
10333fi
10334
10335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010336{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10337echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10338if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340else
10341 # PORTME does your system automatically load deplibs for dlopen?
10342 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10343 # For now, we just catch OSes we know something about -- in the
10344 # future, we'll try test this programmatically.
10345 libltdl_cv_sys_dlopen_deplibs=unknown
10346 case "$host_os" in
10347 aix3*|aix4.1.*|aix4.2.*)
10348 # Unknown whether this is true for these versions of AIX, but
10349 # we want this `case' here to explicitly catch those versions.
10350 libltdl_cv_sys_dlopen_deplibs=unknown
10351 ;;
10352 aix[45]*)
10353 libltdl_cv_sys_dlopen_deplibs=yes
10354 ;;
10355 darwin*)
10356 # Assuming the user has installed a libdl from somewhere, this is true
10357 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10358 libltdl_cv_sys_dlopen_deplibs=yes
10359 ;;
10360 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10361 # GNU and its variants, using gnu ld.so (Glibc)
10362 libltdl_cv_sys_dlopen_deplibs=yes
10363 ;;
10364 hpux10*|hpux11*)
10365 libltdl_cv_sys_dlopen_deplibs=yes
10366 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010367 interix*)
10368 libltdl_cv_sys_dlopen_deplibs=yes
10369 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370 irix[12345]*|irix6.[01]*)
10371 # Catch all versions of IRIX before 6.2, and indicate that we don't
10372 # know how it worked for any of those versions.
10373 libltdl_cv_sys_dlopen_deplibs=unknown
10374 ;;
10375 irix*)
10376 # The case above catches anything before 6.2, and it's known that
10377 # at 6.2 and later dlopen does load deplibs.
10378 libltdl_cv_sys_dlopen_deplibs=yes
10379 ;;
10380 netbsd*)
10381 libltdl_cv_sys_dlopen_deplibs=yes
10382 ;;
10383 openbsd*)
10384 libltdl_cv_sys_dlopen_deplibs=yes
10385 ;;
10386 osf[1234]*)
10387 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10388 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010389 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390 libltdl_cv_sys_dlopen_deplibs=no
10391 ;;
10392 osf5.0|osf5.0a|osf5.1)
10393 # dlopen *does* load deplibs and with the right loader patch applied
10394 # it even uses RPATH in a shared library to search for shared objects
10395 # that the library depends on, but there's no easy way to know if that
10396 # patch is installed. Since this is the case, all we can really
10397 # say is unknown -- it depends on the patch being installed. If
10398 # it is, this changes to `yes'. Without it, it would be `no'.
10399 libltdl_cv_sys_dlopen_deplibs=unknown
10400 ;;
10401 osf*)
10402 # the two cases above should catch all versions of osf <= 5.1. Read
10403 # the comments above for what we know about them.
10404 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10405 # is used to find them so we can finally say `yes'.
10406 libltdl_cv_sys_dlopen_deplibs=yes
10407 ;;
10408 solaris*)
10409 libltdl_cv_sys_dlopen_deplibs=yes
10410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412 libltdl_cv_sys_dlopen_deplibs=yes
10413 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 esac
10415
10416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010417{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10418echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421cat >>confdefs.h <<\_ACEOF
10422#define LTDL_DLOPEN_DEPLIBS 1
10423_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424
10425fi
10426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010427
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429do
10430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436fi
10437ac_res=`eval echo '${'$as_ac_Header'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439echo "${ECHO_T}$ac_res" >&6; }
10440else
10441 # Is the header compilable?
10442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10444cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
10450$ac_includes_default
10451#include <$ac_header>
10452_ACEOF
10453rm -f conftest.$ac_objext
10454if { (ac_try="$ac_compile"
10455case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458esac
10459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_compile") 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10468 { (case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
10472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_try") 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10481esac
10482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_try") 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_header_compiler=yes
10488else
10489 echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 ac_header_compiler=no
10493fi
10494
10495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497echo "${ECHO_T}$ac_header_compiler" >&6; }
10498
10499# Is the header present?
10500{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508#include <$ac_header>
10509_ACEOF
10510if { (ac_try="$ac_cpp conftest.$ac_ext"
10511case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } >/dev/null; then
10523 if test -s conftest.err; then
10524 ac_cpp_err=$ac_c_preproc_warn_flag
10525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10526 else
10527 ac_cpp_err=
10528 fi
10529else
10530 ac_cpp_err=yes
10531fi
10532if test -z "$ac_cpp_err"; then
10533 ac_header_preproc=yes
10534else
10535 echo "$as_me: failed program was:" >&5
10536sed 's/^/| /' conftest.$ac_ext >&5
10537
10538 ac_header_preproc=no
10539fi
10540
10541rm -f conftest.err conftest.$ac_ext
10542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10543echo "${ECHO_T}$ac_header_preproc" >&6; }
10544
10545# So? What about this header?
10546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10547 yes:no: )
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10552 ac_header_preproc=yes
10553 ;;
10554 no:yes:* )
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10567 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010568## ------------------------------------ ##
10569## Report this to http://llvm.org/bugs/ ##
10570## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571_ASBOX
10572 ) | sed "s/^/$as_me: WARNING: /" >&2
10573 ;;
10574esac
10575{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 eval "$as_ac_Header=\$ac_header_preproc"
10581fi
10582ac_res=`eval echo '${'$as_ac_Header'}'`
10583 { echo "$as_me:$LINENO: result: $ac_res" >&5
10584echo "${ECHO_T}$ac_res" >&6; }
10585
10586fi
10587if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590_ACEOF
10591
10592fi
10593
10594done
10595
10596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010597{ echo "$as_me:$LINENO: checking for error_t" >&5
10598echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10599if test "${ac_cv_type_error_t+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601else
10602 cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609# include <argz.h>
10610#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010611
10612typedef error_t ac__type_new_;
10613int
10614main ()
10615{
10616if ((ac__type_new_ *) 0)
10617 return 0;
10618if (sizeof (ac__type_new_))
10619 return 0;
10620 ;
10621 return 0;
10622}
10623_ACEOF
10624rm -f conftest.$ac_objext
10625if { (ac_try="$ac_compile"
10626case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_type_error_t=yes
10659else
10660 echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_cv_type_error_t=no
10664fi
10665
10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667fi
10668{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10669echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10670if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671
10672cat >>confdefs.h <<_ACEOF
10673#define HAVE_ERROR_T 1
10674_ACEOF
10675
10676
10677else
10678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010679cat >>confdefs.h <<\_ACEOF
10680#define error_t int
10681_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682
10683fi
10684
10685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010686
10687
10688
10689
10690
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010692do
10693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10694{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10696if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698else
10699 cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h. */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h. */
10705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10707#define $ac_func innocuous_$ac_func
10708
10709/* System header to define __stub macros and hopefully few prototypes,
10710 which can conflict with char $ac_func (); below.
10711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10712 <limits.h> exists even on freestanding compilers. */
10713
10714#ifdef __STDC__
10715# include <limits.h>
10716#else
10717# include <assert.h>
10718#endif
10719
10720#undef $ac_func
10721
10722/* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725#ifdef __cplusplus
10726extern "C"
10727#endif
10728char $ac_func ();
10729/* The GNU C library defines this for functions which it implements
10730 to always fail with ENOSYS. Some functions are actually named
10731 something starting with __ and the normal name is an alias. */
10732#if defined __stub_$ac_func || defined __stub___$ac_func
10733choke me
10734#endif
10735
10736int
10737main ()
10738{
10739return $ac_func ();
10740 ;
10741 return 0;
10742}
10743_ACEOF
10744rm -f conftest.$ac_objext conftest$ac_exeext
10745if { (ac_try="$ac_link"
10746case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762esac
10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772esac
10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 eval "$as_ac_var=yes"
10779else
10780 echo "$as_me: failed program was:" >&5
10781sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 eval "$as_ac_var=no"
10784fi
10785
10786rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788fi
10789ac_res=`eval echo '${'$as_ac_var'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791echo "${ECHO_T}$ac_res" >&6; }
10792if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795_ACEOF
10796
10797fi
10798done
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010819
10820
10821
10822
10823
10824
10825
10826
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10828 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010829do
10830as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836fi
10837ac_res=`eval echo '${'$as_ac_Header'}'`
10838 { echo "$as_me:$LINENO: result: $ac_res" >&5
10839echo "${ECHO_T}$ac_res" >&6; }
10840else
10841 # Is the header compilable?
10842{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10844cat >conftest.$ac_ext <<_ACEOF
10845/* confdefs.h. */
10846_ACEOF
10847cat confdefs.h >>conftest.$ac_ext
10848cat >>conftest.$ac_ext <<_ACEOF
10849/* end confdefs.h. */
10850$ac_includes_default
10851#include <$ac_header>
10852_ACEOF
10853rm -f conftest.$ac_objext
10854if { (ac_try="$ac_compile"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest.$ac_objext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_header_compiler=yes
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_header_compiler=no
10893fi
10894
10895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897echo "${ECHO_T}$ac_header_compiler" >&6; }
10898
10899# Is the header present?
10900{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10902cat >conftest.$ac_ext <<_ACEOF
10903/* confdefs.h. */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h. */
10908#include <$ac_header>
10909_ACEOF
10910if { (ac_try="$ac_cpp conftest.$ac_ext"
10911case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev/null; then
10923 if test -s conftest.err; then
10924 ac_cpp_err=$ac_c_preproc_warn_flag
10925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10926 else
10927 ac_cpp_err=
10928 fi
10929else
10930 ac_cpp_err=yes
10931fi
10932if test -z "$ac_cpp_err"; then
10933 ac_header_preproc=yes
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_header_preproc=no
10939fi
10940
10941rm -f conftest.err conftest.$ac_ext
10942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10943echo "${ECHO_T}$ac_header_preproc" >&6; }
10944
10945# So? What about this header?
10946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10947 yes:no: )
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10952 ac_header_preproc=yes
10953 ;;
10954 no:yes:* )
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10967 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010968## ------------------------------------ ##
10969## Report this to http://llvm.org/bugs/ ##
10970## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971_ASBOX
10972 ) | sed "s/^/$as_me: WARNING: /" >&2
10973 ;;
10974esac
10975{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979else
10980 eval "$as_ac_Header=\$ac_header_preproc"
10981fi
10982ac_res=`eval echo '${'$as_ac_Header'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984echo "${ECHO_T}$ac_res" >&6; }
10985
10986fi
10987if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990_ACEOF
10991
10992fi
10993
10994done
10995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010996
10997
10998
10999
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011001do
11002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008fi
11009ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011echo "${ECHO_T}$ac_res" >&6; }
11012else
11013 # Is the header compilable?
11014{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016cat >conftest.$ac_ext <<_ACEOF
11017/* confdefs.h. */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h. */
11022$ac_includes_default
11023#include <$ac_header>
11024_ACEOF
11025rm -f conftest.$ac_objext
11026if { (ac_try="$ac_compile"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_header_compiler=yes
11060else
11061 echo "$as_me: failed program was:" >&5
11062sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 ac_header_compiler=no
11065fi
11066
11067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069echo "${ECHO_T}$ac_header_compiler" >&6; }
11070
11071# Is the header present?
11072{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080#include <$ac_header>
11081_ACEOF
11082if { (ac_try="$ac_cpp conftest.$ac_ext"
11083case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } >/dev/null; then
11095 if test -s conftest.err; then
11096 ac_cpp_err=$ac_c_preproc_warn_flag
11097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11098 else
11099 ac_cpp_err=
11100 fi
11101else
11102 ac_cpp_err=yes
11103fi
11104if test -z "$ac_cpp_err"; then
11105 ac_header_preproc=yes
11106else
11107 echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ac_header_preproc=no
11111fi
11112
11113rm -f conftest.err conftest.$ac_ext
11114{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115echo "${ECHO_T}$ac_header_preproc" >&6; }
11116
11117# So? What about this header?
11118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11119 yes:no: )
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124 ac_header_preproc=yes
11125 ;;
11126 no:yes:* )
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011140## ------------------------------------ ##
11141## Report this to http://llvm.org/bugs/ ##
11142## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011143_ASBOX
11144 ) | sed "s/^/$as_me: WARNING: /" >&2
11145 ;;
11146esac
11147{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 eval "$as_ac_Header=\$ac_header_preproc"
11153fi
11154ac_res=`eval echo '${'$as_ac_Header'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156echo "${ECHO_T}$ac_res" >&6; }
11157
11158fi
11159if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162_ACEOF
11163
11164fi
11165
11166done
11167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011168
11169
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011171do
11172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178fi
11179ac_res=`eval echo '${'$as_ac_Header'}'`
11180 { echo "$as_me:$LINENO: result: $ac_res" >&5
11181echo "${ECHO_T}$ac_res" >&6; }
11182else
11183 # Is the header compilable?
11184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11186cat >conftest.$ac_ext <<_ACEOF
11187/* confdefs.h. */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h. */
11192$ac_includes_default
11193#include <$ac_header>
11194_ACEOF
11195rm -f conftest.$ac_objext
11196if { (ac_try="$ac_compile"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_compile") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213esac
11214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest.$ac_objext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_header_compiler=yes
11230else
11231 echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ac_header_compiler=no
11235fi
11236
11237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239echo "${ECHO_T}$ac_header_compiler" >&6; }
11240
11241# Is the header present?
11242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11244cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250#include <$ac_header>
11251_ACEOF
11252if { (ac_try="$ac_cpp conftest.$ac_ext"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268 else
11269 ac_cpp_err=
11270 fi
11271else
11272 ac_cpp_err=yes
11273fi
11274if test -z "$ac_cpp_err"; then
11275 ac_header_preproc=yes
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ac_header_preproc=no
11281fi
11282
11283rm -f conftest.err conftest.$ac_ext
11284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285echo "${ECHO_T}$ac_header_preproc" >&6; }
11286
11287# So? What about this header?
11288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289 yes:no: )
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294 ac_header_preproc=yes
11295 ;;
11296 no:yes:* )
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11309 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011310## ------------------------------------ ##
11311## Report this to http://llvm.org/bugs/ ##
11312## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011313_ASBOX
11314 ) | sed "s/^/$as_me: WARNING: /" >&2
11315 ;;
11316esac
11317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321else
11322 eval "$as_ac_Header=\$ac_header_preproc"
11323fi
11324ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326echo "${ECHO_T}$ac_res" >&6; }
11327
11328fi
11329if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332_ACEOF
11333 break
11334fi
11335
11336done
11337
11338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011339
11340
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011342do
11343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11344{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 cat >conftest.$ac_ext <<_ACEOF
11350/* confdefs.h. */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
11354/* end confdefs.h. */
11355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11357#define $ac_func innocuous_$ac_func
11358
11359/* System header to define __stub macros and hopefully few prototypes,
11360 which can conflict with char $ac_func (); below.
11361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362 <limits.h> exists even on freestanding compilers. */
11363
11364#ifdef __STDC__
11365# include <limits.h>
11366#else
11367# include <assert.h>
11368#endif
11369
11370#undef $ac_func
11371
11372/* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11375#ifdef __cplusplus
11376extern "C"
11377#endif
11378char $ac_func ();
11379/* The GNU C library defines this for functions which it implements
11380 to always fail with ENOSYS. Some functions are actually named
11381 something starting with __ and the normal name is an alias. */
11382#if defined __stub_$ac_func || defined __stub___$ac_func
11383choke me
11384#endif
11385
11386int
11387main ()
11388{
11389return $ac_func ();
11390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext conftest$ac_exeext
11395if { (ac_try="$ac_link"
11396case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_link") 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_try") 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 eval "$as_ac_var=yes"
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 eval "$as_ac_var=no"
11434fi
11435
11436rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438fi
11439ac_res=`eval echo '${'$as_ac_var'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441echo "${ECHO_T}$ac_res" >&6; }
11442if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445_ACEOF
11446 break
11447fi
11448done
11449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011450
11451
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011453do
11454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11455{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11457if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h. */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
11465/* end confdefs.h. */
11466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11468#define $ac_func innocuous_$ac_func
11469
11470/* System header to define __stub macros and hopefully few prototypes,
11471 which can conflict with char $ac_func (); below.
11472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11473 <limits.h> exists even on freestanding compilers. */
11474
11475#ifdef __STDC__
11476# include <limits.h>
11477#else
11478# include <assert.h>
11479#endif
11480
11481#undef $ac_func
11482
11483/* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486#ifdef __cplusplus
11487extern "C"
11488#endif
11489char $ac_func ();
11490/* The GNU C library defines this for functions which it implements
11491 to always fail with ENOSYS. Some functions are actually named
11492 something starting with __ and the normal name is an alias. */
11493#if defined __stub_$ac_func || defined __stub___$ac_func
11494choke me
11495#endif
11496
11497int
11498main ()
11499{
11500return $ac_func ();
11501 ;
11502 return 0;
11503}
11504_ACEOF
11505rm -f conftest.$ac_objext conftest$ac_exeext
11506if { (ac_try="$ac_link"
11507case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_link") 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533esac
11534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_try") 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 eval "$as_ac_var=yes"
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 eval "$as_ac_var=no"
11545fi
11546
11547rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549fi
11550ac_res=`eval echo '${'$as_ac_var'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552echo "${ECHO_T}$ac_res" >&6; }
11553if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556_ACEOF
11557 break
11558fi
11559done
11560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561
11562
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011564do
11565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570else
11571 cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
11577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11579#define $ac_func innocuous_$ac_func
11580
11581/* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func (); below.
11583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584 <limits.h> exists even on freestanding compilers. */
11585
11586#ifdef __STDC__
11587# include <limits.h>
11588#else
11589# include <assert.h>
11590#endif
11591
11592#undef $ac_func
11593
11594/* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597#ifdef __cplusplus
11598extern "C"
11599#endif
11600char $ac_func ();
11601/* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604#if defined __stub_$ac_func || defined __stub___$ac_func
11605choke me
11606#endif
11607
11608int
11609main ()
11610{
11611return $ac_func ();
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext conftest$ac_exeext
11617if { (ac_try="$ac_link"
11618case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
11622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_link") 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631 { (case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11634esac
11635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_try") 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest$ac_exeext'
11641 { (case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644esac
11645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_try") 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 eval "$as_ac_var=yes"
11651else
11652 echo "$as_me: failed program was:" >&5
11653sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 eval "$as_ac_var=no"
11656fi
11657
11658rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660fi
11661ac_res=`eval echo '${'$as_ac_var'}'`
11662 { echo "$as_me:$LINENO: result: $ac_res" >&5
11663echo "${ECHO_T}$ac_res" >&6; }
11664if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667_ACEOF
11668 break
11669fi
11670done
11671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011672
11673
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011675do
11676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682 cat >conftest.$ac_ext <<_ACEOF
11683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
11688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11690#define $ac_func innocuous_$ac_func
11691
11692/* System header to define __stub macros and hopefully few prototypes,
11693 which can conflict with char $ac_func (); below.
11694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695 <limits.h> exists even on freestanding compilers. */
11696
11697#ifdef __STDC__
11698# include <limits.h>
11699#else
11700# include <assert.h>
11701#endif
11702
11703#undef $ac_func
11704
11705/* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11708#ifdef __cplusplus
11709extern "C"
11710#endif
11711char $ac_func ();
11712/* The GNU C library defines this for functions which it implements
11713 to always fail with ENOSYS. Some functions are actually named
11714 something starting with __ and the normal name is an alias. */
11715#if defined __stub_$ac_func || defined __stub___$ac_func
11716choke me
11717#endif
11718
11719int
11720main ()
11721{
11722return $ac_func ();
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext conftest$ac_exeext
11728if { (ac_try="$ac_link"
11729case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_link") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11742 { (case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745esac
11746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_try") 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755esac
11756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 eval "$as_ac_var=yes"
11762else
11763 echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766 eval "$as_ac_var=no"
11767fi
11768
11769rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771fi
11772ac_res=`eval echo '${'$as_ac_var'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774echo "${ECHO_T}$ac_res" >&6; }
11775if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778_ACEOF
11779
11780fi
11781done
11782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011783
11784
11785
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011787do
11788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11789{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11791if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793else
11794 cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
11800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11802#define $ac_func innocuous_$ac_func
11803
11804/* System header to define __stub macros and hopefully few prototypes,
11805 which can conflict with char $ac_func (); below.
11806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 <limits.h> exists even on freestanding compilers. */
11808
11809#ifdef __STDC__
11810# include <limits.h>
11811#else
11812# include <assert.h>
11813#endif
11814
11815#undef $ac_func
11816
11817/* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
11820#ifdef __cplusplus
11821extern "C"
11822#endif
11823char $ac_func ();
11824/* The GNU C library defines this for functions which it implements
11825 to always fail with ENOSYS. Some functions are actually named
11826 something starting with __ and the normal name is an alias. */
11827#if defined __stub_$ac_func || defined __stub___$ac_func
11828choke me
11829#endif
11830
11831int
11832main ()
11833{
11834return $ac_func ();
11835 ;
11836 return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext conftest$ac_exeext
11840if { (ac_try="$ac_link"
11841case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_link") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11854 { (case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11857esac
11858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_try") 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; } &&
11863 { ac_try='test -s conftest$ac_exeext'
11864 { (case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867esac
11868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_try") 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 eval "$as_ac_var=yes"
11874else
11875 echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 eval "$as_ac_var=no"
11879fi
11880
11881rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883fi
11884ac_res=`eval echo '${'$as_ac_var'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886echo "${ECHO_T}$ac_res" >&6; }
11887if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890_ACEOF
11891
11892fi
11893done
11894
11895
Douglas Gregor01746742009-05-11 18:05:52 +000011896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011897{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11898echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011899
Reid Spencer86901802004-12-08 23:07:27 +000011900ICC=no
11901IXX=no
11902case $CC in
11903 icc*|icpc*)
11904 ICC=yes
11905 IXX=yes
11906 ;;
11907 *)
11908 ;;
11909esac
11910
Duraid Madina937c60a2006-02-15 07:57:42 +000011911if test "$GCC" != "yes" && test "$ICC" != "yes"
11912then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011913 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11914echo "$as_me: error: gcc|icc required but not found" >&2;}
11915 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011916fi
11917
11918if test "$GXX" != "yes" && test "$IXX" != "yes"
11919then
Eric Christopher73e36da2010-12-08 02:02:14 +000011920 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11921echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011922 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011923fi
11924
Reid Spencer86901802004-12-08 23:07:27 +000011925if test "$GCC" = "yes"
11926then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011927 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011928#if !defined(__GNUC__) || __GNUC__ < 3
11929#error Unsupported GCC version
11930#endif
11931
11932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011933rm -f conftest.$ac_objext
11934if { (ac_try="$ac_compile"
11935case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
11952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961esac
11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 :
Chris Lattner399c7c72008-02-05 19:43:53 +000011968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011969 echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11973echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11974 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000011975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011976
Chris Lattner399c7c72008-02-05 19:43:53 +000011977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011978fi
11979
11980if test -z "$llvm_cv_gnu_make_command"
11981then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011982 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11983echo "$as_me: error: GNU Make required but not found" >&2;}
11984 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011985fi
11986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011987{ echo "$as_me:$LINENO: result: ok" >&5
11988echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011990{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11991echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011992NO_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 +000011993
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011994NO_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 +000011995
Rafael Espindola9993a3a2012-02-28 23:32:06 +000011996COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11997
11998{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11999echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012000
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012002
12003{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12004echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12005if test "${ac_cv_lib_m_sin+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012007else
12008 ac_check_lib_save_LIBS=$LIBS
12009LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012010cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012015/* end confdefs.h. */
12016
Reid Spencera773bd52006-08-04 18:18:08 +000012017/* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012020#ifdef __cplusplus
12021extern "C"
12022#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012023char sin ();
12024int
12025main ()
12026{
Reid Spencera773bd52006-08-04 18:18:08 +000012027return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012028 ;
12029 return 0;
12030}
12031_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012032rm -f conftest.$ac_objext conftest$ac_exeext
12033if { (ac_try="$ac_link"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_link") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050esac
12051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060esac
12061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012066 ac_cv_lib_m_sin=yes
12067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012068 echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012073
Bill Wendlingebcceee2009-04-18 11:20:33 +000012074rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012075 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012076LIBS=$ac_check_lib_save_LIBS
12077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012078{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12079echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12080if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012081 cat >>confdefs.h <<_ACEOF
12082#define HAVE_LIBM 1
12083_ACEOF
12084
12085 LIBS="-lm $LIBS"
12086
12087fi
12088
Jeff Cohen28783c32007-01-12 18:22:38 +000012089if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090
12091{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12092echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12093if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012095else
12096 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012098cat >conftest.$ac_ext <<_ACEOF
12099/* confdefs.h. */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012103/* end confdefs.h. */
12104
Reid Spencer48fdf912006-06-01 19:03:21 +000012105
Reid Spencer484fc8e2006-06-01 16:55:59 +000012106int
12107main ()
12108{
Reid Spencera773bd52006-08-04 18:18:08 +000012109return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012110 ;
12111 return 0;
12112}
12113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012114rm -f conftest.$ac_objext conftest$ac_exeext
12115if { (ac_try="$ac_link"
12116case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_link") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132esac
12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012148 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150 echo "$as_me: failed program was:" >&5
12151sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155
Bill Wendlingebcceee2009-04-18 11:20:33 +000012156rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012158LIBS=$ac_check_lib_save_LIBS
12159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012160{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12161echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12162if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012163 cat >>confdefs.h <<_ACEOF
12164#define HAVE_LIBIMAGEHLP 1
12165_ACEOF
12166
12167 LIBS="-limagehlp $LIBS"
12168
12169fi
12170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012171
12172{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12173echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12174if test "${ac_cv_lib_psapi_main+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012176else
12177 ac_check_lib_save_LIBS=$LIBS
12178LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012179cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012184/* end confdefs.h. */
12185
Reid Spencer48fdf912006-06-01 19:03:21 +000012186
Reid Spencer484fc8e2006-06-01 16:55:59 +000012187int
12188main ()
12189{
Reid Spencera773bd52006-08-04 18:18:08 +000012190return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012191 ;
12192 return 0;
12193}
12194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012195rm -f conftest.$ac_objext conftest$ac_exeext
12196if { (ac_try="$ac_link"
12197case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213esac
12214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223esac
12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012229 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012231 echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012236
Bill Wendlingebcceee2009-04-18 11:20:33 +000012237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012239LIBS=$ac_check_lib_save_LIBS
12240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012241{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12242echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12243if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012244 cat >>confdefs.h <<_ACEOF
12245#define HAVE_LIBPSAPI 1
12246_ACEOF
12247
12248 LIBS="-lpsapi $LIBS"
12249
12250fi
12251
12252fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012254{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12255echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12256if test "${ac_cv_search_dlopen+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012258else
12259 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012260cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012266
Reid Spencera773bd52006-08-04 18:18:08 +000012267/* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012270#ifdef __cplusplus
12271extern "C"
12272#endif
John Criswell7a73b802003-06-30 21:59:07 +000012273char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012274int
12275main ()
12276{
Reid Spencera773bd52006-08-04 18:18:08 +000012277return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012278 ;
12279 return 0;
12280}
12281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012282for ac_lib in '' dl; do
12283 if test -z "$ac_lib"; then
12284 ac_res="none required"
12285 else
12286 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012288 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012289 rm -f conftest.$ac_objext conftest$ac_exeext
12290if { (ac_try="$ac_link"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317esac
12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012323 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
12328
John Criswell7a73b802003-06-30 21:59:07 +000012329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012330
Bill Wendlingebcceee2009-04-18 11:20:33 +000012331rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332 conftest$ac_exeext
12333 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012334 break
John Criswell7a73b802003-06-30 21:59:07 +000012335fi
Reid Spencera773bd52006-08-04 18:18:08 +000012336done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012337if test "${ac_cv_search_dlopen+set}" = set; then
12338 :
Reid Spencera773bd52006-08-04 18:18:08 +000012339else
12340 ac_cv_search_dlopen=no
12341fi
12342rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012343LIBS=$ac_func_search_save_LIBS
12344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012345{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12346echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012347ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012348if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351cat >>confdefs.h <<\_ACEOF
12352#define HAVE_DLOPEN 1
12353_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012354
12355else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012356 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12357echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012358fi
12359
12360
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012361if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012362 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12363echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12364if test "${ac_cv_search_ffi_call+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012366else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012367 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012368cat >conftest.$ac_ext <<_ACEOF
12369/* confdefs.h. */
12370_ACEOF
12371cat confdefs.h >>conftest.$ac_ext
12372cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012373/* end confdefs.h. */
12374
12375/* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378#ifdef __cplusplus
12379extern "C"
12380#endif
12381char ffi_call ();
12382int
12383main ()
12384{
12385return ffi_call ();
12386 ;
12387 return 0;
12388}
12389_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012390for ac_lib in '' ffi; do
12391 if test -z "$ac_lib"; then
12392 ac_res="none required"
12393 else
12394 ac_res=-l$ac_lib
12395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12396 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012397 rm -f conftest.$ac_objext conftest$ac_exeext
12398if { (ac_try="$ac_link"
12399case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_link") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12412 { (case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415esac
12416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_try") 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425esac
12426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_try") 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012431 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432else
12433 echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
12436
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012438
Bill Wendlingebcceee2009-04-18 11:20:33 +000012439rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012440 conftest$ac_exeext
12441 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012442 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012443fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012445if test "${ac_cv_search_ffi_call+set}" = set; then
12446 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012447else
12448 ac_cv_search_ffi_call=no
12449fi
12450rm conftest.$ac_ext
12451LIBS=$ac_func_search_save_LIBS
12452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012453{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12454echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012455ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012456if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012459cat >>confdefs.h <<\_ACEOF
12460#define HAVE_FFI_CALL 1
12461_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012462
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012463else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012464 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12465echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12466 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012467fi
12468
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012469fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12472echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12473if test "${ac_cv_search_mallinfo+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012475else
12476 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012483
Reid Spencera773bd52006-08-04 18:18:08 +000012484/* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012487#ifdef __cplusplus
12488extern "C"
12489#endif
John Criswell7a73b802003-06-30 21:59:07 +000012490char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012491int
12492main ()
12493{
Reid Spencera773bd52006-08-04 18:18:08 +000012494return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012495 ;
12496 return 0;
12497}
12498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012499for ac_lib in '' malloc; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12502 else
12503 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012505 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012506 rm -f conftest.$ac_objext conftest$ac_exeext
12507if { (ac_try="$ac_link"
12508case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12514 ac_status=$?
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -f conftest.er1
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012540 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
John Criswell7a73b802003-06-30 21:59:07 +000012546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012547
Bill Wendlingebcceee2009-04-18 11:20:33 +000012548rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549 conftest$ac_exeext
12550 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012551 break
John Criswell7a73b802003-06-30 21:59:07 +000012552fi
Reid Spencera773bd52006-08-04 18:18:08 +000012553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012554if test "${ac_cv_search_mallinfo+set}" = set; then
12555 :
Reid Spencera773bd52006-08-04 18:18:08 +000012556else
12557 ac_cv_search_mallinfo=no
12558fi
12559rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012560LIBS=$ac_func_search_save_LIBS
12561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12563echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012564ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568cat >>confdefs.h <<\_ACEOF
12569#define HAVE_MALLINFO 1
12570_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012571
12572fi
12573
12574
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012575if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012576
12577{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12578echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12579if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012581else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012582 ac_check_lib_save_LIBS=$LIBS
12583LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012584cat >conftest.$ac_ext <<_ACEOF
12585/* confdefs.h. */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012589/* end confdefs.h. */
12590
Reid Spencera773bd52006-08-04 18:18:08 +000012591/* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012594#ifdef __cplusplus
12595extern "C"
12596#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012597char pthread_mutex_init ();
12598int
12599main ()
12600{
Reid Spencera773bd52006-08-04 18:18:08 +000012601return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012602 ;
12603 return 0;
12604}
12605_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606rm -f conftest.$ac_objext conftest$ac_exeext
12607if { (ac_try="$ac_link"
12608case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012640 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012647
Bill Wendlingebcceee2009-04-18 11:20:33 +000012648rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012650LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012652{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12653echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12654if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012655 cat >>confdefs.h <<_ACEOF
12656#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012657_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012658
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012659 LIBS="-lpthread $LIBS"
12660
Reid Spencer22177fe2005-07-12 15:24:20 +000012661fi
12662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012663 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12664echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12665if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012667else
12668 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012674/* end confdefs.h. */
12675
Reid Spencera773bd52006-08-04 18:18:08 +000012676/* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012679#ifdef __cplusplus
12680extern "C"
12681#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012682char pthread_mutex_lock ();
12683int
12684main ()
12685{
Reid Spencera773bd52006-08-04 18:18:08 +000012686return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012687 ;
12688 return 0;
12689}
12690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012691for ac_lib in '' pthread; do
12692 if test -z "$ac_lib"; then
12693 ac_res="none required"
12694 else
12695 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012697 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012698 rm -f conftest.$ac_objext conftest$ac_exeext
12699if { (ac_try="$ac_link"
12700case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_link") 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716esac
12717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest$ac_exeext'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012732 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012733else
12734 echo "$as_me: failed program was:" >&5
12735sed 's/^/| /' conftest.$ac_ext >&5
12736
12737
Brian Gaeke5f268f72003-12-05 19:29:01 +000012738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012739
Bill Wendlingebcceee2009-04-18 11:20:33 +000012740rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741 conftest$ac_exeext
12742 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012743 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012744fi
Reid Spencera773bd52006-08-04 18:18:08 +000012745done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012746if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12747 :
Reid Spencera773bd52006-08-04 18:18:08 +000012748else
12749 ac_cv_search_pthread_mutex_lock=no
12750fi
12751rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012752LIBS=$ac_func_search_save_LIBS
12753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012754{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12755echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012756ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012757if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012760cat >>confdefs.h <<\_ACEOF
12761#define HAVE_PTHREAD_MUTEX_LOCK 1
12762_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012763
12764fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012766 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12767echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12768if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012770else
12771 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012772cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h. */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012777/* end confdefs.h. */
12778
12779/* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782#ifdef __cplusplus
12783extern "C"
12784#endif
12785char pthread_rwlock_init ();
12786int
12787main ()
12788{
12789return pthread_rwlock_init ();
12790 ;
12791 return 0;
12792}
12793_ACEOF
12794for ac_lib in '' pthread; do
12795 if test -z "$ac_lib"; then
12796 ac_res="none required"
12797 else
12798 ac_res=-l$ac_lib
12799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12800 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012801 rm -f conftest.$ac_objext conftest$ac_exeext
12802if { (ac_try="$ac_link"
12803case "(($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_link") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829esac
12830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012835 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836else
12837 echo "$as_me: failed program was:" >&5
12838sed 's/^/| /' conftest.$ac_ext >&5
12839
12840
Owen Andersonde8aed22009-06-16 18:20:20 +000012841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012842
Owen Andersonde8aed22009-06-16 18:20:20 +000012843rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012844 conftest$ac_exeext
12845 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012846 break
12847fi
12848done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012849if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12850 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012851else
12852 ac_cv_search_pthread_rwlock_init=no
12853fi
12854rm conftest.$ac_ext
12855LIBS=$ac_func_search_save_LIBS
12856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012857{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12858echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012859ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012863cat >>confdefs.h <<\_ACEOF
12864#define HAVE_PTHREAD_RWLOCK_INIT 1
12865_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012866
12867fi
12868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12870echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12871if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012873else
12874 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012875cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012880/* end confdefs.h. */
12881
12882/* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885#ifdef __cplusplus
12886extern "C"
12887#endif
12888char pthread_getspecific ();
12889int
12890main ()
12891{
12892return pthread_getspecific ();
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897for ac_lib in '' pthread; do
12898 if test -z "$ac_lib"; then
12899 ac_res="none required"
12900 else
12901 ac_res=-l$ac_lib
12902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12903 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012904 rm -f conftest.$ac_objext conftest$ac_exeext
12905if { (ac_try="$ac_link"
12906case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012938 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939else
12940 echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
12943
Owen Anderson27fcfe12009-06-25 23:10:26 +000012944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012945
Owen Anderson27fcfe12009-06-25 23:10:26 +000012946rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012947 conftest$ac_exeext
12948 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012949 break
12950fi
12951done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12953 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000012954else
12955 ac_cv_search_pthread_getspecific=no
12956fi
12957rm conftest.$ac_ext
12958LIBS=$ac_func_search_save_LIBS
12959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12961echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000012962ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966cat >>confdefs.h <<\_ACEOF
12967#define HAVE_PTHREAD_GETSPECIFIC 1
12968_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012969
12970fi
12971
Reid Spencer0a262ba2005-08-24 10:07:20 +000012972fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000012973
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012974
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012975# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012976if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012977 withval=$with_udis86;
12978 USE_UDIS86=1
12979
12980 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000012981 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012982 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12983 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984
12985{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12986echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12987if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012989else
12990 ac_check_lib_save_LIBS=$LIBS
12991LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012992cat >conftest.$ac_ext <<_ACEOF
12993/* confdefs.h. */
12994_ACEOF
12995cat confdefs.h >>conftest.$ac_ext
12996cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012997/* end confdefs.h. */
12998
12999/* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002#ifdef __cplusplus
13003extern "C"
13004#endif
13005char ud_init ();
13006int
13007main ()
13008{
13009return ud_init ();
13010 ;
13011 return 0;
13012}
13013_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013014rm -f conftest.$ac_objext conftest$ac_exeext
13015if { (ac_try="$ac_link"
13016case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13019esac
13020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_link") 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13029 { (case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13032esac
13033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_try") 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13042esac
13043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_try") 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013048 ac_cv_lib_udis86_ud_init=yes
13049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050 echo "$as_me: failed program was:" >&5
13051sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013054fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013055
Bill Wendlingebcceee2009-04-18 11:20:33 +000013056rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013057 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013058LIBS=$ac_check_lib_save_LIBS
13059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013060{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13061echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13062if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013063 cat >>confdefs.h <<_ACEOF
13064#define HAVE_LIBUDIS86 1
13065_ACEOF
13066
13067 LIBS="-ludis86 $LIBS"
13068
13069else
13070
13071 echo "Error! You need to have libudis86 around."
13072 exit -1
13073
13074fi
13075
13076
13077else
13078 USE_UDIS86=0
13079
13080fi
13081
13082
13083cat >>confdefs.h <<_ACEOF
13084#define USE_UDIS86 $USE_UDIS86
13085_ACEOF
13086
13087
13088
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013089# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013090if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013091 withval=$with_oprofile;
13092 USE_OPROFILE=1
13093
13094 case "$withval" in
13095 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013096 no) llvm_cv_oppath=
13097 USE_OPROFILE=0
13098 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013099 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013100 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013101 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013102 case $llvm_cv_os_type in
13103 Linux)
13104 if test -n "$llvm_cv_oppath" ; then
13105 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13106 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13108if test "${ac_cv_search_bfd_init+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013110else
13111 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013117/* end confdefs.h. */
13118
13119/* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13122#ifdef __cplusplus
13123extern "C"
13124#endif
13125char bfd_init ();
13126int
13127main ()
13128{
13129return bfd_init ();
13130 ;
13131 return 0;
13132}
13133_ACEOF
13134for ac_lib in '' bfd; do
13135 if test -z "$ac_lib"; then
13136 ac_res="none required"
13137 else
13138 ac_res=-l$ac_lib
13139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13140 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141 rm -f conftest.$ac_objext conftest$ac_exeext
13142if { (ac_try="$ac_link"
13143case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146esac
13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_link") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169esac
13170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013175 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013183rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013184 conftest$ac_exeext
13185 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013186 break
13187fi
13188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013189if test "${ac_cv_search_bfd_init+set}" = set; then
13190 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013191else
13192 ac_cv_search_bfd_init=no
13193fi
13194rm conftest.$ac_ext
13195LIBS=$ac_func_search_save_LIBS
13196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13198echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013199ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13202
13203fi
13204
Eli Bendersky61b18512012-03-13 08:33:15 +000013205 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13207if test "${ac_cv_search_op_open_agent+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013209else
13210 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211cat >conftest.$ac_ext <<_ACEOF
13212/* confdefs.h. */
13213_ACEOF
13214cat confdefs.h >>conftest.$ac_ext
13215cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013216/* end confdefs.h. */
13217
13218/* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13221#ifdef __cplusplus
13222extern "C"
13223#endif
13224char op_open_agent ();
13225int
13226main ()
13227{
13228return op_open_agent ();
13229 ;
13230 return 0;
13231}
13232_ACEOF
13233for ac_lib in '' opagent; do
13234 if test -z "$ac_lib"; then
13235 ac_res="none required"
13236 else
13237 ac_res=-l$ac_lib
13238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13239 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013240 rm -f conftest.$ac_objext conftest$ac_exeext
13241if { (ac_try="$ac_link"
13242case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_link") 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try='test -s conftest$ac_exeext'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013274 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275else
13276 echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
13279
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013282rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283 conftest$ac_exeext
13284 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013285 break
13286fi
13287done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013288if test "${ac_cv_search_op_open_agent+set}" = set; then
13289 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013290else
13291 ac_cv_search_op_open_agent=no
13292fi
13293rm conftest.$ac_ext
13294LIBS=$ac_func_search_save_LIBS
13295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13297echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013298ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013299if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13301
13302else
13303
Eli Bendersky61b18512012-03-13 08:33:15 +000013304 echo "Error! You need to have libopagent around."
13305 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013306
13307fi
13308
Eli Bendersky61b18512012-03-13 08:33:15 +000013309 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013310 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13311echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13312if test "${ac_cv_header_opagent_h+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314fi
13315{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13316echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13317else
13318 # Is the header compilable?
13319{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13320echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13321cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327$ac_includes_default
13328#include <opagent.h>
13329_ACEOF
13330rm -f conftest.$ac_objext
13331if { (ac_try="$ac_compile"
13332case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_compile") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358esac
13359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_header_compiler=yes
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369 ac_header_compiler=no
13370fi
13371
13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13374echo "${ECHO_T}$ac_header_compiler" >&6; }
13375
13376# Is the header present?
13377{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13378echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h. */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
13384/* end confdefs.h. */
13385#include <opagent.h>
13386_ACEOF
13387if { (ac_try="$ac_cpp conftest.$ac_ext"
13388case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } >/dev/null; then
13400 if test -s conftest.err; then
13401 ac_cpp_err=$ac_c_preproc_warn_flag
13402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13403 else
13404 ac_cpp_err=
13405 fi
13406else
13407 ac_cpp_err=yes
13408fi
13409if test -z "$ac_cpp_err"; then
13410 ac_header_preproc=yes
13411else
13412 echo "$as_me: failed program was:" >&5
13413sed 's/^/| /' conftest.$ac_ext >&5
13414
13415 ac_header_preproc=no
13416fi
13417
13418rm -f conftest.err conftest.$ac_ext
13419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420echo "${ECHO_T}$ac_header_preproc" >&6; }
13421
13422# So? What about this header?
13423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13424 yes:no: )
13425 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13426echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13428echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13429 ac_header_preproc=yes
13430 ;;
13431 no:yes:* )
13432 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13433echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13435echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13437echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13439echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13441echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13443echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13444 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013445## ------------------------------------ ##
13446## Report this to http://llvm.org/bugs/ ##
13447## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448_ASBOX
13449 ) | sed "s/^/$as_me: WARNING: /" >&2
13450 ;;
13451esac
13452{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13453echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13454if test "${ac_cv_header_opagent_h+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457 ac_cv_header_opagent_h=$ac_header_preproc
13458fi
13459{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13460echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13461
13462fi
13463if test $ac_cv_header_opagent_h = yes; then
13464 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013465else
13466
Eli Bendersky61b18512012-03-13 08:33:15 +000013467 echo "Error! You need to have opagent.h around."
13468 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013469
13470fi
13471
13472
Eli Bendersky61b18512012-03-13 08:33:15 +000013473 fi ;;
13474 *)
13475 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13476echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13477 { (exit 1); exit 1; }; } ;;
13478 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013479
13480else
13481
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013482 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013483
13484
13485fi
13486
13487
13488cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013489#define LLVM_USE_OPROFILE $USE_OPROFILE
13490_ACEOF
13491
13492
13493
13494# Check whether --with-intel-jitevents was given.
13495if test "${with_intel_jitevents+set}" = set; then
13496 withval=$with_intel_jitevents;
13497 case $llvm_cv_os_type in
13498 Linux|Win32|Cygwin|MingW) ;;
13499 *)
13500 { { echo "$as_me:$LINENO: error:
13501 Intel JIT API support is available on Linux and Windows only.\"" >&5
13502echo "$as_me: error:
13503 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13504 { (exit 1); exit 1; }; } ;;
13505 esac
13506
13507 USE_INTEL_JITEVENTS=1
13508
13509 case "$llvm_cv_target_arch" in
13510 x86) llvm_intel_jitevents_archdir="lib32";;
13511 x86_64) llvm_intel_jitevents_archdir="lib64";;
13512 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13513 exit -1;;
13514 esac
13515 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13516 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13517 case "$withval" in
13518 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13519 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13520 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013521 esac
13522
13523
13524
13525
13526 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013527 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013528
13529 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13530echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13531if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533else
13534 ac_func_search_save_LIBS=$LIBS
13535cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541
13542/* Override any GCC internal prototype to avoid an error.
13543 Use char because int might match the return type of a GCC
13544 builtin and then its argument prototype would still apply. */
13545#ifdef __cplusplus
13546extern "C"
13547#endif
13548char iJIT_IsProfilingActive ();
13549int
13550main ()
13551{
13552return iJIT_IsProfilingActive ();
13553 ;
13554 return 0;
13555}
13556_ACEOF
13557for ac_lib in '' jitprofiling; do
13558 if test -z "$ac_lib"; then
13559 ac_res="none required"
13560 else
13561 ac_res=-l$ac_lib
13562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13563 fi
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565if { (ac_try="$ac_link"
13566case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13569esac
13570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_link") 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13579 { (case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582esac
13583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_try") 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest$ac_exeext'
13589 { (case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_try") 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13599else
13600 echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
13603
13604fi
13605
13606rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext
13608 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13609 break
13610fi
13611done
13612if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13613 :
13614else
13615 ac_cv_search_iJIT_IsProfilingActive=no
13616fi
13617rm conftest.$ac_ext
13618LIBS=$ac_func_search_save_LIBS
13619fi
13620{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13621echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13622ac_res=$ac_cv_search_iJIT_IsProfilingActive
13623if test "$ac_res" != no; then
13624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13625
13626else
13627
13628 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13629 exit -1
13630
13631fi
13632
13633 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13634 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13635echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13636if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13638fi
13639{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13640echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13641else
13642 # Is the header compilable?
13643{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13644echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13645cat >conftest.$ac_ext <<_ACEOF
13646/* confdefs.h. */
13647_ACEOF
13648cat confdefs.h >>conftest.$ac_ext
13649cat >>conftest.$ac_ext <<_ACEOF
13650/* end confdefs.h. */
13651$ac_includes_default
13652#include <jitprofiling.h>
13653_ACEOF
13654rm -f conftest.$ac_objext
13655if { (ac_try="$ac_compile"
13656case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_compile") 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682esac
13683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_header_compiler=yes
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_header_compiler=no
13694fi
13695
13696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698echo "${ECHO_T}$ac_header_compiler" >&6; }
13699
13700# Is the header present?
13701{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13702echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709#include <jitprofiling.h>
13710_ACEOF
13711if { (ac_try="$ac_cpp conftest.$ac_ext"
13712case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } >/dev/null; then
13724 if test -s conftest.err; then
13725 ac_cpp_err=$ac_c_preproc_warn_flag
13726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13727 else
13728 ac_cpp_err=
13729 fi
13730else
13731 ac_cpp_err=yes
13732fi
13733if test -z "$ac_cpp_err"; then
13734 ac_header_preproc=yes
13735else
13736 echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
13739 ac_header_preproc=no
13740fi
13741
13742rm -f conftest.err conftest.$ac_ext
13743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13744echo "${ECHO_T}$ac_header_preproc" >&6; }
13745
13746# So? What about this header?
13747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13748 yes:no: )
13749 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13750echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13752echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13753 ac_header_preproc=yes
13754 ;;
13755 no:yes:* )
13756 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13757echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13759echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13761echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13763echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13765echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13767echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13768 ( cat <<\_ASBOX
13769## ------------------------------------ ##
13770## Report this to http://llvm.org/bugs/ ##
13771## ------------------------------------ ##
13772_ASBOX
13773 ) | sed "s/^/$as_me: WARNING: /" >&2
13774 ;;
13775esac
13776{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13777echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13778if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780else
13781 ac_cv_header_jitprofiling_h=$ac_header_preproc
13782fi
13783{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13784echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13785
13786fi
13787if test $ac_cv_header_jitprofiling_h = yes; then
13788 :
13789else
13790
13791 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13792 exit -1
13793
13794fi
13795
13796
13797
13798
13799else
13800
13801 USE_INTEL_JITEVENTS=0
13802
13803
13804fi
13805
13806
13807cat >>confdefs.h <<_ACEOF
13808#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013809_ACEOF
13810
13811
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013812for ac_prog in xml2-config
13813do
13814 # Extract the first word of "$ac_prog", so it can be a program name with args.
13815set dummy $ac_prog; ac_word=$2
13816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13818if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 if test -n "$XML2CONFIG"; then
13822 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13823else
13824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825for as_dir in $PATH
13826do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13831 ac_cv_prog_XML2CONFIG="$ac_prog"
13832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835done
13836done
13837IFS=$as_save_IFS
13838
13839fi
13840fi
13841XML2CONFIG=$ac_cv_prog_XML2CONFIG
13842if test -n "$XML2CONFIG"; then
13843 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13844echo "${ECHO_T}$XML2CONFIG" >&6; }
13845else
13846 { echo "$as_me:$LINENO: result: no" >&5
13847echo "${ECHO_T}no" >&6; }
13848fi
13849
13850
13851 test -n "$XML2CONFIG" && break
13852done
13853
13854
13855{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13856echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13857if test "x$XML2CONFIG" = "x"; then
13858 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13859echo "${ECHO_T}xml2-config not found" >&6; }
13860else
13861 LIBXML2_INC=`$XML2CONFIG --cflags`
13862 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13863echo "${ECHO_T}$LIBXML2_INC" >&6; }
13864 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13865echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13866if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868else
13869 ac_check_lib_save_LIBS=$LIBS
13870LIBS="-lxml2 $LIBS"
13871cat >conftest.$ac_ext <<_ACEOF
13872/* confdefs.h. */
13873_ACEOF
13874cat confdefs.h >>conftest.$ac_ext
13875cat >>conftest.$ac_ext <<_ACEOF
13876/* end confdefs.h. */
13877
13878/* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13881#ifdef __cplusplus
13882extern "C"
13883#endif
13884char xmlReadFile ();
13885int
13886main ()
13887{
13888return xmlReadFile ();
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext conftest$ac_exeext
13894if { (ac_try="$ac_link"
13895case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911esac
13912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest$ac_exeext'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921esac
13922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_xml2_xmlReadFile=yes
13928else
13929 echo "$as_me: failed program was:" >&5
13930sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_cv_lib_xml2_xmlReadFile=no
13933fi
13934
13935rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937LIBS=$ac_check_lib_save_LIBS
13938fi
13939{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13940echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13941if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13942
13943cat >>confdefs.h <<\_ACEOF
13944#define CLANG_HAVE_LIBXML 1
13945_ACEOF
13946
13947 LIBXML2_LIBS="-lxml2"
13948fi
13949
13950fi
13951
13952
13953
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013955
13956
13957
13958
13959
Reid Spencer59473af2004-12-25 07:31:29 +000013960ac_header_dirent=no
13961for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013962 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13963{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13964echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013973/* end confdefs.h. */
13974#include <sys/types.h>
13975#include <$ac_hdr>
13976
13977int
13978main ()
13979{
13980if ((DIR *) 0)
13981return 0;
13982 ;
13983 return 0;
13984}
13985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986rm -f conftest.$ac_objext
13987if { (ac_try="$ac_compile"
13988case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991esac
13992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_compile") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14001 { (case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004esac
14005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_try") 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014020 eval "$as_ac_Header=yes"
14021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022 echo "$as_me: failed program was:" >&5
14023sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027
Reid Spencera773bd52006-08-04 18:18:08 +000014028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030ac_res=`eval echo '${'$as_ac_Header'}'`
14031 { echo "$as_me:$LINENO: result: $ac_res" >&5
14032echo "${ECHO_T}$ac_res" >&6; }
14033if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014034 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014036_ACEOF
14037
14038ac_header_dirent=$ac_hdr; break
14039fi
14040
14041done
14042# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14043if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014044 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14045echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14046if test "${ac_cv_search_opendir+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014048else
14049 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014050cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014055/* end confdefs.h. */
14056
Reid Spencera773bd52006-08-04 18:18:08 +000014057/* Override any GCC internal prototype to avoid an error.
14058 Use char because int might match the return type of a GCC
14059 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014060#ifdef __cplusplus
14061extern "C"
14062#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014063char opendir ();
14064int
14065main ()
14066{
Reid Spencera773bd52006-08-04 18:18:08 +000014067return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014068 ;
14069 return 0;
14070}
14071_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014072for ac_lib in '' dir; do
14073 if test -z "$ac_lib"; then
14074 ac_res="none required"
14075 else
14076 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014078 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014079 rm -f conftest.$ac_objext conftest$ac_exeext
14080if { (ac_try="$ac_link"
14081case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084esac
14085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_link") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014113 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114else
14115 echo "$as_me: failed program was:" >&5
14116sed 's/^/| /' conftest.$ac_ext >&5
14117
14118
Reid Spencer59473af2004-12-25 07:31:29 +000014119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120
Bill Wendlingebcceee2009-04-18 11:20:33 +000014121rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122 conftest$ac_exeext
14123 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014124 break
Reid Spencer59473af2004-12-25 07:31:29 +000014125fi
Reid Spencera773bd52006-08-04 18:18:08 +000014126done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127if test "${ac_cv_search_opendir+set}" = set; then
14128 :
Reid Spencera773bd52006-08-04 18:18:08 +000014129else
14130 ac_cv_search_opendir=no
14131fi
14132rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014133LIBS=$ac_func_search_save_LIBS
14134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14136echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014137ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014140
14141fi
14142
14143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14145echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14146if test "${ac_cv_search_opendir+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014148else
14149 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014155/* end confdefs.h. */
14156
Reid Spencera773bd52006-08-04 18:18:08 +000014157/* Override any GCC internal prototype to avoid an error.
14158 Use char because int might match the return type of a GCC
14159 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014160#ifdef __cplusplus
14161extern "C"
14162#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014163char opendir ();
14164int
14165main ()
14166{
Reid Spencera773bd52006-08-04 18:18:08 +000014167return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014168 ;
14169 return 0;
14170}
14171_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014172for ac_lib in '' x; do
14173 if test -z "$ac_lib"; then
14174 ac_res="none required"
14175 else
14176 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014178 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179 rm -f conftest.$ac_objext conftest$ac_exeext
14180if { (ac_try="$ac_link"
14181case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_link") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest$ac_exeext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014213 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218
Reid Spencer59473af2004-12-25 07:31:29 +000014219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220
Bill Wendlingebcceee2009-04-18 11:20:33 +000014221rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222 conftest$ac_exeext
14223 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014224 break
Reid Spencer59473af2004-12-25 07:31:29 +000014225fi
Reid Spencera773bd52006-08-04 18:18:08 +000014226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227if test "${ac_cv_search_opendir+set}" = set; then
14228 :
Reid Spencera773bd52006-08-04 18:18:08 +000014229else
14230 ac_cv_search_opendir=no
14231fi
14232rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014233LIBS=$ac_func_search_save_LIBS
14234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14236echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014237ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014240
14241fi
14242
14243fi
14244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14246echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14247if test "${ac_cv_header_mmap_anon+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014249else
14250 ac_ext=c
14251ac_cpp='$CPP $CPPFLAGS'
14252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254ac_compiler_gnu=$ac_cv_c_compiler_gnu
14255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256 cat >conftest.$ac_ext <<_ACEOF
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014261/* end confdefs.h. */
14262#include <sys/mman.h>
14263#include <unistd.h>
14264#include <fcntl.h>
14265int
14266main ()
14267{
14268mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14269 ;
14270 return 0;
14271}
14272_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014273rm -f conftest.$ac_objext
14274if { (ac_try="$ac_compile"
14275case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278esac
14279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14288 { (case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291esac
14292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_try") 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; } &&
14297 { ac_try='test -s conftest.$ac_objext'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014307 ac_cv_header_mmap_anon=yes
14308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014314
Reid Spencera773bd52006-08-04 18:18:08 +000014315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014316 ac_ext=c
14317ac_cpp='$CPP $CPPFLAGS'
14318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320ac_compiler_gnu=$ac_cv_c_compiler_gnu
14321
14322
14323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14325echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014326if test "$ac_cv_header_mmap_anon" = yes; then
14327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328cat >>confdefs.h <<\_ACEOF
14329#define HAVE_MMAP_ANONYMOUS 1
14330_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014331
14332fi
14333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14335echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14336if test "${ac_cv_header_stat_broken+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339 cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h. */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014344/* end confdefs.h. */
14345#include <sys/types.h>
14346#include <sys/stat.h>
14347
Reid Spencera773bd52006-08-04 18:18:08 +000014348#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349# if S_ISBLK (S_IFDIR)
14350You lose.
14351# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014352#endif
14353
Reid Spencera773bd52006-08-04 18:18:08 +000014354#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355# if S_ISBLK (S_IFCHR)
14356You lose.
14357# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014358#endif
14359
Reid Spencera773bd52006-08-04 18:18:08 +000014360#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361# if S_ISLNK (S_IFREG)
14362You lose.
14363# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014364#endif
14365
Reid Spencera773bd52006-08-04 18:18:08 +000014366#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367# if S_ISSOCK (S_IFREG)
14368You lose.
14369# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014370#endif
14371
14372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14374 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014375 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014376else
14377 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379rm -f conftest*
14380
Reid Spencer59473af2004-12-25 07:31:29 +000014381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14383echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014384if test $ac_cv_header_stat_broken = yes; then
14385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386cat >>confdefs.h <<\_ACEOF
14387#define STAT_MACROS_BROKEN 1
14388_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014389
14390fi
14391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14393echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14394if test "${ac_cv_header_sys_wait_h+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397 cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014403#include <sys/types.h>
14404#include <sys/wait.h>
14405#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014406# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014407#endif
14408#ifndef WIFEXITED
14409# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14410#endif
14411
John Criswell7a73b802003-06-30 21:59:07 +000014412int
14413main ()
14414{
14415 int s;
14416 wait (&s);
14417 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14418 ;
14419 return 0;
14420}
14421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422rm -f conftest.$ac_objext
14423if { (ac_try="$ac_compile"
14424case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14427esac
14428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_compile") 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest.$ac_objext'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450esac
14451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014456 ac_cv_header_sys_wait_h=yes
14457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463
Reid Spencera773bd52006-08-04 18:18:08 +000014464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014466{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14467echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014468if test $ac_cv_header_sys_wait_h = yes; then
14469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470cat >>confdefs.h <<\_ACEOF
14471#define HAVE_SYS_WAIT_H 1
14472_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014473
14474fi
14475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14477echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14478if test "${ac_cv_header_time+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014481 cat >conftest.$ac_ext <<_ACEOF
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014486/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014487#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014488#include <sys/time.h>
14489#include <time.h>
14490
14491int
14492main ()
14493{
14494if ((struct tm *) 0)
14495return 0;
14496 ;
14497 return 0;
14498}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500rm -f conftest.$ac_objext
14501if { (ac_try="$ac_compile"
14502case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505esac
14506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14515 { (case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518esac
14519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_try") 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014534 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536 echo "$as_me: failed program was:" >&5
14537sed 's/^/| /' conftest.$ac_ext >&5
14538
14539 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014541
Reid Spencera773bd52006-08-04 18:18:08 +000014542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014544{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14545echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014546if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014548cat >>confdefs.h <<\_ACEOF
14549#define TIME_WITH_SYS_TIME 1
14550_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014551
14552fi
14553
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555
14556
14557
14558
14559
14560
Reid Spencer59473af2004-12-25 07:31:29 +000014561for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014562do
14563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569fi
14570ac_res=`eval echo '${'$as_ac_Header'}'`
14571 { echo "$as_me:$LINENO: result: $ac_res" >&5
14572echo "${ECHO_T}$ac_res" >&6; }
14573else
14574 # Is the header compilable?
14575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14577cat >conftest.$ac_ext <<_ACEOF
14578/* confdefs.h. */
14579_ACEOF
14580cat confdefs.h >>conftest.$ac_ext
14581cat >>conftest.$ac_ext <<_ACEOF
14582/* end confdefs.h. */
14583$ac_includes_default
14584#include <$ac_header>
14585_ACEOF
14586rm -f conftest.$ac_objext
14587if { (ac_try="$ac_compile"
14588case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591esac
14592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14594 ac_status=$?
14595 grep -v '^ *+' conftest.er1 >conftest.err
14596 rm -f conftest.er1
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
14605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_header_compiler=yes
14621else
14622 echo "$as_me: failed program was:" >&5
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_header_compiler=no
14626fi
14627
14628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630echo "${ECHO_T}$ac_header_compiler" >&6; }
14631
14632# Is the header present?
14633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14635cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641#include <$ac_header>
14642_ACEOF
14643if { (ac_try="$ac_cpp conftest.$ac_ext"
14644case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647esac
14648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } >/dev/null; then
14656 if test -s conftest.err; then
14657 ac_cpp_err=$ac_c_preproc_warn_flag
14658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14659 else
14660 ac_cpp_err=
14661 fi
14662else
14663 ac_cpp_err=yes
14664fi
14665if test -z "$ac_cpp_err"; then
14666 ac_header_preproc=yes
14667else
14668 echo "$as_me: failed program was:" >&5
14669sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_header_preproc=no
14672fi
14673
14674rm -f conftest.err conftest.$ac_ext
14675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676echo "${ECHO_T}$ac_header_preproc" >&6; }
14677
14678# So? What about this header?
14679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680 yes:no: )
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
14686 ;;
14687 no:yes:* )
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14700 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014701## ------------------------------------ ##
14702## Report this to http://llvm.org/bugs/ ##
14703## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704_ASBOX
14705 ) | sed "s/^/$as_me: WARNING: /" >&2
14706 ;;
14707esac
14708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712else
14713 eval "$as_ac_Header=\$ac_header_preproc"
14714fi
14715ac_res=`eval echo '${'$as_ac_Header'}'`
14716 { echo "$as_me:$LINENO: result: $ac_res" >&5
14717echo "${ECHO_T}$ac_res" >&6; }
14718
14719fi
14720if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014721 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014723_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014724
14725fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014726
Reid Spencer59473af2004-12-25 07:31:29 +000014727done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014729
14730
14731
14732
14733
14734
Douglas Gregor071d73d2009-05-18 17:21:34 +000014735for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014736do
14737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743fi
14744ac_res=`eval echo '${'$as_ac_Header'}'`
14745 { echo "$as_me:$LINENO: result: $ac_res" >&5
14746echo "${ECHO_T}$ac_res" >&6; }
14747else
14748 # Is the header compilable?
14749{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14751cat >conftest.$ac_ext <<_ACEOF
14752/* confdefs.h. */
14753_ACEOF
14754cat confdefs.h >>conftest.$ac_ext
14755cat >>conftest.$ac_ext <<_ACEOF
14756/* end confdefs.h. */
14757$ac_includes_default
14758#include <$ac_header>
14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (ac_try="$ac_compile"
14762case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14765esac
14766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778esac
14779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest.$ac_objext'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_header_compiler=yes
14795else
14796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 ac_header_compiler=no
14800fi
14801
14802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14804echo "${ECHO_T}$ac_header_compiler" >&6; }
14805
14806# Is the header present?
14807{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14809cat >conftest.$ac_ext <<_ACEOF
14810/* confdefs.h. */
14811_ACEOF
14812cat confdefs.h >>conftest.$ac_ext
14813cat >>conftest.$ac_ext <<_ACEOF
14814/* end confdefs.h. */
14815#include <$ac_header>
14816_ACEOF
14817if { (ac_try="$ac_cpp conftest.$ac_ext"
14818case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
14822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14824 ac_status=$?
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } >/dev/null; then
14830 if test -s conftest.err; then
14831 ac_cpp_err=$ac_c_preproc_warn_flag
14832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14833 else
14834 ac_cpp_err=
14835 fi
14836else
14837 ac_cpp_err=yes
14838fi
14839if test -z "$ac_cpp_err"; then
14840 ac_header_preproc=yes
14841else
14842 echo "$as_me: failed program was:" >&5
14843sed 's/^/| /' conftest.$ac_ext >&5
14844
14845 ac_header_preproc=no
14846fi
14847
14848rm -f conftest.err conftest.$ac_ext
14849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14850echo "${ECHO_T}$ac_header_preproc" >&6; }
14851
14852# So? What about this header?
14853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14854 yes:no: )
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14859 ac_header_preproc=yes
14860 ;;
14861 no:yes:* )
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14874 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014875## ------------------------------------ ##
14876## Report this to http://llvm.org/bugs/ ##
14877## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014878_ASBOX
14879 ) | sed "s/^/$as_me: WARNING: /" >&2
14880 ;;
14881esac
14882{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886else
14887 eval "$as_ac_Header=\$ac_header_preproc"
14888fi
14889ac_res=`eval echo '${'$as_ac_Header'}'`
14890 { echo "$as_me:$LINENO: result: $ac_res" >&5
14891echo "${ECHO_T}$ac_res" >&6; }
14892
14893fi
14894if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014895 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014897_ACEOF
14898
14899fi
14900
14901done
14902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014903
14904
Douglas Gregor071d73d2009-05-18 17:21:34 +000014905for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014906do
14907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913fi
14914ac_res=`eval echo '${'$as_ac_Header'}'`
14915 { echo "$as_me:$LINENO: result: $ac_res" >&5
14916echo "${ECHO_T}$ac_res" >&6; }
14917else
14918 # Is the header compilable?
14919{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14921cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928#include <$ac_header>
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (ac_try="$ac_compile"
14932case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935esac
14936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_compile") 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14945 { (case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948esac
14949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_try") 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_header_compiler=yes
14965else
14966 echo "$as_me: failed program was:" >&5
14967sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_header_compiler=no
14970fi
14971
14972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974echo "${ECHO_T}$ac_header_compiler" >&6; }
14975
14976# Is the header present?
14977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14979cat >conftest.$ac_ext <<_ACEOF
14980/* confdefs.h. */
14981_ACEOF
14982cat confdefs.h >>conftest.$ac_ext
14983cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */
14985#include <$ac_header>
14986_ACEOF
14987if { (ac_try="$ac_cpp conftest.$ac_ext"
14988case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
14992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } >/dev/null; then
15000 if test -s conftest.err; then
15001 ac_cpp_err=$ac_c_preproc_warn_flag
15002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15003 else
15004 ac_cpp_err=
15005 fi
15006else
15007 ac_cpp_err=yes
15008fi
15009if test -z "$ac_cpp_err"; then
15010 ac_header_preproc=yes
15011else
15012 echo "$as_me: failed program was:" >&5
15013sed 's/^/| /' conftest.$ac_ext >&5
15014
15015 ac_header_preproc=no
15016fi
15017
15018rm -f conftest.err conftest.$ac_ext
15019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15020echo "${ECHO_T}$ac_header_preproc" >&6; }
15021
15022# So? What about this header?
15023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15024 yes:no: )
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15029 ac_header_preproc=yes
15030 ;;
15031 no:yes:* )
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15044 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015045## ------------------------------------ ##
15046## Report this to http://llvm.org/bugs/ ##
15047## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015048_ASBOX
15049 ) | sed "s/^/$as_me: WARNING: /" >&2
15050 ;;
15051esac
15052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056else
15057 eval "$as_ac_Header=\$ac_header_preproc"
15058fi
15059ac_res=`eval echo '${'$as_ac_Header'}'`
15060 { echo "$as_me:$LINENO: result: $ac_res" >&5
15061echo "${ECHO_T}$ac_res" >&6; }
15062
15063fi
15064if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015065 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015067_ACEOF
15068
15069fi
15070
15071done
Reid Spencer59473af2004-12-25 07:31:29 +000015072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015073
15074
15075
15076
Daniel Dunbar3e462932011-02-03 02:40:02 +000015077
15078for 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 +000015079do
15080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086fi
15087ac_res=`eval echo '${'$as_ac_Header'}'`
15088 { echo "$as_me:$LINENO: result: $ac_res" >&5
15089echo "${ECHO_T}$ac_res" >&6; }
15090else
15091 # Is the header compilable?
15092{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15094cat >conftest.$ac_ext <<_ACEOF
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
15100$ac_includes_default
15101#include <$ac_header>
15102_ACEOF
15103rm -f conftest.$ac_objext
15104if { (ac_try="$ac_compile"
15105case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_header_compiler=yes
15138else
15139 echo "$as_me: failed program was:" >&5
15140sed 's/^/| /' conftest.$ac_ext >&5
15141
15142 ac_header_compiler=no
15143fi
15144
15145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15147echo "${ECHO_T}$ac_header_compiler" >&6; }
15148
15149# Is the header present?
15150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15152cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158#include <$ac_header>
15159_ACEOF
15160if { (ac_try="$ac_cpp conftest.$ac_ext"
15161case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164esac
15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } >/dev/null; then
15173 if test -s conftest.err; then
15174 ac_cpp_err=$ac_c_preproc_warn_flag
15175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15176 else
15177 ac_cpp_err=
15178 fi
15179else
15180 ac_cpp_err=yes
15181fi
15182if test -z "$ac_cpp_err"; then
15183 ac_header_preproc=yes
15184else
15185 echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188 ac_header_preproc=no
15189fi
15190
15191rm -f conftest.err conftest.$ac_ext
15192{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15193echo "${ECHO_T}$ac_header_preproc" >&6; }
15194
15195# So? What about this header?
15196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15197 yes:no: )
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15202 ac_header_preproc=yes
15203 ;;
15204 no:yes:* )
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15217 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015218## ------------------------------------ ##
15219## Report this to http://llvm.org/bugs/ ##
15220## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015221_ASBOX
15222 ) | sed "s/^/$as_me: WARNING: /" >&2
15223 ;;
15224esac
15225{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else
15230 eval "$as_ac_Header=\$ac_header_preproc"
15231fi
15232ac_res=`eval echo '${'$as_ac_Header'}'`
15233 { echo "$as_me:$LINENO: result: $ac_res" >&5
15234echo "${ECHO_T}$ac_res" >&6; }
15235
15236fi
15237if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015238 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015240_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015241
15242fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015243
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015244done
15245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246
15247
15248
15249
Douglas Gregor01746742009-05-11 18:05:52 +000015250for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015251do
15252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258fi
15259ac_res=`eval echo '${'$as_ac_Header'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261echo "${ECHO_T}$ac_res" >&6; }
15262else
15263 # Is the header compilable?
15264{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15266cat >conftest.$ac_ext <<_ACEOF
15267/* confdefs.h. */
15268_ACEOF
15269cat confdefs.h >>conftest.$ac_ext
15270cat >>conftest.$ac_ext <<_ACEOF
15271/* end confdefs.h. */
15272$ac_includes_default
15273#include <$ac_header>
15274_ACEOF
15275rm -f conftest.$ac_objext
15276if { (ac_try="$ac_compile"
15277case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15280esac
15281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282 (eval "$ac_compile") 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15290 { (case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293esac
15294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_try") 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try='test -s conftest.$ac_objext'
15300 { (case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_try") 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 ac_header_compiler=yes
15310else
15311 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314 ac_header_compiler=no
15315fi
15316
15317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15319echo "${ECHO_T}$ac_header_compiler" >&6; }
15320
15321# Is the header present?
15322{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15324cat >conftest.$ac_ext <<_ACEOF
15325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
15330#include <$ac_header>
15331_ACEOF
15332if { (ac_try="$ac_cpp conftest.$ac_ext"
15333case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } >/dev/null; then
15345 if test -s conftest.err; then
15346 ac_cpp_err=$ac_c_preproc_warn_flag
15347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15348 else
15349 ac_cpp_err=
15350 fi
15351else
15352 ac_cpp_err=yes
15353fi
15354if test -z "$ac_cpp_err"; then
15355 ac_header_preproc=yes
15356else
15357 echo "$as_me: failed program was:" >&5
15358sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ac_header_preproc=no
15361fi
15362
15363rm -f conftest.err conftest.$ac_ext
15364{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15365echo "${ECHO_T}$ac_header_preproc" >&6; }
15366
15367# So? What about this header?
15368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15369 yes:no: )
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15373echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15374 ac_header_preproc=yes
15375 ;;
15376 no:yes:* )
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15380echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15382echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15384echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15386echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15388echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15389 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015390## ------------------------------------ ##
15391## Report this to http://llvm.org/bugs/ ##
15392## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393_ASBOX
15394 ) | sed "s/^/$as_me: WARNING: /" >&2
15395 ;;
15396esac
15397{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else
15402 eval "$as_ac_Header=\$ac_header_preproc"
15403fi
15404ac_res=`eval echo '${'$as_ac_Header'}'`
15405 { echo "$as_me:$LINENO: result: $ac_res" >&5
15406echo "${ECHO_T}$ac_res" >&6; }
15407
15408fi
15409if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015410 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015412_ACEOF
15413
15414fi
15415
15416done
15417
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015418
15419for ac_header in valgrind/valgrind.h
15420do
15421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427fi
15428ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430echo "${ECHO_T}$ac_res" >&6; }
15431else
15432 # Is the header compilable?
15433{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441$ac_includes_default
15442#include <$ac_header>
15443_ACEOF
15444rm -f conftest.$ac_objext
15445if { (ac_try="$ac_compile"
15446case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449esac
15450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462esac
15463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler=yes
15479else
15480 echo "$as_me: failed program was:" >&5
15481sed 's/^/| /' conftest.$ac_ext >&5
15482
15483 ac_header_compiler=no
15484fi
15485
15486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488echo "${ECHO_T}$ac_header_compiler" >&6; }
15489
15490# Is the header present?
15491{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499#include <$ac_header>
15500_ACEOF
15501if { (ac_try="$ac_cpp conftest.$ac_ext"
15502case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null; then
15514 if test -s conftest.err; then
15515 ac_cpp_err=$ac_c_preproc_warn_flag
15516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15517 else
15518 ac_cpp_err=
15519 fi
15520else
15521 ac_cpp_err=yes
15522fi
15523if test -z "$ac_cpp_err"; then
15524 ac_header_preproc=yes
15525else
15526 echo "$as_me: failed program was:" >&5
15527sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_header_preproc=no
15530fi
15531
15532rm -f conftest.err conftest.$ac_ext
15533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534echo "${ECHO_T}$ac_header_preproc" >&6; }
15535
15536# So? What about this header?
15537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15538 yes:no: )
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543 ac_header_preproc=yes
15544 ;;
15545 no:yes:* )
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15558 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015559## ------------------------------------ ##
15560## Report this to http://llvm.org/bugs/ ##
15561## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015562_ASBOX
15563 ) | sed "s/^/$as_me: WARNING: /" >&2
15564 ;;
15565esac
15566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570else
15571 eval "$as_ac_Header=\$ac_header_preproc"
15572fi
15573ac_res=`eval echo '${'$as_ac_Header'}'`
15574 { echo "$as_me:$LINENO: result: $ac_res" >&5
15575echo "${ECHO_T}$ac_res" >&6; }
15576
15577fi
15578if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579 cat >>confdefs.h <<_ACEOF
15580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581_ACEOF
15582
15583fi
15584
15585done
15586
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015587
15588for ac_header in fenv.h
15589do
15590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596fi
15597ac_res=`eval echo '${'$as_ac_Header'}'`
15598 { echo "$as_me:$LINENO: result: $ac_res" >&5
15599echo "${ECHO_T}$ac_res" >&6; }
15600else
15601 # Is the header compilable?
15602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15604cat >conftest.$ac_ext <<_ACEOF
15605/* confdefs.h. */
15606_ACEOF
15607cat confdefs.h >>conftest.$ac_ext
15608cat >>conftest.$ac_ext <<_ACEOF
15609/* end confdefs.h. */
15610$ac_includes_default
15611#include <$ac_header>
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (ac_try="$ac_compile"
15615case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618esac
15619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_compile") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628 { (case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_try") 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; } &&
15637 { ac_try='test -s conftest.$ac_objext'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641esac
15642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_header_compiler=yes
15648else
15649 echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 ac_header_compiler=no
15653fi
15654
15655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15657echo "${ECHO_T}$ac_header_compiler" >&6; }
15658
15659# Is the header present?
15660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15662cat >conftest.$ac_ext <<_ACEOF
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668#include <$ac_header>
15669_ACEOF
15670if { (ac_try="$ac_cpp conftest.$ac_ext"
15671case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674esac
15675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } >/dev/null; then
15683 if test -s conftest.err; then
15684 ac_cpp_err=$ac_c_preproc_warn_flag
15685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15686 else
15687 ac_cpp_err=
15688 fi
15689else
15690 ac_cpp_err=yes
15691fi
15692if test -z "$ac_cpp_err"; then
15693 ac_header_preproc=yes
15694else
15695 echo "$as_me: failed program was:" >&5
15696sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 ac_header_preproc=no
15699fi
15700
15701rm -f conftest.err conftest.$ac_ext
15702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15703echo "${ECHO_T}$ac_header_preproc" >&6; }
15704
15705# So? What about this header?
15706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15707 yes:no: )
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15712 ac_header_preproc=yes
15713 ;;
15714 no:yes:* )
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15727 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015728## ------------------------------------ ##
15729## Report this to http://llvm.org/bugs/ ##
15730## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015731_ASBOX
15732 ) | sed "s/^/$as_me: WARNING: /" >&2
15733 ;;
15734esac
15735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739else
15740 eval "$as_ac_Header=\$ac_header_preproc"
15741fi
15742ac_res=`eval echo '${'$as_ac_Header'}'`
15743 { echo "$as_me:$LINENO: result: $ac_res" >&5
15744echo "${ECHO_T}$ac_res" >&6; }
15745
15746fi
15747if test `eval echo '${'$as_ac_Header'}'` = yes; then
15748 cat >>confdefs.h <<_ACEOF
15749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15750_ACEOF
15751
15752fi
15753
15754done
15755
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015756if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015757
15758for ac_header in pthread.h
15759do
15760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766fi
15767ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769echo "${ECHO_T}$ac_res" >&6; }
15770else
15771 # Is the header compilable?
15772{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15774cat >conftest.$ac_ext <<_ACEOF
15775/* confdefs.h. */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
15780$ac_includes_default
15781#include <$ac_header>
15782_ACEOF
15783rm -f conftest.$ac_objext
15784if { (ac_try="$ac_compile"
15785case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788esac
15789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_compile") 2>conftest.er1
15791 ac_status=$?
15792 grep -v '^ *+' conftest.er1 >conftest.err
15793 rm -f conftest.er1
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } &&
15797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15798 { (case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801esac
15802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_try") 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; } &&
15807 { ac_try='test -s conftest.$ac_objext'
15808 { (case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15811esac
15812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_try") 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_header_compiler=yes
15818else
15819 echo "$as_me: failed program was:" >&5
15820sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ac_header_compiler=no
15823fi
15824
15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15827echo "${ECHO_T}$ac_header_compiler" >&6; }
15828
15829# Is the header present?
15830{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15832cat >conftest.$ac_ext <<_ACEOF
15833/* confdefs.h. */
15834_ACEOF
15835cat confdefs.h >>conftest.$ac_ext
15836cat >>conftest.$ac_ext <<_ACEOF
15837/* end confdefs.h. */
15838#include <$ac_header>
15839_ACEOF
15840if { (ac_try="$ac_cpp conftest.$ac_ext"
15841case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844esac
15845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } >/dev/null; then
15853 if test -s conftest.err; then
15854 ac_cpp_err=$ac_c_preproc_warn_flag
15855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15856 else
15857 ac_cpp_err=
15858 fi
15859else
15860 ac_cpp_err=yes
15861fi
15862if test -z "$ac_cpp_err"; then
15863 ac_header_preproc=yes
15864else
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868 ac_header_preproc=no
15869fi
15870
15871rm -f conftest.err conftest.$ac_ext
15872{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873echo "${ECHO_T}$ac_header_preproc" >&6; }
15874
15875# So? What about this header?
15876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15877 yes:no: )
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15882 ac_header_preproc=yes
15883 ;;
15884 no:yes:* )
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15897 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015898## ------------------------------------ ##
15899## Report this to http://llvm.org/bugs/ ##
15900## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015901_ASBOX
15902 ) | sed "s/^/$as_me: WARNING: /" >&2
15903 ;;
15904esac
15905{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909else
15910 eval "$as_ac_Header=\$ac_header_preproc"
15911fi
15912ac_res=`eval echo '${'$as_ac_Header'}'`
15913 { echo "$as_me:$LINENO: result: $ac_res" >&5
15914echo "${ECHO_T}$ac_res" >&6; }
15915
15916fi
15917if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015918 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015920_ACEOF
15921 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015922
15923else
15924 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015925
15926fi
15927
Reid Spencerbe3e4192007-08-17 05:45:26 +000015928done
Reid Spencer1000b732006-12-01 00:37:14 +000015929
15930else
15931 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015932
15933fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015934
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015935if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015936
15937
15938for ac_header in ffi.h ffi/ffi.h
15939do
15940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15946fi
15947ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949echo "${ECHO_T}$ac_res" >&6; }
15950else
15951 # Is the header compilable?
15952{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15954cat >conftest.$ac_ext <<_ACEOF
15955/* confdefs.h. */
15956_ACEOF
15957cat confdefs.h >>conftest.$ac_ext
15958cat >>conftest.$ac_ext <<_ACEOF
15959/* end confdefs.h. */
15960$ac_includes_default
15961#include <$ac_header>
15962_ACEOF
15963rm -f conftest.$ac_objext
15964if { (ac_try="$ac_compile"
15965case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968esac
15969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_compile") 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15978 { (case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15981esac
15982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_try") 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; } &&
15987 { ac_try='test -s conftest.$ac_objext'
15988 { (case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991esac
15992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_try") 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_header_compiler=yes
15998else
15999 echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 ac_header_compiler=no
16003fi
16004
16005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007echo "${ECHO_T}$ac_header_compiler" >&6; }
16008
16009# Is the header present?
16010{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018#include <$ac_header>
16019_ACEOF
16020if { (ac_try="$ac_cpp conftest.$ac_ext"
16021case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null; then
16033 if test -s conftest.err; then
16034 ac_cpp_err=$ac_c_preproc_warn_flag
16035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16036 else
16037 ac_cpp_err=
16038 fi
16039else
16040 ac_cpp_err=yes
16041fi
16042if test -z "$ac_cpp_err"; then
16043 ac_header_preproc=yes
16044else
16045 echo "$as_me: failed program was:" >&5
16046sed 's/^/| /' conftest.$ac_ext >&5
16047
16048 ac_header_preproc=no
16049fi
16050
16051rm -f conftest.err conftest.$ac_ext
16052{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053echo "${ECHO_T}$ac_header_preproc" >&6; }
16054
16055# So? What about this header?
16056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16057 yes:no: )
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16062 ac_header_preproc=yes
16063 ;;
16064 no:yes:* )
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16068echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16072echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16077 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016078## ------------------------------------ ##
16079## Report this to http://llvm.org/bugs/ ##
16080## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016081_ASBOX
16082 ) | sed "s/^/$as_me: WARNING: /" >&2
16083 ;;
16084esac
16085{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089else
16090 eval "$as_ac_Header=\$ac_header_preproc"
16091fi
16092ac_res=`eval echo '${'$as_ac_Header'}'`
16093 { echo "$as_me:$LINENO: result: $ac_res" >&5
16094echo "${ECHO_T}$ac_res" >&6; }
16095
16096fi
16097if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016098 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016100_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016101
16102fi
16103
16104done
16105
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016106fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016107
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016108
Eric Christopher654dee42010-06-22 21:01:04 +000016109for ac_header in CrashReporterClient.h
16110do
16111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117fi
16118ac_res=`eval echo '${'$as_ac_Header'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120echo "${ECHO_T}$ac_res" >&6; }
16121else
16122 # Is the header compilable?
16123{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16125cat >conftest.$ac_ext <<_ACEOF
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
16131$ac_includes_default
16132#include <$ac_header>
16133_ACEOF
16134rm -f conftest.$ac_objext
16135if { (ac_try="$ac_compile"
16136case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16139esac
16140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_compile") 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest.$ac_objext'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_header_compiler=yes
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 ac_header_compiler=no
16174fi
16175
16176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16178echo "${ECHO_T}$ac_header_compiler" >&6; }
16179
16180# Is the header present?
16181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16183cat >conftest.$ac_ext <<_ACEOF
16184/* confdefs.h. */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h. */
16189#include <$ac_header>
16190_ACEOF
16191if { (ac_try="$ac_cpp conftest.$ac_ext"
16192case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16195esac
16196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16198 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } >/dev/null; then
16204 if test -s conftest.err; then
16205 ac_cpp_err=$ac_c_preproc_warn_flag
16206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16207 else
16208 ac_cpp_err=
16209 fi
16210else
16211 ac_cpp_err=yes
16212fi
16213if test -z "$ac_cpp_err"; then
16214 ac_header_preproc=yes
16215else
16216 echo "$as_me: failed program was:" >&5
16217sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_header_preproc=no
16220fi
16221
16222rm -f conftest.err conftest.$ac_ext
16223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224echo "${ECHO_T}$ac_header_preproc" >&6; }
16225
16226# So? What about this header?
16227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16228 yes:no: )
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16233 ac_header_preproc=yes
16234 ;;
16235 no:yes:* )
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16248 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016249## ------------------------------------ ##
16250## Report this to http://llvm.org/bugs/ ##
16251## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016252_ASBOX
16253 ) | sed "s/^/$as_me: WARNING: /" >&2
16254 ;;
16255esac
16256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
16261 eval "$as_ac_Header=\$ac_header_preproc"
16262fi
16263ac_res=`eval echo '${'$as_ac_Header'}'`
16264 { echo "$as_me:$LINENO: result: $ac_res" >&5
16265echo "${ECHO_T}$ac_res" >&6; }
16266
16267fi
16268if test `eval echo '${'$as_ac_Header'}'` = yes; then
16269 cat >>confdefs.h <<_ACEOF
16270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16271_ACEOF
16272
16273fi
16274
16275done
16276
16277
Eric Christopher51e57132010-12-07 02:05:42 +000016278{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16279echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016280cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016286extern const char *__crashreporter_info__;
16287 int main() {
16288 __crashreporter_info__ = "test";
16289 return 0;
16290 }
Eric Christopher481d4022010-12-03 07:45:22 +000016291
Eric Christopher481d4022010-12-03 07:45:22 +000016292_ACEOF
16293rm -f conftest.$ac_objext conftest$ac_exeext
16294if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16311esac
16312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest$ac_exeext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016327 { echo "$as_me:$LINENO: result: yes" >&5
16328echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016329
16330cat >>confdefs.h <<\_ACEOF
16331#define HAVE_CRASHREPORTER_INFO 1
16332_ACEOF
16333
Eric Christopher51e57132010-12-07 02:05:42 +000016334else
16335 echo "$as_me: failed program was:" >&5
16336sed 's/^/| /' conftest.$ac_ext >&5
16337
16338 { echo "$as_me:$LINENO: result: no" >&5
16339echo "${ECHO_T}no" >&6; }
16340
16341cat >>confdefs.h <<\_ACEOF
16342#define HAVE_CRASHREPORTER_INFO 0
16343_ACEOF
16344
Eric Christopher481d4022010-12-03 07:45:22 +000016345fi
Eric Christopher654dee42010-06-22 21:01:04 +000016346
Eric Christopher51e57132010-12-07 02:05:42 +000016347rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16349
16350
Reid Spencer8085cff2005-01-16 02:58:39 +000016351
Torok Edwin871384f2010-01-26 08:50:50 +000016352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016353 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16354echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16355if test "${ac_cv_huge_val_sanity+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016357else
16358
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016359 ac_ext=cpp
16360ac_cpp='$CXXCPP $CPPFLAGS'
16361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016364
Eric Christopherc7718502010-03-02 05:06:54 +000016365 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016366 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016367 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016368 ac_cv_huge_val_sanity=yes
16369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016370 cat >conftest.$ac_ext <<_ACEOF
16371/* confdefs.h. */
16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016375/* end confdefs.h. */
16376#include <math.h>
16377int
16378main ()
16379{
16380double x = HUGE_VAL; return x != x;
16381 ;
16382 return 0;
16383}
16384_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016385rm -f conftest$ac_exeext
16386if { (ac_try="$ac_link"
16387case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016405 ac_cv_huge_val_sanity=yes
16406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016407 echo "$as_me: program exited with status $ac_status" >&5
16408echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411( exit $ac_status )
16412ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414rm -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 +000016415fi
16416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417
Eric Christopherc7718502010-03-02 05:06:54 +000016418 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016419 ac_ext=c
16420ac_cpp='$CPP $CPPFLAGS'
16421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16423ac_compiler_gnu=$ac_cv_c_compiler_gnu
16424
16425
16426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16428echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016429 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16430
16431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016432{ echo "$as_me:$LINENO: checking for pid_t" >&5
16433echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16434if test "${ac_cv_type_pid_t+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437 cat >conftest.$ac_ext <<_ACEOF
16438/* confdefs.h. */
16439_ACEOF
16440cat confdefs.h >>conftest.$ac_ext
16441cat >>conftest.$ac_ext <<_ACEOF
16442/* end confdefs.h. */
16443$ac_includes_default
16444typedef pid_t ac__type_new_;
16445int
16446main ()
16447{
16448if ((ac__type_new_ *) 0)
16449 return 0;
16450if (sizeof (ac__type_new_))
16451 return 0;
16452 ;
16453 return 0;
16454}
16455_ACEOF
16456rm -f conftest.$ac_objext
16457if { (ac_try="$ac_compile"
16458case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461esac
16462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_type_pid_t=yes
16491else
16492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016495 ac_cv_type_pid_t=no
16496fi
16497
16498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499fi
16500{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16501echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16502if test $ac_cv_type_pid_t = yes; then
16503 :
John Criswell7a73b802003-06-30 21:59:07 +000016504else
16505
16506cat >>confdefs.h <<_ACEOF
16507#define pid_t int
16508_ACEOF
16509
16510fi
16511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016512{ echo "$as_me:$LINENO: checking for size_t" >&5
16513echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16514if test "${ac_cv_type_size_t+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16516else
16517 cat >conftest.$ac_ext <<_ACEOF
16518/* confdefs.h. */
16519_ACEOF
16520cat confdefs.h >>conftest.$ac_ext
16521cat >>conftest.$ac_ext <<_ACEOF
16522/* end confdefs.h. */
16523$ac_includes_default
16524typedef size_t ac__type_new_;
16525int
16526main ()
16527{
16528if ((ac__type_new_ *) 0)
16529 return 0;
16530if (sizeof (ac__type_new_))
16531 return 0;
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext
16537if { (ac_try="$ac_compile"
16538case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16541esac
16542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_compile") 2>conftest.er1
16544 ac_status=$?
16545 grep -v '^ *+' conftest.er1 >conftest.err
16546 rm -f conftest.er1
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554esac
16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564esac
16565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_type_size_t=yes
16571else
16572 echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016575 ac_cv_type_size_t=no
16576fi
16577
16578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16579fi
16580{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16581echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16582if test $ac_cv_type_size_t = yes; then
16583 :
John Criswell7a73b802003-06-30 21:59:07 +000016584else
16585
16586cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016587#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016588_ACEOF
16589
16590fi
16591
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016592
16593cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016594#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016595_ACEOF
16596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016597{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16598echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16599if test "${ac_cv_struct_tm+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016602 cat >conftest.$ac_ext <<_ACEOF
16603/* confdefs.h. */
16604_ACEOF
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016607/* end confdefs.h. */
16608#include <sys/types.h>
16609#include <time.h>
16610
16611int
16612main ()
16613{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016614struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016615 ;
16616 return 0;
16617}
16618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016619rm -f conftest.$ac_objext
16620if { (ac_try="$ac_compile"
16621case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16624esac
16625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_compile") 2>conftest.er1
16627 ac_status=$?
16628 grep -v '^ *+' conftest.er1 >conftest.err
16629 rm -f conftest.er1
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016653 ac_cv_struct_tm=time.h
16654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016655 echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016660
Reid Spencera773bd52006-08-04 18:18:08 +000016661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016663{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16664echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016665if test $ac_cv_struct_tm = sys/time.h; then
16666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016667cat >>confdefs.h <<\_ACEOF
16668#define TM_IN_SYS_TIME 1
16669_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016670
16671fi
16672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016673{ echo "$as_me:$LINENO: checking for int64_t" >&5
16674echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16675if test "${ac_cv_type_int64_t+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678 cat >conftest.$ac_ext <<_ACEOF
16679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
16684$ac_includes_default
16685typedef int64_t ac__type_new_;
16686int
16687main ()
16688{
16689if ((ac__type_new_ *) 0)
16690 return 0;
16691if (sizeof (ac__type_new_))
16692 return 0;
16693 ;
16694 return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext
16698if { (ac_try="$ac_compile"
16699case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702esac
16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715esac
16716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725esac
16726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_type_int64_t=yes
16732else
16733 echo "$as_me: failed program was:" >&5
16734sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_cv_type_int64_t=no
16737fi
16738
16739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740fi
16741{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16742echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16743if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016744
16745cat >>confdefs.h <<_ACEOF
16746#define HAVE_INT64_T 1
16747_ACEOF
16748
16749
16750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016751 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16752echo "$as_me: error: Type int64_t required but not found" >&2;}
16753 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016754fi
16755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016756{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16757echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16758if test "${ac_cv_type_uint64_t+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767$ac_includes_default
16768typedef uint64_t ac__type_new_;
16769int
16770main ()
16771{
16772if ((ac__type_new_ *) 0)
16773 return 0;
16774if (sizeof (ac__type_new_))
16775 return 0;
16776 ;
16777 return 0;
16778}
16779_ACEOF
16780rm -f conftest.$ac_objext
16781if { (ac_try="$ac_compile"
16782case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_compile") 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798esac
16799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest.$ac_objext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_type_uint64_t=yes
16815else
16816 echo "$as_me: failed program was:" >&5
16817sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_cv_type_uint64_t=no
16820fi
16821
16822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823fi
16824{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16825echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16826if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016827
16828cat >>confdefs.h <<_ACEOF
16829#define HAVE_UINT64_T 1
16830_ACEOF
16831
16832
16833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016834 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16835echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16836if test "${ac_cv_type_u_int64_t+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16838else
16839 cat >conftest.$ac_ext <<_ACEOF
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846typedef u_int64_t ac__type_new_;
16847int
16848main ()
16849{
16850if ((ac__type_new_ *) 0)
16851 return 0;
16852if (sizeof (ac__type_new_))
16853 return 0;
16854 ;
16855 return 0;
16856}
16857_ACEOF
16858rm -f conftest.$ac_objext
16859if { (ac_try="$ac_compile"
16860case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16873 { (case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876esac
16877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_try") 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886esac
16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_cv_type_u_int64_t=yes
16893else
16894 echo "$as_me: failed program was:" >&5
16895sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ac_cv_type_u_int64_t=no
16898fi
16899
16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901fi
16902{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16903echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16904if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016905
16906cat >>confdefs.h <<_ACEOF
16907#define HAVE_U_INT64_T 1
16908_ACEOF
16909
16910
Misha Brukmanceca9042004-09-02 23:02:30 +000016911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016912 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16913echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16914 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016915fi
16916
John Criswell679ff312004-09-02 18:44:44 +000016917fi
16918
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016919
16920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016921
16922
16923
16924
16925
16926
16927
Reid Spencerdf3be822006-01-23 08:15:53 +000016928for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016929do
16930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16933if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16944#define $ac_func innocuous_$ac_func
16945
16946/* System header to define __stub macros and hopefully few prototypes,
16947 which can conflict with char $ac_func (); below.
16948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949 <limits.h> exists even on freestanding compilers. */
16950
16951#ifdef __STDC__
16952# include <limits.h>
16953#else
16954# include <assert.h>
16955#endif
16956
16957#undef $ac_func
16958
16959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16962#ifdef __cplusplus
16963extern "C"
16964#endif
16965char $ac_func ();
16966/* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969#if defined __stub_$ac_func || defined __stub___$ac_func
16970choke me
16971#endif
16972
16973int
16974main ()
16975{
16976return $ac_func ();
16977 ;
16978 return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
16982if { (ac_try="$ac_link"
16983case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 eval "$as_ac_var=yes"
17016else
17017 echo "$as_me: failed program was:" >&5
17018sed 's/^/| /' conftest.$ac_ext >&5
17019
17020 eval "$as_ac_var=no"
17021fi
17022
17023rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17025fi
17026ac_res=`eval echo '${'$as_ac_var'}'`
17027 { echo "$as_me:$LINENO: result: $ac_res" >&5
17028echo "${ECHO_T}$ac_res" >&6; }
17029if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017030 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017032_ACEOF
17033
17034fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017035done
John Criswell7a73b802003-06-30 21:59:07 +000017036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017037
17038
17039
17040
Reid Spencer96cf5872007-07-13 10:05:30 +000017041for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017042do
17043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049 cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17057#define $ac_func innocuous_$ac_func
17058
17059/* System header to define __stub macros and hopefully few prototypes,
17060 which can conflict with char $ac_func (); below.
17061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062 <limits.h> exists even on freestanding compilers. */
17063
17064#ifdef __STDC__
17065# include <limits.h>
17066#else
17067# include <assert.h>
17068#endif
17069
17070#undef $ac_func
17071
17072/* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17075#ifdef __cplusplus
17076extern "C"
17077#endif
17078char $ac_func ();
17079/* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082#if defined __stub_$ac_func || defined __stub___$ac_func
17083choke me
17084#endif
17085
17086int
17087main ()
17088{
17089return $ac_func ();
17090 ;
17091 return 0;
17092}
17093_ACEOF
17094rm -f conftest.$ac_objext conftest$ac_exeext
17095if { (ac_try="$ac_link"
17096case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>conftest.er1
17102 ac_status=$?
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17109 { (case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112esac
17113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_try") 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest$ac_exeext'
17119 { (case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122esac
17123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_try") 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 eval "$as_ac_var=yes"
17129else
17130 echo "$as_me: failed program was:" >&5
17131sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 eval "$as_ac_var=no"
17134fi
17135
17136rm -f core conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138fi
17139ac_res=`eval echo '${'$as_ac_var'}'`
17140 { echo "$as_me:$LINENO: result: $ac_res" >&5
17141echo "${ECHO_T}$ac_res" >&6; }
17142if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017143 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017145_ACEOF
17146
17147fi
17148done
17149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017150
17151
17152
17153
17154
Reid Spencerb90645c2007-02-16 19:17:20 +000017155for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017156do
17157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
17169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171#define $ac_func innocuous_$ac_func
17172
17173/* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char $ac_func (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17177
17178#ifdef __STDC__
17179# include <limits.h>
17180#else
17181# include <assert.h>
17182#endif
17183
17184#undef $ac_func
17185
17186/* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17189#ifdef __cplusplus
17190extern "C"
17191#endif
17192char $ac_func ();
17193/* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196#if defined __stub_$ac_func || defined __stub___$ac_func
17197choke me
17198#endif
17199
17200int
17201main ()
17202{
17203return $ac_func ();
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
17209if { (ac_try="$ac_link"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 eval "$as_ac_var=yes"
17243else
17244 echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 eval "$as_ac_var=no"
17248fi
17249
17250rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17252fi
17253ac_res=`eval echo '${'$as_ac_var'}'`
17254 { echo "$as_me:$LINENO: result: $ac_res" >&5
17255echo "${ECHO_T}$ac_res" >&6; }
17256if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017257 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017259_ACEOF
17260
17261fi
17262done
17263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017264
17265
17266
Reid Spencerb90645c2007-02-16 19:17:20 +000017267for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017268do
17269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283#define $ac_func innocuous_$ac_func
17284
17285/* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17289
17290#ifdef __STDC__
17291# include <limits.h>
17292#else
17293# include <assert.h>
17294#endif
17295
17296#undef $ac_func
17297
17298/* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17301#ifdef __cplusplus
17302extern "C"
17303#endif
17304char $ac_func ();
17305/* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308#if defined __stub_$ac_func || defined __stub___$ac_func
17309choke me
17310#endif
17311
17312int
17313main ()
17314{
17315return $ac_func ();
17316 ;
17317 return 0;
17318}
17319_ACEOF
17320rm -f conftest.$ac_objext conftest$ac_exeext
17321if { (ac_try="$ac_link"
17322case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325esac
17326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348esac
17349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 eval "$as_ac_var=yes"
17355else
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 eval "$as_ac_var=no"
17360fi
17361
17362rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364fi
17365ac_res=`eval echo '${'$as_ac_var'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367echo "${ECHO_T}$ac_res" >&6; }
17368if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017369 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017371_ACEOF
17372
17373fi
17374done
17375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017376
17377
17378
17379
17380
Eric Christophere4291822010-04-16 05:14:21 +000017381
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017382
17383for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017384do
17385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17386{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17388if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
17397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399#define $ac_func innocuous_$ac_func
17400
17401/* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17405
17406#ifdef __STDC__
17407# include <limits.h>
17408#else
17409# include <assert.h>
17410#endif
17411
17412#undef $ac_func
17413
17414/* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17417#ifdef __cplusplus
17418extern "C"
17419#endif
17420char $ac_func ();
17421/* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424#if defined __stub_$ac_func || defined __stub___$ac_func
17425choke me
17426#endif
17427
17428int
17429main ()
17430{
17431return $ac_func ();
17432 ;
17433 return 0;
17434}
17435_ACEOF
17436rm -f conftest.$ac_objext conftest$ac_exeext
17437if { (ac_try="$ac_link"
17438case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17451 { (case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454esac
17455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_try") 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 eval "$as_ac_var=yes"
17471else
17472 echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475 eval "$as_ac_var=no"
17476fi
17477
17478rm -f core conftest.err conftest.$ac_objext \
17479 conftest$ac_exeext conftest.$ac_ext
17480fi
17481ac_res=`eval echo '${'$as_ac_var'}'`
17482 { echo "$as_me:$LINENO: result: $ac_res" >&5
17483echo "${ECHO_T}$ac_res" >&6; }
17484if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017485 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017487_ACEOF
17488
17489fi
17490done
Reid Spencerdf3be822006-01-23 08:15:53 +000017491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017492
17493
17494
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017495
17496for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017497do
17498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17499{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17501if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503else
17504 cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h. */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h. */
17510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17512#define $ac_func innocuous_$ac_func
17513
17514/* System header to define __stub macros and hopefully few prototypes,
17515 which can conflict with char $ac_func (); below.
17516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17517 <limits.h> exists even on freestanding compilers. */
17518
17519#ifdef __STDC__
17520# include <limits.h>
17521#else
17522# include <assert.h>
17523#endif
17524
17525#undef $ac_func
17526
17527/* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17530#ifdef __cplusplus
17531extern "C"
17532#endif
17533char $ac_func ();
17534/* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537#if defined __stub_$ac_func || defined __stub___$ac_func
17538choke me
17539#endif
17540
17541int
17542main ()
17543{
17544return $ac_func ();
17545 ;
17546 return 0;
17547}
17548_ACEOF
17549rm -f conftest.$ac_objext conftest$ac_exeext
17550if { (ac_try="$ac_link"
17551case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_link") 2>conftest.er1
17557 ac_status=$?
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17564 { (case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567esac
17568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_try") 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; } &&
17573 { ac_try='test -s conftest$ac_exeext'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577esac
17578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 eval "$as_ac_var=yes"
17584else
17585 echo "$as_me: failed program was:" >&5
17586sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 eval "$as_ac_var=no"
17589fi
17590
17591rm -f core conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
17593fi
17594ac_res=`eval echo '${'$as_ac_var'}'`
17595 { echo "$as_me:$LINENO: result: $ac_res" >&5
17596echo "${ECHO_T}$ac_res" >&6; }
17597if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017598 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017600_ACEOF
17601
17602fi
17603done
17604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017605
17606
17607
17608
Chris Lattner511f11d2005-11-14 07:25:50 +000017609for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017610do
17611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17616else
17617 cat >conftest.$ac_ext <<_ACEOF
17618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
17623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625#define $ac_func innocuous_$ac_func
17626
17627/* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char $ac_func (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
17631
17632#ifdef __STDC__
17633# include <limits.h>
17634#else
17635# include <assert.h>
17636#endif
17637
17638#undef $ac_func
17639
17640/* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17643#ifdef __cplusplus
17644extern "C"
17645#endif
17646char $ac_func ();
17647/* The GNU C library defines this for functions which it implements
17648 to always fail with ENOSYS. Some functions are actually named
17649 something starting with __ and the normal name is an alias. */
17650#if defined __stub_$ac_func || defined __stub___$ac_func
17651choke me
17652#endif
17653
17654int
17655main ()
17656{
17657return $ac_func ();
17658 ;
17659 return 0;
17660}
17661_ACEOF
17662rm -f conftest.$ac_objext conftest$ac_exeext
17663if { (ac_try="$ac_link"
17664case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17667esac
17668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_link") 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680esac
17681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest$ac_exeext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 eval "$as_ac_var=yes"
17697else
17698 echo "$as_me: failed program was:" >&5
17699sed 's/^/| /' conftest.$ac_ext >&5
17700
17701 eval "$as_ac_var=no"
17702fi
17703
17704rm -f core conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17706fi
17707ac_res=`eval echo '${'$as_ac_var'}'`
17708 { echo "$as_me:$LINENO: result: $ac_res" >&5
17709echo "${ECHO_T}$ac_res" >&6; }
17710if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017713_ACEOF
17714
17715fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017716done
John Criswell7a73b802003-06-30 21:59:07 +000017717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017718
17719
17720
17721
Daniel Dunbar3e462932011-02-03 02:40:02 +000017722
17723for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017724do
17725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730else
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17739#define $ac_func innocuous_$ac_func
17740
17741/* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func (); below.
17743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17744 <limits.h> exists even on freestanding compilers. */
17745
17746#ifdef __STDC__
17747# include <limits.h>
17748#else
17749# include <assert.h>
17750#endif
17751
17752#undef $ac_func
17753
17754/* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17757#ifdef __cplusplus
17758extern "C"
17759#endif
17760char $ac_func ();
17761/* The GNU C library defines this for functions which it implements
17762 to always fail with ENOSYS. Some functions are actually named
17763 something starting with __ and the normal name is an alias. */
17764#if defined __stub_$ac_func || defined __stub___$ac_func
17765choke me
17766#endif
17767
17768int
17769main ()
17770{
17771return $ac_func ();
17772 ;
17773 return 0;
17774}
17775_ACEOF
17776rm -f conftest.$ac_objext conftest$ac_exeext
17777if { (ac_try="$ac_link"
17778case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781esac
17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
17790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17794esac
17795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804esac
17805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_try") 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 eval "$as_ac_var=yes"
17811else
17812 echo "$as_me: failed program was:" >&5
17813sed 's/^/| /' conftest.$ac_ext >&5
17814
17815 eval "$as_ac_var=no"
17816fi
17817
17818rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820fi
17821ac_res=`eval echo '${'$as_ac_var'}'`
17822 { echo "$as_me:$LINENO: result: $ac_res" >&5
17823echo "${ECHO_T}$ac_res" >&6; }
17824if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017827_ACEOF
17828
17829fi
17830done
17831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017832{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17833echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17834if test "${llvm_cv_c_printf_a+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017836else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017837 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017838ac_cpp='$CPP $CPPFLAGS'
17839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17841ac_compiler_gnu=$ac_cv_c_compiler_gnu
17842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017844 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017846 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017848 /* confdefs.h. */
17849_ACEOF
17850cat confdefs.h >>conftest.$ac_ext
17851cat >>conftest.$ac_ext <<_ACEOF
17852/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017853
John Criswella0137d32003-10-13 16:22:01 +000017854#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017855#include <stdlib.h>
17856
John Criswella0137d32003-10-13 16:22:01 +000017857int
17858main ()
17859{
17860
Reid Spencer2706f8c2004-09-19 23:53:36 +000017861volatile double A, B;
17862char Buffer[100];
17863A = 1;
17864A /= 10.0;
17865sprintf(Buffer, "%a", A);
17866B = atof(Buffer);
17867if (A != B)
17868 return (1);
17869if (A != 0x1.999999999999ap-4)
17870 return (1);
17871return (0);
John Criswella0137d32003-10-13 16:22:01 +000017872 ;
17873 return 0;
17874}
17875_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017876rm -f conftest$ac_exeext
17877if { (ac_try="$ac_link"
17878case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890esac
17891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017896 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017898 echo "$as_me: program exited with status $ac_status" >&5
17899echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902( exit $ac_status )
17903llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017905rm -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 +000017906fi
Reid Spencera773bd52006-08-04 18:18:08 +000017907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017908
Reid Spencer2706f8c2004-09-19 23:53:36 +000017909 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017910ac_cpp='$CPP $CPPFLAGS'
17911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017916{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17917echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017918 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017920cat >>confdefs.h <<\_ACEOF
17921#define HAVE_PRINTF_A 1
17922_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017923
Reid Spencer2706f8c2004-09-19 23:53:36 +000017924 fi
John Criswella0137d32003-10-13 16:22:01 +000017925
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017927{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17928echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17929if test "${ac_cv_func_rand48+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017931else
Reid Spencera773bd52006-08-04 18:18:08 +000017932 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017933ac_cpp='$CXXCPP $CPPFLAGS'
17934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017938 cat >conftest.$ac_ext <<_ACEOF
17939/* confdefs.h. */
17940_ACEOF
17941cat confdefs.h >>conftest.$ac_ext
17942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017943/* end confdefs.h. */
17944#include <stdlib.h>
17945int
17946main ()
17947{
17948srand48(0);lrand48();drand48();
17949 ;
17950 return 0;
17951}
17952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017953rm -f conftest.$ac_objext
17954if { (ac_try="$ac_compile"
17955case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958esac
17959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_compile") 2>conftest.er1
17961 ac_status=$?
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17968 { (case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971esac
17972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_try") 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest.$ac_objext'
17978 { (case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17981esac
17982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_try") 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017987 ac_cv_func_rand48=yes
17988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017989 echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017994
Reid Spencera773bd52006-08-04 18:18:08 +000017995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017996 ac_ext=c
17997ac_cpp='$CPP $CPPFLAGS'
17998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18000ac_compiler_gnu=$ac_cv_c_compiler_gnu
18001
18002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018003{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18004echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018005
18006if test "$ac_cv_func_rand48" = "yes" ; then
18007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018008cat >>confdefs.h <<\_ACEOF
18009#define HAVE_RAND48 1
18010_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018011
18012fi
John Criswell0021c312004-02-13 21:57:29 +000018013
18014
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018015{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18016echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18017if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18019else
18020 cat >conftest.$ac_ext <<_ACEOF
18021/* confdefs.h. */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
18025/* end confdefs.h. */
18026$ac_includes_default
18027int
18028main ()
18029{
18030#ifndef strerror_s
18031 char *p = (char *) strerror_s;
18032 return !p;
18033#endif
18034
18035 ;
18036 return 0;
18037}
18038_ACEOF
18039rm -f conftest.$ac_objext
18040if { (ac_try="$ac_compile"
18041case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044esac
18045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_compile") 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18054 { (case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18057esac
18058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_try") 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067esac
18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_try") 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_have_decl_strerror_s=yes
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078 ac_cv_have_decl_strerror_s=no
18079fi
18080
18081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082fi
18083{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18084echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18085if test $ac_cv_have_decl_strerror_s = yes; then
18086
18087cat >>confdefs.h <<_ACEOF
18088#define HAVE_DECL_STRERROR_S 1
18089_ACEOF
18090
18091
18092else
18093 cat >>confdefs.h <<_ACEOF
18094#define HAVE_DECL_STRERROR_S 0
18095_ACEOF
18096
18097
18098fi
18099
18100
18101
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018102if test "$llvm_cv_os_type" = "MingW" ; then
18103 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18104echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18105if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108 ac_check_lib_save_LIBS=$LIBS
18109LIBS="-lgcc $LIBS"
18110cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
18116
18117/* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18120#ifdef __cplusplus
18121extern "C"
18122#endif
18123char _alloca ();
18124int
18125main ()
18126{
18127return _alloca ();
18128 ;
18129 return 0;
18130}
18131_ACEOF
18132rm -f conftest.$ac_objext conftest$ac_exeext
18133if { (ac_try="$ac_link"
18134case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137esac
18138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_link") 2>conftest.er1
18140 ac_status=$?
18141 grep -v '^ *+' conftest.er1 >conftest.err
18142 rm -f conftest.er1
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_lib_gcc__alloca=yes
18167else
18168 echo "$as_me: failed program was:" >&5
18169sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 ac_cv_lib_gcc__alloca=no
18172fi
18173
18174rm -f core conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18176LIBS=$ac_check_lib_save_LIBS
18177fi
18178{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18179echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18180if test $ac_cv_lib_gcc__alloca = yes; then
18181
18182cat >>confdefs.h <<\_ACEOF
18183#define HAVE__ALLOCA 1
18184_ACEOF
18185
18186fi
18187
18188 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18189echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18190if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 ac_check_lib_save_LIBS=$LIBS
18194LIBS="-lgcc $LIBS"
18195cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
18201
18202/* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18205#ifdef __cplusplus
18206extern "C"
18207#endif
18208char __alloca ();
18209int
18210main ()
18211{
18212return __alloca ();
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext conftest$ac_exeext
18218if { (ac_try="$ac_link"
18219case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235esac
18236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245esac
18246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_lib_gcc___alloca=yes
18252else
18253 echo "$as_me: failed program was:" >&5
18254sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 ac_cv_lib_gcc___alloca=no
18257fi
18258
18259rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261LIBS=$ac_check_lib_save_LIBS
18262fi
18263{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18264echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18265if test $ac_cv_lib_gcc___alloca = yes; then
18266
18267cat >>confdefs.h <<\_ACEOF
18268#define HAVE___ALLOCA 1
18269_ACEOF
18270
18271fi
18272
18273 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18274echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18275if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278 ac_check_lib_save_LIBS=$LIBS
18279LIBS="-lgcc $LIBS"
18280cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
18286
18287/* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290#ifdef __cplusplus
18291extern "C"
18292#endif
18293char __chkstk ();
18294int
18295main ()
18296{
18297return __chkstk ();
18298 ;
18299 return 0;
18300}
18301_ACEOF
18302rm -f conftest.$ac_objext conftest$ac_exeext
18303if { (ac_try="$ac_link"
18304case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307esac
18308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_link") 2>conftest.er1
18310 ac_status=$?
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18320esac
18321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest$ac_exeext'
18327 { (case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330esac
18331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_try") 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_lib_gcc___chkstk=yes
18337else
18338 echo "$as_me: failed program was:" >&5
18339sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 ac_cv_lib_gcc___chkstk=no
18342fi
18343
18344rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346LIBS=$ac_check_lib_save_LIBS
18347fi
18348{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18349echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18350if test $ac_cv_lib_gcc___chkstk = yes; then
18351
18352cat >>confdefs.h <<\_ACEOF
18353#define HAVE___CHKSTK 1
18354_ACEOF
18355
18356fi
18357
18358 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18359echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18360if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362else
18363 ac_check_lib_save_LIBS=$LIBS
18364LIBS="-lgcc $LIBS"
18365cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
18371
18372/* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18375#ifdef __cplusplus
18376extern "C"
18377#endif
18378char ___chkstk ();
18379int
18380main ()
18381{
18382return ___chkstk ();
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext conftest$ac_exeext
18388if { (ac_try="$ac_link"
18389case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_link") 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18402 { (case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405esac
18406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_try") 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest$ac_exeext'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415esac
18416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_lib_gcc____chkstk=yes
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_lib_gcc____chkstk=no
18427fi
18428
18429rm -f core conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431LIBS=$ac_check_lib_save_LIBS
18432fi
18433{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18434echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18435if test $ac_cv_lib_gcc____chkstk = yes; then
18436
18437cat >>confdefs.h <<\_ACEOF
18438#define HAVE____CHKSTK 1
18439_ACEOF
18440
18441fi
18442
18443
18444 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18445echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18446if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448else
18449 ac_check_lib_save_LIBS=$LIBS
18450LIBS="-lgcc $LIBS"
18451cat >conftest.$ac_ext <<_ACEOF
18452/* confdefs.h. */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h. */
18457
18458/* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
18461#ifdef __cplusplus
18462extern "C"
18463#endif
18464char __ashldi3 ();
18465int
18466main ()
18467{
18468return __ashldi3 ();
18469 ;
18470 return 0;
18471}
18472_ACEOF
18473rm -f conftest.$ac_objext conftest$ac_exeext
18474if { (ac_try="$ac_link"
18475case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18478esac
18479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_link") 2>conftest.er1
18481 ac_status=$?
18482 grep -v '^ *+' conftest.er1 >conftest.err
18483 rm -f conftest.er1
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } &&
18487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18491esac
18492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest$ac_exeext'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_lib_gcc___ashldi3=yes
18508else
18509 echo "$as_me: failed program was:" >&5
18510sed 's/^/| /' conftest.$ac_ext >&5
18511
18512 ac_cv_lib_gcc___ashldi3=no
18513fi
18514
18515rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18517LIBS=$ac_check_lib_save_LIBS
18518fi
18519{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18520echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18521if test $ac_cv_lib_gcc___ashldi3 = yes; then
18522
18523cat >>confdefs.h <<\_ACEOF
18524#define HAVE___ASHLDI3 1
18525_ACEOF
18526
18527fi
18528
18529 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18530echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18531if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18533else
18534 ac_check_lib_save_LIBS=$LIBS
18535LIBS="-lgcc $LIBS"
18536cat >conftest.$ac_ext <<_ACEOF
18537/* confdefs.h. */
18538_ACEOF
18539cat confdefs.h >>conftest.$ac_ext
18540cat >>conftest.$ac_ext <<_ACEOF
18541/* end confdefs.h. */
18542
18543/* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18546#ifdef __cplusplus
18547extern "C"
18548#endif
18549char __ashrdi3 ();
18550int
18551main ()
18552{
18553return __ashrdi3 ();
18554 ;
18555 return 0;
18556}
18557_ACEOF
18558rm -f conftest.$ac_objext conftest$ac_exeext
18559if { (ac_try="$ac_link"
18560case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563esac
18564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
18572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest$ac_exeext'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586esac
18587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ac_cv_lib_gcc___ashrdi3=yes
18593else
18594 echo "$as_me: failed program was:" >&5
18595sed 's/^/| /' conftest.$ac_ext >&5
18596
18597 ac_cv_lib_gcc___ashrdi3=no
18598fi
18599
18600rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18602LIBS=$ac_check_lib_save_LIBS
18603fi
18604{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18605echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18606if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18607
18608cat >>confdefs.h <<\_ACEOF
18609#define HAVE___ASHRDI3 1
18610_ACEOF
18611
18612fi
18613
18614 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18615echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18616if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618else
18619 ac_check_lib_save_LIBS=$LIBS
18620LIBS="-lgcc $LIBS"
18621cat >conftest.$ac_ext <<_ACEOF
18622/* confdefs.h. */
18623_ACEOF
18624cat confdefs.h >>conftest.$ac_ext
18625cat >>conftest.$ac_ext <<_ACEOF
18626/* end confdefs.h. */
18627
18628/* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18631#ifdef __cplusplus
18632extern "C"
18633#endif
18634char __divdi3 ();
18635int
18636main ()
18637{
18638return __divdi3 ();
18639 ;
18640 return 0;
18641}
18642_ACEOF
18643rm -f conftest.$ac_objext conftest$ac_exeext
18644if { (ac_try="$ac_link"
18645case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648esac
18649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661esac
18662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest$ac_exeext'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671esac
18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 ac_cv_lib_gcc___divdi3=yes
18678else
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 ac_cv_lib_gcc___divdi3=no
18683fi
18684
18685rm -f core conftest.err conftest.$ac_objext \
18686 conftest$ac_exeext conftest.$ac_ext
18687LIBS=$ac_check_lib_save_LIBS
18688fi
18689{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18690echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18691if test $ac_cv_lib_gcc___divdi3 = yes; then
18692
18693cat >>confdefs.h <<\_ACEOF
18694#define HAVE___DIVDI3 1
18695_ACEOF
18696
18697fi
18698
18699 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18700echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18701if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 ac_check_lib_save_LIBS=$LIBS
18705LIBS="-lgcc $LIBS"
18706cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
18712
18713/* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18716#ifdef __cplusplus
18717extern "C"
18718#endif
18719char __fixdfdi ();
18720int
18721main ()
18722{
18723return __fixdfdi ();
18724 ;
18725 return 0;
18726}
18727_ACEOF
18728rm -f conftest.$ac_objext conftest$ac_exeext
18729if { (ac_try="$ac_link"
18730case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733esac
18734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_link") 2>conftest.er1
18736 ac_status=$?
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } &&
18742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18743 { (case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746esac
18747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_try") 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest$ac_exeext'
18753 { (case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756esac
18757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_try") 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 ac_cv_lib_gcc___fixdfdi=yes
18763else
18764 echo "$as_me: failed program was:" >&5
18765sed 's/^/| /' conftest.$ac_ext >&5
18766
18767 ac_cv_lib_gcc___fixdfdi=no
18768fi
18769
18770rm -f core conftest.err conftest.$ac_objext \
18771 conftest$ac_exeext conftest.$ac_ext
18772LIBS=$ac_check_lib_save_LIBS
18773fi
18774{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18775echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18776if test $ac_cv_lib_gcc___fixdfdi = yes; then
18777
18778cat >>confdefs.h <<\_ACEOF
18779#define HAVE___FIXDFDI 1
18780_ACEOF
18781
18782fi
18783
18784 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18785echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18786if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788else
18789 ac_check_lib_save_LIBS=$LIBS
18790LIBS="-lgcc $LIBS"
18791cat >conftest.$ac_ext <<_ACEOF
18792/* confdefs.h. */
18793_ACEOF
18794cat confdefs.h >>conftest.$ac_ext
18795cat >>conftest.$ac_ext <<_ACEOF
18796/* end confdefs.h. */
18797
18798/* Override any GCC internal prototype to avoid an error.
18799 Use char because int might match the return type of a GCC
18800 builtin and then its argument prototype would still apply. */
18801#ifdef __cplusplus
18802extern "C"
18803#endif
18804char __fixsfdi ();
18805int
18806main ()
18807{
18808return __fixsfdi ();
18809 ;
18810 return 0;
18811}
18812_ACEOF
18813rm -f conftest.$ac_objext conftest$ac_exeext
18814if { (ac_try="$ac_link"
18815case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18818esac
18819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_link") 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; } &&
18837 { ac_try='test -s conftest$ac_exeext'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841esac
18842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_cv_lib_gcc___fixsfdi=yes
18848else
18849 echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
18852 ac_cv_lib_gcc___fixsfdi=no
18853fi
18854
18855rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857LIBS=$ac_check_lib_save_LIBS
18858fi
18859{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18860echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18861if test $ac_cv_lib_gcc___fixsfdi = yes; then
18862
18863cat >>confdefs.h <<\_ACEOF
18864#define HAVE___FIXSFDI 1
18865_ACEOF
18866
18867fi
18868
18869 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18870echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18871if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873else
18874 ac_check_lib_save_LIBS=$LIBS
18875LIBS="-lgcc $LIBS"
18876cat >conftest.$ac_ext <<_ACEOF
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882
18883/* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18886#ifdef __cplusplus
18887extern "C"
18888#endif
18889char __floatdidf ();
18890int
18891main ()
18892{
18893return __floatdidf ();
18894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest.$ac_objext conftest$ac_exeext
18899if { (ac_try="$ac_link"
18900case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18906 ac_status=$?
18907 grep -v '^ *+' conftest.er1 >conftest.err
18908 rm -f conftest.er1
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
18912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926esac
18927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_lib_gcc___floatdidf=yes
18933else
18934 echo "$as_me: failed program was:" >&5
18935sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 ac_cv_lib_gcc___floatdidf=no
18938fi
18939
18940rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18942LIBS=$ac_check_lib_save_LIBS
18943fi
18944{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18945echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18946if test $ac_cv_lib_gcc___floatdidf = yes; then
18947
18948cat >>confdefs.h <<\_ACEOF
18949#define HAVE___FLOATDIDF 1
18950_ACEOF
18951
18952fi
18953
18954 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18955echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18956if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958else
18959 ac_check_lib_save_LIBS=$LIBS
18960LIBS="-lgcc $LIBS"
18961cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967
18968/* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18971#ifdef __cplusplus
18972extern "C"
18973#endif
18974char __lshrdi3 ();
18975int
18976main ()
18977{
18978return __lshrdi3 ();
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext conftest$ac_exeext
18984if { (ac_try="$ac_link"
18985case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_gcc___lshrdi3=yes
19018else
19019 echo "$as_me: failed program was:" >&5
19020sed 's/^/| /' conftest.$ac_ext >&5
19021
19022 ac_cv_lib_gcc___lshrdi3=no
19023fi
19024
19025rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19027LIBS=$ac_check_lib_save_LIBS
19028fi
19029{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19030echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19031if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19032
19033cat >>confdefs.h <<\_ACEOF
19034#define HAVE___LSHRDI3 1
19035_ACEOF
19036
19037fi
19038
19039 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19040echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19041if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044 ac_check_lib_save_LIBS=$LIBS
19045LIBS="-lgcc $LIBS"
19046cat >conftest.$ac_ext <<_ACEOF
19047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
19051/* end confdefs.h. */
19052
19053/* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19056#ifdef __cplusplus
19057extern "C"
19058#endif
19059char __moddi3 ();
19060int
19061main ()
19062{
19063return __moddi3 ();
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext conftest$ac_exeext
19069if { (ac_try="$ac_link"
19070case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>conftest.er1
19076 ac_status=$?
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086esac
19087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest$ac_exeext'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_cv_lib_gcc___moddi3=yes
19103else
19104 echo "$as_me: failed program was:" >&5
19105sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 ac_cv_lib_gcc___moddi3=no
19108fi
19109
19110rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112LIBS=$ac_check_lib_save_LIBS
19113fi
19114{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19115echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19116if test $ac_cv_lib_gcc___moddi3 = yes; then
19117
19118cat >>confdefs.h <<\_ACEOF
19119#define HAVE___MODDI3 1
19120_ACEOF
19121
19122fi
19123
19124 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19125echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19126if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128else
19129 ac_check_lib_save_LIBS=$LIBS
19130LIBS="-lgcc $LIBS"
19131cat >conftest.$ac_ext <<_ACEOF
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
19137
19138/* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19141#ifdef __cplusplus
19142extern "C"
19143#endif
19144char __udivdi3 ();
19145int
19146main ()
19147{
19148return __udivdi3 ();
19149 ;
19150 return 0;
19151}
19152_ACEOF
19153rm -f conftest.$ac_objext conftest$ac_exeext
19154if { (ac_try="$ac_link"
19155case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158esac
19159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_link") 2>conftest.er1
19161 ac_status=$?
19162 grep -v '^ *+' conftest.er1 >conftest.err
19163 rm -f conftest.er1
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19168 { (case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19171esac
19172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_try") 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest$ac_exeext'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_lib_gcc___udivdi3=yes
19188else
19189 echo "$as_me: failed program was:" >&5
19190sed 's/^/| /' conftest.$ac_ext >&5
19191
19192 ac_cv_lib_gcc___udivdi3=no
19193fi
19194
19195rm -f core conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197LIBS=$ac_check_lib_save_LIBS
19198fi
19199{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19200echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19201if test $ac_cv_lib_gcc___udivdi3 = yes; then
19202
19203cat >>confdefs.h <<\_ACEOF
19204#define HAVE___UDIVDI3 1
19205_ACEOF
19206
19207fi
19208
19209 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19210echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19211if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213else
19214 ac_check_lib_save_LIBS=$LIBS
19215LIBS="-lgcc $LIBS"
19216cat >conftest.$ac_ext <<_ACEOF
19217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
19222
19223/* Override any GCC internal prototype to avoid an error.
19224 Use char because int might match the return type of a GCC
19225 builtin and then its argument prototype would still apply. */
19226#ifdef __cplusplus
19227extern "C"
19228#endif
19229char __umoddi3 ();
19230int
19231main ()
19232{
19233return __umoddi3 ();
19234 ;
19235 return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext conftest$ac_exeext
19239if { (ac_try="$ac_link"
19240case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243esac
19244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_link") 2>conftest.er1
19246 ac_status=$?
19247 grep -v '^ *+' conftest.er1 >conftest.err
19248 rm -f conftest.er1
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19253 { (case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19256esac
19257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_try") 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest$ac_exeext'
19263 { (case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266esac
19267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_try") 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 ac_cv_lib_gcc___umoddi3=yes
19273else
19274 echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 ac_cv_lib_gcc___umoddi3=no
19278fi
19279
19280rm -f core conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282LIBS=$ac_check_lib_save_LIBS
19283fi
19284{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19285echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19286if test $ac_cv_lib_gcc___umoddi3 = yes; then
19287
19288cat >>confdefs.h <<\_ACEOF
19289#define HAVE___UMODDI3 1
19290_ACEOF
19291
19292fi
19293
19294
19295 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19296echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19297if test "${ac_cv_lib_gcc___main+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300 ac_check_lib_save_LIBS=$LIBS
19301LIBS="-lgcc $LIBS"
19302cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308
19309/* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19312#ifdef __cplusplus
19313extern "C"
19314#endif
19315char __main ();
19316int
19317main ()
19318{
19319return __main ();
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext conftest$ac_exeext
19325if { (ac_try="$ac_link"
19326case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19329esac
19330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_link") 2>conftest.er1
19332 ac_status=$?
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342esac
19343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352esac
19353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_lib_gcc___main=yes
19359else
19360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 ac_cv_lib_gcc___main=no
19364fi
19365
19366rm -f core conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19368LIBS=$ac_check_lib_save_LIBS
19369fi
19370{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19371echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19372if test $ac_cv_lib_gcc___main = yes; then
19373
19374cat >>confdefs.h <<\_ACEOF
19375#define HAVE___MAIN 1
19376_ACEOF
19377
19378fi
19379
19380 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19381echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19382if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384else
19385 ac_check_lib_save_LIBS=$LIBS
19386LIBS="-lgcc $LIBS"
19387cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h. */
19393
19394/* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19397#ifdef __cplusplus
19398extern "C"
19399#endif
19400char __cmpdi2 ();
19401int
19402main ()
19403{
19404return __cmpdi2 ();
19405 ;
19406 return 0;
19407}
19408_ACEOF
19409rm -f conftest.$ac_objext conftest$ac_exeext
19410if { (ac_try="$ac_link"
19411case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437esac
19438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_lib_gcc___cmpdi2=yes
19444else
19445 echo "$as_me: failed program was:" >&5
19446sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ac_cv_lib_gcc___cmpdi2=no
19449fi
19450
19451rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453LIBS=$ac_check_lib_save_LIBS
19454fi
19455{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19456echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19457if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19458
19459cat >>confdefs.h <<\_ACEOF
19460#define HAVE___CMPDI2 1
19461_ACEOF
19462
19463fi
19464
19465fi
19466
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019467if test "$llvm_cv_os_type" = "MingW" ; then
19468 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19469echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19470 cat >conftest.$ac_ext <<_ACEOF
19471#include <windows.h>
19472#include <imagehlp.h>
19473extern void foo(PENUMLOADED_MODULES_CALLBACK);
19474extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19475_ACEOF
19476rm -f conftest.$ac_objext
19477if { (ac_try="$ac_compile"
19478case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19481esac
19482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_compile") 2>conftest.er1
19484 ac_status=$?
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19494esac
19495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510
19511 { echo "$as_me:$LINENO: result: yes" >&5
19512echo "${ECHO_T}yes" >&6; }
19513 llvm_cv_win32_elmcb_pcstr="PCSTR"
19514
19515else
19516 echo "$as_me: failed program was:" >&5
19517sed 's/^/| /' conftest.$ac_ext >&5
19518
19519
19520 { echo "$as_me:$LINENO: result: no" >&5
19521echo "${ECHO_T}no" >&6; }
19522 llvm_cv_win32_elmcb_pcstr="PSTR"
19523
19524fi
19525
19526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527
19528cat >>confdefs.h <<_ACEOF
19529#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19530_ACEOF
19531
19532fi
19533
Torok Edwin871384f2010-01-26 08:50:50 +000019534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019535{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19536echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19537if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019539else
Reid Spencera773bd52006-08-04 18:18:08 +000019540 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019541ac_cpp='$CXXCPP $CPPFLAGS'
19542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019546 cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019551/* end confdefs.h. */
19552#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019553int
19554main ()
19555{
19556float f; isnan(f);
19557 ;
19558 return 0;
19559}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019560_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561rm -f conftest.$ac_objext
19562if { (ac_try="$ac_compile"
19563case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19576 { (case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19579esac
19580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_try") 2>&5
19582 ac_status=$?
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest.$ac_objext'
19586 { (case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589esac
19590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_try") 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019595 ac_cv_func_isnan_in_math_h=yes
19596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019597 echo "$as_me: failed program was:" >&5
19598sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019602
Reid Spencera773bd52006-08-04 18:18:08 +000019603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019604 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019605ac_cpp='$CPP $CPPFLAGS'
19606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608ac_compiler_gnu=$ac_cv_c_compiler_gnu
19609
19610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019611{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19612echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019613
19614
19615if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019617cat >>confdefs.h <<\_ACEOF
19618#define HAVE_ISNAN_IN_MATH_H 1
19619_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019620
Reid Spencerabec8f92004-10-27 23:03:44 +000019621fi
19622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19624echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19625if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019627else
Reid Spencera773bd52006-08-04 18:18:08 +000019628 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019629ac_cpp='$CXXCPP $CPPFLAGS'
19630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019634 cat >conftest.$ac_ext <<_ACEOF
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019639/* end confdefs.h. */
19640#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019641int
19642main ()
19643{
19644float f; isnan(f);
19645 ;
19646 return 0;
19647}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019648_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019649rm -f conftest.$ac_objext
19650if { (ac_try="$ac_compile"
19651case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654esac
19655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_compile") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } &&
19663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19664 { (case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19667esac
19668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_try") 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest.$ac_objext'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677esac
19678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019683 ac_cv_func_isnan_in_cmath=yes
19684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019685 echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019690
Reid Spencera773bd52006-08-04 18:18:08 +000019691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019692 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019693ac_cpp='$CPP $CPPFLAGS'
19694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696ac_compiler_gnu=$ac_cv_c_compiler_gnu
19697
19698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19700echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019701
19702if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019704cat >>confdefs.h <<\_ACEOF
19705#define HAVE_ISNAN_IN_CMATH 1
19706_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019707
Reid Spencerabec8f92004-10-27 23:03:44 +000019708fi
19709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19711echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19712if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019714else
Reid Spencera773bd52006-08-04 18:18:08 +000019715 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019716ac_cpp='$CXXCPP $CPPFLAGS'
19717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019721 cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019726/* end confdefs.h. */
19727#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019728int
19729main ()
19730{
19731float f; std::isnan(f);
19732 ;
19733 return 0;
19734}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019735_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736rm -f conftest.$ac_objext
19737if { (ac_try="$ac_compile"
19738case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741esac
19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_compile") 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754esac
19755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest.$ac_objext'
19761 { (case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_try") 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019770 ac_cv_func_std_isnan_in_cmath=yes
19771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019772 echo "$as_me: failed program was:" >&5
19773sed 's/^/| /' conftest.$ac_ext >&5
19774
19775 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019777
Reid Spencera773bd52006-08-04 18:18:08 +000019778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019779 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019780ac_cpp='$CPP $CPPFLAGS'
19781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784
19785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019786{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19787echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019788
19789if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019791cat >>confdefs.h <<\_ACEOF
19792#define HAVE_STD_ISNAN_IN_CMATH 1
19793_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019794
Reid Spencerabec8f92004-10-27 23:03:44 +000019795fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019796
19797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19799echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19800if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019802else
Reid Spencera773bd52006-08-04 18:18:08 +000019803 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019804ac_cpp='$CXXCPP $CPPFLAGS'
19805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019809 cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019814/* end confdefs.h. */
19815#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019816int
19817main ()
19818{
19819float f; isinf(f);
19820 ;
19821 return 0;
19822}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019823_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824rm -f conftest.$ac_objext
19825if { (ac_try="$ac_compile"
19826case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19829esac
19830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_compile") 2>conftest.er1
19832 ac_status=$?
19833 grep -v '^ *+' conftest.er1 >conftest.err
19834 rm -f conftest.er1
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
19838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19839 { (case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842esac
19843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_try") 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852esac
19853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019858 ac_cv_func_isinf_in_math_h=yes
19859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019860 echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019865
Reid Spencera773bd52006-08-04 18:18:08 +000019866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019867 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019868ac_cpp='$CPP $CPPFLAGS'
19869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871ac_compiler_gnu=$ac_cv_c_compiler_gnu
19872
19873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019874{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19875echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019876
19877if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879cat >>confdefs.h <<\_ACEOF
19880#define HAVE_ISINF_IN_MATH_H 1
19881_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019882
Reid Spencerabec8f92004-10-27 23:03:44 +000019883fi
19884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19886echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19887if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019889else
Reid Spencera773bd52006-08-04 18:18:08 +000019890 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019891ac_cpp='$CXXCPP $CPPFLAGS'
19892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019901/* end confdefs.h. */
19902#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019903int
19904main ()
19905{
19906float f; isinf(f);
19907 ;
19908 return 0;
19909}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019910_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911rm -f conftest.$ac_objext
19912if { (ac_try="$ac_compile"
19913case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916esac
19917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_compile") 2>conftest.er1
19919 ac_status=$?
19920 grep -v '^ *+' conftest.er1 >conftest.err
19921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19926 { (case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929esac
19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_try") 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939esac
19940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_try") 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019945 ac_cv_func_isinf_in_cmath=yes
19946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019947 echo "$as_me: failed program was:" >&5
19948sed 's/^/| /' conftest.$ac_ext >&5
19949
19950 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019952
Reid Spencera773bd52006-08-04 18:18:08 +000019953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019954 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019955ac_cpp='$CPP $CPPFLAGS'
19956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958ac_compiler_gnu=$ac_cv_c_compiler_gnu
19959
19960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19962echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019963
19964if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019966cat >>confdefs.h <<\_ACEOF
19967#define HAVE_ISINF_IN_CMATH 1
19968_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019969
Reid Spencerabec8f92004-10-27 23:03:44 +000019970fi
19971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19973echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19974if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019976else
Reid Spencera773bd52006-08-04 18:18:08 +000019977 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019978ac_cpp='$CXXCPP $CPPFLAGS'
19979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019983 cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019988/* end confdefs.h. */
19989#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019990int
19991main ()
19992{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019993float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019994 ;
19995 return 0;
19996}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019997_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019998rm -f conftest.$ac_objext
19999if { (ac_try="$ac_compile"
20000case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003esac
20004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_compile") 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20013 { (case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20016esac
20017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_try") 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
20023 { (case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20026esac
20027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_try") 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020032 ac_cv_func_std_isinf_in_cmath=yes
20033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020034 echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020039
Reid Spencera773bd52006-08-04 18:18:08 +000020040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020041 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020042ac_cpp='$CPP $CPPFLAGS'
20043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045ac_compiler_gnu=$ac_cv_c_compiler_gnu
20046
20047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020048{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20049echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020050
20051if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020053cat >>confdefs.h <<\_ACEOF
20054#define HAVE_STD_ISINF_IN_CMATH 1
20055_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020056
Reid Spencerabec8f92004-10-27 23:03:44 +000020057fi
20058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020059{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20060echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20061if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020063else
Reid Spencera773bd52006-08-04 18:18:08 +000020064 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020065ac_cpp='$CXXCPP $CPPFLAGS'
20066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070 cat >conftest.$ac_ext <<_ACEOF
20071/* confdefs.h. */
20072_ACEOF
20073cat confdefs.h >>conftest.$ac_ext
20074cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020075/* end confdefs.h. */
20076#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020077int
20078main ()
20079{
20080float f; finite(f);
20081 ;
20082 return 0;
20083}
Brian Gaeked59a6472004-07-21 03:33:58 +000020084_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085rm -f conftest.$ac_objext
20086if { (ac_try="$ac_compile"
20087case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20090esac
20091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20093 ac_status=$?
20094 grep -v '^ *+' conftest.er1 >conftest.err
20095 rm -f conftest.er1
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103esac
20104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_try") 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20113esac
20114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_try") 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020119 ac_cv_func_finite_in_ieeefp_h=yes
20120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020121 echo "$as_me: failed program was:" >&5
20122sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020126
Reid Spencera773bd52006-08-04 18:18:08 +000020127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020128 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020129ac_cpp='$CPP $CPPFLAGS'
20130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133
20134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20136echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020137
Brian Gaeke6802b552004-10-28 05:06:45 +000020138if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020140cat >>confdefs.h <<\_ACEOF
20141#define HAVE_FINITE_IN_IEEEFP_H 1
20142_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020143
Reid Spencerabec8f92004-10-27 23:03:44 +000020144fi
20145
20146
20147
Reid Spencer30fe5262007-01-20 07:48:49 +000020148if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020149
20150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020151for ac_header in stdlib.h unistd.h
20152do
20153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159fi
20160ac_res=`eval echo '${'$as_ac_Header'}'`
20161 { echo "$as_me:$LINENO: result: $ac_res" >&5
20162echo "${ECHO_T}$ac_res" >&6; }
20163else
20164 # Is the header compilable?
20165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20167cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173$ac_includes_default
20174#include <$ac_header>
20175_ACEOF
20176rm -f conftest.$ac_objext
20177if { (ac_try="$ac_compile"
20178case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_compile") 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20191 { (case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20194esac
20195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_try") 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } &&
20200 { ac_try='test -s conftest.$ac_objext'
20201 { (case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20204esac
20205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_try") 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_header_compiler=yes
20211else
20212 echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020215 ac_header_compiler=no
20216fi
20217
20218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220echo "${ECHO_T}$ac_header_compiler" >&6; }
20221
20222# Is the header present?
20223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225cat >conftest.$ac_ext <<_ACEOF
20226/* confdefs.h. */
20227_ACEOF
20228cat confdefs.h >>conftest.$ac_ext
20229cat >>conftest.$ac_ext <<_ACEOF
20230/* end confdefs.h. */
20231#include <$ac_header>
20232_ACEOF
20233if { (ac_try="$ac_cpp conftest.$ac_ext"
20234case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237esac
20238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20240 ac_status=$?
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } >/dev/null; then
20246 if test -s conftest.err; then
20247 ac_cpp_err=$ac_c_preproc_warn_flag
20248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20249 else
20250 ac_cpp_err=
20251 fi
20252else
20253 ac_cpp_err=yes
20254fi
20255if test -z "$ac_cpp_err"; then
20256 ac_header_preproc=yes
20257else
20258 echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ac_header_preproc=no
20262fi
20263
20264rm -f conftest.err conftest.$ac_ext
20265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20266echo "${ECHO_T}$ac_header_preproc" >&6; }
20267
20268# So? What about this header?
20269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20270 yes:no: )
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20275 ac_header_preproc=yes
20276 ;;
20277 no:yes:* )
20278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20290 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020291## ------------------------------------ ##
20292## Report this to http://llvm.org/bugs/ ##
20293## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020294_ASBOX
20295 ) | sed "s/^/$as_me: WARNING: /" >&2
20296 ;;
20297esac
20298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303 eval "$as_ac_Header=\$ac_header_preproc"
20304fi
20305ac_res=`eval echo '${'$as_ac_Header'}'`
20306 { echo "$as_me:$LINENO: result: $ac_res" >&5
20307echo "${ECHO_T}$ac_res" >&6; }
20308
20309fi
20310if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020311 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020313_ACEOF
20314
20315fi
20316
20317done
20318
20319
20320for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321do
20322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20323{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h. */
20334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20336#define $ac_func innocuous_$ac_func
20337
20338/* System header to define __stub macros and hopefully few prototypes,
20339 which can conflict with char $ac_func (); below.
20340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20341 <limits.h> exists even on freestanding compilers. */
20342
20343#ifdef __STDC__
20344# include <limits.h>
20345#else
20346# include <assert.h>
20347#endif
20348
20349#undef $ac_func
20350
20351/* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20354#ifdef __cplusplus
20355extern "C"
20356#endif
20357char $ac_func ();
20358/* The GNU C library defines this for functions which it implements
20359 to always fail with ENOSYS. Some functions are actually named
20360 something starting with __ and the normal name is an alias. */
20361#if defined __stub_$ac_func || defined __stub___$ac_func
20362choke me
20363#endif
20364
20365int
20366main ()
20367{
20368return $ac_func ();
20369 ;
20370 return 0;
20371}
20372_ACEOF
20373rm -f conftest.$ac_objext conftest$ac_exeext
20374if { (ac_try="$ac_link"
20375case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20378esac
20379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_link") 2>conftest.er1
20381 ac_status=$?
20382 grep -v '^ *+' conftest.er1 >conftest.err
20383 rm -f conftest.er1
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
20387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20391esac
20392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest$ac_exeext'
20398 { (case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401esac
20402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_try") 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 eval "$as_ac_var=yes"
20408else
20409 echo "$as_me: failed program was:" >&5
20410sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 eval "$as_ac_var=no"
20413fi
20414
20415rm -f core conftest.err conftest.$ac_objext \
20416 conftest$ac_exeext conftest.$ac_ext
20417fi
20418ac_res=`eval echo '${'$as_ac_var'}'`
20419 { echo "$as_me:$LINENO: result: $ac_res" >&5
20420echo "${ECHO_T}$ac_res" >&6; }
20421if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020422 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020424_ACEOF
20425
20426fi
20427done
20428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429{ echo "$as_me:$LINENO: checking for working mmap" >&5
20430echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20431if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020435 ac_cv_func_mmap_fixed_mapped=no
20436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020437 cat >conftest.$ac_ext <<_ACEOF
20438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020443$ac_includes_default
20444/* malloc might have been renamed as rpl_malloc. */
20445#undef malloc
20446
20447/* Thanks to Mike Haertel and Jim Avera for this test.
20448 Here is a matrix of mmap possibilities:
20449 mmap private not fixed
20450 mmap private fixed at somewhere currently unmapped
20451 mmap private fixed at somewhere already mapped
20452 mmap shared not fixed
20453 mmap shared fixed at somewhere currently unmapped
20454 mmap shared fixed at somewhere already mapped
20455 For private mappings, we should verify that changes cannot be read()
20456 back from the file, nor mmap's back from the file at a different
20457 address. (There have been systems where private was not correctly
20458 implemented like the infamous i386 svr4.0, and systems where the
20459 VM page cache was not coherent with the file system buffer cache
20460 like early versions of FreeBSD and possibly contemporary NetBSD.)
20461 For shared mappings, we should conversely verify that changes get
20462 propagated back to all the places they're supposed to be.
20463
20464 Grep wants private fixed already mapped.
20465 The main things grep needs to know about mmap are:
20466 * does it exist and is it safe to write into the mmap'd area
20467 * how to use it (BSD variants) */
20468
20469#include <fcntl.h>
20470#include <sys/mman.h>
20471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020473char *malloc ();
20474#endif
20475
20476/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477#if !HAVE_GETPAGESIZE
20478/* Assume that all systems that can run configure have sys/param.h. */
20479# if !HAVE_SYS_PARAM_H
20480# define HAVE_SYS_PARAM_H 1
20481# endif
20482
John Criswell7a73b802003-06-30 21:59:07 +000020483# ifdef _SC_PAGESIZE
20484# define getpagesize() sysconf(_SC_PAGESIZE)
20485# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020487# include <sys/param.h>
20488# ifdef EXEC_PAGESIZE
20489# define getpagesize() EXEC_PAGESIZE
20490# else /* no EXEC_PAGESIZE */
20491# ifdef NBPG
20492# define getpagesize() NBPG * CLSIZE
20493# ifndef CLSIZE
20494# define CLSIZE 1
20495# endif /* no CLSIZE */
20496# else /* no NBPG */
20497# ifdef NBPC
20498# define getpagesize() NBPC
20499# else /* no NBPC */
20500# ifdef PAGESIZE
20501# define getpagesize() PAGESIZE
20502# endif /* PAGESIZE */
20503# endif /* no NBPC */
20504# endif /* no NBPG */
20505# endif /* no EXEC_PAGESIZE */
20506# else /* no HAVE_SYS_PARAM_H */
20507# define getpagesize() 8192 /* punt totally */
20508# endif /* no HAVE_SYS_PARAM_H */
20509# endif /* no _SC_PAGESIZE */
20510
20511#endif /* no HAVE_GETPAGESIZE */
20512
20513int
20514main ()
20515{
20516 char *data, *data2, *data3;
20517 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020519
20520 pagesize = getpagesize ();
20521
20522 /* First, make a file with some known garbage in it. */
20523 data = (char *) malloc (pagesize);
20524 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020525 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020526 for (i = 0; i < pagesize; ++i)
20527 *(data + i) = rand ();
20528 umask (0);
20529 fd = creat ("conftest.mmap", 0600);
20530 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020532 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020534 close (fd);
20535
20536 /* Next, try to mmap the file at a fixed address which already has
20537 something else allocated at it. If we can, also make sure that
20538 we see the same garbage. */
20539 fd = open ("conftest.mmap", O_RDWR);
20540 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541 return 1;
20542 data2 = (char *) malloc (2 * pagesize);
20543 if (!data2)
20544 return 1;
20545 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020546 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020547 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020549 for (i = 0; i < pagesize; ++i)
20550 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020551 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020552
20553 /* Finally, make sure that changes to the mapped area do not
20554 percolate back to the file as seen by read(). (This is a bug on
20555 some variants of i386 svr4.0.) */
20556 for (i = 0; i < pagesize; ++i)
20557 *(data2 + i) = *(data2 + i) + 1;
20558 data3 = (char *) malloc (pagesize);
20559 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020561 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020563 for (i = 0; i < pagesize; ++i)
20564 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020566 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020567 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020568}
20569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570rm -f conftest$ac_exeext
20571if { (ac_try="$ac_link"
20572case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20575esac
20576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_link") 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20581 { (case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584esac
20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_try") 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020590 ac_cv_func_mmap_fixed_mapped=yes
20591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592 echo "$as_me: program exited with status $ac_status" >&5
20593echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596( exit $ac_status )
20597ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599rm -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 +000020600fi
Reid Spencera773bd52006-08-04 18:18:08 +000020601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602
John Criswell7a73b802003-06-30 21:59:07 +000020603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20605echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020606if test $ac_cv_func_mmap_fixed_mapped = yes; then
20607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608cat >>confdefs.h <<\_ACEOF
20609#define HAVE_MMAP 1
20610_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020611
20612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20616echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20617if test "${ac_cv_func_mmap_file+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020619else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020620 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020621ac_cpp='$CPP $CPPFLAGS'
20622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624ac_compiler_gnu=$ac_cv_c_compiler_gnu
20625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020626 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020627 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020629 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020631 /* confdefs.h. */
20632_ACEOF
20633cat confdefs.h >>conftest.$ac_ext
20634cat >>conftest.$ac_ext <<_ACEOF
20635/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020636
John Criswell7a73b802003-06-30 21:59:07 +000020637#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020638#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020639#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020640
20641int
20642main ()
20643{
John Criswell7a73b802003-06-30 21:59:07 +000020644
20645 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020646 fd = creat ("foo",0777);
20647 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20648 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020649 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020650 ;
20651 return 0;
20652}
John Criswell7a73b802003-06-30 21:59:07 +000020653_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020654rm -f conftest$ac_exeext
20655if { (ac_try="$ac_link"
20656case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659esac
20660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_link") 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20665 { (case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668esac
20669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_try") 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020674 ac_cv_func_mmap_file=yes
20675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676 echo "$as_me: program exited with status $ac_status" >&5
20677echo "$as_me: failed program was:" >&5
20678sed 's/^/| /' conftest.$ac_ext >&5
20679
20680( exit $ac_status )
20681ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683rm -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 +000020684fi
Reid Spencera773bd52006-08-04 18:18:08 +000020685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686
John Criswell7a73b802003-06-30 21:59:07 +000020687 ac_ext=c
20688ac_cpp='$CPP $CPPFLAGS'
20689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691ac_compiler_gnu=$ac_cv_c_compiler_gnu
20692
20693
20694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020695{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20696echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020697if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020699cat >>confdefs.h <<\_ACEOF
20700#define HAVE_MMAP_FILE
20701_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020702
20703 MMAP_FILE=yes
20704
20705fi
20706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020707 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20708echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20709if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020711else
Reid Spencer582a23c2004-12-29 07:07:57 +000020712 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020713 ac_cv_need_dev_zero_for_mmap=yes
20714 else
20715 ac_cv_need_dev_zero_for_mmap=no
20716 fi
20717
20718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020719{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20720echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020721if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723cat >>confdefs.h <<\_ACEOF
20724#define NEED_DEV_ZERO_FOR_MMAP 1
20725_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020726
20727fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020728
Reid Spencer30fe5262007-01-20 07:48:49 +000020729 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20730 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020731 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20732echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020733 fi
20734 if test "$ac_cv_func_mmap_file" = "no"
20735 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20737echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020738 fi
John Criswellb13092b2003-07-22 21:00:24 +000020739fi
John Criswell7a73b802003-06-30 21:59:07 +000020740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020741{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20742echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020743ac_ext=cpp
20744ac_cpp='$CXXCPP $CPPFLAGS'
20745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020749cat >conftest.$ac_ext <<_ACEOF
20750/* confdefs.h. */
20751_ACEOF
20752cat confdefs.h >>conftest.$ac_ext
20753cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020754/* end confdefs.h. */
20755int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020756 volatile unsigned long val = 1;
20757 __sync_synchronize();
20758 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020759 __sync_add_and_fetch(&val, 1);
20760 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020761 return 0;
20762 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020763
20764_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765rm -f conftest.$ac_objext conftest$ac_exeext
20766if { (ac_try="$ac_link"
20767case "(($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_link") 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780 { (case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783esac
20784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_try") 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest$ac_exeext'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793esac
20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020799 ac_ext=c
20800ac_cpp='$CPP $CPPFLAGS'
20801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805 { echo "$as_me:$LINENO: result: yes" >&5
20806echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020808cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020809#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020811
Owen Andersond4b272b2009-05-18 23:58:51 +000020812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813 echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020816 { echo "$as_me:$LINENO: result: no" >&5
20817echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020819cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020820#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020821_ACEOF
20822
20823 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20824echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020826
Owen Andersond4b272b2009-05-18 23:58:51 +000020827rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020829
John Criswell7a73b802003-06-30 21:59:07 +000020830
Nick Lewycky4372e692009-09-29 06:18:23 +000020831if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020832 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20833echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20834if test "${llvm_cv_linux_mixed+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020836else
20837 ac_ext=c
20838ac_cpp='$CPP $CPPFLAGS'
20839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020843 cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020848/* end confdefs.h. */
20849#ifndef __x86_64__
20850 error: Not x86-64 even if uname says so!
20851 #endif
20852
20853int
20854main ()
20855{
20856
20857 ;
20858 return 0;
20859}
20860_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020861rm -f conftest.$ac_objext
20862if { (ac_try="$ac_compile"
20863case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866esac
20867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20876 { (case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879esac
20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_try") 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889esac
20890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020895 llvm_cv_linux_mixed=no
20896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020902
Nick Lewycky4372e692009-09-29 06:18:23 +000020903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 ac_ext=c
20905ac_cpp='$CPP $CPPFLAGS'
20906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909
20910
20911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20913echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020914
20915 if test "$llvm_cv_linux_mixed" = "yes"; then
20916 llvm_cv_target_arch="x86"
20917 ARCH="x86"
20918 fi
20919fi
20920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020921
Reid Spencer9372f152007-07-30 20:13:24 +000020922for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923do
20924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20925{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20927if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929else
20930 cat >conftest.$ac_ext <<_ACEOF
20931/* confdefs.h. */
20932_ACEOF
20933cat confdefs.h >>conftest.$ac_ext
20934cat >>conftest.$ac_ext <<_ACEOF
20935/* end confdefs.h. */
20936/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20938#define $ac_func innocuous_$ac_func
20939
20940/* System header to define __stub macros and hopefully few prototypes,
20941 which can conflict with char $ac_func (); below.
20942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20943 <limits.h> exists even on freestanding compilers. */
20944
20945#ifdef __STDC__
20946# include <limits.h>
20947#else
20948# include <assert.h>
20949#endif
20950
20951#undef $ac_func
20952
20953/* Override any GCC internal prototype to avoid an error.
20954 Use char because int might match the return type of a GCC
20955 builtin and then its argument prototype would still apply. */
20956#ifdef __cplusplus
20957extern "C"
20958#endif
20959char $ac_func ();
20960/* The GNU C library defines this for functions which it implements
20961 to always fail with ENOSYS. Some functions are actually named
20962 something starting with __ and the normal name is an alias. */
20963#if defined __stub_$ac_func || defined __stub___$ac_func
20964choke me
20965#endif
20966
20967int
20968main ()
20969{
20970return $ac_func ();
20971 ;
20972 return 0;
20973}
20974_ACEOF
20975rm -f conftest.$ac_objext conftest$ac_exeext
20976if { (ac_try="$ac_link"
20977case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_link") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993esac
20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest$ac_exeext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003esac
21004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 eval "$as_ac_var=yes"
21010else
21011 echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 eval "$as_ac_var=no"
21015fi
21016
21017rm -f core conftest.err conftest.$ac_objext \
21018 conftest$ac_exeext conftest.$ac_ext
21019fi
21020ac_res=`eval echo '${'$as_ac_var'}'`
21021 { echo "$as_me:$LINENO: result: $ac_res" >&5
21022echo "${ECHO_T}$ac_res" >&6; }
21023if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021024 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021026_ACEOF
21027
21028fi
21029done
21030
21031
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021032SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021033
21034
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021035SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21036
21037
Jeff Cohen28783c32007-01-12 18:22:38 +000021038if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021039 prefix="/usr/local"
21040fi
Reid Spencere9de0912004-08-20 09:03:57 +000021041eval LLVM_PREFIX="${prefix}";
21042eval LLVM_BINDIR="${prefix}/bin";
21043eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021044eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021045eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021046eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021047eval LLVM_INCLUDEDIR="${prefix}/include";
21048eval LLVM_INFODIR="${prefix}/info";
21049eval LLVM_MANDIR="${prefix}/man";
21050LLVM_CONFIGTIME=`date`
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021062if test "${ENABLE_TIMESTAMPS}" = "0"; then
21063 LLVM_CONFIGTIME="(timestamp not enabled)"
21064fi
21065
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021066
Reid Spencere9de0912004-08-20 09:03:57 +000021067cat >>confdefs.h <<_ACEOF
21068#define LLVM_PREFIX "$LLVM_PREFIX"
21069_ACEOF
21070
21071
21072cat >>confdefs.h <<_ACEOF
21073#define LLVM_BINDIR "$LLVM_BINDIR"
21074_ACEOF
21075
21076
21077cat >>confdefs.h <<_ACEOF
21078#define LLVM_LIBDIR "$LLVM_LIBDIR"
21079_ACEOF
21080
21081
21082cat >>confdefs.h <<_ACEOF
21083#define LLVM_DATADIR "$LLVM_DATADIR"
21084_ACEOF
21085
21086
21087cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021088#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021089_ACEOF
21090
21091
21092cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021093#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021094_ACEOF
21095
21096
21097cat >>confdefs.h <<_ACEOF
21098#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21099_ACEOF
21100
21101
21102cat >>confdefs.h <<_ACEOF
21103#define LLVM_INFODIR "$LLVM_INFODIR"
21104_ACEOF
21105
21106
21107cat >>confdefs.h <<_ACEOF
21108#define LLVM_MANDIR "$LLVM_MANDIR"
21109_ACEOF
21110
21111
21112cat >>confdefs.h <<_ACEOF
21113#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21114_ACEOF
21115
21116
Eric Christopher790e11c2007-12-01 00:34:39 +000021117cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021118#define LLVM_HOSTTRIPLE "$host"
21119_ACEOF
21120
21121
21122cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021123#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021124_ACEOF
21125
21126
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021127if test "$BINDINGS_TO_BUILD" = auto ; then
21128 BINDINGS_TO_BUILD=""
21129 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21130 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21131 fi
21132fi
21133BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21134
21135
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021136ALL_BINDINGS=ocaml
21137
21138
Gordon Henriksenf0915682007-10-02 16:42:22 +000021139binding_prereqs_failed=0
21140for a_binding in $BINDINGS_TO_BUILD ; do
21141 case "$a_binding" in
21142 ocaml)
21143 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021144 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21145echo "$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 +000021146 binding_prereqs_failed=1
21147 fi
21148 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21150echo "$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 +000021151 binding_prereqs_failed=1
21152 fi
21153 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21155echo "$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 +000021156 fi
21157 if test "x$with_ocaml_libdir" != xauto ; then
21158 OCAML_LIBDIR=$with_ocaml_libdir
21159
21160 else
21161 ocaml_stdlib="`"$OCAMLC" -where`"
21162 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21163 then
21164 # ocaml stdlib is beneath our prefix; use stdlib
21165 OCAML_LIBDIR=$ocaml_stdlib
21166
21167 else
21168 # ocaml stdlib is outside our prefix; use libdir/ocaml
21169 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21170
21171 fi
21172 fi
21173 ;;
21174 esac
21175done
21176if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21178echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21179 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021180fi
21181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021182{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21183echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21184if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021186else
21187 ac_ext=cpp
21188ac_cpp='$CXXCPP $CPPFLAGS'
21189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192
21193 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021194 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021195 cat >conftest.$ac_ext <<_ACEOF
21196/* confdefs.h. */
21197_ACEOF
21198cat confdefs.h >>conftest.$ac_ext
21199cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021200/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021201template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021202int
21203main ()
21204{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021205X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021206 ;
21207 return 0;
21208}
21209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021210rm -f conftest.$ac_objext
21211if { (ac_try="$ac_compile"
21212case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215esac
21216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228esac
21229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238esac
21239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021244 llvm_cv_cxx_visibility_inlines_hidden=yes
21245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 echo "$as_me: failed program was:" >&5
21247sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 CXXFLAGS="$oldcxxflags"
21254 ac_ext=c
21255ac_cpp='$CPP $CPPFLAGS'
21256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260
21261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21263echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021264if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21265 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21266
21267else
21268 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21269
21270fi
21271
Gordon Henriksenf0915682007-10-02 16:42:22 +000021272
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021273if test "$llvm_cv_link_use_r" = "yes" ; then
21274 RPATH="-Wl,-R"
21275else
21276 RPATH="-Wl,-rpath"
21277fi
21278
21279
21280if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21281 RDYNAMIC="-Wl,-export-dynamic"
21282else
21283 RDYNAMIC=""
21284fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021285
21286
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021287
Eric Christophera1cba682010-08-08 02:44:25 +000021288ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021289
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021290
21291
21292
21293
21294
Douglas Gregor1555a232009-06-16 20:12:29 +000021295ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21296
21297ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21298
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021299ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21300
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021301ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21302
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021303ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021304
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021305
Reid Spencera773bd52006-08-04 18:18:08 +000021306ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021307
Eric Christopher360fa9a2011-10-26 00:42:12 +000021308
Reid Spencerea949cf2006-08-16 00:45:38 +000021309ac_config_files="$ac_config_files llvm.spec"
21310
21311
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021312ac_config_files="$ac_config_files docs/doxygen.cfg"
21313
Eric Christopher63c09512012-02-02 00:16:55 +000021314
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021315if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021316 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021317fi
Eric Christopher63c09512012-02-02 00:16:55 +000021318if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021319 configh="include/clang/Config/config.h"
21320 doxy="docs/doxygen.cfg"
21321 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021322
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021323 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021324
21325fi
21326
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021327ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021328
Eric Christopher360fa9a2011-10-26 00:42:12 +000021329
Reid Spencera773bd52006-08-04 18:18:08 +000021330ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021331
Reid Spencera773bd52006-08-04 18:18:08 +000021332ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021333
21334
Reid Spencera773bd52006-08-04 18:18:08 +000021335ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021336
21337
Reid Spencera773bd52006-08-04 18:18:08 +000021338ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021339
21340
Reid Spencera773bd52006-08-04 18:18:08 +000021341ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021342
21343
Reid Spencer8b2e1412006-11-17 03:32:33 +000021344ac_config_commands="$ac_config_commands runtime/Makefile"
21345
21346
Reid Spencera773bd52006-08-04 18:18:08 +000021347ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021348
21349
Reid Spencera773bd52006-08-04 18:18:08 +000021350ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021351
21352
Bill Wendlingf24eb392009-01-04 23:12:30 +000021353ac_config_commands="$ac_config_commands unittests/Makefile"
21354
21355
Reid Spencera773bd52006-08-04 18:18:08 +000021356ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021357
21358
Reid Spencera773bd52006-08-04 18:18:08 +000021359ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021360
21361
Reid Spencera773bd52006-08-04 18:18:08 +000021362ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021363
21364
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021365ac_config_commands="$ac_config_commands bindings/Makefile"
21366
21367
21368ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21369
21370
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021371
John Criswell7a73b802003-06-30 21:59:07 +000021372cat >confcache <<\_ACEOF
21373# This file is a shell script that caches the results of configure
21374# tests run on this system so they can be shared between configure
21375# scripts and configure runs, see configure's option --config-cache.
21376# It is not useful on other systems. If it contains results you don't
21377# want to keep, you may remove or edit it.
21378#
21379# config.status only pays attention to the cache file if you give it
21380# the --recheck option to rerun configure.
21381#
John Criswell0c38eaf2003-09-10 15:17:25 +000021382# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021383# loading this file, other *unset* `ac_cv_foo' will be assigned the
21384# following values.
21385
21386_ACEOF
21387
21388# The following way of writing the cache mishandles newlines in values,
21389# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021390# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021391# Ultrix sh set writes to stderr and can't be redirected directly,
21392# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021393(
21394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21395 eval ac_val=\$$ac_var
21396 case $ac_val in #(
21397 *${as_nl}*)
21398 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021399 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21400echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021401 esac
21402 case $ac_var in #(
21403 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021405 esac ;;
21406 esac
21407 done
21408
John Criswell7a73b802003-06-30 21:59:07 +000021409 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21411 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 # `set' does not quote correctly, so add quotes (double-quote
21413 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021414 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021415 "s/'/'\\\\''/g;
21416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021417 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021418 *)
21419 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021421 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021422 esac |
21423 sort
21424) |
John Criswell7a73b802003-06-30 21:59:07 +000021425 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021426 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021427 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021428 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21430 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21432 :end' >>confcache
21433if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21434 if test -w "$cache_file"; then
21435 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21437echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021438 cat confcache >$cache_file
21439 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021440 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21441echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021442 fi
21443fi
21444rm -f confcache
21445
21446test "x$prefix" = xNONE && prefix=$ac_default_prefix
21447# Let make expand exec_prefix.
21448test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21449
John Criswell7a73b802003-06-30 21:59:07 +000021450DEFS=-DHAVE_CONFIG_H
21451
John Criswell0c38eaf2003-09-10 15:17:25 +000021452ac_libobjs=
21453ac_ltlibobjs=
21454for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21455 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021456 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021458 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21459 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21461 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021462done
21463LIBOBJS=$ac_libobjs
21464
21465LTLIBOBJS=$ac_ltlibobjs
21466
21467
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021468if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021469 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21470Usually this means the macro was only invoked conditionally." >&5
21471echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21472Usually this means the macro was only invoked conditionally." >&2;}
21473 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021474fi
21475if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21477Usually this means the macro was only invoked conditionally." >&5
21478echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21479Usually this means the macro was only invoked conditionally." >&2;}
21480 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021481fi
John Criswell7a73b802003-06-30 21:59:07 +000021482
21483: ${CONFIG_STATUS=./config.status}
21484ac_clean_files_save=$ac_clean_files
21485ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21487echo "$as_me: creating $CONFIG_STATUS" >&6;}
21488cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021489#! $SHELL
21490# Generated by $as_me.
21491# Run this file to recreate the current configuration.
21492# Compiler output produced by configure, useful for debugging
21493# configure, is in config.log if it exists.
21494
21495debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021496ac_cs_recheck=false
21497ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021498SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501cat >>$CONFIG_STATUS <<\_ACEOF
21502## --------------------- ##
21503## M4sh Initialization. ##
21504## --------------------- ##
21505
21506# Be Bourne compatible
21507if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021508 emulate sh
21509 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021511 # is contrary to our usage. Disable this feature.
21512 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021513 setopt NO_GLOB_SUBST
21514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517BIN_SH=xpg4; export BIN_SH # for Tru64
21518DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021519
John Criswell7a73b802003-06-30 21:59:07 +000021520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021521# PATH needs CR
21522# Avoid depending upon Character Ranges.
21523as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21524as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21525as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21526as_cr_digits='0123456789'
21527as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021528
21529# The user is always right.
21530if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531 echo "#! /bin/sh" >conf$$.sh
21532 echo "exit 0" >>conf$$.sh
21533 chmod +x conf$$.sh
21534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21535 PATH_SEPARATOR=';'
21536 else
21537 PATH_SEPARATOR=:
21538 fi
21539 rm -f conf$$.sh
21540fi
21541
21542# Support unset when possible.
21543if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21544 as_unset=unset
21545else
21546 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021547fi
John Criswell7a73b802003-06-30 21:59:07 +000021548
Reid Spencera773bd52006-08-04 18:18:08 +000021549
21550# IFS
21551# We need space, tab and new line, in precisely that order. Quoting is
21552# there to prevent editors from complaining about space-tab.
21553# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21554# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021555as_nl='
21556'
Reid Spencera773bd52006-08-04 18:18:08 +000021557IFS=" "" $as_nl"
21558
21559# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021561 *[\\/]* ) as_myself=$0 ;;
21562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021563for as_dir in $PATH
21564do
21565 IFS=$as_save_IFS
21566 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21568done
Reid Spencera773bd52006-08-04 18:18:08 +000021569IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021570
Reid Spencera773bd52006-08-04 18:18:08 +000021571 ;;
21572esac
21573# We did not find ourselves, most probably we were run as `sh COMMAND'
21574# in which case we are not to be found in the path.
21575if test "x$as_myself" = x; then
21576 as_myself=$0
21577fi
21578if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021579 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21580 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021581fi
21582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583# Work around bugs in pre-3.0 UWIN ksh.
21584for as_var in ENV MAIL MAILPATH
21585do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021586done
21587PS1='$ '
21588PS2='> '
21589PS4='+ '
21590
21591# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592for as_var in \
21593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21595 LC_TELEPHONE LC_TIME
21596do
21597 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21598 eval $as_var=C; export $as_var
21599 else
21600 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021601 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602done
Torok Edwin871384f2010-01-26 08:50:50 +000021603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021605if expr a : '\(a\)' >/dev/null 2>&1 &&
21606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21607 as_expr=expr
21608else
21609 as_expr=false
21610fi
21611
21612if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21613 as_basename=basename
21614else
21615 as_basename=false
21616fi
21617
21618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021619# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021620as_me=`$as_basename -- "$0" ||
21621$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21622 X"$0" : 'X\(//\)$' \| \
21623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021625 sed '/^.*\/\([^/][^/]*\)\/*$/{
21626 s//\1/
21627 q
21628 }
21629 /^X\/\(\/\/\)$/{
21630 s//\1/
21631 q
21632 }
21633 /^X\/\(\/\).*/{
21634 s//\1/
21635 q
21636 }
21637 s/.*/./; q'`
21638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021639# CDPATH.
21640$as_unset CDPATH
21641
21642
21643
21644 as_lineno_1=$LINENO
21645 as_lineno_2=$LINENO
21646 test "x$as_lineno_1" != "x$as_lineno_2" &&
21647 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21648
21649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21650 # uniformly replaced by the line number. The first 'sed' inserts a
21651 # line-number line after each line using $LINENO; the second 'sed'
21652 # does the real work. The second script uses 'N' to pair each
21653 # line-number line with the line containing $LINENO, and appends
21654 # trailing '-' during substitution so that $LINENO is not a special
21655 # case at line end.
21656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21657 # scripts with optimization help from Paolo Bonzini. Blame Lee
21658 # E. McMahon (1931-1989) for sed's syntax. :-)
21659 sed -n '
21660 p
21661 /[$]LINENO/=
21662 ' <$as_myself |
21663 sed '
21664 s/[$]LINENO.*/&-/
21665 t lineno
21666 b
21667 :lineno
21668 N
21669 :loop
21670 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21671 t loop
21672 s/-\n.*//
21673 ' >$as_me.lineno &&
21674 chmod +x "$as_me.lineno" ||
21675 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21676 { (exit 1); exit 1; }; }
21677
21678 # Don't try to exec as it changes $[0], causing all sort of problems
21679 # (the dirname of $[0] is not the place where we might find the
21680 # original and so on. Autoconf is especially sensitive to this).
21681 . "./$as_me.lineno"
21682 # Exit status is that of the last command.
21683 exit
21684}
21685
21686
21687if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21688 as_dirname=dirname
21689else
21690 as_dirname=false
21691fi
Reid Spencera773bd52006-08-04 18:18:08 +000021692
21693ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021694case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021695-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021696 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021697 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021699 esac;;
21700*)
21701 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021702esac
21703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021704if expr a : '\(a\)' >/dev/null 2>&1 &&
21705 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21706 as_expr=expr
21707else
21708 as_expr=false
21709fi
21710
John Criswell7a73b802003-06-30 21:59:07 +000021711rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021712if test -d conf$$.dir; then
21713 rm -f conf$$.dir/conf$$.file
21714else
21715 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021718echo >conf$$.file
21719if ln -s conf$$.file conf$$ 2>/dev/null; then
21720 as_ln_s='ln -s'
21721 # ... but there are two gotchas:
21722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21724 # In both cases, we have to default to `cp -p'.
21725 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021726 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727elif ln conf$$.file conf$$ 2>/dev/null; then
21728 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021729else
21730 as_ln_s='cp -p'
21731fi
Reid Spencera773bd52006-08-04 18:18:08 +000021732rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21733rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021734
John Criswell0c38eaf2003-09-10 15:17:25 +000021735if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021736 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021737else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021739 as_mkdir_p=false
21740fi
21741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21743# systems may use methods other than mode bits to determine executability.
21744cat >conf$$.file <<_ASEOF
21745#! /bin/sh
21746exit 0
21747_ASEOF
21748chmod +x conf$$.file
21749if test -x conf$$.file >/dev/null 2>&1; then
21750 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021755
21756# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021757as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021758
21759# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021760as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021761
21762
John Criswell7a73b802003-06-30 21:59:07 +000021763exec 6>&1
21764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021766# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021767# values after options handling.
21768ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021769This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021770generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021771
21772 CONFIG_FILES = $CONFIG_FILES
21773 CONFIG_HEADERS = $CONFIG_HEADERS
21774 CONFIG_LINKS = $CONFIG_LINKS
21775 CONFIG_COMMANDS = $CONFIG_COMMANDS
21776 $ $0 $@
21777
Reid Spencera773bd52006-08-04 18:18:08 +000021778on `(hostname || uname -n) 2>/dev/null | sed 1q`
21779"
21780
John Criswell7a73b802003-06-30 21:59:07 +000021781_ACEOF
21782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021784# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021785config_files="$ac_config_files"
21786config_headers="$ac_config_headers"
21787config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021788
Reid Spencera773bd52006-08-04 18:18:08 +000021789_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021792ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021793\`$as_me' instantiates files from templates according to the
21794current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021796Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021797
21798 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799 -V, --version print version number, then exit
21800 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021801 -d, --debug don't remove temporary files
21802 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803 --file=FILE[:TEMPLATE]
21804 instantiate the configuration file FILE
21805 --header=FILE[:TEMPLATE]
21806 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021807
21808Configuration files:
21809$config_files
21810
21811Configuration headers:
21812$config_headers
21813
John Criswellc764fbc2003-09-06 15:17:13 +000021814Configuration commands:
21815$config_commands
21816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021818
Reid Spencera773bd52006-08-04 18:18:08 +000021819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021821ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021822LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823configured by $0, generated by GNU Autoconf 2.60,
21824 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021826Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021827This config.status script is free software; the Free Software Foundation
21828gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021829
21830ac_pwd='$ac_pwd'
21831srcdir='$srcdir'
21832INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021833_ACEOF
21834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835cat >>$CONFIG_STATUS <<\_ACEOF
21836# If no file are specified by the user, then we need to provide default
21837# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021838ac_need_defaults=:
21839while test $# != 0
21840do
21841 case $1 in
21842 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021845 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021846 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021847 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021848 ac_option=$1
21849 ac_optarg=$2
21850 ac_shift=shift
21851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021852 esac
21853
John Criswell0c38eaf2003-09-10 15:17:25 +000021854 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021855 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21857 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021859 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021860 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021861 debug=: ;;
21862 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021863 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021865 ac_need_defaults=false;;
21866 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021867 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021869 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021870 --he | --h)
21871 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 { echo "$as_me: error: ambiguous option: $1
21873Try \`$0 --help' for more information." >&2
21874 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021875 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21879 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021880
21881 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021882 -*) { echo "$as_me: error: unrecognized option: $1
21883Try \`$0 --help' for more information." >&2
21884 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021887 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021888
21889 esac
21890 shift
21891done
21892
John Criswell0c38eaf2003-09-10 15:17:25 +000021893ac_configure_extra_args=
21894
21895if $ac_cs_silent; then
21896 exec 6>/dev/null
21897 ac_configure_extra_args="$ac_configure_extra_args --silent"
21898fi
21899
21900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021901cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021902if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21904 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021905 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021907fi
21908
John Criswell7a73b802003-06-30 21:59:07 +000021909_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021911exec 5>>config.log
21912{
21913 echo
21914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21915## Running $as_me. ##
21916_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021918} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021919
Reid Spencera773bd52006-08-04 18:18:08 +000021920_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021922#
Reid Spencera773bd52006-08-04 18:18:08 +000021923# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021924#
Reid Spencerc0682832005-02-24 19:05:19 +000021925llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021926
21927_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021930
21931# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021932for ac_config_target in $ac_config_targets
21933do
Reid Spencera773bd52006-08-04 18:18:08 +000021934 case $ac_config_target in
21935 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021936 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021937 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21938 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021939 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021940 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021941 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021942 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021943 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021944 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021945 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21946 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021947 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021948 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21949 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21950 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21951 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21952 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021953 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021954 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21955 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021956 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021957 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21958 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21959 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021960 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21961 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21964echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21965 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021966 esac
21967done
21968
Reid Spencera773bd52006-08-04 18:18:08 +000021969
John Criswell7a73b802003-06-30 21:59:07 +000021970# If the user did not use the arguments to specify the items to instantiate,
21971# then the envvar interface is used. Set only those that are not.
21972# We use the long form for the default assignment because of an extremely
21973# bizarre bug on SunOS 4.1.3.
21974if $ac_need_defaults; then
21975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021978fi
21979
John Criswell0c38eaf2003-09-10 15:17:25 +000021980# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021981# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021982# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021983# Hook for its removal unless debugging.
21984# Note that there is a small window in which the directory will not be cleaned:
21985# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021986$debug ||
21987{
Reid Spencera773bd52006-08-04 18:18:08 +000021988 tmp=
21989 trap 'exit_status=$?
21990 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21991' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021993}
John Criswell7a73b802003-06-30 21:59:07 +000021994# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021995
John Criswell7a73b802003-06-30 21:59:07 +000021996{
Reid Spencera773bd52006-08-04 18:18:08 +000021997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021998 test -n "$tmp" && test -d "$tmp"
21999} ||
22000{
Reid Spencera773bd52006-08-04 18:18:08 +000022001 tmp=./conf$$-$RANDOM
22002 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022003} ||
22004{
22005 echo "$me: cannot create a temporary directory in ." >&2
22006 { (exit 1); exit 1; }
22007}
John Criswell7a73b802003-06-30 21:59:07 +000022008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009#
22010# Set up the sed scripts for CONFIG_FILES section.
22011#
22012
22013# No need to generate the scripts if there are no CONFIG_FILES.
22014# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022015if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022016
22017_ACEOF
22018
Reid Spencera773bd52006-08-04 18:18:08 +000022019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022020
Reid Spencera773bd52006-08-04 18:18:08 +000022021ac_delim='%!_!# '
22022for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023 cat >conf$$subs.sed <<_ACEOF
22024SHELL!$SHELL$ac_delim
22025PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22026PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22027PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22028PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22029PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22030PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22031exec_prefix!$exec_prefix$ac_delim
22032prefix!$prefix$ac_delim
22033program_transform_name!$program_transform_name$ac_delim
22034bindir!$bindir$ac_delim
22035sbindir!$sbindir$ac_delim
22036libexecdir!$libexecdir$ac_delim
22037datarootdir!$datarootdir$ac_delim
22038datadir!$datadir$ac_delim
22039sysconfdir!$sysconfdir$ac_delim
22040sharedstatedir!$sharedstatedir$ac_delim
22041localstatedir!$localstatedir$ac_delim
22042includedir!$includedir$ac_delim
22043oldincludedir!$oldincludedir$ac_delim
22044docdir!$docdir$ac_delim
22045infodir!$infodir$ac_delim
22046htmldir!$htmldir$ac_delim
22047dvidir!$dvidir$ac_delim
22048pdfdir!$pdfdir$ac_delim
22049psdir!$psdir$ac_delim
22050libdir!$libdir$ac_delim
22051localedir!$localedir$ac_delim
22052mandir!$mandir$ac_delim
22053DEFS!$DEFS$ac_delim
22054ECHO_C!$ECHO_C$ac_delim
22055ECHO_N!$ECHO_N$ac_delim
22056ECHO_T!$ECHO_T$ac_delim
22057LIBS!$LIBS$ac_delim
22058build_alias!$build_alias$ac_delim
22059host_alias!$host_alias$ac_delim
22060target_alias!$target_alias$ac_delim
22061LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022062CC!$CC$ac_delim
22063CFLAGS!$CFLAGS$ac_delim
22064LDFLAGS!$LDFLAGS$ac_delim
22065CPPFLAGS!$CPPFLAGS$ac_delim
22066ac_ct_CC!$ac_ct_CC$ac_delim
22067EXEEXT!$EXEEXT$ac_delim
22068OBJEXT!$OBJEXT$ac_delim
22069CXX!$CXX$ac_delim
22070CXXFLAGS!$CXXFLAGS$ac_delim
22071ac_ct_CXX!$ac_ct_CXX$ac_delim
22072CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022073subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022074ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22075LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022076build!$build$ac_delim
22077build_cpu!$build_cpu$ac_delim
22078build_vendor!$build_vendor$ac_delim
22079build_os!$build_os$ac_delim
22080host!$host$ac_delim
22081host_cpu!$host_cpu$ac_delim
22082host_vendor!$host_vendor$ac_delim
22083host_os!$host_os$ac_delim
22084target!$target$ac_delim
22085target_cpu!$target_cpu$ac_delim
22086target_vendor!$target_vendor$ac_delim
22087target_os!$target_os$ac_delim
22088OS!$OS$ac_delim
22089HOST_OS!$HOST_OS$ac_delim
22090TARGET_OS!$TARGET_OS$ac_delim
22091LINKALL!$LINKALL$ac_delim
22092NOLINKALL!$NOLINKALL$ac_delim
22093LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22094LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22095ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022096HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022097ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098GREP!$GREP$ac_delim
22099EGREP!$EGREP$ac_delim
22100LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22101BUILD_CC!$BUILD_CC$ac_delim
22102BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22103BUILD_CXX!$BUILD_CXX$ac_delim
22104CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022105ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022106ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22108ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22109DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22110ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22111EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22112DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22113DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22114JIT!$JIT$ac_delim
22115TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022116ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022118LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022119ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022120ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022121_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022124 break
22125 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22127echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22128 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022129 else
22130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022131 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022132done
22133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022134ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22135if test -n "$ac_eof"; then
22136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22137 ac_eof=`expr $ac_eof + 1`
22138fi
22139
22140cat >>$CONFIG_STATUS <<_ACEOF
22141cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022143_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144sed '
22145s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22146s/^/s,@/; s/!/@,|#_!!_#|/
22147:n
22148t n
22149s/'"$ac_delim"'$/,g/; t
22150s/$/\\/; p
22151N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22152' >>$CONFIG_STATUS <conf$$subs.sed
22153rm -f conf$$subs.sed
22154cat >>$CONFIG_STATUS <<_ACEOF
22155CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022156_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157
22158
22159ac_delim='%!_!# '
22160for ac_last_try in false false false false false :; do
22161 cat >conf$$subs.sed <<_ACEOF
Eric Christopher82120022012-08-03 19:47:14 +000022162ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022163ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022164ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022165TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22166LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22167LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022168LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022169LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022170OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022171EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022172EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022173CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022174BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022175INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022176NM!$NM$ac_delim
22177ifGNUmake!$ifGNUmake$ac_delim
22178LN_S!$LN_S$ac_delim
22179CMP!$CMP$ac_delim
22180CP!$CP$ac_delim
22181DATE!$DATE$ac_delim
22182FIND!$FIND$ac_delim
22183MKDIR!$MKDIR$ac_delim
22184MV!$MV$ac_delim
22185RANLIB!$RANLIB$ac_delim
22186AR!$AR$ac_delim
22187RM!$RM$ac_delim
22188SED!$SED$ac_delim
22189TAR!$TAR$ac_delim
22190BINPWD!$BINPWD$ac_delim
22191GRAPHVIZ!$GRAPHVIZ$ac_delim
22192DOT!$DOT$ac_delim
22193FDP!$FDP$ac_delim
22194NEATO!$NEATO$ac_delim
22195TWOPI!$TWOPI$ac_delim
22196CIRCO!$CIRCO$ac_delim
22197GV!$GV$ac_delim
22198DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022199XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022200INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22201INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22202INSTALL_DATA!$INSTALL_DATA$ac_delim
22203BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022204CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022205DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022206GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022207GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022208PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022209ZIP!$ZIP$ac_delim
22210OCAMLC!$OCAMLC$ac_delim
22211OCAMLOPT!$OCAMLOPT$ac_delim
22212OCAMLDEP!$OCAMLDEP$ac_delim
22213OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022214GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022215HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022216INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22217INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22218CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22219CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22220LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022221NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22222NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022223COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022224USE_UDIS86!$USE_UDIS86$ac_delim
22225USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022226USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22227INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22228INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022229XML2CONFIG!$XML2CONFIG$ac_delim
22230LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22231LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22233HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22234MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022235SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022236SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22238LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22239LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22240LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22241LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22242LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22243LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22244LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22245LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22246LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22247BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22248ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022249OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22250ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22251RPATH!$RPATH$ac_delim
22252RDYNAMIC!$RDYNAMIC$ac_delim
22253LIBOBJS!$LIBOBJS$ac_delim
22254LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022255_ACEOF
22256
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258 break
22259 elif $ac_last_try; then
22260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22261echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22262 { (exit 1); exit 1; }; }
22263 else
22264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22265 fi
22266done
22267
22268ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22269if test -n "$ac_eof"; then
22270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22271 ac_eof=`expr $ac_eof + 1`
22272fi
22273
22274cat >>$CONFIG_STATUS <<_ACEOF
22275cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22277_ACEOF
22278sed '
22279s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22280s/^/s,@/; s/!/@,|#_!!_#|/
22281:n
22282t n
22283s/'"$ac_delim"'$/,g/; t
22284s/$/\\/; p
22285N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22286' >>$CONFIG_STATUS <conf$$subs.sed
22287rm -f conf$$subs.sed
22288cat >>$CONFIG_STATUS <<_ACEOF
22289:end
22290s/|#_!!_#|//g
22291CEOF$ac_eof
22292_ACEOF
22293
22294
Reid Spencera773bd52006-08-04 18:18:08 +000022295# VPATH may cause trouble with some makes, so we remove $(srcdir),
22296# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22297# trailing colons and then remove the whole line if VPATH becomes empty
22298# (actually we leave an empty line to preserve line numbers).
22299if test "x$srcdir" = x.; then
22300 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22301s/:*\$(srcdir):*/:/
22302s/:*\${srcdir}:*/:/
22303s/:*@srcdir@:*/:/
22304s/^\([^=]*=[ ]*\):*/\1/
22305s/:*$//
22306s/^[^=]*=[ ]*$//
22307}'
22308fi
22309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022311fi # test -n "$CONFIG_FILES"
22312
Reid Spencera773bd52006-08-04 18:18:08 +000022313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022314for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022315do
22316 case $ac_tag in
22317 :[FHLC]) ac_mode=$ac_tag; continue;;
22318 esac
22319 case $ac_mode$ac_tag in
22320 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22322echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22323 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022324 :[FH]-) ac_tag=-:-;;
22325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22326 esac
22327 ac_save_IFS=$IFS
22328 IFS=:
22329 set x $ac_tag
22330 IFS=$ac_save_IFS
22331 shift
22332 ac_file=$1
22333 shift
22334
22335 case $ac_mode in
22336 :L) ac_source=$1;;
22337 :[FH])
22338 ac_file_inputs=
22339 for ac_f
22340 do
22341 case $ac_f in
22342 -) ac_f="$tmp/stdin";;
22343 *) # Look for the file first in the build tree, then in the source tree
22344 # (if the path is not absolute). The absolute path cannot be DOS-style,
22345 # because $ac_f cannot contain `:'.
22346 test -f "$ac_f" ||
22347 case $ac_f in
22348 [\\/$]*) false;;
22349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22350 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022351 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22352echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22353 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022354 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022355 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022356 done
22357
22358 # Let's still pretend it is `configure' which instantiates (i.e., don't
22359 # use $as_me), people would be surprised to read:
22360 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022361 configure_input="Generated from "`IFS=:
22362 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022363 if test x"$ac_file" != x-; then
22364 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022365 { echo "$as_me:$LINENO: creating $ac_file" >&5
22366echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022367 fi
22368
22369 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022370 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022371 esac
22372 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022373 esac
22374
Reid Spencera773bd52006-08-04 18:18:08 +000022375 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022377 X"$ac_file" : 'X\(//\)[^/]' \| \
22378 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022380echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22382 s//\1/
22383 q
22384 }
22385 /^X\(\/\/\)[^/].*/{
22386 s//\1/
22387 q
22388 }
22389 /^X\(\/\/\)$/{
22390 s//\1/
22391 q
22392 }
22393 /^X\(\/\).*/{
22394 s//\1/
22395 q
22396 }
22397 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398 { as_dir="$ac_dir"
22399 case $as_dir in #(
22400 -*) as_dir=./$as_dir;;
22401 esac
22402 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22403 as_dirs=
22404 while :; do
22405 case $as_dir in #(
22406 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22407 *) as_qdir=$as_dir;;
22408 esac
22409 as_dirs="'$as_qdir' $as_dirs"
22410 as_dir=`$as_dirname -- "$as_dir" ||
22411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412 X"$as_dir" : 'X\(//\)[^/]' \| \
22413 X"$as_dir" : 'X\(//\)$' \| \
22414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22415echo X"$as_dir" |
22416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22417 s//\1/
22418 q
22419 }
22420 /^X\(\/\/\)[^/].*/{
22421 s//\1/
22422 q
22423 }
22424 /^X\(\/\/\)$/{
22425 s//\1/
22426 q
22427 }
22428 /^X\(\/\).*/{
22429 s//\1/
22430 q
22431 }
22432 s/.*/./; q'`
22433 test -d "$as_dir" && break
22434 done
22435 test -z "$as_dirs" || eval "mkdir $as_dirs"
22436 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22437echo "$as_me: error: cannot create directory $as_dir" >&2;}
22438 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022439 ac_builddir=.
22440
Reid Spencera773bd52006-08-04 18:18:08 +000022441case "$ac_dir" in
22442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22443*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022444 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022445 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022446 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022447 case $ac_top_builddir_sub in
22448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22450 esac ;;
22451esac
22452ac_abs_top_builddir=$ac_pwd
22453ac_abs_builddir=$ac_pwd$ac_dir_suffix
22454# for backward compatibility:
22455ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022456
22457case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022458 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022459 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022460 ac_top_srcdir=$ac_top_builddir_sub
22461 ac_abs_top_srcdir=$ac_pwd ;;
22462 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022463 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022464 ac_top_srcdir=$srcdir
22465 ac_abs_top_srcdir=$srcdir ;;
22466 *) # Relative name.
22467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22468 ac_top_srcdir=$ac_top_build_prefix$srcdir
22469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022470esac
Reid Spencera773bd52006-08-04 18:18:08 +000022471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022472
John Criswell7a73b802003-06-30 21:59:07 +000022473
Reid Spencera773bd52006-08-04 18:18:08 +000022474 case $ac_mode in
22475 :F)
22476 #
22477 # CONFIG_FILE
22478 #
John Criswell7a73b802003-06-30 21:59:07 +000022479
22480 case $INSTALL in
22481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022483 esac
John Criswell7a73b802003-06-30 21:59:07 +000022484_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022487# If the template does not know about datarootdir, expand it.
22488# FIXME: This hack should be removed a few years after 2.60.
22489ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490
22491case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022492 p
22493 q
22494}
22495/@datadir@/p
22496/@docdir@/p
22497/@infodir@/p
22498/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499/@mandir@/p
22500' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022501*datarootdir*) ac_datarootdir_seen=yes;;
22502*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22504echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022505_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022507 ac_datarootdir_hack='
22508 s&@datadir@&$datadir&g
22509 s&@docdir@&$docdir&g
22510 s&@infodir@&$infodir&g
22511 s&@localedir@&$localedir&g
22512 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022513 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022514esac
22515_ACEOF
22516
22517# Neutralize VPATH when `$srcdir' = `.'.
22518# Shell code in configure.ac might set extrasub.
22519# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022520cat >>$CONFIG_STATUS <<_ACEOF
22521 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022522$extrasub
22523_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022525:t
22526/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022528s&@top_builddir@&$ac_top_builddir_sub&;t t
22529s&@srcdir@&$ac_srcdir&;t t
22530s&@abs_srcdir@&$ac_abs_srcdir&;t t
22531s&@top_srcdir@&$ac_top_srcdir&;t t
22532s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22533s&@builddir@&$ac_builddir&;t t
22534s&@abs_builddir@&$ac_abs_builddir&;t t
22535s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22536s&@INSTALL@&$ac_INSTALL&;t t
22537$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022538" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022539
Reid Spencera773bd52006-08-04 18:18:08 +000022540test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22541 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022544which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022546which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022547
Reid Spencera773bd52006-08-04 18:18:08 +000022548 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022549 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550 -) cat "$tmp/out"; rm -f "$tmp/out";;
22551 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22552 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022553 ;;
22554 :H)
22555 #
22556 # CONFIG_HEADER
22557 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022558_ACEOF
22559
22560# Transform confdefs.h into a sed script `conftest.defines', that
22561# substitutes the proper values into config.h.in to produce config.h.
22562rm -f conftest.defines conftest.tail
22563# First, append a space to every undef/define line, to ease matching.
22564echo 's/$/ /' >conftest.defines
22565# Then, protect against being on the right side of a sed subst, or in
22566# an unquoted here document, in config.status. If some macros were
22567# called several times there might be several #defines for the same
22568# symbol, which is useless. But do not sort them, since the last
22569# AC_DEFINE must be honored.
22570ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22571# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22572# NAME is the cpp macro being defined, VALUE is the value it is being given.
22573# PARAMS is the parameter list in the macro definition--in most cases, it's
22574# just an empty string.
22575ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22576ac_dB='\\)[ (].*,\\1define\\2'
22577ac_dC=' '
22578ac_dD=' ,'
22579
22580uniq confdefs.h |
22581 sed -n '
22582 t rset
22583 :rset
22584 s/^[ ]*#[ ]*define[ ][ ]*//
22585 t ok
22586 d
22587 :ok
22588 s/[\\&,]/\\&/g
22589 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22590 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22591 ' >>conftest.defines
22592
22593# Remove the space that was appended to ease matching.
22594# Then replace #undef with comments. This is necessary, for
22595# example, in the case of _POSIX_SOURCE, which is predefined and required
22596# on some systems where configure will not decide to define it.
22597# (The regexp can be short, since the line contains either #define or #undef.)
22598echo 's/ $//
22599s,^[ #]*u.*,/* & */,' >>conftest.defines
22600
22601# Break up conftest.defines:
22602ac_max_sed_lines=50
22603
22604# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22605# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22606# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22607# et cetera.
22608ac_in='$ac_file_inputs'
22609ac_out='"$tmp/out1"'
22610ac_nxt='"$tmp/out2"'
22611
22612while :
22613do
22614 # Write a here document:
22615 cat >>$CONFIG_STATUS <<_ACEOF
22616 # First, check the format of the line:
22617 cat >"\$tmp/defines.sed" <<\\CEOF
22618/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22619/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22620b
22621:def
22622_ACEOF
22623 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22624 echo 'CEOF
22625 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22626 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22627 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22628 grep . conftest.tail >/dev/null || break
22629 rm -f conftest.defines
22630 mv conftest.tail conftest.defines
22631done
22632rm -f conftest.defines conftest.tail
22633
22634echo "ac_result=$ac_in" >>$CONFIG_STATUS
22635cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022636 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022637 echo "/* $configure_input */" >"$tmp/config.h"
22638 cat "$ac_result" >>"$tmp/config.h"
22639 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22640 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22641echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022642 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022643 rm -f $ac_file
22644 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022645 fi
22646 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022647 echo "/* $configure_input */"
22648 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022649 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022650 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022651 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022653 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22654echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022655 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022656 esac
John Criswell7a73b802003-06-30 21:59:07 +000022657
Reid Spencera773bd52006-08-04 18:18:08 +000022658
22659 case $ac_file$ac_mode in
22660 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022662 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022664 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022666 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022668 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022670 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022671 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022672 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022673 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022674 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022675 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022676 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022677 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022678 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022679 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022680 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022681 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022682 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022684 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022685 ${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 +000022686
22687 esac
22688done # for ac_tag
22689
John Criswell7a73b802003-06-30 21:59:07 +000022690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022691{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022692_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022693chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022694ac_clean_files=$ac_clean_files_save
22695
22696
22697# configure is writing to config.log, and then calls config.status.
22698# config.status does its own redirection, appending to config.log.
22699# Unfortunately, on DOS this fails, as config.log is still kept open
22700# by configure, so config.status won't be able to write to it; its
22701# output is simply discarded. So we exec the FD to /dev/null,
22702# effectively closing config.log, so it can be properly (re)opened and
22703# appended to by config.status. When coming back to configure, we
22704# need to make the FD available again.
22705if test "$no_create" != yes; then
22706 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022707 ac_config_status_args=
22708 test "$silent" = yes &&
22709 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022710 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022712 exec 5>>config.log
22713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22714 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022715 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022716fi
22717
John Criswell12399a12003-09-30 15:55:44 +000022718#
22719# CONFIG_SUBDIRS section.
22720#
22721if test "$no_recursion" != yes; then
22722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022723 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022724 ac_sub_configure_args=
22725 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022726 eval "set x $ac_configure_args"
22727 shift
22728 for ac_arg
22729 do
John Criswell12399a12003-09-30 15:55:44 +000022730 if test -n "$ac_prev"; then
22731 ac_prev=
22732 continue
22733 fi
22734 case $ac_arg in
22735 -cache-file | --cache-file | --cache-fil | --cache-fi \
22736 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22737 ac_prev=cache_file ;;
22738 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22739 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22740 | --c=*)
22741 ;;
22742 --config-cache | -C)
22743 ;;
22744 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22745 ac_prev=srcdir ;;
22746 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22747 ;;
22748 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22749 ac_prev=prefix ;;
22750 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22751 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022752 *)
22753 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022754 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022755 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022756 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022757 esac
22758 done
22759
22760 # Always prepend --prefix to ensure using the same prefix
22761 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022762 ac_arg="--prefix=$prefix"
22763 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022764 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022765 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022766 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022767
22768 ac_popdir=`pwd`
22769 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22770
22771 # Do not complain, so a configure script can configure whichever
22772 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022773 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022774
Reid Spencera773bd52006-08-04 18:18:08 +000022775 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022776 echo "$as_me:$LINENO: $ac_msg" >&5
22777 echo "$ac_msg" >&6
22778 { as_dir="$ac_dir"
22779 case $as_dir in #(
22780 -*) as_dir=./$as_dir;;
22781 esac
22782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22783 as_dirs=
22784 while :; do
22785 case $as_dir in #(
22786 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22787 *) as_qdir=$as_dir;;
22788 esac
22789 as_dirs="'$as_qdir' $as_dirs"
22790 as_dir=`$as_dirname -- "$as_dir" ||
22791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22792 X"$as_dir" : 'X\(//\)[^/]' \| \
22793 X"$as_dir" : 'X\(//\)$' \| \
22794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22795echo X"$as_dir" |
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22797 s//\1/
22798 q
22799 }
22800 /^X\(\/\/\)[^/].*/{
22801 s//\1/
22802 q
22803 }
22804 /^X\(\/\/\)$/{
22805 s//\1/
22806 q
22807 }
22808 /^X\(\/\).*/{
22809 s//\1/
22810 q
22811 }
22812 s/.*/./; q'`
22813 test -d "$as_dir" && break
22814 done
22815 test -z "$as_dirs" || eval "mkdir $as_dirs"
22816 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22817echo "$as_me: error: cannot create directory $as_dir" >&2;}
22818 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022819 ac_builddir=.
22820
Reid Spencera773bd52006-08-04 18:18:08 +000022821case "$ac_dir" in
22822.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22823*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022825 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022826 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022827 case $ac_top_builddir_sub in
22828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22830 esac ;;
22831esac
22832ac_abs_top_builddir=$ac_pwd
22833ac_abs_builddir=$ac_pwd$ac_dir_suffix
22834# for backward compatibility:
22835ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022836
22837case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022838 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022839 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022840 ac_top_srcdir=$ac_top_builddir_sub
22841 ac_abs_top_srcdir=$ac_pwd ;;
22842 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022843 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022844 ac_top_srcdir=$srcdir
22845 ac_abs_top_srcdir=$srcdir ;;
22846 *) # Relative name.
22847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22848 ac_top_srcdir=$ac_top_build_prefix$srcdir
22849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022850esac
Reid Spencera773bd52006-08-04 18:18:08 +000022851ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022852
22853
Reid Spencera773bd52006-08-04 18:18:08 +000022854 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022855
22856 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022857 if test -f "$ac_srcdir/configure.gnu"; then
22858 ac_sub_configure=$ac_srcdir/configure.gnu
22859 elif test -f "$ac_srcdir/configure"; then
22860 ac_sub_configure=$ac_srcdir/configure
22861 elif test -f "$ac_srcdir/configure.in"; then
22862 # This should be Cygnus configure.
22863 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022864 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022865 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22866echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022867 ac_sub_configure=
22868 fi
22869
22870 # The recursion is here.
22871 if test -n "$ac_sub_configure"; then
22872 # Make the cache file name correct relative to the subdirectory.
22873 case $cache_file in
22874 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022875 *) # Relative name.
22876 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022877 esac
22878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022879 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22880echo "$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 +000022881 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022882 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22883 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022884 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22885echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22886 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022887 fi
22888
Reid Spencera773bd52006-08-04 18:18:08 +000022889 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022890 done
22891fi
22892