blob: d4a42f70ffa89edc7b6dea1d1a7d3e2ad61c8f0b [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
Eric Christopher09a88732012-08-03 19:58:20 +0000691ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000696KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697JIT
698TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000699ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000701LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000702ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000704ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000705ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000706ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000707TARGETS_TO_BUILD
708LLVM_ENUM_TARGETS
709LLVM_ENUM_ASM_PRINTERS
710LLVM_ENUM_ASM_PARSERS
711LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712OPTIMIZE_OPTION
713EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000714EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000715CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000717INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000718NM
719ifGNUmake
720LN_S
721CMP
722CP
723DATE
724FIND
725MKDIR
726MV
727RANLIB
728AR
729RM
730SED
731TAR
732BINPWD
733GRAPHVIZ
734DOT
735FDP
736NEATO
737TWOPI
738CIRCO
739GV
740DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000741XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000742INSTALL_PROGRAM
743INSTALL_SCRIPT
744INSTALL_DATA
745BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000746CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000748GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000749GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766USE_UDIS86
767USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000768USE_INTEL_JITEVENTS
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
Jordan Rose92080522012-10-01 18:40:32 +0000793program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000804CXX
805CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000806CCC
807CPP'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000820projects/llvm-kernel
821tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000848# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000857includedir='${prefix}/include'
858oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000868
869ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000870ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000875 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000876 ac_prev=
877 continue
878 fi
879
Reid Spencera773bd52006-08-04 18:18:08 +0000880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
Reid Spencera773bd52006-08-04 18:18:08 +0000887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000912 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000914 datadir=$ac_optarg ;;
915
Reid Spencera773bd52006-08-04 18:18:08 +0000916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
John Criswell7a73b802003-06-30 21:59:07 +0000923 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000925 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000941
942 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000944 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
Reid Spencera773bd52006-08-04 18:18:08 +0000976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
John Criswell7a73b802003-06-30 21:59:07 +0000982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
Reid Spencera773bd52006-08-04 18:18:08 +00001006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
John Criswell7a73b802003-06-30 21:59:07 +00001011 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
Reid Spencera773bd52006-08-04 18:18:08 +00001080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
John Criswell7a73b802003-06-30 21:59:07 +00001090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001147
1148 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001186 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001204fi
1205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001211do
Reid Spencera773bd52006-08-04 18:18:08 +00001212 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001213 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001216 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
Reid Spencera773bd52006-08-04 18:18:08 +00001245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001253
1254
John Criswell7a73b802003-06-30 21:59:07 +00001255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001258 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001283 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001293fi
Reid Spencera773bd52006-08-04 18:18:08 +00001294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
John Criswell7a73b802003-06-30 21:59:07 +00001315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001323\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
John Criswell7a73b802003-06-30 21:59:07 +00001343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001390 esac
1391 cat <<\_ACEOF
1392
1393Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001396 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001397 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001398 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1402 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001403 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001404 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001405 Compile with expensive debug checks enabled (default
1406 is NO)
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1408 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001411 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001412 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001413 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001414 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001415 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001416 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001417 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001418 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001419 --enable-shared Build a shared library and link tools against it
1420 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001421 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001422 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001423 --enable-timestamps Enable embedding timestamp information in build
1424 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001425 --enable-backtraces Enable embedding backtraces on crash (default is
1426 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001427 --enable-targets Build specific host targets: all or
1428 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001429 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001430 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001431 --enable-experimental-targets
1432 Build experimental host targets: disable or
1433 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001434 --enable-bindings Build specific language bindings:
1435 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001436 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001437 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001438
1439Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001442 --with-optimize-option Select the compiler options to use for optimized
1443 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001444 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001445 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001446 --with-ocaml-libdir Specify install location for ocaml bindings (default
1447 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001448 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1451 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001452 --with-c-include-dirs Colon separated list of directories clang will
1453 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001454 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001455 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001458 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001459 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001460 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001461 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001464 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1465
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CC C compiler command
1469 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001473 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001476 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
Eric Christopherf33ab862011-12-21 00:52:44 +00001481Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001483ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001490 ac_builddir=.
1491
Reid Spencera773bd52006-08-04 18:18:08 +00001492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001496 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001507
1508case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001509 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001510 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001514 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001521esac
Reid Spencera773bd52006-08-04 18:18:08 +00001522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001523
Reid Spencera773bd52006-08-04 18:18:08 +00001524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001532 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001536 done
1537fi
1538
Reid Spencera773bd52006-08-04 18:18:08 +00001539test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001540if $ac_init_version; then
1541 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001542LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001543generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001549
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001550Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001551_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001552 exit
John Criswell7a73b802003-06-30 21:59:07 +00001553fi
Reid Spencera773bd52006-08-04 18:18:08 +00001554cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001555This file contains any messages produced by compilers while
1556running configure, to aid debugging if configure makes a mistake.
1557
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001558It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561 $ $0 $@
1562
1563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001564exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001565{
1566cat <<_ASUNAME
1567## --------- ##
1568## Platform. ##
1569## --------- ##
1570
1571hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579
1580/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001583/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001584/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1587
1588_ASUNAME
1589
1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001595 echo "PATH: $as_dir"
1596done
Reid Spencera773bd52006-08-04 18:18:08 +00001597IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599} >&5
1600
1601cat >&5 <<_ACEOF
1602
1603
1604## ----------- ##
1605## Core tests. ##
1606## ----------- ##
1607
1608_ACEOF
1609
1610
1611# Keep a trace of the command line.
1612# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001613# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001614# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001615# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001616ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001617ac_configure_args0=
1618ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001619ac_must_keep_next=false
1620for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001621do
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 for ac_arg
1623 do
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001629 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 esac
1632 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001637 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1647 ;;
1648 -* ) ac_must_keep_next=true ;;
1649 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ;;
1653 esac
1654 done
John Criswell7a73b802003-06-30 21:59:07 +00001655done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001656$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657$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 +00001658
1659# When interrupted or exit'd, cleanup temporary files, and complete
1660# config.log. We remove comments because anyway the quotes in there
1661# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001662# WARNING: Use '\'' to represent an apostrophe within the trap.
1663# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001664trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1666 {
1667 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001668
John Criswell7a73b802003-06-30 21:59:07 +00001669 cat <<\_ASBOX
1670## ---------------- ##
1671## Cache variables. ##
1672## ---------------- ##
1673_ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001676(
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001687 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001688 esac ;;
1689 esac
1690 done
John Criswell7a73b802003-06-30 21:59:07 +00001691 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001694 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001698 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001701 esac |
1702 sort
1703)
John Criswell7a73b802003-06-30 21:59:07 +00001704 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001705
1706 cat <<\_ASBOX
1707## ----------------- ##
1708## Output variables. ##
1709## ----------------- ##
1710_ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1713 do
Reid Spencera773bd52006-08-04 18:18:08 +00001714 eval ac_val=\$$ac_var
1715 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001718 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 done | sort
1720 echo
1721
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001724## ------------------- ##
1725## File substitutions. ##
1726## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1730 do
Reid Spencera773bd52006-08-04 18:18:08 +00001731 eval ac_val=\$$ac_var
1732 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001734 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001735 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 done | sort
1737 echo
1738 fi
1739
John Criswell7a73b802003-06-30 21:59:07 +00001740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742## ----------- ##
1743## confdefs.h. ##
1744## ----------- ##
1745_ASBOX
1746 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001747 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001748 echo
1749 fi
1750 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001753 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001756 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001757' 0
John Criswell7a73b802003-06-30 21:59:07 +00001758for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001760done
1761ac_signal=0
1762
1763# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001764rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001765
1766# Predefined preprocessor variables.
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_NAME "$PACKAGE_NAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_VERSION "$PACKAGE_VERSION"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_STRING "$PACKAGE_STRING"
1785_ACEOF
1786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787
John Criswell7a73b802003-06-30 21:59:07 +00001788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790_ACEOF
1791
1792
1793# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001795if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001797elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803shift
1804for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001805do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1811 fi
1812done
1813
1814if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001823 esac
1824 fi
1825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001828 >$cache_file
1829fi
1830
1831# Check that the precious variables saved in the cache have kept the same
1832# value.
1833ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001834for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001839 case $ac_old_set,$ac_new_set in
1840 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001843 ac_cache_corrupted=: ;;
1844 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001847 ac_cache_corrupted=: ;;
1848 ,);;
1849 *)
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001869 esac
1870 fi
1871done
1872if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
Reid Spencera773bd52006-08-04 18:18:08 +00001903
John Criswell7a73b802003-06-30 21:59:07 +00001904ac_ext=c
1905ac_cpp='$CPP $CPPFLAGS'
1906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001912cat >>confdefs.h <<\_ACEOF
1913#define LLVM_VERSION_MAJOR 3
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001918#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001919_ACEOF
1920
1921
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001922LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001923
1924
1925
1926
1927
1928
1929
John Criswell7a73b802003-06-30 21:59:07 +00001930ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001931for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001932 if test -f "$ac_dir/install-sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 break
1936 elif test -f "$ac_dir/install.sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 break
1940 elif test -f "$ac_dir/shtool"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1943 break
1944 fi
John Criswell7a73b802003-06-30 21:59:07 +00001945done
1946if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1948echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1949 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001950fi
Reid Spencera773bd52006-08-04 18:18:08 +00001951
1952# These three variables are undocumented and unsupported,
1953# and are intended to be withdrawn in a future Autoconf release.
1954# They can cause serious problems if a builder's source tree is in a directory
1955# whose full name contains unusual characters.
1956ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1959
John Criswell7a73b802003-06-30 21:59:07 +00001960
John Criswell392aaa32003-07-22 19:18:09 +00001961
Reid Spencer2706f8c2004-09-19 23:53:36 +00001962if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001963 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001964 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1965echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1966 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 fi
John Criswell93e1c722003-09-15 17:04:06 +00001968fi
1969
Nick Lewycky83fc4472009-09-29 05:48:51 +00001970ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001975if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001976 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001977 do
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001984else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 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 +00001995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001997 break 2
1998 fi
1999done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000done
Reid Spencera773bd52006-08-04 18:18:08 +00002001IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002002
2003fi
2004fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002012fi
2013
Reid Spencera773bd52006-08-04 18:18:08 +00002014
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002015 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002016 done
2017fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002018if test -z "$CC"; then
2019 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002020 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002021do
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002028else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 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 +00002039 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002041 break 2
2042 fi
2043done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044done
Reid Spencera773bd52006-08-04 18:18:08 +00002045IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002046
2047fi
2048fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002054 { echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002056fi
2057
Reid Spencera773bd52006-08-04 18:18:08 +00002058
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002060done
John Criswell7a73b802003-06-30 21:59:07 +00002061
Reid Spencera773bd52006-08-04 18:18:08 +00002062 if test "x$ac_ct_CC" = x; then
2063 CC=""
2064 else
2065 case $cross_compiling:$ac_tool_warned in
2066yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068whose name does not start with the host triplet. If you think this
2069configuration is useful to you, please write to autoconf@gnu.org." >&5
2070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002073ac_tool_warned=yes ;;
2074esac
2075 CC=$ac_ct_CC
2076 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077fi
2078
John Criswell7a73b802003-06-30 21:59:07 +00002079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002085
John Criswell7a73b802003-06-30 21:59:07 +00002086# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002087echo "$as_me:$LINENO: checking for C compiler version" >&5
2088ac_compiler=`set X $ac_compile; echo $2`
2089{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002096 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099{ (ac_try="$ac_compiler -v >&5"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109{ (ac_try="$ac_compiler -V >&5"
2110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
2114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002126
John Criswell7a73b802003-06-30 21:59:07 +00002127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002136ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002137# Try to create an executable without -o first, disregard a.out.
2138# It will help us diagnose broken compilers, and finding out an intuition
2139# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143#
2144# List of possible output files, starting from the most likely.
2145# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146# only as a last resort. b.out is created by i960 compilers.
2147ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148#
2149# The IRIX 6 linker writes into existing files which may not be
2150# executable, retaining their permissions. Remove them first so a
2151# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002152ac_rmfiles=
2153for ac_file in $ac_files
2154do
2155 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158 esac
2159done
2160rm -f $ac_rmfiles
2161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002163case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002168 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002169 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174# in a Makefile. We should not override ac_cv_exeext if it was cached,
2175# so that the user can short-circuit this test for compilers unknown to
2176# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002177for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002178do
2179 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002180 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002182 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002184 # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002189 then :; else
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 fi
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2196 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002197 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002198 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002199 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002200 esac
2201done
Reid Spencera773bd52006-08-04 18:18:08 +00002202test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
John Criswell7a73b802003-06-30 21:59:07 +00002204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002206sed 's/^/| /' conftest.$ac_ext >&5
2207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: C compiler cannot create executables
2211See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002213fi
John Criswell7a73b802003-06-30 21:59:07 +00002214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002215ac_exeext=$ac_cv_exeext
2216{ echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6; }
2218
2219# Check that the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230esac
2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 cross_compiling=no
2237 else
2238 if test "$cross_compiling" = maybe; then
2239 cross_compiling=yes
2240 else
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249 fi
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002255ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002256# Check that the compiler produces executables we can run. If not, either
2257# the compiler is broken, or we cross compile.
2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002271 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002272 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002279for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002281 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002284 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002285 * ) break;;
2286 esac
2287done
2288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295
2296rm -f conftest$ac_cv_exeext
2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308 cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002314
John Criswell7a73b802003-06-30 21:59:07 +00002315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002330 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002331 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002336 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 break;;
2340 esac
2341done
2342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002344sed 's/^/| /' conftest.$ac_ext >&5
2345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352
John Criswell7a73b802003-06-30 21:59:07 +00002353rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002357OBJEXT=$ac_cv_objext
2358ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002364 cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002370
John Criswell7a73b802003-06-30 21:59:07 +00002371int
2372main ()
2373{
2374#ifndef __GNUC__
2375 choke me
2376#endif
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002382rm -f conftest.$ac_objext
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002416 ac_compiler_gnu=yes
2417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423
Reid Spencera773bd52006-08-04 18:18:08 +00002424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002426
2427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002428{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002437else
Reid Spencera773bd52006-08-04 18:18:08 +00002438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2440 ac_cv_prog_cc_g=no
2441 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442 cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h. */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002447/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002448
John Criswell7a73b802003-06-30 21:59:07 +00002449int
2450main ()
2451{
2452
2453 ;
2454 return 0;
2455}
2456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457rm -f conftest.$ac_objext
2458if { (ac_try="$ac_compile"
2459case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493 echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 CFLAGS=""
2497 cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002502/* end confdefs.h. */
2503
2504int
2505main ()
2506{
2507
2508 ;
2509 return 0;
2510}
2511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512rm -f conftest.$ac_objext
2513if { (ac_try="$ac_compile"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 :
Torok Edwin871384f2010-01-26 08:50:50 +00002547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002552 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002553 cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002558/* end confdefs.h. */
2559
2560int
2561main ()
2562{
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002568rm -f conftest.$ac_objext
2569if { (ac_try="$ac_compile"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002602 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603else
2604 echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
John Criswell7a73b802003-06-30 21:59:07 +00002608fi
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
John Criswell7a73b802003-06-30 21:59:07 +00002611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612
Reid Spencera773bd52006-08-04 18:18:08 +00002613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615
Reid Spencera773bd52006-08-04 18:18:08 +00002616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2625 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002626 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002628 fi
2629else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 if test "$GCC" = yes; then
2631 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002632 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002634 fi
2635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002636{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640else
Reid Spencera773bd52006-08-04 18:18:08 +00002641 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002643cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648/* end confdefs.h. */
2649#include <stdarg.h>
2650#include <stdio.h>
2651#include <sys/types.h>
2652#include <sys/stat.h>
2653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654struct buf { int x; };
2655FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656static char *e (p, i)
2657 char **p;
2658 int i;
2659{
2660 return p[i];
2661}
2662static char *f (char * (*g) (char **, int), char **p, ...)
2663{
2664 char *s;
2665 va_list v;
2666 va_start (v,p);
2667 s = g (p, va_arg (v,int));
2668 va_end (v);
2669 return s;
2670}
2671
2672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002675 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002678 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
Reid Spencera773bd52006-08-04 18:18:08 +00002681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2683#define FOO(x) 'x'
2684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686int test (int i, double x);
2687struct s1 {int (*f) (int a);};
2688struct s2 {int (*f) (double a);};
2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690int argc;
2691char **argv;
2692int
2693main ()
2694{
2695return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 ;
2697 return 0;
2698}
2699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702do
2703 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002704 rm -f conftest.$ac_objext
2705if { (ac_try="$ac_compile"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002738 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745
Reid Spencera773bd52006-08-04 18:18:08 +00002746rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002748done
Reid Spencera773bd52006-08-04 18:18:08 +00002749rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750CC=$ac_save_CC
2751
2752fi
Reid Spencera773bd52006-08-04 18:18:08 +00002753# AC_CACHE_VAL
2754case "x$ac_cv_prog_cc_c89" in
2755 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756 { echo "$as_me:$LINENO: result: none needed" >&5
2757echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002758 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002761 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002762 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765esac
2766
John Criswell0c38eaf2003-09-10 15:17:25 +00002767
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
Eric Christopherffee5722011-09-16 20:36:25 +00002774ac_ext=cpp
2775ac_cpp='$CXXCPP $CPPFLAGS'
2776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2781 CXX=$CCC
2782 else
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2785 do
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CXX=$ac_cv_prog_CXX
2814if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816echo "${ECHO_T}$CXX" >&6; }
2817else
2818 { echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6; }
2820fi
2821
2822
2823 test -n "$CXX" && break
2824 done
2825fi
2826if test -z "$CXX"; then
2827 ac_ct_CXX=$CXX
2828 for ac_prog in clang++ llvm-g++ g++
2829do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6; }
2864fi
2865
2866
2867 test -n "$ac_ct_CXX" && break
2868done
2869
2870 if test "x$ac_ct_CXX" = x; then
2871 CXX="g++"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876whose name does not start with the host triplet. If you think this
2877configuration is useful to you, please write to autoconf@gnu.org." >&5
2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet. If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883 CXX=$ac_ct_CXX
2884 fi
2885fi
2886
2887 fi
2888fi
2889# Provide some information about the compiler.
2890echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891ac_compiler=`set X $ac_compile; echo $2`
2892{ (ac_try="$ac_compiler --version >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (ac_try="$ac_compiler -v >&5"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912{ (ac_try="$ac_compiler -V >&5"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922
2923{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939 choke me
2940#endif
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_compiler_gnu=yes
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 ac_compiler_gnu=no
2986fi
2987
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991fi
2992{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994GXX=`test $ac_compiler_gnu = yes && echo yes`
2995ac_test_CXXFLAGS=${CXXFLAGS+set}
2996ac_save_CXXFLAGS=$CXXFLAGS
2997{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3004 ac_cv_prog_cxx_g=no
3005 CXXFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 CXXFLAGS=""
3061 cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 :
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 CXXFLAGS="-g"
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3167else
3168 echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182fi
3183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3189 CXXFLAGS="-g -O2"
3190 else
3191 CXXFLAGS="-g"
3192 fi
3193else
3194 if test "$GXX" = yes; then
3195 CXXFLAGS="-O2"
3196 else
3197 CXXFLAGS=
3198 fi
3199fi
3200ac_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
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003211{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213# On Suns, sometimes $CPP names a directory.
3214if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216fi
3217if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003220else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
3245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003246if { (ac_try="$ac_cpp conftest.$ac_ext"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 else
3263 ac_cpp_err=
3264 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274 # Broken: fails on valid input.
3275continue
3276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278rm -f conftest.err conftest.$ac_ext
3279
Reid Spencera773bd52006-08-04 18:18:08 +00003280 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287/* end confdefs.h. */
3288#include <ac_nonexistent.h>
3289_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313 # Broken: success on invalid input.
3314continue
3315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003316 echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003323
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003329if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330 break
3331fi
3332
3333 done
3334 ac_cv_prog_CPP=$CPP
3335
3336fi
3337 CPP=$ac_cv_prog_CPP
3338else
3339 ac_cv_prog_CPP=$CPP
3340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341{ echo "$as_me:$LINENO: result: $CPP" >&5
3342echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357/* end confdefs.h. */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
3363 Syntax error
3364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003365if { (ac_try="$ac_cpp conftest.$ac_ext"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393 # Broken: fails on valid input.
3394continue
3395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397rm -f conftest.err conftest.$ac_ext
3398
Reid Spencera773bd52006-08-04 18:18:08 +00003399 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401 cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406/* end confdefs.h. */
3407#include <ac_nonexistent.h>
3408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 else
3426 ac_cpp_err=
3427 fi
3428else
3429 ac_cpp_err=yes
3430fi
3431if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432 # Broken: success on invalid input.
3433continue
3434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438 # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003442
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443rm -f conftest.err conftest.$ac_ext
3444
3445done
3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448if $ac_preproc_ok; then
3449 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003450else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&5
3453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456fi
3457
John Criswell7a73b802003-06-30 21:59:07 +00003458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
John Criswell7a73b802003-06-30 21:59:07 +00003464
Eric Christopherffee5722011-09-16 20:36:25 +00003465
3466
3467if test -d ${srcdir}/projects/llvm-gcc ; then
3468 subdirs="$subdirs projects/llvm-gcc"
3469
3470fi
3471
3472if test -d ${srcdir}/projects/test-suite ; then
3473 subdirs="$subdirs projects/test-suite"
3474
3475fi
3476
3477if test -d ${srcdir}/projects/llvm-test ; then
3478 subdirs="$subdirs projects/llvm-test"
3479
3480fi
3481
3482if test -d ${srcdir}/projects/poolalloc ; then
3483 subdirs="$subdirs projects/poolalloc"
3484
3485fi
3486
3487if test -d ${srcdir}/projects/llvm-poolalloc ; then
3488 subdirs="$subdirs projects/llvm-poolalloc"
3489
3490fi
3491
3492for i in `ls ${srcdir}/projects`
3493do
3494 if test -d ${srcdir}/projects/${i} ; then
3495 case ${i} in
3496 sample) subdirs="$subdirs projects/sample"
3497 ;;
3498 privbracket) subdirs="$subdirs projects/privbracket"
3499 ;;
3500 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3501 ;;
3502 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3503;;
3504 llvm-java) subdirs="$subdirs projects/llvm-java"
3505 ;;
3506 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3507 ;;
3508 safecode) subdirs="$subdirs projects/safecode"
3509 ;;
3510 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3511 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003512 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003513 llvm-gcc) ;;
3514 test-suite) ;;
3515 llvm-test) ;;
3516 poolalloc) ;;
3517 llvm-poolalloc) ;;
3518 *)
3519 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3520echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3521 ;;
3522 esac
3523 fi
3524done
3525
3526# Check whether --enable-polly was given.
3527if test "${enable_polly+set}" = set; then
3528 enableval=$enable_polly;
3529else
3530 enableval=default
3531fi
3532
3533case "$enableval" in
3534 yes) ENABLE_POLLY=1
3535 ;;
3536 no) ENABLE_POLLY=0
3537 ;;
3538 default) ENABLE_POLLY=1
3539 ;;
3540 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3541echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3542 { (exit 1); exit 1; }; } ;;
3543esac
3544
3545
3546if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3547 LLVM_HAS_POLLY=1
3548
3549 subdirs="$subdirs tools/polly"
3550
3551fi
3552
3553
3554# Make sure we can run config.sub.
3555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3557echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3558 { (exit 1); exit 1; }; }
3559
3560{ echo "$as_me:$LINENO: checking build system type" >&5
3561echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3562if test "${ac_cv_build+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565 ac_build_alias=$build_alias
3566test "x$ac_build_alias" = x &&
3567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568test "x$ac_build_alias" = x &&
3569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3570echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3571 { (exit 1); exit 1; }; }
3572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3574echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3575 { (exit 1); exit 1; }; }
3576
3577fi
3578{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3579echo "${ECHO_T}$ac_cv_build" >&6; }
3580case $ac_cv_build in
3581*-*-*) ;;
3582*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3583echo "$as_me: error: invalid value of canonical build" >&2;}
3584 { (exit 1); exit 1; }; };;
3585esac
3586build=$ac_cv_build
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_build
3589shift
3590build_cpu=$1
3591build_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595build_os=$*
3596IFS=$ac_save_IFS
3597case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3598
3599
3600{ echo "$as_me:$LINENO: checking host system type" >&5
3601echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3602if test "${ac_cv_host+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604else
3605 if test "x$host_alias" = x; then
3606 ac_cv_host=$ac_cv_build
3607else
3608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3609 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3610echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3611 { (exit 1); exit 1; }; }
3612fi
3613
3614fi
3615{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3616echo "${ECHO_T}$ac_cv_host" >&6; }
3617case $ac_cv_host in
3618*-*-*) ;;
3619*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3620echo "$as_me: error: invalid value of canonical host" >&2;}
3621 { (exit 1); exit 1; }; };;
3622esac
3623host=$ac_cv_host
3624ac_save_IFS=$IFS; IFS='-'
3625set x $ac_cv_host
3626shift
3627host_cpu=$1
3628host_vendor=$2
3629shift; shift
3630# Remember, the first character of IFS is used to create $*,
3631# except with old shells:
3632host_os=$*
3633IFS=$ac_save_IFS
3634case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3635
3636
3637{ echo "$as_me:$LINENO: checking target system type" >&5
3638echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3639if test "${ac_cv_target+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642 if test "x$target_alias" = x; then
3643 ac_cv_target=$ac_cv_host
3644else
3645 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3647echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3648 { (exit 1); exit 1; }; }
3649fi
3650
3651fi
3652{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3653echo "${ECHO_T}$ac_cv_target" >&6; }
3654case $ac_cv_target in
3655*-*-*) ;;
3656*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3657echo "$as_me: error: invalid value of canonical target" >&2;}
3658 { (exit 1); exit 1; }; };;
3659esac
3660target=$ac_cv_target
3661ac_save_IFS=$IFS; IFS='-'
3662set x $ac_cv_target
3663shift
3664target_cpu=$1
3665target_vendor=$2
3666shift; shift
3667# Remember, the first character of IFS is used to create $*,
3668# except with old shells:
3669target_os=$*
3670IFS=$ac_save_IFS
3671case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3672
3673
3674# The aliases save the names the user supplied, while $host etc.
3675# will get canonicalized.
3676test -n "$target_alias" &&
3677 test "$program_prefix$program_suffix$program_transform_name" = \
3678 NONENONEs,x,x, &&
3679 program_prefix=${target_alias}-
3680
3681{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3682echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3683if test "${llvm_cv_os_type+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686 case $host in
3687 *-*-aix*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="AIX"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-irix*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="IRIX"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-cygwin*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="Cygwin"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-darwin*)
3703 llvm_cv_link_all_option="-Wl,-all_load"
3704 llvm_cv_no_link_all_option="-Wl,-noall_load"
3705 llvm_cv_os_type="Darwin"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-minix*)
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Minix"
3711 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003712 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="FreeBSD"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-openbsd*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="OpenBSD"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-netbsd*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="NetBSD"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-dragonfly*)
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="DragonFly"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-hpux*)
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="HP-UX"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-interix*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Interix"
3741 llvm_cv_platform_type="Unix" ;;
3742 *-*-linux*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="Linux"
3746 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003747 *-*-gnu*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="GNU"
3751 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003752 *-*-solaris*)
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-*-auroraux*)
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3762 *-*-win32*)
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3767 *-*-mingw*)
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3772 *-*-haiku*)
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3777 *-unknown-eabi*)
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3782 *-unknown-elf*)
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3787 *)
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3792esac
3793fi
3794{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802 case $target in
3803 *-*-aix*)
3804 llvm_cv_target_os_type="AIX" ;;
3805 *-*-irix*)
3806 llvm_cv_target_os_type="IRIX" ;;
3807 *-*-cygwin*)
3808 llvm_cv_target_os_type="Cygwin" ;;
3809 *-*-darwin*)
3810 llvm_cv_target_os_type="Darwin" ;;
3811 *-*-minix*)
3812 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003813 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003814 llvm_cv_target_os_type="FreeBSD" ;;
3815 *-*-openbsd*)
3816 llvm_cv_target_os_type="OpenBSD" ;;
3817 *-*-netbsd*)
3818 llvm_cv_target_os_type="NetBSD" ;;
3819 *-*-dragonfly*)
3820 llvm_cv_target_os_type="DragonFly" ;;
3821 *-*-hpux*)
3822 llvm_cv_target_os_type="HP-UX" ;;
3823 *-*-interix*)
3824 llvm_cv_target_os_type="Interix" ;;
3825 *-*-linux*)
3826 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003827 *-*-gnu*)
3828 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003829 *-*-solaris*)
3830 llvm_cv_target_os_type="SunOS" ;;
3831 *-*-auroraux*)
3832 llvm_cv_target_os_type="AuroraUX" ;;
3833 *-*-win32*)
3834 llvm_cv_target_os_type="Win32" ;;
3835 *-*-mingw*)
3836 llvm_cv_target_os_type="MingW" ;;
3837 *-*-haiku*)
3838 llvm_cv_target_os_type="Haiku" ;;
3839 *-*-rtems*)
3840 llvm_cv_target_os_type="RTEMS" ;;
3841 *-*-nacl*)
3842 llvm_cv_target_os_type="NativeClient" ;;
3843 *-unknown-eabi*)
3844 llvm_cv_target_os_type="Freestanding" ;;
3845 *)
3846 llvm_cv_target_os_type="Unknown" ;;
3847esac
3848fi
3849{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3850echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3851
3852if test "$llvm_cv_os_type" = "Unknown" ; then
3853 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3854echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3855 { (exit 1); exit 1; }; }
3856fi
3857
3858OS=$llvm_cv_os_type
3859
3860HOST_OS=$llvm_cv_os_type
3861
3862TARGET_OS=$llvm_cv_target_os_type
3863
3864
3865LINKALL=$llvm_cv_link_all_option
3866
3867NOLINKALL=$llvm_cv_no_link_all_option
3868
3869
3870case $llvm_cv_platform_type in
3871 Unix)
3872
3873cat >>confdefs.h <<\_ACEOF
3874#define LLVM_ON_UNIX 1
3875_ACEOF
3876
3877 LLVM_ON_UNIX=1
3878
3879 LLVM_ON_WIN32=0
3880
3881 ;;
3882 Win32)
3883
3884cat >>confdefs.h <<\_ACEOF
3885#define LLVM_ON_WIN32 1
3886_ACEOF
3887
3888 LLVM_ON_UNIX=0
3889
3890 LLVM_ON_WIN32=1
3891
3892 ;;
3893esac
3894
3895{ echo "$as_me:$LINENO: checking target architecture" >&5
3896echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3897if test "${llvm_cv_target_arch+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 case $target in
3901 i?86-*) llvm_cv_target_arch="x86" ;;
3902 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3903 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3904 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003905 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003906 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3907 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003908 xcore-*) llvm_cv_target_arch="XCore" ;;
3909 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003910 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003911 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003912 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003913 *) llvm_cv_target_arch="Unknown" ;;
3914esac
3915fi
3916{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3917echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918
3919if test "$llvm_cv_target_arch" = "Unknown" ; then
3920 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3921echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3922fi
3923
Eric Christopherffee5722011-09-16 20:36:25 +00003924case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928esac
3929
3930ARCH=$llvm_cv_target_arch
3931
3932
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003933case $host in
3934 i?86-*) host_arch="x86" ;;
3935 amd64-* | x86_64-*) host_arch="x86_64" ;;
3936 sparc*-*) host_arch="Sparc" ;;
3937 powerpc*-*) host_arch="PowerPC" ;;
3938 arm*-*) host_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003939 mips-* | mips64-*) host_arch="Mips" ;;
3940 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003941 xcore-*) host_arch="XCore" ;;
3942 msp430-*) host_arch="MSP430" ;;
3943 hexagon-*) host_arch="Hexagon" ;;
3944 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003945 *) host_arch="Unknown" ;;
3946esac
3947
3948if test "$host_arch" = "Unknown" ; then
3949 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3950echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3951fi
3952
3953HOST_ARCH=$host_arch
3954
3955
Eric Christopherffee5722011-09-16 20:36:25 +00003956
3957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963 # Extract the first word of "grep ggrep" to use in msg output
3964if test -z "$GREP"; then
3965set dummy grep ggrep; ac_prog_name=$2
3966if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
Reid Spencera773bd52006-08-04 18:18:08 +00003969 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970# Loop through the user's path and test for each of PROGNAME-LIST
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003972for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003973do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003981 # Check for GNU $ac_path_GREP
3982case `"$ac_path_GREP" --version 2>&1` in
3983*GNU*)
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985*)
3986 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003988 while :
3989 do
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004001 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006esac
4007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008
4009 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004010 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011done
4012
4013done
Reid Spencera773bd52006-08-04 18:18:08 +00004014IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015
4016
4017fi
4018
4019GREP="$ac_cv_path_GREP"
4020if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4024fi
4025
Reid Spencera773bd52006-08-04 18:18:08 +00004026else
4027 ac_cv_path_GREP=$GREP
4028fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030
Reid Spencera773bd52006-08-04 18:18:08 +00004031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004034 GREP="$ac_cv_path_GREP"
4035
4036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037{ echo "$as_me:$LINENO: checking for egrep" >&5
4038echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004041else
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4044 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045 # Extract the first word of "egrep" to use in msg output
4046if test -z "$EGREP"; then
4047set dummy egrep; ac_prog_name=$2
4048if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050else
Reid Spencera773bd52006-08-04 18:18:08 +00004051 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052# Loop through the user's path and test for each of PROGNAME-LIST
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004054for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004058 for ac_prog in egrep; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004063 # Check for GNU $ac_path_EGREP
4064case `"$ac_path_EGREP" --version 2>&1` in
4065*GNU*)
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067*)
4068 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004070 while :
4071 do
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4083 fi
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4086 done
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088esac
4089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090
4091 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004092 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093done
4094
4095done
Reid Spencera773bd52006-08-04 18:18:08 +00004096IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097
4098
4099fi
4100
4101EGREP="$ac_cv_path_EGREP"
4102if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4106fi
4107
Reid Spencera773bd52006-08-04 18:18:08 +00004108else
4109 ac_cv_path_EGREP=$EGREP
4110fi
4111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112
Reid Spencera773bd52006-08-04 18:18:08 +00004113 fi
4114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004115{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004117 EGREP="$ac_cv_path_EGREP"
4118
4119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004120{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4122if test "${ac_cv_header_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004131#include <stdlib.h>
4132#include <stdarg.h>
4133#include <string.h>
4134#include <float.h>
4135
John Criswell0c38eaf2003-09-10 15:17:25 +00004136int
4137main ()
4138{
4139
4140 ;
4141 return 0;
4142}
John Criswell7a73b802003-06-30 21:59:07 +00004143_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144rm -f conftest.$ac_objext
4145if { (ac_try="$ac_compile"
4146case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_compile") 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004178 ac_cv_header_stdc=yes
4179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185
Reid Spencera773bd52006-08-04 18:18:08 +00004186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004187
4188if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190 cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004196#include <string.h>
4197
4198_ACEOF
4199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004200 $EGREP "memchr" >/dev/null 2>&1; then
4201 :
John Criswell7a73b802003-06-30 21:59:07 +00004202else
4203 ac_cv_header_stdc=no
4204fi
4205rm -f conftest*
4206
4207fi
4208
4209if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004211 cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h. */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004217#include <stdlib.h>
4218
4219_ACEOF
4220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004221 $EGREP "free" >/dev/null 2>&1; then
4222 :
John Criswell7a73b802003-06-30 21:59:07 +00004223else
4224 ac_cv_header_stdc=no
4225fi
4226rm -f conftest*
4227
4228fi
4229
4230if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004232 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004233 :
4234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004235 cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004241#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004242#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004243#if ((' ' & 0x0FF) == 0x020)
4244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004247# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004248 (('a' <= (c) && (c) <= 'i') \
4249 || ('j' <= (c) && (c) <= 'r') \
4250 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252#endif
4253
4254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255int
4256main ()
4257{
4258 int i;
4259 for (i = 0; i < 256; i++)
4260 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004261 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004262 return 2;
4263 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004264}
4265_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266rm -f conftest$ac_exeext
4267if { (ac_try="$ac_link"
4268case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_link") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280esac
4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 :
John Criswell7a73b802003-06-30 21:59:07 +00004287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288 echo "$as_me: program exited with status $ac_status" >&5
4289echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292( exit $ac_status )
4293ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004295rm -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 +00004296fi
4297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004298
John Criswell7a73b802003-06-30 21:59:07 +00004299fi
4300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004303if test $ac_cv_header_stdc = yes; then
4304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305cat >>confdefs.h <<\_ACEOF
4306#define STDC_HEADERS 1
4307_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004308
4309fi
4310
Reid Spencera773bd52006-08-04 18:18:08 +00004311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004312
4313
4314
4315
4316
4317
4318
4319
4320
Reid Spencera773bd52006-08-04 18:18:08 +00004321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004323do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
4336$ac_includes_default
4337
4338#include <$ac_header>
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (ac_try="$ac_compile"
4342case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 eval "$as_ac_Header=yes"
4375else
4376 echo "$as_me: failed program was:" >&5
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 eval "$as_ac_Header=no"
4380fi
4381
4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383fi
4384ac_res=`eval echo '${'$as_ac_Header'}'`
4385 { echo "$as_me:$LINENO: result: $ac_res" >&5
4386echo "${ECHO_T}$ac_res" >&6; }
4387if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004390_ACEOF
4391
4392fi
4393
4394done
4395
4396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004397{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4398echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4399if test "${ac_cv_c_bigendian+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402 # See if sys/param.h defines the BYTE_ORDER macro.
4403cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004405_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004408/* end confdefs.h. */
4409#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004411
4412int
4413main ()
4414{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4416 bogus endian macros
4417#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004418
4419 ;
4420 return 0;
4421}
4422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423rm -f conftest.$ac_objext
4424if { (ac_try="$ac_compile"
4425case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428esac
4429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438 { (case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_try") 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_try") 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004457 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004458cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004463/* end confdefs.h. */
4464#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004466
4467int
4468main ()
4469{
4470#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004471 not big endian
4472#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004473
4474 ;
4475 return 0;
4476}
4477_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004478rm -f conftest.$ac_objext
4479if { (ac_try="$ac_compile"
4480case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_try") 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004512 ac_cv_c_bigendian=yes
4513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514 echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 ac_cv_c_bigendian=no
4518fi
4519
4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521else
4522 echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 # It does not; compile a test program.
4526if test "$cross_compiling" = yes; then
4527 # try to guess the endianness by grepping values into an object file
4528 ac_cv_c_bigendian=unknown
4529 cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h. */
4535short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4537void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4538short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4540void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004541int
4542main ()
4543{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004544 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004545 ;
4546 return 0;
4547}
4548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549rm -f conftest.$ac_objext
4550if { (ac_try="$ac_compile"
4551case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577esac
4578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_try") 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004584 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585fi
4586if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4587 if test "$ac_cv_c_bigendian" = unknown; then
4588 ac_cv_c_bigendian=no
4589 else
4590 # finding both strings is unlikely to happen, but who knows?
4591 ac_cv_c_bigendian=unknown
4592 fi
4593fi
Reid Spencera773bd52006-08-04 18:18:08 +00004594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004595 echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598
Torok Edwin871384f2010-01-26 08:50:50 +00004599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004600
Reid Spencera773bd52006-08-04 18:18:08 +00004601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h. */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004608/* end confdefs.h. */
4609$ac_includes_default
4610int
4611main ()
4612{
4613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 /* Are we little or big endian? From Harbison&Steele. */
4615 union
4616 {
4617 long int l;
4618 char c[sizeof (long int)];
4619 } u;
4620 u.l = 1;
4621 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004622
4623 ;
4624 return 0;
4625}
4626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627rm -f conftest$ac_exeext
4628if { (ac_try="$ac_link"
4629case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_link") 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4638 { (case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_try") 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004647 ac_cv_c_bigendian=no
4648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 echo "$as_me: program exited with status $ac_status" >&5
4650echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653( exit $ac_status )
4654ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004656rm -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 +00004657fi
4658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659
Reid Spencera773bd52006-08-04 18:18:08 +00004660fi
4661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663fi
4664{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4665echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4666case $ac_cv_c_bigendian in
4667 yes)
4668 ENDIAN=big
4669 ;;
4670 no)
4671 ENDIAN=little
4672 ;;
4673 *)
4674 { { echo "$as_me:$LINENO: error: unknown endianness
4675presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4676echo "$as_me: error: unknown endianness
4677presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4679esac
Reid Spencera773bd52006-08-04 18:18:08 +00004680
4681
4682if test "$cross_compiling" = yes; then
4683 LLVM_CROSS_COMPILING=1
4684
4685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4687echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4688if test "${ac_cv_build_exeext+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
4691 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4692 ac_cv_build_exeext=.exe
4693else
4694 ac_build_prefix=${build_alias}-
4695
4696 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4697set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004702else
4703 if test -n "$BUILD_CC"; then
4704 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 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 +00004713 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004715 break 2
4716 fi
4717done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718done
Reid Spencera773bd52006-08-04 18:18:08 +00004719IFS=$as_save_IFS
4720
4721fi
4722fi
4723BUILD_CC=$ac_cv_prog_BUILD_CC
4724if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004727else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728 { echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004730fi
4731
4732
4733 if test -z "$BUILD_CC"; then
4734 # Extract the first word of "gcc", so it can be a program name with args.
4735set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004740else
4741 if test -n "$BUILD_CC"; then
4742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 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 +00004751 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004753 break 2
4754 fi
4755done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004756done
Reid Spencera773bd52006-08-04 18:18:08 +00004757IFS=$as_save_IFS
4758
4759fi
4760fi
4761BUILD_CC=$ac_cv_prog_BUILD_CC
4762if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4764echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004765else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004766 { echo "$as_me:$LINENO: result: no" >&5
4767echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004768fi
4769
4770
4771 if test -z "$BUILD_CC"; then
4772 # Extract the first word of "cc", so it can be a program name with args.
4773set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004778else
4779 if test -n "$BUILD_CC"; then
4780 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4781else
4782 ac_prog_rejected=no
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 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 +00004790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791 ac_prog_rejected=yes
4792 continue
4793 fi
4794 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004796 break 2
4797 fi
4798done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799done
Reid Spencera773bd52006-08-04 18:18:08 +00004800IFS=$as_save_IFS
4801
4802if test $ac_prog_rejected = yes; then
4803 # We found a bogon in the path, so make sure we never use it.
4804 set dummy $ac_cv_prog_BUILD_CC
4805 shift
4806 if test $# != 0; then
4807 # We chose a different compiler from the bogus one.
4808 # However, it has the same basename, so the bogon will be chosen
4809 # first if we set BUILD_CC to just the basename; use the full file name.
4810 shift
4811 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4812 fi
4813fi
4814fi
4815fi
4816BUILD_CC=$ac_cv_prog_BUILD_CC
4817if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4819echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004821 { echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004823fi
4824
4825
4826 fi
4827 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4829echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4830 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004831 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4832 rm -f conftest*
4833 echo 'int main () { return 0; }' > conftest.$ac_ext
4834 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004836 (eval $ac_build_link) 2>&5
4837 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004840 for file in conftest.*; do
4841 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004842 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004843 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4844 esac
4845 done
4846 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4848echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4849 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004850 fi
4851 rm -f conftest*
4852 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4853fi
4854fi
4855
4856BUILD_EXEEXT=""
4857test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004858{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4859echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004860ac_build_exeext=$BUILD_EXEEXT
4861
Jim Grosbach673612e2008-10-02 22:56:44 +00004862 ac_build_prefix=${build_alias}-
4863 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4864set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004869else
4870 if test -n "$BUILD_CXX"; then
4871 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872else
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 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 +00004880 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004882 break 2
4883 fi
4884done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885done
Jim Grosbach673612e2008-10-02 22:56:44 +00004886IFS=$as_save_IFS
4887
4888fi
4889fi
4890BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895 { echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004897fi
4898
4899
4900 if test -z "$BUILD_CXX"; then
4901 # Extract the first word of "g++", so it can be a program name with args.
4902set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004907else
4908 if test -n "$BUILD_CXX"; then
4909 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 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 +00004918 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004920 break 2
4921 fi
4922done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004923done
Jim Grosbach673612e2008-10-02 22:56:44 +00004924IFS=$as_save_IFS
4925
4926fi
4927fi
4928BUILD_CXX=$ac_cv_prog_BUILD_CXX
4929if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004930 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4931echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933 { echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004935fi
4936
4937
4938 if test -z "$BUILD_CXX"; then
4939 # Extract the first word of "c++", so it can be a program name with args.
4940set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004945else
4946 if test -n "$BUILD_CXX"; then
4947 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4948else
4949 ac_prog_rejected=no
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 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 +00004957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4958 ac_prog_rejected=yes
4959 continue
4960 fi
4961 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004963 break 2
4964 fi
4965done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004966done
Jim Grosbach673612e2008-10-02 22:56:44 +00004967IFS=$as_save_IFS
4968
4969if test $ac_prog_rejected = yes; then
4970 # We found a bogon in the path, so make sure we never use it.
4971 set dummy $ac_cv_prog_BUILD_CXX
4972 shift
4973 if test $# != 0; then
4974 # We chose a different compiler from the bogus one.
4975 # However, it has the same basename, so the bogon will be chosen
4976 # first if we set BUILD_CXX to just the basename; use the full file name.
4977 shift
4978 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4979 fi
4980fi
4981fi
4982fi
4983BUILD_CXX=$ac_cv_prog_BUILD_CXX
4984if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004985 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4986echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004988 { echo "$as_me:$LINENO: result: no" >&5
4989echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004990fi
4991
4992
4993 fi
4994 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004995else
4996 LLVM_CROSS_COMPILING=0
4997
4998fi
4999
Dan Gohman56fb5f92010-08-04 16:25:01 +00005000if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005001 cvsbuild="yes"
5002 optimize="no"
5003 CVSBUILD=CVSBUILD=1
5004
5005else
5006 cvsbuild="no"
5007 optimize="yes"
5008fi
5009
5010
Eric Christopherbee515f2011-11-11 22:51:42 +00005011# Check whether --enable-libcpp was given.
5012if test "${enable_libcpp+set}" = set; then
5013 enableval=$enable_libcpp;
5014else
5015 enableval=default
5016fi
5017
5018case "$enableval" in
5019 yes) ENABLE_LIBCPP=1
5020 ;;
5021 no) ENABLE_LIBCPP=0
5022 ;;
5023 default) ENABLE_LIBCPP=0
5024;;
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5026echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028esac
5029
Eric Christopher82120022012-08-03 19:47:14 +00005030# Check whether --enable-cxx11 was given.
5031if test "${enable_cxx11+set}" = set; then
5032 enableval=$enable_cxx11;
5033else
5034 enableval=default
5035fi
5036
5037case "$enableval" in
5038 yes) ENABLE_CXX11=1
5039 ;;
5040 no) ENABLE_CXX11=0
5041 ;;
5042 default) ENABLE_CXX11=0
5043;;
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5045echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5047esac
5048
Reid Spencera773bd52006-08-04 18:18:08 +00005049# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005050if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005051 enableval=$enable_optimized;
5052else
5053 enableval=$optimize
5054fi
5055
5056if test ${enableval} = "no" ; then
5057 ENABLE_OPTIMIZED=
5058
5059else
5060 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5061
5062fi
5063
David Greene2a5a12c2009-04-17 14:50:39 +00005064# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005066 enableval=$enable_profiling;
5067else
5068 enableval="no"
5069fi
5070
5071if test ${enableval} = "no" ; then
5072 ENABLE_PROFILING=
5073
5074else
5075 ENABLE_PROFILING=ENABLE_PROFILING=1
5076
5077fi
5078
Reid Spencera773bd52006-08-04 18:18:08 +00005079# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005080if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005081 enableval=$enable_assertions;
5082else
5083 enableval="yes"
5084fi
5085
5086if test ${enableval} = "yes" ; then
5087 DISABLE_ASSERTIONS=
5088
5089else
5090 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5091
5092fi
5093
Eric Christopher09a88732012-08-03 19:58:20 +00005094# Check whether --enable-werror was given.
5095if test "${enable_werror+set}" = set; then
5096 enableval=$enable_werror;
5097else
5098 enableval="no"
5099fi
5100
5101case "$enableval" in
5102 yes) ENABLE_WERROR=1
5103 ;;
5104 no) ENABLE_WERROR=0
5105 ;;
5106 default) ENABLE_WERROR=0
5107;;
5108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5109echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5110 { (exit 1); exit 1; }; } ;;
5111esac
5112
David Greenea696d242007-06-28 19:36:08 +00005113# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005114if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005115 enableval=$enable_expensive_checks;
5116else
5117 enableval="no"
5118fi
5119
5120if test ${enableval} = "yes" ; then
5121 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5122
5123 EXPENSIVE_CHECKS=yes
5124
5125else
5126 ENABLE_EXPENSIVE_CHECKS=
5127
5128 EXPENSIVE_CHECKS=no
5129
5130fi
5131
Reid Spencer8b2e1412006-11-17 03:32:33 +00005132# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005133if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005134 enableval=$enable_debug_runtime;
5135else
5136 enableval=no
5137fi
5138
5139if test ${enableval} = "no" ; then
5140 DEBUG_RUNTIME=
5141
5142else
5143 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5144
5145fi
5146
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005147# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005149 enableval=$enable_debug_symbols;
5150else
5151 enableval=no
5152fi
5153
5154if test ${enableval} = "no" ; then
5155 DEBUG_SYMBOLS=
5156
5157else
5158 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5159
5160fi
5161
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005162# Check whether --enable-keep-symbols was given.
5163if test "${enable_keep_symbols+set}" = set; then
5164 enableval=$enable_keep_symbols;
5165else
5166 enableval=no
5167fi
5168
5169if test ${enableval} = "no" ; then
5170 KEEP_SYMBOLS=
5171
5172else
5173 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5174
5175fi
5176
Reid Spencera773bd52006-08-04 18:18:08 +00005177# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005178if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005179 enableval=$enable_jit;
5180else
5181 enableval=default
5182fi
5183
5184if test ${enableval} = "no"
5185then
5186 JIT=
5187
5188else
5189 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005190 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005191 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005192 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005193 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005194 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005195 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005196 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005197 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005198 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005199 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005200 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005201 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005202 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005203 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005204 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005205 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005206 Hexagon) TARGET_HAS_JIT=0
5207 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005208 MBlaze) TARGET_HAS_JIT=0
5209 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005210 NVPTX) TARGET_HAS_JIT=0
5211 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005212 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005213 ;;
5214 esac
5215fi
5216
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005217# Check whether --enable-docs was given.
5218if test "${enable_docs+set}" = set; then
5219 enableval=$enable_docs;
5220else
5221 enableval=default
5222fi
5223
5224case "$enableval" in
5225 yes) ENABLE_DOCS=1
5226 ;;
5227 no) ENABLE_DOCS=0
5228 ;;
5229 default) ENABLE_DOCS=1
5230 ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5232echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5234esac
5235
Reid Spencera773bd52006-08-04 18:18:08 +00005236# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005237if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005238 enableval=$enable_doxygen;
5239else
5240 enableval=default
5241fi
5242
5243case "$enableval" in
5244 yes) ENABLE_DOXYGEN=1
5245 ;;
5246 no) ENABLE_DOXYGEN=0
5247 ;;
5248 default) ENABLE_DOXYGEN=0
5249 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005253esac
5254
5255# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005256if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005257 enableval=$enable_threads;
5258else
Reid Spencer65c5d752006-11-05 17:08:18 +00005259 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005260fi
5261
5262case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005263 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005264 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005265 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005266 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005267 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005268 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5270echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005272esac
5273
Owen Andersona8603702009-05-19 22:18:56 +00005274cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005275#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005276_ACEOF
5277
5278
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005279# Check whether --enable-pthreads was given.
5280if test "${enable_pthreads+set}" = set; then
5281 enableval=$enable_pthreads;
5282else
5283 enableval=default
5284fi
5285
5286case "$enableval" in
5287 yes) ENABLE_PTHREADS=1
5288 ;;
5289 no) ENABLE_PTHREADS=0
5290 ;;
5291 default) ENABLE_PTHREADS=1
5292 ;;
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5294echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5296esac
5297
Reid Spencer89b0d992006-12-16 22:07:52 +00005298# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005299if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005300 enableval=$enable_pic;
5301else
5302 enableval=default
5303fi
5304
5305case "$enableval" in
5306 yes) ENABLE_PIC=1
5307 ;;
5308 no) ENABLE_PIC=0
5309 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005310 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005311 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005312 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5313echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005315esac
5316
5317cat >>confdefs.h <<_ACEOF
5318#define ENABLE_PIC $ENABLE_PIC
5319_ACEOF
5320
5321
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005322# Check whether --enable-shared was given.
5323if test "${enable_shared+set}" = set; then
5324 enableval=$enable_shared;
5325else
5326 enableval=default
5327fi
5328
5329case "$enableval" in
5330 yes) ENABLE_SHARED=1
5331 ;;
5332 no) ENABLE_SHARED=0
5333 ;;
5334 default) ENABLE_SHARED=0
5335 ;;
5336 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5337echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5339esac
5340
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005341# Check whether --enable-embed-stdcxx was given.
5342if test "${enable_embed_stdcxx+set}" = set; then
5343 enableval=$enable_embed_stdcxx;
5344else
5345 enableval=default
5346fi
5347
5348case "$enableval" in
5349 yes) ENABLE_EMBED_STDCXX=1
5350 ;;
5351 no) ENABLE_EMBED_STDCXX=0
5352 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005353 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005354 ;;
5355 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5356echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5357 { (exit 1); exit 1; }; } ;;
5358esac
5359
Daniel Dunbardd464df2010-05-10 20:11:56 +00005360# Check whether --enable-timestamps was given.
5361if test "${enable_timestamps+set}" = set; then
5362 enableval=$enable_timestamps;
5363else
5364 enableval=default
5365fi
5366
5367case "$enableval" in
5368 yes) ENABLE_TIMESTAMPS=1
5369 ;;
5370 no) ENABLE_TIMESTAMPS=0
5371 ;;
5372 default) ENABLE_TIMESTAMPS=1
5373 ;;
5374 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5375echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5376 { (exit 1); exit 1; }; } ;;
5377esac
5378
5379cat >>confdefs.h <<_ACEOF
5380#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5381_ACEOF
5382
5383
Eric Christopherc69bdad2012-09-21 23:03:29 +00005384
5385# Check whether --enable-backtraces was given.
5386if test "${enable_backtraces+set}" = set; then
5387 enableval=$enable_backtraces;
5388else
5389 enableval=default
5390fi
5391
5392case "$enableval" in
5393 yes) ENABLE_TIMESTAMPS=1
5394 ;;
5395 no) ENABLE_TIMESTAMPS=0
5396 ;;
5397 default) ENABLE_TIMESTAMPS=1
5398 ;;
5399 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5400echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5401 { (exit 1); exit 1; }; } ;;
5402esac
5403
5404cat >>confdefs.h <<_ACEOF
5405#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5406_ACEOF
5407
5408
Reid Spencera773bd52006-08-04 18:18:08 +00005409TARGETS_TO_BUILD=""
5410# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005412 enableval=$enable_targets;
5413else
5414 enableval=all
5415fi
5416
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005417if test "$enableval" = host-only ; then
5418 enableval=host
5419fi
Reid Spencera773bd52006-08-04 18:18:08 +00005420case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005421 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005422 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5423 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005424 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5427 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005428 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5429 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005430 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005431 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5432 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005433 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005434 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5435 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005436 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005437 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005438 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005439 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005440 host) case "$llvm_cv_target_arch" in
5441 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5442 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5444 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005445 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005447 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005448 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005449 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5450 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005451 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005452 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005453 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5454echo "$as_me: error: Can not set target to build" >&2;}
5455 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005456 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005457 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5458echo "$as_me: error: Unrecognized target $a_target" >&2;}
5459 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005460 esac
5461 done
5462 ;;
5463esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005464
5465# Check whether --enable-experimental-targets was given.
5466if test "${enable_experimental_targets+set}" = set; then
5467 enableval=$enable_experimental_targets;
5468else
5469 enableval=disable
5470fi
5471
5472
5473if test ${enableval} != "disable"
5474then
5475 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5476fi
5477
Reid Spencera773bd52006-08-04 18:18:08 +00005478TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5479
5480
Douglas Gregor0711c302009-06-17 00:43:20 +00005481for a_target in $TARGETS_TO_BUILD; do
5482 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5483
5484cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005485#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5486_ACEOF
5487
5488 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5489 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005490 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005491 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5493 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5494 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005495 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5496 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5497 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005498
5499cat >>confdefs.h <<_ACEOF
5500#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005501_ACEOF
5502
5503
5504cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005505#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5506_ACEOF
5507
5508
5509cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005510#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005511_ACEOF
5512
5513
5514cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005515#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005516_ACEOF
5517
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005518 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005519
5520cat >>confdefs.h <<_ACEOF
5521#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5522_ACEOF
5523
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005524 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005525 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5526
5527cat >>confdefs.h <<_ACEOF
5528#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5529_ACEOF
5530
5531 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005532 fi
5533done
5534
Douglas Gregor1555a232009-06-16 20:12:29 +00005535LLVM_ENUM_TARGETS=""
5536LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005537LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005538LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005539for target_to_build in $TARGETS_TO_BUILD; do
5540 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005541 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005542 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5543 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005544 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5545 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5546 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005547 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5548 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5549 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005550done
5551
5552
5553
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005554
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005555
Reid Spencera773bd52006-08-04 18:18:08 +00005556
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005557# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005558if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005559 withval=$with_optimize_option;
5560else
5561 withval=default
5562fi
5563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564{ echo "$as_me:$LINENO: checking optimization flags" >&5
5565echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005566case "$withval" in
5567 default)
5568 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005569 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005570 MingW) optimize_option=-O2 ;;
5571 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005572 esac ;;
5573 *) optimize_option="$withval" ;;
5574esac
5575OPTIMIZE_OPTION=$optimize_option
5576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5578echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005579
5580
Reid Spencera773bd52006-08-04 18:18:08 +00005581# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005583 withval=$with_extra_options;
5584else
5585 withval=default
5586fi
5587
5588case "$withval" in
5589 default) EXTRA_OPTIONS= ;;
5590 *) EXTRA_OPTIONS=$withval ;;
5591esac
5592EXTRA_OPTIONS=$EXTRA_OPTIONS
5593
5594
Daniel Dunbared344d22011-06-16 22:30:41 +00005595
5596# Check whether --with-extra-ld-options was given.
5597if test "${with_extra_ld_options+set}" = set; then
5598 withval=$with_extra_ld_options;
5599else
5600 withval=default
5601fi
5602
5603case "$withval" in
5604 default) EXTRA_LD_OPTIONS= ;;
5605 *) EXTRA_LD_OPTIONS=$withval ;;
5606esac
5607EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5608
5609
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005610# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005611if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005612 enableval=$enable_bindings;
5613else
5614 enableval=default
5615fi
5616
5617BINDINGS_TO_BUILD=""
5618case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005619 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005620 all ) BINDINGS_TO_BUILD="ocaml" ;;
5621 none | no) BINDINGS_TO_BUILD="" ;;
5622 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5623 case "$a_binding" in
5624 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5626echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5627 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005628 esac
5629 done
5630 ;;
5631esac
5632
Reid Spencera773bd52006-08-04 18:18:08 +00005633
Gordon Henriksenf0915682007-10-02 16:42:22 +00005634# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005635if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005636 withval=$with_ocaml_libdir;
5637else
5638 withval=auto
5639fi
5640
5641case "$withval" in
5642 auto) with_ocaml_libdir="$withval" ;;
5643 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5645echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5646 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005647esac
5648
5649
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005650# Check whether --with-clang-srcdir was given.
5651if test "${with_clang_srcdir+set}" = set; then
5652 withval=$with_clang_srcdir;
5653else
5654 withval="-"
5655fi
5656
5657case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005658 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005659 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5660 *) clang_src_root="$ac_pwd/$withval" ;;
5661esac
5662CLANG_SRC_ROOT=$clang_src_root
5663
5664
5665
Chandler Carruth6b241162010-10-19 08:21:25 +00005666# Check whether --with-clang-resource-dir was given.
5667if test "${with_clang_resource_dir+set}" = set; then
5668 withval=$with_clang_resource_dir;
5669else
5670 withval=""
5671fi
5672
5673
5674cat >>confdefs.h <<_ACEOF
5675#define CLANG_RESOURCE_DIR "$withval"
5676_ACEOF
5677
5678
5679
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005680# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005681if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005682 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005683else
5684 withval=""
5685fi
5686
5687
5688cat >>confdefs.h <<_ACEOF
5689#define C_INCLUDE_DIRS "$withval"
5690_ACEOF
5691
5692
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005693# Clang normally uses the system c++ headers and libraries. With this option,
5694# clang will use the ones provided by a gcc installation instead. This option should
5695# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005696
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005697# Check whether --with-gcc-toolchain was given.
5698if test "${with_gcc_toolchain+set}" = set; then
5699 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005700else
5701 withval=""
5702fi
5703
5704
5705cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005706#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005707_ACEOF
5708
5709
5710
Sebastian Pope4f1b372012-04-30 20:06:58 +00005711# Check whether --with-default-sysroot was given.
5712if test "${with_default_sysroot+set}" = set; then
5713 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005714else
5715 withval=""
5716fi
5717
5718
5719cat >>confdefs.h <<_ACEOF
5720#define DEFAULT_SYSROOT "$withval"
5721_ACEOF
5722
5723
5724
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005725# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005727 withval=$with_binutils_include;
5728else
5729 withval=default
5730fi
5731
5732case "$withval" in
5733 default) WITH_BINUTILS_INCDIR=default ;;
5734 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5736echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5737 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005738esac
5739if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5740 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5741
5742 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5743 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5745echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5746 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005747 fi
5748fi
5749
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005750
5751# Check whether --with-bug-report-url was given.
5752if test "${with_bug_report_url+set}" = set; then
5753 withval=$with_bug_report_url;
5754else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005755 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005756fi
5757
5758
5759cat >>confdefs.h <<_ACEOF
5760#define BUG_REPORT_URL "$withval"
5761_ACEOF
5762
5763
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005764# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005766 enableval=$enable_libffi; case "$enableval" in
5767 yes) llvm_cv_enable_libffi="yes" ;;
5768 no) llvm_cv_enable_libffi="no" ;;
5769 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5771 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005772 esac
5773else
5774 llvm_cv_enable_libffi=no
5775fi
5776
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005777
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005778
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005779# Check whether --with-internal-prefix was given.
5780if test "${with_internal_prefix+set}" = set; then
5781 withval=$with_internal_prefix;
5782else
5783 withval=""
5784fi
5785
5786INTERNAL_PREFIX=$withval
5787
5788
5789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5791echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5792if test "${lt_cv_path_NM+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005794else
5795 if test -n "$NM"; then
5796 # Let the user override the test.
5797 lt_cv_path_NM="$NM"
5798else
5799 lt_nm_to_check="${ac_tool_prefix}nm"
5800 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5801 lt_nm_to_check="$lt_nm_to_check nm"
5802 fi
5803 for lt_tmp_nm in $lt_nm_to_check; do
5804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5805 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5806 IFS="$lt_save_ifs"
5807 test -z "$ac_dir" && ac_dir=.
5808 tmp_nm="$ac_dir/$lt_tmp_nm"
5809 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5810 # Check to see if the nm accepts a BSD-compat flag.
5811 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5812 # nm: unknown option "B" ignored
5813 # Tru64's nm complains that /dev/null is an invalid object file
5814 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5815 */dev/null* | *'Invalid file or object type'*)
5816 lt_cv_path_NM="$tmp_nm -B"
5817 break
5818 ;;
5819 *)
5820 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5821 */dev/null*)
5822 lt_cv_path_NM="$tmp_nm -p"
5823 break
5824 ;;
5825 *)
5826 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5827 continue # so that we can try to find one that supports BSD flags
5828 ;;
5829 esac
5830 ;;
5831 esac
5832 fi
5833 done
5834 IFS="$lt_save_ifs"
5835 done
5836 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5837fi
5838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005839{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5840echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005841NM="$lt_cv_path_NM"
5842
5843
5844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845{ echo "$as_me:$LINENO: checking for GNU make" >&5
5846echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5847if test "${llvm_cv_gnu_make_command+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005849else
5850 llvm_cv_gnu_make_command=''
5851 for a in "$MAKE" make gmake gnumake ; do
5852 if test -z "$a" ; then continue ; fi ;
5853 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5854 then
5855 llvm_cv_gnu_make_command=$a ;
5856 break;
5857 fi
5858 done
5859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5861echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005862 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5863 ifGNUmake='' ;
5864 else
5865 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5867echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005868 fi
5869
5870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5872echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005873LN_S=$as_ln_s
5874if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875 { echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5879echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005880fi
5881
5882# Extract the first word of "cmp", so it can be a program name with args.
5883set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886if test "${ac_cv_path_CMP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005888else
5889 case $CMP in
5890 [\\/]* | ?:[\\/]*)
5891 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5892 ;;
5893 *)
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 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 +00005901 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005903 break 2
5904 fi
5905done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906done
Reid Spencera773bd52006-08-04 18:18:08 +00005907IFS=$as_save_IFS
5908
5909 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5910 ;;
5911esac
5912fi
5913CMP=$ac_cv_path_CMP
5914if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 { echo "$as_me:$LINENO: result: $CMP" >&5
5916echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 { echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005920fi
5921
5922
5923# Extract the first word of "cp", so it can be a program name with args.
5924set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927if test "${ac_cv_path_CP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005929else
5930 case $CP in
5931 [\\/]* | ?:[\\/]*)
5932 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5933 ;;
5934 *)
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 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 +00005942 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005944 break 2
5945 fi
5946done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947done
Reid Spencera773bd52006-08-04 18:18:08 +00005948IFS=$as_save_IFS
5949
5950 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5951 ;;
5952esac
5953fi
5954CP=$ac_cv_path_CP
5955if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 { echo "$as_me:$LINENO: result: $CP" >&5
5957echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959 { echo "$as_me:$LINENO: result: no" >&5
5960echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005961fi
5962
5963
5964# Extract the first word of "date", so it can be a program name with args.
5965set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968if test "${ac_cv_path_DATE+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005970else
5971 case $DATE in
5972 [\\/]* | ?:[\\/]*)
5973 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5974 ;;
5975 *)
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 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 +00005983 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005985 break 2
5986 fi
5987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988done
Reid Spencera773bd52006-08-04 18:18:08 +00005989IFS=$as_save_IFS
5990
5991 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5992 ;;
5993esac
5994fi
5995DATE=$ac_cv_path_DATE
5996if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 { echo "$as_me:$LINENO: result: $DATE" >&5
5998echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 { echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006002fi
6003
6004
6005# Extract the first word of "find", so it can be a program name with args.
6006set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009if test "${ac_cv_path_FIND+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006011else
6012 case $FIND in
6013 [\\/]* | ?:[\\/]*)
6014 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6015 ;;
6016 *)
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 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 +00006024 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006026 break 2
6027 fi
6028done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029done
Reid Spencera773bd52006-08-04 18:18:08 +00006030IFS=$as_save_IFS
6031
6032 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6033 ;;
6034esac
6035fi
6036FIND=$ac_cv_path_FIND
6037if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038 { echo "$as_me:$LINENO: result: $FIND" >&5
6039echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041 { echo "$as_me:$LINENO: result: no" >&5
6042echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006043fi
6044
6045
6046# Extract the first word of "grep", so it can be a program name with args.
6047set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050if test "${ac_cv_path_GREP+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006052else
6053 case $GREP in
6054 [\\/]* | ?:[\\/]*)
6055 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6056 ;;
6057 *)
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 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 +00006065 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006067 break 2
6068 fi
6069done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070done
Reid Spencera773bd52006-08-04 18:18:08 +00006071IFS=$as_save_IFS
6072
6073 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6074 ;;
6075esac
6076fi
6077GREP=$ac_cv_path_GREP
6078if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006079 { echo "$as_me:$LINENO: result: $GREP" >&5
6080echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082 { echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006084fi
6085
6086
6087# Extract the first word of "mkdir", so it can be a program name with args.
6088set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091if test "${ac_cv_path_MKDIR+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006093else
6094 case $MKDIR in
6095 [\\/]* | ?:[\\/]*)
6096 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6097 ;;
6098 *)
6099 as_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_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
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
6114 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6115 ;;
6116esac
6117fi
6118MKDIR=$ac_cv_path_MKDIR
6119if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6121echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006125fi
6126
6127
6128# Extract the first word of "mv", so it can be a program name with args.
6129set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132if test "${ac_cv_path_MV+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006134else
6135 case $MV in
6136 [\\/]* | ?:[\\/]*)
6137 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6138 ;;
6139 *)
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 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 +00006147 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006149 break 2
6150 fi
6151done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152done
Reid Spencera773bd52006-08-04 18:18:08 +00006153IFS=$as_save_IFS
6154
6155 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6156 ;;
6157esac
6158fi
6159MV=$ac_cv_path_MV
6160if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: $MV" >&5
6162echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006166fi
6167
6168
6169if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6171set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174if test "${ac_cv_prog_RANLIB+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006176else
6177 if test -n "$RANLIB"; then
6178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 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 +00006187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006189 break 2
6190 fi
6191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192done
Reid Spencera773bd52006-08-04 18:18:08 +00006193IFS=$as_save_IFS
6194
6195fi
6196fi
6197RANLIB=$ac_cv_prog_RANLIB
6198if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6200echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006204fi
6205
6206
6207fi
6208if test -z "$ac_cv_prog_RANLIB"; then
6209 ac_ct_RANLIB=$RANLIB
6210 # Extract the first word of "ranlib", so it can be a program name with args.
6211set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006216else
6217 if test -n "$ac_ct_RANLIB"; then
6218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 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 +00006227 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006229 break 2
6230 fi
6231done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232done
Reid Spencera773bd52006-08-04 18:18:08 +00006233IFS=$as_save_IFS
6234
6235fi
6236fi
6237ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6238if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6240echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 { echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006244fi
6245
6246 if test "x$ac_ct_RANLIB" = x; then
6247 RANLIB=":"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252whose name does not start with the host triplet. If you think this
6253configuration is useful to you, please write to autoconf@gnu.org." >&5
6254echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255whose name does not start with the host triplet. If you think this
6256configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006257ac_tool_warned=yes ;;
6258esac
6259 RANLIB=$ac_ct_RANLIB
6260 fi
6261else
6262 RANLIB="$ac_cv_prog_RANLIB"
6263fi
6264
Torok Edwin871384f2010-01-26 08:50:50 +00006265if test -n "$ac_tool_prefix"; then
6266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6267set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_prog_AR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006272else
6273 if test -n "$AR"; then
6274 ac_cv_prog_AR="$AR" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 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 +00006283 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006285 break 2
6286 fi
6287done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288done
Torok Edwin871384f2010-01-26 08:50:50 +00006289IFS=$as_save_IFS
6290
6291fi
6292fi
6293AR=$ac_cv_prog_AR
6294if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: $AR" >&5
6296echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 { echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006300fi
6301
6302
6303fi
6304if test -z "$ac_cv_prog_AR"; then
6305 ac_ct_AR=$AR
6306 # Extract the first word of "ar", so it can be a program name with args.
6307set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006312else
6313 if test -n "$ac_ct_AR"; then
6314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 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 +00006323 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006325 break 2
6326 fi
6327done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328done
Torok Edwin871384f2010-01-26 08:50:50 +00006329IFS=$as_save_IFS
6330
6331fi
6332fi
6333ac_ct_AR=$ac_cv_prog_ac_ct_AR
6334if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6336echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 { echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006340fi
6341
6342 if test "x$ac_ct_AR" = x; then
6343 AR="false"
6344 else
6345 case $cross_compiling:$ac_tool_warned in
6346yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6348whose name does not start with the host triplet. If you think this
6349configuration is useful to you, please write to autoconf@gnu.org." >&5
6350echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6351whose name does not start with the host triplet. If you think this
6352configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006353ac_tool_warned=yes ;;
6354esac
6355 AR=$ac_ct_AR
6356 fi
6357else
6358 AR="$ac_cv_prog_AR"
6359fi
6360
Reid Spencera773bd52006-08-04 18:18:08 +00006361# Extract the first word of "rm", so it can be a program name with args.
6362set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365if test "${ac_cv_path_RM+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006367else
6368 case $RM in
6369 [\\/]* | ?:[\\/]*)
6370 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6371 ;;
6372 *)
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 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 +00006380 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006382 break 2
6383 fi
6384done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385done
Reid Spencera773bd52006-08-04 18:18:08 +00006386IFS=$as_save_IFS
6387
6388 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6389 ;;
6390esac
6391fi
6392RM=$ac_cv_path_RM
6393if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 { echo "$as_me:$LINENO: result: $RM" >&5
6395echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 { echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006399fi
6400
6401
6402# Extract the first word of "sed", so it can be a program name with args.
6403set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406if test "${ac_cv_path_SED+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006408else
6409 case $SED in
6410 [\\/]* | ?:[\\/]*)
6411 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6412 ;;
6413 *)
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 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 +00006421 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006423 break 2
6424 fi
6425done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426done
Reid Spencera773bd52006-08-04 18:18:08 +00006427IFS=$as_save_IFS
6428
6429 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6430 ;;
6431esac
6432fi
6433SED=$ac_cv_path_SED
6434if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006435 { echo "$as_me:$LINENO: result: $SED" >&5
6436echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 { echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006440fi
6441
6442
6443# Extract the first word of "tar", so it can be a program name with args.
6444set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447if test "${ac_cv_path_TAR+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006449else
6450 case $TAR in
6451 [\\/]* | ?:[\\/]*)
6452 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6453 ;;
6454 *)
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 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 +00006462 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006464 break 2
6465 fi
6466done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467done
Reid Spencera773bd52006-08-04 18:18:08 +00006468IFS=$as_save_IFS
6469
6470 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6471 ;;
6472esac
6473fi
6474TAR=$ac_cv_path_TAR
6475if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476 { echo "$as_me:$LINENO: result: $TAR" >&5
6477echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479 { echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006481fi
6482
6483
6484# Extract the first word of "pwd", so it can be a program name with args.
6485set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488if test "${ac_cv_path_BINPWD+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006490else
6491 case $BINPWD in
6492 [\\/]* | ?:[\\/]*)
6493 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6494 ;;
6495 *)
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 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 +00006503 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006505 break 2
6506 fi
6507done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508done
Reid Spencera773bd52006-08-04 18:18:08 +00006509IFS=$as_save_IFS
6510
6511 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6512 ;;
6513esac
6514fi
6515BINPWD=$ac_cv_path_BINPWD
6516if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6518echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006520 { echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006522fi
6523
6524
6525
6526# Extract the first word of "Graphviz", so it can be a program name with args.
6527set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006532else
6533 case $GRAPHVIZ in
6534 [\\/]* | ?:[\\/]*)
6535 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6536 ;;
6537 *)
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 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 +00006545 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006547 break 2
6548 fi
6549done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550done
Reid Spencera773bd52006-08-04 18:18:08 +00006551IFS=$as_save_IFS
6552
6553 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6554 ;;
6555esac
6556fi
6557GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6558if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6560echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006562 { echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006564fi
6565
6566
6567if test "$GRAPHVIZ" != "echo Graphviz" ; then
6568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569cat >>confdefs.h <<\_ACEOF
6570#define HAVE_GRAPHVIZ 1
6571_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006572
Jeff Cohen28783c32007-01-12 18:22:38 +00006573 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006574 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6575 fi
6576
6577cat >>confdefs.h <<_ACEOF
6578#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6579_ACEOF
6580
6581fi
6582# Extract the first word of "dot", so it can be a program name with args.
6583set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586if test "${ac_cv_path_DOT+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006588else
6589 case $DOT in
6590 [\\/]* | ?:[\\/]*)
6591 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6592 ;;
6593 *)
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 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 +00006601 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006603 break 2
6604 fi
6605done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606done
Reid Spencera773bd52006-08-04 18:18:08 +00006607IFS=$as_save_IFS
6608
6609 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6610 ;;
6611esac
6612fi
6613DOT=$ac_cv_path_DOT
6614if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615 { echo "$as_me:$LINENO: result: $DOT" >&5
6616echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618 { echo "$as_me:$LINENO: result: no" >&5
6619echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006620fi
6621
6622
6623if test "$DOT" != "echo dot" ; then
6624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625cat >>confdefs.h <<\_ACEOF
6626#define HAVE_DOT 1
6627_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006628
Jeff Cohen28783c32007-01-12 18:22:38 +00006629 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006630 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6631 fi
6632
6633cat >>confdefs.h <<_ACEOF
6634#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6635_ACEOF
6636
6637fi
David Greenef0b9eff2009-07-09 17:16:26 +00006638# Extract the first word of "fdp", so it can be a program name with args.
6639set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642if test "${ac_cv_path_FDP+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006644else
6645 case $FDP in
6646 [\\/]* | ?:[\\/]*)
6647 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6648 ;;
6649 *)
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 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 +00006657 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006659 break 2
6660 fi
6661done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662done
David Greenef0b9eff2009-07-09 17:16:26 +00006663IFS=$as_save_IFS
6664
6665 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6666 ;;
6667esac
6668fi
6669FDP=$ac_cv_path_FDP
6670if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671 { echo "$as_me:$LINENO: result: $FDP" >&5
6672echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 { echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006676fi
6677
6678
6679if test "$FDP" != "echo fdp" ; then
6680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681cat >>confdefs.h <<\_ACEOF
6682#define HAVE_FDP 1
6683_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006684
6685 if test "$llvm_cv_os_type" = "MingW" ; then
6686 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6687 fi
6688
6689cat >>confdefs.h <<_ACEOF
6690#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6691_ACEOF
6692
6693fi
6694# Extract the first word of "neato", so it can be a program name with args.
6695set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698if test "${ac_cv_path_NEATO+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006700else
6701 case $NEATO in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6704 ;;
6705 *)
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 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 +00006713 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006715 break 2
6716 fi
6717done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718done
David Greenef0b9eff2009-07-09 17:16:26 +00006719IFS=$as_save_IFS
6720
6721 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6722 ;;
6723esac
6724fi
6725NEATO=$ac_cv_path_NEATO
6726if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727 { echo "$as_me:$LINENO: result: $NEATO" >&5
6728echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006729else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730 { echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006732fi
6733
6734
6735if test "$NEATO" != "echo neato" ; then
6736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737cat >>confdefs.h <<\_ACEOF
6738#define HAVE_NEATO 1
6739_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006740
6741 if test "$llvm_cv_os_type" = "MingW" ; then
6742 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6743 fi
6744
6745cat >>confdefs.h <<_ACEOF
6746#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6747_ACEOF
6748
6749fi
6750# Extract the first word of "twopi", so it can be a program name with args.
6751set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754if test "${ac_cv_path_TWOPI+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006756else
6757 case $TWOPI in
6758 [\\/]* | ?:[\\/]*)
6759 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6760 ;;
6761 *)
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 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 +00006769 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006771 break 2
6772 fi
6773done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774done
David Greenef0b9eff2009-07-09 17:16:26 +00006775IFS=$as_save_IFS
6776
6777 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6778 ;;
6779esac
6780fi
6781TWOPI=$ac_cv_path_TWOPI
6782if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6784echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786 { echo "$as_me:$LINENO: result: no" >&5
6787echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006788fi
6789
6790
6791if test "$TWOPI" != "echo twopi" ; then
6792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793cat >>confdefs.h <<\_ACEOF
6794#define HAVE_TWOPI 1
6795_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006796
6797 if test "$llvm_cv_os_type" = "MingW" ; then
6798 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6799 fi
6800
6801cat >>confdefs.h <<_ACEOF
6802#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6803_ACEOF
6804
6805fi
6806# Extract the first word of "circo", so it can be a program name with args.
6807set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_CIRCO+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006812else
6813 case $CIRCO in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 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 +00006825 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006827 break 2
6828 fi
6829done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830done
David Greenef0b9eff2009-07-09 17:16:26 +00006831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6834 ;;
6835esac
6836fi
6837CIRCO=$ac_cv_path_CIRCO
6838if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6840echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006844fi
6845
6846
6847if test "$CIRCO" != "echo circo" ; then
6848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849cat >>confdefs.h <<\_ACEOF
6850#define HAVE_CIRCO 1
6851_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006852
6853 if test "$llvm_cv_os_type" = "MingW" ; then
6854 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6855 fi
6856
6857cat >>confdefs.h <<_ACEOF
6858#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6859_ACEOF
6860
6861fi
Reid Spencera773bd52006-08-04 18:18:08 +00006862for ac_prog in gv gsview32
6863do
6864 # Extract the first word of "$ac_prog", so it can be a program name with args.
6865set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_path_GV+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006870else
6871 case $GV in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 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 +00006883 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006885 break 2
6886 fi
6887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888done
Reid Spencera773bd52006-08-04 18:18:08 +00006889IFS=$as_save_IFS
6890
6891 ;;
6892esac
6893fi
6894GV=$ac_cv_path_GV
6895if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006896 { echo "$as_me:$LINENO: result: $GV" >&5
6897echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006901fi
6902
6903
6904 test -n "$GV" && break
6905done
6906test -n "$GV" || GV="echo gv"
6907
6908if test "$GV" != "echo gv" ; then
6909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910cat >>confdefs.h <<\_ACEOF
6911#define HAVE_GV 1
6912_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006913
Jeff Cohen28783c32007-01-12 18:22:38 +00006914 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006915 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6916 fi
6917
6918cat >>confdefs.h <<_ACEOF
6919#define LLVM_PATH_GV "$GV${EXEEXT}"
6920_ACEOF
6921
6922fi
6923# Extract the first word of "dotty", so it can be a program name with args.
6924set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_DOTTY+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006929else
6930 case $DOTTY in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 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 +00006942 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006944 break 2
6945 fi
6946done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947done
Reid Spencera773bd52006-08-04 18:18:08 +00006948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6951 ;;
6952esac
6953fi
6954DOTTY=$ac_cv_path_DOTTY
6955if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6957echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006961fi
6962
6963
6964if test "$DOTTY" != "echo dotty" ; then
6965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966cat >>confdefs.h <<\_ACEOF
6967#define HAVE_DOTTY 1
6968_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006969
Jeff Cohen28783c32007-01-12 18:22:38 +00006970 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006971 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6972 fi
6973
6974cat >>confdefs.h <<_ACEOF
6975#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6976_ACEOF
6977
6978fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006979# Extract the first word of "xdot.py", so it can be a program name with args.
6980set dummy xdot.py; ac_word=$2
6981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983if test "${ac_cv_path_XDOT_PY+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 case $XDOT_PY in
6987 [\\/]* | ?:[\\/]*)
6988 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6989 ;;
6990 *)
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003done
7004IFS=$as_save_IFS
7005
7006 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7007 ;;
7008esac
7009fi
7010XDOT_PY=$ac_cv_path_XDOT_PY
7011if test -n "$XDOT_PY"; then
7012 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7013echo "${ECHO_T}$XDOT_PY" >&6; }
7014else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019
7020if test "$XDOT_PY" != "echo xdot.py" ; then
7021
7022cat >>confdefs.h <<\_ACEOF
7023#define HAVE_XDOT_PY 1
7024_ACEOF
7025
7026 if test "$llvm_cv_os_type" = "MingW" ; then
7027 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028 fi
7029
7030cat >>confdefs.h <<_ACEOF
7031#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7032_ACEOF
7033
7034fi
Reid Spencera773bd52006-08-04 18:18:08 +00007035
Reid Spencera773bd52006-08-04 18:18:08 +00007036# Find a good install program. We prefer a C program (faster),
7037# so one script is as good as another. But avoid the broken or
7038# incompatible versions:
7039# SysV /etc/install, /usr/sbin/install
7040# SunOS /usr/etc/install
7041# IRIX /sbin/install
7042# AIX /bin/install
7043# AmigaOS /C/install, which installs bootblocks on floppy discs
7044# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7045# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7046# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7047# OS/2's system install, which has a completely different semantic
7048# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7050echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007051if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052if test "${ac_cv_path_install+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007054else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 # Account for people who put trailing slashes in PATH elements.
7061case $as_dir/ in
7062 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007065 /usr/ucb/* ) ;;
7066 *)
7067 # OSF1 and SCO ODT 3.0 have their own names for install.
7068 # Don't use installbsd from OSF since it installs stuff as root
7069 # by default.
7070 for ac_prog in ginstall scoinst install; do
7071 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007072 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 +00007073 if test $ac_prog = install &&
7074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7075 # AIX install. It has an incompatible calling convention.
7076 :
7077 elif test $ac_prog = install &&
7078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7079 # program-specific install script used by HP pwplus--don't use.
7080 :
7081 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7083 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007084 fi
7085 fi
7086 done
7087 done
7088 ;;
7089esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090done
Reid Spencera773bd52006-08-04 18:18:08 +00007091IFS=$as_save_IFS
7092
7093
7094fi
7095 if test "${ac_cv_path_install+set}" = set; then
7096 INSTALL=$ac_cv_path_install
7097 else
7098 # As a last resort, use the slow shell script. Don't cache a
7099 # value for INSTALL within a source directory, because that will
7100 # break other packages using the cache if that directory is
7101 # removed, or if the value is a relative name.
7102 INSTALL=$ac_install_sh
7103 fi
7104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7106echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007107
7108# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7109# It thinks the first close brace ends the variable substitution.
7110test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7111
7112test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7113
7114test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7115
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007116case "$INSTALL" in
7117 [\\/$]* | ?:[\\/]* ) ;;
7118 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7119esac
Reid Spencera773bd52006-08-04 18:18:08 +00007120
7121# Extract the first word of "bzip2", so it can be a program name with args.
7122set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_BZIP2+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007127else
7128 case $BZIP2 in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 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 +00007140 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007142 break 2
7143 fi
7144done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007145done
Reid Spencera773bd52006-08-04 18:18:08 +00007146IFS=$as_save_IFS
7147
Reid Spencera773bd52006-08-04 18:18:08 +00007148 ;;
7149esac
7150fi
7151BZIP2=$ac_cv_path_BZIP2
7152if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7154echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007158fi
7159
7160
mike-m68cb3192010-05-06 23:45:43 +00007161# Extract the first word of "cat", so it can be a program name with args.
7162set dummy cat; ac_word=$2
7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_path_CAT+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168 case $CAT in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184done
7185done
7186IFS=$as_save_IFS
7187
7188 ;;
7189esac
7190fi
7191CAT=$ac_cv_path_CAT
7192if test -n "$CAT"; then
7193 { echo "$as_me:$LINENO: result: $CAT" >&5
7194echo "${ECHO_T}$CAT" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
Reid Spencera773bd52006-08-04 18:18:08 +00007201# Extract the first word of "doxygen", so it can be a program name with args.
7202set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205if test "${ac_cv_path_DOXYGEN+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007207else
7208 case $DOXYGEN in
7209 [\\/]* | ?:[\\/]*)
7210 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7211 ;;
7212 *)
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 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 +00007220 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007222 break 2
7223 fi
7224done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225done
Reid Spencera773bd52006-08-04 18:18:08 +00007226IFS=$as_save_IFS
7227
Reid Spencera773bd52006-08-04 18:18:08 +00007228 ;;
7229esac
7230fi
7231DOXYGEN=$ac_cv_path_DOXYGEN
7232if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7234echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 { echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007238fi
7239
7240
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007241# Extract the first word of "groff", so it can be a program name with args.
7242set dummy groff; ac_word=$2
7243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245if test "${ac_cv_path_GROFF+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248 case $GROFF in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264done
7265done
7266IFS=$as_save_IFS
7267
7268 ;;
7269esac
7270fi
7271GROFF=$ac_cv_path_GROFF
7272if test -n "$GROFF"; then
7273 { echo "$as_me:$LINENO: result: $GROFF" >&5
7274echo "${ECHO_T}$GROFF" >&6; }
7275else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
7278fi
7279
7280
Reid Spencera773bd52006-08-04 18:18:08 +00007281# Extract the first word of "gzip", so it can be a program name with args.
7282set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007285if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007287else
Eric Christopher031d3072010-12-10 01:31:51 +00007288 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007289 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007290 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007291 ;;
7292 *)
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 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 +00007300 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007302 break 2
7303 fi
7304done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305done
Reid Spencera773bd52006-08-04 18:18:08 +00007306IFS=$as_save_IFS
7307
Reid Spencera773bd52006-08-04 18:18:08 +00007308 ;;
7309esac
7310fi
Eric Christopher031d3072010-12-10 01:31:51 +00007311GZIPBIN=$ac_cv_path_GZIPBIN
7312if test -n "$GZIPBIN"; then
7313 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7314echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007318fi
7319
7320
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007321# Extract the first word of "pdfroff", so it can be a program name with args.
7322set dummy pdfroff; ac_word=$2
7323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325if test "${ac_cv_path_PDFROFF+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 case $PDFROFF in
7329 [\\/]* | ?:[\\/]*)
7330 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7331 ;;
7332 *)
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345done
7346IFS=$as_save_IFS
7347
7348 ;;
7349esac
7350fi
7351PDFROFF=$ac_cv_path_PDFROFF
7352if test -n "$PDFROFF"; then
7353 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7354echo "${ECHO_T}$PDFROFF" >&6; }
7355else
7356 { echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6; }
7358fi
7359
7360
Reid Spencera773bd52006-08-04 18:18:08 +00007361# Extract the first word of "zip", so it can be a program name with args.
7362set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365if test "${ac_cv_path_ZIP+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007367else
7368 case $ZIP in
7369 [\\/]* | ?:[\\/]*)
7370 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7371 ;;
7372 *)
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 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 +00007380 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007382 break 2
7383 fi
7384done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385done
Reid Spencera773bd52006-08-04 18:18:08 +00007386IFS=$as_save_IFS
7387
Reid Spencera773bd52006-08-04 18:18:08 +00007388 ;;
7389esac
7390fi
7391ZIP=$ac_cv_path_ZIP
7392if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 { echo "$as_me:$LINENO: result: $ZIP" >&5
7394echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007395else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 { echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007398fi
7399
7400
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007401for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007402do
7403 # Extract the first word of "$ac_prog", so it can be a program name with args.
7404set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407if test "${ac_cv_path_OCAMLC+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007409else
7410 case $OCAMLC in
7411 [\\/]* | ?:[\\/]*)
7412 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7413 ;;
7414 *)
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH
7417do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 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 +00007422 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007424 break 2
7425 fi
7426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007428IFS=$as_save_IFS
7429
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007430 ;;
7431esac
7432fi
7433OCAMLC=$ac_cv_path_OCAMLC
7434if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7436echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438 { echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007440fi
7441
7442
Gordon Henriksene7072162008-03-07 18:20:01 +00007443 test -n "$OCAMLC" && break
7444done
7445
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007446for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007447do
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007454else
7455 case $OCAMLOPT in
7456 [\\/]* | ?:[\\/]*)
7457 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7458 ;;
7459 *)
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461for as_dir in $PATH
7462do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 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 +00007467 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007469 break 2
7470 fi
7471done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007473IFS=$as_save_IFS
7474
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007475 ;;
7476esac
7477fi
7478OCAMLOPT=$ac_cv_path_OCAMLOPT
7479if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7481echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 { echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007485fi
7486
7487
Gordon Henriksene7072162008-03-07 18:20:01 +00007488 test -n "$OCAMLOPT" && break
7489done
7490
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007491for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007492do
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007499else
7500 case $OCAMLDEP in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007512 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007514 break 2
7515 fi
7516done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007517done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007518IFS=$as_save_IFS
7519
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007520 ;;
7521esac
7522fi
7523OCAMLDEP=$ac_cv_path_OCAMLDEP
7524if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7526echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528 { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007530fi
7531
7532
Gordon Henriksene7072162008-03-07 18:20:01 +00007533 test -n "$OCAMLDEP" && break
7534done
7535
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007536for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007537do
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007544else
7545 case $OCAMLDOC in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7548 ;;
7549 *)
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 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 +00007557 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007559 break 2
7560 fi
7561done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007562done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007563IFS=$as_save_IFS
7564
7565 ;;
7566esac
7567fi
7568OCAMLDOC=$ac_cv_path_OCAMLDOC
7569if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7571echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573 { echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007575fi
7576
7577
7578 test -n "$OCAMLDOC" && break
7579done
7580
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007581for ac_prog in gas as
7582do
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584set dummy $ac_prog; ac_word=$2
7585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587if test "${ac_cv_path_GAS+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590 case $GAS in
7591 [\\/]* | ?:[\\/]*)
7592 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606done
7607done
7608IFS=$as_save_IFS
7609
7610 ;;
7611esac
7612fi
7613GAS=$ac_cv_path_GAS
7614if test -n "$GAS"; then
7615 { echo "$as_me:$LINENO: result: $GAS" >&5
7616echo "${ECHO_T}$GAS" >&6; }
7617else
7618 { echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6; }
7620fi
7621
7622
7623 test -n "$GAS" && break
7624done
7625
Reid Spencera773bd52006-08-04 18:18:08 +00007626
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007627{ echo "$as_me:$LINENO: checking for linker version" >&5
7628echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7629if test "${llvm_cv_link_version+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632
7633 version_string="$(ld -v 2>&1 | head -1)"
7634
7635 # Check for ld64.
7636 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007637 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007638 else
7639 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7640 fi
7641
7642fi
7643{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7644echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7645
7646cat >>confdefs.h <<_ACEOF
7647#define HOST_LINK_VERSION "$llvm_cv_link_version"
7648_ACEOF
7649
7650
7651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7653echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7654if test "${llvm_cv_link_use_r+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007656else
7657 ac_ext=c
7658ac_cpp='$CPP $CPPFLAGS'
7659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662
7663 oldcflags="$CFLAGS"
7664 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h. */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007670/* end confdefs.h. */
7671
7672int
7673main ()
7674{
Dan Gohman39ed6782010-04-25 00:12:20 +00007675
Reid Spencera773bd52006-08-04 18:18:08 +00007676 ;
7677 return 0;
7678}
7679_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680rm -f conftest.$ac_objext conftest$ac_exeext
7681if { (ac_try="$ac_link"
7682case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_link") 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7695 { (case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698esac
7699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_try") 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708esac
7709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_try") 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007714 llvm_cv_link_use_r=yes
7715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716 echo "$as_me: failed program was:" >&5
7717sed 's/^/| /' conftest.$ac_ext >&5
7718
7719 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721
Bill Wendlingebcceee2009-04-18 11:20:33 +00007722rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007724 CFLAGS="$oldcflags"
7725 ac_ext=c
7726ac_cpp='$CPP $CPPFLAGS'
7727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
7731
7732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7734echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007735if test "$llvm_cv_link_use_r" = yes ; then
7736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737cat >>confdefs.h <<\_ACEOF
7738#define HAVE_LINK_R 1
7739_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007740
7741 fi
7742
7743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7745echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7746if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007748else
7749 ac_ext=c
7750ac_cpp='$CPP $CPPFLAGS'
7751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754
7755 oldcflags="$CFLAGS"
7756 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 cat >conftest.$ac_ext <<_ACEOF
7758/* confdefs.h. */
7759_ACEOF
7760cat confdefs.h >>conftest.$ac_ext
7761cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007762/* end confdefs.h. */
7763
7764int
7765main ()
7766{
Dan Gohman39ed6782010-04-25 00:12:20 +00007767
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007768 ;
7769 return 0;
7770}
7771_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772rm -f conftest.$ac_objext conftest$ac_exeext
7773if { (ac_try="$ac_link"
7774case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777esac
7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_link") 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7787 { (case "(($ac_try" in
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7790esac
7791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_try") 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800esac
7801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_try") 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007806 llvm_cv_link_use_export_dynamic=yes
7807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813
Bill Wendlingebcceee2009-04-18 11:20:33 +00007814rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007816 CFLAGS="$oldcflags"
7817 ac_ext=c
7818ac_cpp='$CPP $CPPFLAGS'
7819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822
7823
7824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7826echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007827if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007829cat >>confdefs.h <<\_ACEOF
7830#define HAVE_LINK_EXPORT_DYNAMIC 1
7831_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007832
7833 fi
7834
7835
Dan Gohmanda612d62010-06-01 14:56:56 +00007836{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7837echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7838if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841 ac_ext=c
7842ac_cpp='$CPP $CPPFLAGS'
7843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846
7847 oldcflags="$CFLAGS"
7848
7849 # The following code is from the autoconf manual,
7850 # "11.13: Limitations of Usual Tools".
7851 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7852 # Use mktemp if possible; otherwise fall back on mkdir,
7853 # with $RANDOM to make collisions less likely.
7854 : ${TMPDIR=/tmp}
7855 {
7856 tmp=`
7857 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7858 ` &&
7859 test -n "$tmp" && test -d "$tmp"
7860 } || {
7861 tmp=$TMPDIR/foo$$-$RANDOM
7862 (umask 077 && mkdir "$tmp")
7863 } || exit $?
7864
Dan Gohmanda612d62010-06-01 14:56:56 +00007865 echo "{" > "$tmp/export.map"
7866 echo " global: main;" >> "$tmp/export.map"
7867 echo " local: *;" >> "$tmp/export.map"
7868 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007869
Dan Gohmanda612d62010-06-01 14:56:56 +00007870 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007871 cat >conftest.$ac_ext <<_ACEOF
7872/* confdefs.h. */
7873_ACEOF
7874cat confdefs.h >>conftest.$ac_ext
7875cat >>conftest.$ac_ext <<_ACEOF
7876/* end confdefs.h. */
7877
7878int
7879main ()
7880{
Dan Gohman39ed6782010-04-25 00:12:20 +00007881
Dan Gohman391569c2010-04-16 22:59:06 +00007882 ;
7883 return 0;
7884}
7885_ACEOF
7886rm -f conftest.$ac_objext conftest$ac_exeext
7887if { (ac_try="$ac_link"
7888case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_link") 2>conftest.er1
7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7901 { (case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904esac
7905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest$ac_exeext'
7911 { (case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
7915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_try") 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007920 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007921else
7922 echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
Dan Gohman943005e2010-06-01 16:22:27 +00007925 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007926fi
7927
7928rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007930 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007931 rmdir "$tmp"
7932 CFLAGS="$oldcflags"
7933 ac_ext=c
7934ac_cpp='$CPP $CPPFLAGS'
7935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938
7939
7940fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007941{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7942echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7943if test "$llvm_cv_link_use_version_script" = yes ; then
7944 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007945
7946 fi
7947
7948
Reid Spencera773bd52006-08-04 18:18:08 +00007949
7950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7952echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7953if test "${ac_cv_c_const+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007956 cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h. */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007961/* end confdefs.h. */
7962
7963int
7964main ()
7965{
7966/* FIXME: Include the comments suggested by Paul. */
7967#ifndef __cplusplus
7968 /* Ultrix mips cc rejects this. */
7969 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007971 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007972 char const *const *ccp;
7973 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007974 /* NEC SVR4.0.2 mips cc rejects this. */
7975 struct point {int x, y;};
7976 static struct point const zero = {0,0};
7977 /* AIX XL C 1.02.0.0 rejects this.
7978 It does not let you subtract one const X* pointer from another in
7979 an arm of an if-expression whose if-part is not a constant
7980 expression */
7981 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007983 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007984 ++ccp;
7985 p = (char**) ccp;
7986 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007987 { /* SCO 3.2v4 cc rejects this. */
7988 char *t;
7989 char const *s = 0 ? (char *) 0 : (char const *) 0;
7990
7991 *t++ = 0;
7992 if (s) return 0;
7993 }
7994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7995 int x[] = {25, 17};
7996 const int *foo = &x[0];
7997 ++foo;
7998 }
7999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8000 typedef const int *iptr;
8001 iptr p = 0;
8002 ++p;
8003 }
8004 { /* AIX XL C 1.02.0.0 rejects this saying
8005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8006 struct s { int j; const int *ap[3]; };
8007 struct s *b; b->j = 5;
8008 }
8009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8010 const int foo = 10;
8011 if (!foo) return 0;
8012 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008013 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008014#endif
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008020rm -f conftest.$ac_objext
8021if { (ac_try="$ac_compile"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest.$ac_objext'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048esac
8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008054 ac_cv_c_const=yes
8055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008056 echo "$as_me: failed program was:" >&5
8057sed 's/^/| /' conftest.$ac_ext >&5
8058
8059 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061
Reid Spencera773bd52006-08-04 18:18:08 +00008062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8065echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008066if test $ac_cv_c_const = no; then
8067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008068cat >>confdefs.h <<\_ACEOF
8069#define const
8070_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008071
8072fi
8073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074
8075
8076
8077
8078
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008079ac_header_dirent=no
8080for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8082{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8083echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008086else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087 cat >conftest.$ac_ext <<_ACEOF
8088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008092/* end confdefs.h. */
8093#include <sys/types.h>
8094#include <$ac_hdr>
8095
8096int
8097main ()
8098{
8099if ((DIR *) 0)
8100return 0;
8101 ;
8102 return 0;
8103}
8104_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105rm -f conftest.$ac_objext
8106if { (ac_try="$ac_compile"
8107case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110esac
8111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123esac
8124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008139 eval "$as_ac_Header=yes"
8140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141 echo "$as_me: failed program was:" >&5
8142sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146
Reid Spencera773bd52006-08-04 18:18:08 +00008147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149ac_res=`eval echo '${'$as_ac_Header'}'`
8150 { echo "$as_me:$LINENO: result: $ac_res" >&5
8151echo "${ECHO_T}$ac_res" >&6; }
8152if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008153 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008155_ACEOF
8156
8157ac_header_dirent=$ac_hdr; break
8158fi
8159
8160done
8161# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8162if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8164echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8165if test "${ac_cv_search_opendir+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008167else
8168 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169cat >conftest.$ac_ext <<_ACEOF
8170/* confdefs.h. */
8171_ACEOF
8172cat confdefs.h >>conftest.$ac_ext
8173cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008174/* end confdefs.h. */
8175
Reid Spencera773bd52006-08-04 18:18:08 +00008176/* Override any GCC internal prototype to avoid an error.
8177 Use char because int might match the return type of a GCC
8178 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008179#ifdef __cplusplus
8180extern "C"
8181#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008182char opendir ();
8183int
8184main ()
8185{
Reid Spencera773bd52006-08-04 18:18:08 +00008186return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008187 ;
8188 return 0;
8189}
8190_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008191for ac_lib in '' dir; do
8192 if test -z "$ac_lib"; then
8193 ac_res="none required"
8194 else
8195 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008197 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 rm -f conftest.$ac_objext conftest$ac_exeext
8199if { (ac_try="$ac_link"
8200case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_link") 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008232 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233else
8234 echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
8236
8237
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239
Bill Wendlingebcceee2009-04-18 11:20:33 +00008240rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241 conftest$ac_exeext
8242 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008243 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008244fi
John Criswell7a73b802003-06-30 21:59:07 +00008245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246if test "${ac_cv_search_opendir+set}" = set; then
8247 :
Reid Spencera773bd52006-08-04 18:18:08 +00008248else
8249 ac_cv_search_opendir=no
8250fi
8251rm conftest.$ac_ext
8252LIBS=$ac_func_search_save_LIBS
8253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8255echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008256ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008259
Reid Spencera773bd52006-08-04 18:18:08 +00008260fi
8261
8262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8264echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8265if test "${ac_cv_search_opendir+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008267else
8268 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008274/* end confdefs.h. */
8275
8276/* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8279#ifdef __cplusplus
8280extern "C"
8281#endif
8282char opendir ();
8283int
8284main ()
8285{
8286return opendir ();
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291for ac_lib in '' x; do
8292 if test -z "$ac_lib"; then
8293 ac_res="none required"
8294 else
8295 ac_res=-l$ac_lib
8296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8297 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 rm -f conftest.$ac_objext conftest$ac_exeext
8299if { (ac_try="$ac_link"
8300case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_link") 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326esac
8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_try") 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008332 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
Reid Spencera773bd52006-08-04 18:18:08 +00008338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008339
Bill Wendlingebcceee2009-04-18 11:20:33 +00008340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341 conftest$ac_exeext
8342 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008343 break
8344fi
8345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346if test "${ac_cv_search_opendir+set}" = set; then
8347 :
Reid Spencera773bd52006-08-04 18:18:08 +00008348else
8349 ac_cv_search_opendir=no
8350fi
8351rm conftest.$ac_ext
8352LIBS=$ac_func_search_save_LIBS
8353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8355echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008356ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359
8360fi
8361
8362fi
John Criswell7a73b802003-06-30 21:59:07 +00008363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364
John Criswell7a73b802003-06-30 21:59:07 +00008365for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366do
8367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373fi
8374ac_res=`eval echo '${'$as_ac_Header'}'`
8375 { echo "$as_me:$LINENO: result: $ac_res" >&5
8376echo "${ECHO_T}$ac_res" >&6; }
8377else
8378 # Is the header compilable?
8379{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8381cat >conftest.$ac_ext <<_ACEOF
8382/* confdefs.h. */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h. */
8387$ac_includes_default
8388#include <$ac_header>
8389_ACEOF
8390rm -f conftest.$ac_objext
8391if { (ac_try="$ac_compile"
8392case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418esac
8419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 ac_header_compiler=yes
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 ac_header_compiler=no
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434echo "${ECHO_T}$ac_header_compiler" >&6; }
8435
8436# Is the header present?
8437{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445#include <$ac_header>
8446_ACEOF
8447if { (ac_try="$ac_cpp conftest.$ac_ext"
8448case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451esac
8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463 else
8464 ac_cpp_err=
8465 fi
8466else
8467 ac_cpp_err=yes
8468fi
8469if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_header_preproc=no
8476fi
8477
8478rm -f conftest.err conftest.$ac_ext
8479{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480echo "${ECHO_T}$ac_header_preproc" >&6; }
8481
8482# So? What about this header?
8483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8484 yes:no: )
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489 ac_header_preproc=yes
8490 ;;
8491 no:yes:* )
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8504 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008505## ------------------------------------ ##
8506## Report this to http://llvm.org/bugs/ ##
8507## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008508_ASBOX
8509 ) | sed "s/^/$as_me: WARNING: /" >&2
8510 ;;
8511esac
8512{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517 eval "$as_ac_Header=\$ac_header_preproc"
8518fi
8519ac_res=`eval echo '${'$as_ac_Header'}'`
8520 { echo "$as_me:$LINENO: result: $ac_res" >&5
8521echo "${ECHO_T}$ac_res" >&6; }
8522
8523fi
8524if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008525 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008527_ACEOF
8528
8529fi
8530
8531done
8532
Reid Spencera773bd52006-08-04 18:18:08 +00008533# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008535 enableval=$enable_ltdl_install;
8536fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008537
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539
8540
8541if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008542 INSTALL_LTDL_TRUE=
8543 INSTALL_LTDL_FALSE='#'
8544else
8545 INSTALL_LTDL_TRUE='#'
8546 INSTALL_LTDL_FALSE=
8547fi
8548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549
8550
8551if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008552 CONVENIENCE_LTDL_TRUE=
8553 CONVENIENCE_LTDL_FALSE='#'
8554else
8555 CONVENIENCE_LTDL_TRUE='#'
8556 CONVENIENCE_LTDL_FALSE=
8557fi
8558
8559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8561echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008562library_names_spec=
8563libname_spec='lib$name'
8564soname_spec=
8565shrext_cmds=".so"
8566postinstall_cmds=
8567postuninstall_cmds=
8568finish_cmds=
8569finish_eval=
8570shlibpath_var=
8571shlibpath_overrides_runpath=unknown
8572version_type=none
8573dynamic_linker="$host_os ld.so"
8574sys_lib_dlsearch_path_spec="/lib /usr/lib"
8575if test "$GCC" = yes; then
8576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8578 # if the path contains ";" then we assume it to be the separator
8579 # otherwise default to the standard path separator (i.e. ":") - it is
8580 # assumed that no part of a normal pathname contains ";" but that should
8581 # okay in the real world where ";" in dirpaths is itself problematic.
8582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8583 else
8584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 fi
8586else
8587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8588fi
8589need_lib_prefix=unknown
8590hardcode_into_libs=no
8591
8592# when you set need_version to no, make sure it does not cause -set_version
8593# flags to be left without arguments
8594need_version=unknown
8595
8596case $host_os in
8597aix3*)
8598 version_type=linux
8599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8600 shlibpath_var=LIBPATH
8601
8602 # AIX 3 has no versioning support, so we append a major version to the name.
8603 soname_spec='${libname}${release}${shared_ext}$major'
8604 ;;
8605
8606aix4* | aix5*)
8607 version_type=linux
8608 need_lib_prefix=no
8609 need_version=no
8610 hardcode_into_libs=yes
8611 if test "$host_cpu" = ia64; then
8612 # AIX 5 supports IA64
8613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 else
8616 # With GCC up to 2.95.x, collect2 would create an import file
8617 # for dependence libraries. The import file would start with
8618 # the line `#! .'. This would cause the generated library to
8619 # depend on `.', always an invalid library. This was fixed in
8620 # development snapshots of GCC prior to 3.0.
8621 case $host_os in
8622 aix4 | aix4.[01] | aix4.[01].*)
8623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8624 echo ' yes '
8625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8626 :
8627 else
8628 can_build_shared=no
8629 fi
8630 ;;
8631 esac
8632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8633 # soname into executable. Probably we can add versioning support to
8634 # collect2, so additional links can be useful in future.
8635 if test "$aix_use_runtimelinking" = yes; then
8636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8637 # instead of lib<name>.a to let people know that these are not
8638 # typical AIX shared libraries.
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 else
8641 # We preserve .a as extension for shared libraries through AIX4.2
8642 # and later when we are not doing run time linking.
8643 library_names_spec='${libname}${release}.a $libname.a'
8644 soname_spec='${libname}${release}${shared_ext}$major'
8645 fi
8646 shlibpath_var=LIBPATH
8647 fi
8648 ;;
8649
8650amigaos*)
8651 library_names_spec='$libname.ixlibrary $libname.a'
8652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8653 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'
8654 ;;
8655
8656beos*)
8657 library_names_spec='${libname}${shared_ext}'
8658 dynamic_linker="$host_os ld.so"
8659 shlibpath_var=LIBRARY_PATH
8660 ;;
8661
8662bsdi[45]*)
8663 version_type=linux
8664 need_version=no
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8671 # the default ld.so.conf also contains /usr/contrib/lib and
8672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8673 # libtool to hard-code these into programs
8674 ;;
8675
8676cygwin* | mingw* | pw32*)
8677 version_type=windows
8678 shrext_cmds=".dll"
8679 need_version=no
8680 need_lib_prefix=no
8681
8682 case $GCC,$host_os in
8683 yes,cygwin* | yes,mingw* | yes,pw32*)
8684 library_names_spec='$libname.dll.a'
8685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8686 postinstall_cmds='base_file=`basename \${file}`~
8687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8688 dldir=$destdir/`dirname \$dlpath`~
8689 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008690 $install_prog $dir/$dlname \$dldir/$dlname~
8691 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8693 dlpath=$dir/\$dldll~
8694 $rm \$dlpath'
8695 shlibpath_overrides_runpath=yes
8696
8697 case $host_os in
8698 cygwin*)
8699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8702 ;;
8703 mingw*)
8704 # MinGW DLLs use traditional 'lib' prefix
8705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8708 # It is most probably a Windows format PATH printed by
8709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8710 # path with ; separators, and with drive letters. We can handle the
8711 # drive letters (cygwin fileutils understands them), so leave them,
8712 # especially as we might pass files found there to a mingw objdump,
8713 # which wouldn't understand a cygwinified path. Ahh.
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715 else
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8717 fi
8718 ;;
8719 pw32*)
8720 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008721 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 +00008722 ;;
8723 esac
8724 ;;
8725
8726 *)
8727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8728 ;;
8729 esac
8730 dynamic_linker='Win32 ld.exe'
8731 # FIXME: first we should search . and the directory the executable is in
8732 shlibpath_var=PATH
8733 ;;
8734
8735darwin* | rhapsody*)
8736 dynamic_linker="$host_os dyld"
8737 version_type=darwin
8738 need_lib_prefix=no
8739 need_version=no
8740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8741 soname_spec='${libname}${release}${major}$shared_ext'
8742 shlibpath_overrides_runpath=yes
8743 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008744 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8746 if test "$GCC" = yes; then
8747 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"`
8748 else
8749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8750 fi
8751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8752 ;;
8753
8754dgux*)
8755 version_type=linux
8756 need_lib_prefix=no
8757 need_version=no
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 shlibpath_var=LD_LIBRARY_PATH
8761 ;;
8762
Eric Christopher360fa9a2011-10-26 00:42:12 +00008763freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008764 dynamic_linker=no
8765 ;;
8766
8767kfreebsd*-gnu)
8768 version_type=linux
8769 need_lib_prefix=no
8770 need_version=no
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 shlibpath_overrides_runpath=no
8775 hardcode_into_libs=yes
8776 dynamic_linker='GNU ld.so'
8777 ;;
8778
Reid Spencera773bd52006-08-04 18:18:08 +00008779freebsd* | dragonfly*)
8780 # DragonFly does not have aout. When/if they implement a new
8781 # versioning mechanism, adjust this.
8782 if test -x /usr/bin/objformat; then
8783 objformat=`/usr/bin/objformat`
8784 else
8785 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008786 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008787 *) objformat=elf ;;
8788 esac
8789 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008790 version_type=freebsd-$objformat
8791 case $version_type in
8792 freebsd-elf*)
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8794 need_version=no
8795 need_lib_prefix=no
8796 ;;
8797 freebsd-*)
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8799 need_version=yes
8800 ;;
8801 esac
8802 shlibpath_var=LD_LIBRARY_PATH
8803 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008804 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008805 shlibpath_overrides_runpath=yes
8806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008807 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008808 shlibpath_overrides_runpath=yes
8809 hardcode_into_libs=yes
8810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008813 shlibpath_overrides_runpath=no
8814 hardcode_into_libs=yes
8815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008816 freebsd*) # from 4.6 on
8817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8819 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008820 esac
8821 ;;
8822
8823gnu*)
8824 version_type=linux
8825 need_lib_prefix=no
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 shlibpath_var=LD_LIBRARY_PATH
8830 hardcode_into_libs=yes
8831 ;;
8832
8833hpux9* | hpux10* | hpux11*)
8834 # Give a soname corresponding to the major version so that dld.sl refuses to
8835 # link against other versions.
8836 version_type=sunos
8837 need_lib_prefix=no
8838 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008839 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008840 ia64*)
8841 shrext_cmds='.so'
8842 hardcode_into_libs=yes
8843 dynamic_linker="$host_os dld.so"
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 if test "X$HPUX_IA64_MODE" = X32; then
8849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8850 else
8851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8852 fi
8853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854 ;;
8855 hppa*64*)
8856 shrext_cmds='.sl'
8857 hardcode_into_libs=yes
8858 dynamic_linker="$host_os dld.sl"
8859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865 ;;
8866 *)
8867 shrext_cmds='.sl'
8868 dynamic_linker="$host_os dld.sl"
8869 shlibpath_var=SHLIB_PATH
8870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 ;;
8874 esac
8875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8876 postinstall_cmds='chmod 555 $lib'
8877 ;;
8878
Reid Spencera773bd52006-08-04 18:18:08 +00008879interix3*)
8880 version_type=linux
8881 need_lib_prefix=no
8882 need_version=no
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8886 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=no
8888 hardcode_into_libs=yes
8889 ;;
8890
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891irix5* | irix6* | nonstopux*)
8892 case $host_os in
8893 nonstopux*) version_type=nonstopux ;;
8894 *)
8895 if test "$lt_cv_prog_gnu_ld" = yes; then
8896 version_type=linux
8897 else
8898 version_type=irix
8899 fi ;;
8900 esac
8901 need_lib_prefix=no
8902 need_version=no
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8905 case $host_os in
8906 irix5* | nonstopux*)
8907 libsuff= shlibsuff=
8908 ;;
8909 *)
8910 case $LD in # libtool.m4 will add one of these switches to LD
8911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8912 libsuff= shlibsuff= libmagic=32-bit;;
8913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8914 libsuff=32 shlibsuff=N32 libmagic=N32;;
8915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8917 *) libsuff= shlibsuff= libmagic=never-match;;
8918 esac
8919 ;;
8920 esac
8921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8922 shlibpath_overrides_runpath=no
8923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8925 hardcode_into_libs=yes
8926 ;;
8927
8928# No shared lib support for Linux oldld, aout, or coff.
8929linux*oldld* | linux*aout* | linux*coff*)
8930 dynamic_linker=no
8931 ;;
8932
8933# This must be Linux ELF.
8934linux*)
8935 version_type=linux
8936 need_lib_prefix=no
8937 need_version=no
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=no
8943 # This implies no fast_install, which is unacceptable.
8944 # Some rework will be needed to allow for fast_install
8945 # before this can be enabled.
8946 hardcode_into_libs=yes
8947
8948 # Append ld.so.conf contents to the search path
8949 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008950 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 +00008951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8952 fi
8953
8954 # We used to test for /lib/ld.so.1 and disable shared libraries on
8955 # powerpc, because MkLinux only supported shared libraries with the
8956 # GNU dynamic linker. Since this was broken with cross compilers,
8957 # most powerpc-linux boxes support dynamic linking these days and
8958 # people can always --disable-shared, the test was removed, and we
8959 # assume the GNU/Linux dynamic linker is in use.
8960 dynamic_linker='GNU/Linux ld.so'
8961 ;;
8962
8963knetbsd*-gnu)
8964 version_type=linux
8965 need_lib_prefix=no
8966 need_version=no
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 hardcode_into_libs=yes
8972 dynamic_linker='GNU ld.so'
8973 ;;
8974
8975netbsd*)
8976 version_type=sunos
8977 need_lib_prefix=no
8978 need_version=no
8979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8982 dynamic_linker='NetBSD (a.out) ld.so'
8983 else
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 dynamic_linker='NetBSD ld.elf_so'
8987 fi
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8990 hardcode_into_libs=yes
8991 ;;
8992
8993newsos6)
8994 version_type=linux
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
8998 ;;
8999
9000nto-qnx*)
9001 version_type=linux
9002 need_lib_prefix=no
9003 need_version=no
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=yes
9008 ;;
9009
Eric Christopherb0f67592012-08-06 20:52:18 +00009010openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009011 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009012 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009013 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9015 case $host_os in
9016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9017 *) need_version=no ;;
9018 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9023 case $host_os in
9024 openbsd2.[89] | openbsd2.[89].*)
9025 shlibpath_overrides_runpath=no
9026 ;;
9027 *)
9028 shlibpath_overrides_runpath=yes
9029 ;;
9030 esac
9031 else
9032 shlibpath_overrides_runpath=yes
9033 fi
9034 ;;
9035
9036os2*)
9037 libname_spec='$name'
9038 shrext_cmds=".dll"
9039 need_lib_prefix=no
9040 library_names_spec='$libname${shared_ext} $libname.a'
9041 dynamic_linker='OS/2 ld.exe'
9042 shlibpath_var=LIBPATH
9043 ;;
9044
9045osf3* | osf4* | osf5*)
9046 version_type=osf
9047 need_lib_prefix=no
9048 need_version=no
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9054 ;;
9055
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009056solaris*)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9065 # ldd complains unless libraries are executable
9066 postinstall_cmds='chmod +x $lib'
9067 ;;
9068
9069sunos4*)
9070 version_type=sunos
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9075 if test "$with_gnu_ld" = yes; then
9076 need_lib_prefix=no
9077 fi
9078 need_version=yes
9079 ;;
9080
Reid Spencera773bd52006-08-04 18:18:08 +00009081sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009082 version_type=linux
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 case $host_vendor in
9087 sni)
9088 shlibpath_overrides_runpath=no
9089 need_lib_prefix=no
9090 export_dynamic_flag_spec='${wl}-Blargedynsym'
9091 runpath_var=LD_RUN_PATH
9092 ;;
9093 siemens)
9094 need_lib_prefix=no
9095 ;;
9096 motorola)
9097 need_lib_prefix=no
9098 need_version=no
9099 shlibpath_overrides_runpath=no
9100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9101 ;;
9102 esac
9103 ;;
9104
9105sysv4*MP*)
9106 if test -d /usr/nec ;then
9107 version_type=linux
9108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9109 soname_spec='$libname${shared_ext}.$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 fi
9112 ;;
9113
Reid Spencera773bd52006-08-04 18:18:08 +00009114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9115 version_type=freebsd-elf
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 hardcode_into_libs=yes
9122 if test "$with_gnu_ld" = yes; then
9123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9124 shlibpath_overrides_runpath=no
9125 else
9126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9127 shlibpath_overrides_runpath=yes
9128 case $host_os in
9129 sco3.2v5*)
9130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9131 ;;
9132 esac
9133 fi
9134 sys_lib_dlsearch_path_spec='/usr/lib'
9135 ;;
9136
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009137uts4*)
9138 version_type=linux
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 ;;
9143
9144*)
9145 dynamic_linker=no
9146 ;;
9147esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009148{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9149echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009150test "$dynamic_linker" = no && can_build_shared=no
9151
Reid Spencera773bd52006-08-04 18:18:08 +00009152variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9153if test "$GCC" = yes; then
9154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9155fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009156
Reid Spencera773bd52006-08-04 18:18:08 +00009157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009158{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9159echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9160if test "${libltdl_cv_shlibext+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162else
9163
9164module=yes
9165eval libltdl_cv_shlibext=$shrext_cmds
9166
9167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009168{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9169echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009170if test -n "$libltdl_cv_shlibext"; then
9171
9172cat >>confdefs.h <<_ACEOF
9173#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9174_ACEOF
9175
9176fi
9177
9178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009179{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9180echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9181if test "${libltdl_cv_shlibpath_var+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009183else
9184 libltdl_cv_shlibpath_var="$shlibpath_var"
9185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009186{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9187echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009188if test -n "$libltdl_cv_shlibpath_var"; then
9189
9190cat >>confdefs.h <<_ACEOF
9191#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9192_ACEOF
9193
9194fi
9195
9196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009197{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9198echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9199if test "${libltdl_cv_sys_search_path+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009201else
9202 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009204{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9205echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009206if test -n "$libltdl_cv_sys_search_path"; then
9207 sys_search_path=
9208 for dir in $libltdl_cv_sys_search_path; do
9209 if test -z "$sys_search_path"; then
9210 sys_search_path="$dir"
9211 else
9212 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9213 fi
9214 done
9215
9216cat >>confdefs.h <<_ACEOF
9217#define LTDL_SYSSEARCHPATH "$sys_search_path"
9218_ACEOF
9219
9220fi
9221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009222{ echo "$as_me:$LINENO: checking for objdir" >&5
9223echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9224if test "${libltdl_cv_objdir+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009226else
9227 libltdl_cv_objdir="$objdir"
9228 if test -n "$objdir"; then
9229 :
9230 else
9231 rm -f .libs 2>/dev/null
9232 mkdir .libs 2>/dev/null
9233 if test -d .libs; then
9234 libltdl_cv_objdir=.libs
9235 else
9236 # MS-DOS does not allow filenames that begin with a dot.
9237 libltdl_cv_objdir=_libs
9238 fi
9239 rmdir .libs 2>/dev/null
9240 fi
9241
9242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009243{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9244echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009245
9246cat >>confdefs.h <<_ACEOF
9247#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9248_ACEOF
9249
9250
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009251
9252
9253
9254
9255# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009256{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9257echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9258if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260else
9261
9262# These are sane defaults that work on at least a few old systems.
9263# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9264
9265# Character class describing NM global symbol codes.
9266symcode='[BCDEGRST]'
9267
9268# Regexp to match symbols that can be accessed directly from C.
9269sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9270
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009271# Transform an extracted symbol line into a proper C declaration
9272lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9273
9274# Transform an extracted symbol line into symbol name and symbol address
9275lt_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'"
9276
9277# Define system-specific variables.
9278case $host_os in
9279aix*)
9280 symcode='[BCDT]'
9281 ;;
9282cygwin* | mingw* | pw32*)
9283 symcode='[ABCDGISTW]'
9284 ;;
9285hpux*) # Its linker distinguishes data from code symbols
9286 if test "$host_cpu" = ia64; then
9287 symcode='[ABCDEGRST]'
9288 fi
9289 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9290 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'"
9291 ;;
9292linux*)
9293 if test "$host_cpu" = ia64; then
9294 symcode='[ABCDGIRSTW]'
9295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9296 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'"
9297 fi
9298 ;;
9299irix* | nonstopux*)
9300 symcode='[BCDEGRST]'
9301 ;;
9302osf*)
9303 symcode='[BCDEGQRST]'
9304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009305solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306 symcode='[BDRT]'
9307 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009308sco3.2v5*)
9309 symcode='[DT]'
9310 ;;
9311sysv4.2uw2*)
9312 symcode='[DT]'
9313 ;;
9314sysv5* | sco5v6* | unixware* | OpenUNIX*)
9315 symcode='[ABDT]'
9316 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317sysv4)
9318 symcode='[DFNSTU]'
9319 ;;
9320esac
9321
9322# Handle CRLF in mingw tool chain
9323opt_cr=
9324case $build_os in
9325mingw*)
9326 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9327 ;;
9328esac
9329
9330# If we're using GNU nm, then use its standard symbol codes.
9331case `$NM -V 2>&1` in
9332*GNU* | *'with BFD'*)
9333 symcode='[ABCDGIRSTW]' ;;
9334esac
9335
9336# Try without a prefix undercore, then with it.
9337for ac_symprfx in "" "_"; do
9338
Reid Spencera773bd52006-08-04 18:18:08 +00009339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9340 symxfrm="\\1 $ac_symprfx\\2 \\2"
9341
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009343 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 +00009344
9345 # Check to see that the pipe works correctly.
9346 pipe_works=no
9347
9348 rm -f conftest*
9349 cat > conftest.$ac_ext <<EOF
9350#ifdef __cplusplus
9351extern "C" {
9352#endif
9353char nm_test_var;
9354void nm_test_func(){}
9355#ifdef __cplusplus
9356}
9357#endif
9358int main(){nm_test_var='a';nm_test_func();return(0);}
9359EOF
9360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362 (eval $ac_compile) 2>&5
9363 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366 # Now try to grab the symbols.
9367 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368 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 +00009369 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9370 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373 # Try sorting and uniquifying the output.
9374 if sort "$nlist" | uniq > "$nlist"T; then
9375 mv -f "$nlist"T "$nlist"
9376 else
9377 rm -f "$nlist"T
9378 fi
9379
9380 # Make sure that we snagged all the symbols we need.
9381 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9382 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9383 cat <<EOF > conftest.$ac_ext
9384#ifdef __cplusplus
9385extern "C" {
9386#endif
9387
9388EOF
9389 # Now generate the symbol file.
9390 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9391
9392 cat <<EOF >> conftest.$ac_ext
9393#if defined (__STDC__) && __STDC__
9394# define lt_ptr_t void *
9395#else
9396# define lt_ptr_t char *
9397# define const
9398#endif
9399
9400/* The mapping between symbol names and symbols. */
9401const struct {
9402 const char *name;
9403 lt_ptr_t address;
9404}
9405lt_preloaded_symbols[] =
9406{
9407EOF
9408 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9409 cat <<\EOF >> conftest.$ac_ext
9410 {0, (lt_ptr_t) 0}
9411};
9412
9413#ifdef __cplusplus
9414}
9415#endif
9416EOF
9417 # Now try linking the two files.
9418 mv conftest.$ac_objext conftstm.$ac_objext
9419 lt_save_LIBS="$LIBS"
9420 lt_save_CFLAGS="$CFLAGS"
9421 LIBS="conftstm.$ac_objext"
9422 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424 (eval $ac_link) 2>&5
9425 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428 pipe_works=yes
9429 fi
9430 LIBS="$lt_save_LIBS"
9431 CFLAGS="$lt_save_CFLAGS"
9432 else
9433 echo "cannot find nm_test_func in $nlist" >&5
9434 fi
9435 else
9436 echo "cannot find nm_test_var in $nlist" >&5
9437 fi
9438 else
9439 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9440 fi
9441 else
9442 echo "$progname: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9444 fi
9445 rm -f conftest* conftst*
9446
9447 # Do not use the global_symbol_pipe unless it works.
9448 if test "$pipe_works" = yes; then
9449 break
9450 else
9451 lt_cv_sys_global_symbol_pipe=
9452 fi
9453done
9454
9455fi
9456
9457if test -z "$lt_cv_sys_global_symbol_pipe"; then
9458 lt_cv_sys_global_symbol_to_cdecl=
9459fi
9460if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009461 { echo "$as_me:$LINENO: result: failed" >&5
9462echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009464 { echo "$as_me:$LINENO: result: ok" >&5
9465echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466fi
9467
9468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009469{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9470echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9471if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473else
9474 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9475 libltdl_cv_preloaded_symbols=yes
9476 else
9477 libltdl_cv_preloaded_symbols=no
9478 fi
9479
9480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009481{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9482echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485cat >>confdefs.h <<\_ACEOF
9486#define HAVE_PRELOADED_SYMBOLS 1
9487_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488
9489fi
9490
9491LIBADD_DL=
9492
9493ac_ext=c
9494ac_cpp='$CPP $CPPFLAGS'
9495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9497ac_compiler_gnu=$ac_cv_c_compiler_gnu
9498
9499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009500{ echo "$as_me:$LINENO: checking for shl_load" >&5
9501echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9502if test "${ac_cv_func_shl_load+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505 cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
9511/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9513#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009515/* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char shl_load (); below.
9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518 <limits.h> exists even on freestanding compilers. */
9519
9520#ifdef __STDC__
9521# include <limits.h>
9522#else
9523# include <assert.h>
9524#endif
9525
9526#undef shl_load
9527
9528/* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531#ifdef __cplusplus
9532extern "C"
9533#endif
9534char shl_load ();
9535/* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538#if defined __stub_shl_load || defined __stub___shl_load
9539choke me
9540#endif
9541
9542int
9543main ()
9544{
9545return shl_load ();
9546 ;
9547 return 0;
9548}
9549_ACEOF
9550rm -f conftest.$ac_objext conftest$ac_exeext
9551if { (ac_try="$ac_link"
9552case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555esac
9556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565 { (case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_try") 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578esac
9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_try") 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_func_shl_load=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_cv_func_shl_load=no
9590fi
9591
9592rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594fi
9595{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9596echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9597if test $ac_cv_func_shl_load = yes; then
9598
9599cat >>confdefs.h <<\_ACEOF
9600#define HAVE_SHL_LOAD 1
9601_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602
9603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009604 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9605echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9606if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608else
9609 ac_check_lib_save_LIBS=$LIBS
9610LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009611cat >conftest.$ac_ext <<_ACEOF
9612/* confdefs.h. */
9613_ACEOF
9614cat confdefs.h >>conftest.$ac_ext
9615cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009616/* end confdefs.h. */
9617
Reid Spencera773bd52006-08-04 18:18:08 +00009618/* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621#ifdef __cplusplus
9622extern "C"
9623#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624char shl_load ();
9625int
9626main ()
9627{
Reid Spencera773bd52006-08-04 18:18:08 +00009628return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629 ;
9630 return 0;
9631}
9632_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009633rm -f conftest.$ac_objext conftest$ac_exeext
9634if { (ac_try="$ac_link"
9635case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638esac
9639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_link") 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9648 { (case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651esac
9652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_try") 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9661esac
9662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_try") 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667 ac_cv_lib_dld_shl_load=yes
9668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009669 echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009674
Bill Wendlingebcceee2009-04-18 11:20:33 +00009675rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009676 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677LIBS=$ac_check_lib_save_LIBS
9678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009679{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9680echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9681if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009683cat >>confdefs.h <<\_ACEOF
9684#define HAVE_SHL_LOAD 1
9685_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686
9687 LIBADD_DL="$LIBADD_DL -ldld"
9688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009689 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9690echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9691if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693else
9694 ac_check_lib_save_LIBS=$LIBS
9695LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701/* end confdefs.h. */
9702
Reid Spencera773bd52006-08-04 18:18:08 +00009703/* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009706#ifdef __cplusplus
9707extern "C"
9708#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709char dlopen ();
9710int
9711main ()
9712{
Reid Spencera773bd52006-08-04 18:18:08 +00009713return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009714 ;
9715 return 0;
9716}
9717_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (ac_try="$ac_link"
9720case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723esac
9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736esac
9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9746esac
9747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_try") 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752 ac_cv_lib_dl_dlopen=yes
9753else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009759
Bill Wendlingebcceee2009-04-18 11:20:33 +00009760rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762LIBS=$ac_check_lib_save_LIBS
9763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009764{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9765echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9766if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009768cat >>confdefs.h <<\_ACEOF
9769#define HAVE_LIBDL 1
9770_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771
9772 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009774 cat >conftest.$ac_ext <<_ACEOF
9775/* confdefs.h. */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779/* end confdefs.h. */
9780#if HAVE_DLFCN_H
9781# include <dlfcn.h>
9782#endif
9783
9784int
9785main ()
9786{
9787dlopen(0, 0);
9788 ;
9789 return 0;
9790}
9791_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009792rm -f conftest.$ac_objext conftest$ac_exeext
9793if { (ac_try="$ac_link"
9794case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_link") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_try") 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009827cat >>confdefs.h <<\_ACEOF
9828#define HAVE_LIBDL 1
9829_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830 libltdl_cv_func_dlopen="yes"
9831else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009832 echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9836echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9837if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839else
9840 ac_check_lib_save_LIBS=$LIBS
9841LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009842cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847/* end confdefs.h. */
9848
Reid Spencera773bd52006-08-04 18:18:08 +00009849/* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852#ifdef __cplusplus
9853extern "C"
9854#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855char dlopen ();
9856int
9857main ()
9858{
Reid Spencera773bd52006-08-04 18:18:08 +00009859return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860 ;
9861 return 0;
9862}
9863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009864rm -f conftest.$ac_objext conftest$ac_exeext
9865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
9870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898 ac_cv_lib_svld_dlopen=yes
9899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009900 echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009905
Bill Wendlingebcceee2009-04-18 11:20:33 +00009906rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908LIBS=$ac_check_lib_save_LIBS
9909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9911echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9912if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914cat >>confdefs.h <<\_ACEOF
9915#define HAVE_LIBDL 1
9916_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917
9918 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009920 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9921echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9922if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924else
9925 ac_check_lib_save_LIBS=$LIBS
9926LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009927cat >conftest.$ac_ext <<_ACEOF
9928/* confdefs.h. */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932/* end confdefs.h. */
9933
Reid Spencera773bd52006-08-04 18:18:08 +00009934/* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937#ifdef __cplusplus
9938extern "C"
9939#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940char dld_link ();
9941int
9942main ()
9943{
Reid Spencera773bd52006-08-04 18:18:08 +00009944return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945 ;
9946 return 0;
9947}
9948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009949rm -f conftest.$ac_objext conftest$ac_exeext
9950if { (ac_try="$ac_link"
9951case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983 ac_cv_lib_dld_dld_link=yes
9984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009990
Bill Wendlingebcceee2009-04-18 11:20:33 +00009991rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993LIBS=$ac_check_lib_save_LIBS
9994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009995{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9996echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9997if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999cat >>confdefs.h <<\_ACEOF
10000#define HAVE_DLD 1
10001_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002
10003 LIBADD_DL="$LIBADD_DL -ldld"
10004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010005 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10006echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10007if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010020/* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char _dyld_func_lookup (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010025#ifdef __STDC__
10026# include <limits.h>
10027#else
10028# include <assert.h>
10029#endif
10030
10031#undef _dyld_func_lookup
10032
10033/* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036#ifdef __cplusplus
10037extern "C"
10038#endif
10039char _dyld_func_lookup ();
10040/* The GNU C library defines this for functions which it implements
10041 to always fail with ENOSYS. Some functions are actually named
10042 something starting with __ and the normal name is an alias. */
10043#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10044choke me
10045#endif
10046
10047int
10048main ()
10049{
10050return _dyld_func_lookup ();
10051 ;
10052 return 0;
10053}
10054_ACEOF
10055rm -f conftest.$ac_objext conftest$ac_exeext
10056if { (ac_try="$ac_link"
10057case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
10061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_link") 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10070 { (case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073esac
10074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_try") 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083esac
10084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_try") 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_func__dyld_func_lookup=yes
10090else
10091 echo "$as_me: failed program was:" >&5
10092sed 's/^/| /' conftest.$ac_ext >&5
10093
10094 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095fi
Reid Spencera773bd52006-08-04 18:18:08 +000010096
Bill Wendlingebcceee2009-04-18 11:20:33 +000010097rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010098 conftest$ac_exeext conftest.$ac_ext
10099fi
10100{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10101echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10102if test $ac_cv_func__dyld_func_lookup = yes; then
10103
10104cat >>confdefs.h <<\_ACEOF
10105#define HAVE_DYLD 1
10106_ACEOF
10107
10108fi
10109
10110
10111fi
10112
10113
10114fi
10115
10116
10117fi
10118
10119rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121
10122fi
10123
10124
10125fi
10126
10127
10128fi
10129
10130
10131if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10132then
10133 lt_save_LIBS="$LIBS"
10134 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010135
10136for ac_func in dlerror
10137do
10138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10141if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144 cat >conftest.$ac_ext <<_ACEOF
10145/* confdefs.h. */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h. */
10150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10152#define $ac_func innocuous_$ac_func
10153
10154/* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func (); below.
10156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10157 <limits.h> exists even on freestanding compilers. */
10158
10159#ifdef __STDC__
10160# include <limits.h>
10161#else
10162# include <assert.h>
10163#endif
10164
10165#undef $ac_func
10166
10167/* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
10170#ifdef __cplusplus
10171extern "C"
10172#endif
10173char $ac_func ();
10174/* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177#if defined __stub_$ac_func || defined __stub___$ac_func
10178choke me
10179#endif
10180
10181int
10182main ()
10183{
10184return $ac_func ();
10185 ;
10186 return 0;
10187}
10188_ACEOF
10189rm -f conftest.$ac_objext conftest$ac_exeext
10190if { (ac_try="$ac_link"
10191case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194esac
10195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_link") 2>conftest.er1
10197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207esac
10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10217esac
10218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219 (eval "$ac_try") 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 eval "$as_ac_var=yes"
10224else
10225 echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 eval "$as_ac_var=no"
10229fi
10230
10231rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233fi
10234ac_res=`eval echo '${'$as_ac_var'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236echo "${ECHO_T}$ac_res" >&6; }
10237if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240_ACEOF
10241
10242fi
10243done
10244
10245 LIBS="$lt_save_LIBS"
10246fi
10247ac_ext=c
10248ac_cpp='$CPP $CPPFLAGS'
10249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10251ac_compiler_gnu=$ac_cv_c_compiler_gnu
10252
10253
10254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010255{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10256echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10257if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259else
10260 ac_cv_sys_symbol_underscore=no
10261 cat > conftest.$ac_ext <<EOF
10262void nm_test_func(){}
10263int main(){nm_test_func;return 0;}
10264EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266 (eval $ac_compile) 2>&5
10267 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270 # Now try to grab the symbols.
10271 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010272 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 +000010273 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10274 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 # See whether the symbols have a leading underscore.
10278 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10279 ac_cv_sys_symbol_underscore=yes
10280 else
10281 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10282 :
10283 else
10284 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10285 fi
10286 fi
10287 else
10288 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10289 fi
10290 else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.c >&5
10293 fi
10294 rm -rf conftest*
10295
10296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010297{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10298echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299
10300
10301if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10302 if test x"$libltdl_cv_func_dlopen" = xyes ||
10303 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010304 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10305echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10306if test "${libltdl_cv_need_uscore+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308else
10309 libltdl_cv_need_uscore=unknown
10310 save_LIBS="$LIBS"
10311 LIBS="$LIBS $LIBADD_DL"
10312 if test "$cross_compiling" = yes; then :
10313 libltdl_cv_need_uscore=cross
10314else
10315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316 lt_status=$lt_dlunknown
10317 cat > conftest.$ac_ext <<EOF
Simon Atanasyan4830ccf2012-10-29 19:49:45 +000010318#line 10318 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319#include "confdefs.h"
10320
10321#if HAVE_DLFCN_H
10322#include <dlfcn.h>
10323#endif
10324
10325#include <stdio.h>
10326
10327#ifdef RTLD_GLOBAL
10328# define LT_DLGLOBAL RTLD_GLOBAL
10329#else
10330# ifdef DL_GLOBAL
10331# define LT_DLGLOBAL DL_GLOBAL
10332# else
10333# define LT_DLGLOBAL 0
10334# endif
10335#endif
10336
10337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338 find out it does not work in some platform. */
10339#ifndef LT_DLLAZY_OR_NOW
10340# ifdef RTLD_LAZY
10341# define LT_DLLAZY_OR_NOW RTLD_LAZY
10342# else
10343# ifdef DL_LAZY
10344# define LT_DLLAZY_OR_NOW DL_LAZY
10345# else
10346# ifdef RTLD_NOW
10347# define LT_DLLAZY_OR_NOW RTLD_NOW
10348# else
10349# ifdef DL_NOW
10350# define LT_DLLAZY_OR_NOW DL_NOW
10351# else
10352# define LT_DLLAZY_OR_NOW 0
10353# endif
10354# endif
10355# endif
10356# endif
10357#endif
10358
10359#ifdef __cplusplus
10360extern "C" void exit (int);
10361#endif
10362
10363void fnord() { int i=42;}
10364int main ()
10365{
10366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10367 int status = $lt_dlunknown;
10368
10369 if (self)
10370 {
10371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10373 /* dlclose (self); */
10374 }
Reid Spencera773bd52006-08-04 18:18:08 +000010375 else
10376 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377
10378 exit (status);
10379}
10380EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010382 (eval $ac_link) 2>&5
10383 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010386 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 lt_status=$?
10388 case x$lt_status in
10389 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10390 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010391 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392 esac
10393 else :
10394 # compilation failed
10395
10396 fi
10397fi
10398rm -fr conftest*
10399
10400 LIBS="$save_LIBS"
10401
10402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10404echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 fi
10406fi
10407
10408if test x"$libltdl_cv_need_uscore" = xyes; then
10409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010410cat >>confdefs.h <<\_ACEOF
10411#define NEED_USCORE 1
10412_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413
10414fi
10415
10416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010417{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10418echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10419if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421else
10422 # PORTME does your system automatically load deplibs for dlopen?
10423 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10424 # For now, we just catch OSes we know something about -- in the
10425 # future, we'll try test this programmatically.
10426 libltdl_cv_sys_dlopen_deplibs=unknown
10427 case "$host_os" in
10428 aix3*|aix4.1.*|aix4.2.*)
10429 # Unknown whether this is true for these versions of AIX, but
10430 # we want this `case' here to explicitly catch those versions.
10431 libltdl_cv_sys_dlopen_deplibs=unknown
10432 ;;
10433 aix[45]*)
10434 libltdl_cv_sys_dlopen_deplibs=yes
10435 ;;
10436 darwin*)
10437 # Assuming the user has installed a libdl from somewhere, this is true
10438 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10439 libltdl_cv_sys_dlopen_deplibs=yes
10440 ;;
10441 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10442 # GNU and its variants, using gnu ld.so (Glibc)
10443 libltdl_cv_sys_dlopen_deplibs=yes
10444 ;;
10445 hpux10*|hpux11*)
10446 libltdl_cv_sys_dlopen_deplibs=yes
10447 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010448 interix*)
10449 libltdl_cv_sys_dlopen_deplibs=yes
10450 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 irix[12345]*|irix6.[01]*)
10452 # Catch all versions of IRIX before 6.2, and indicate that we don't
10453 # know how it worked for any of those versions.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10455 ;;
10456 irix*)
10457 # The case above catches anything before 6.2, and it's known that
10458 # at 6.2 and later dlopen does load deplibs.
10459 libltdl_cv_sys_dlopen_deplibs=yes
10460 ;;
10461 netbsd*)
10462 libltdl_cv_sys_dlopen_deplibs=yes
10463 ;;
10464 openbsd*)
10465 libltdl_cv_sys_dlopen_deplibs=yes
10466 ;;
10467 osf[1234]*)
10468 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10469 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010470 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010471 libltdl_cv_sys_dlopen_deplibs=no
10472 ;;
10473 osf5.0|osf5.0a|osf5.1)
10474 # dlopen *does* load deplibs and with the right loader patch applied
10475 # it even uses RPATH in a shared library to search for shared objects
10476 # that the library depends on, but there's no easy way to know if that
10477 # patch is installed. Since this is the case, all we can really
10478 # say is unknown -- it depends on the patch being installed. If
10479 # it is, this changes to `yes'. Without it, it would be `no'.
10480 libltdl_cv_sys_dlopen_deplibs=unknown
10481 ;;
10482 osf*)
10483 # the two cases above should catch all versions of osf <= 5.1. Read
10484 # the comments above for what we know about them.
10485 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10486 # is used to find them so we can finally say `yes'.
10487 libltdl_cv_sys_dlopen_deplibs=yes
10488 ;;
10489 solaris*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495 esac
10496
10497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010498{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10499echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010502cat >>confdefs.h <<\_ACEOF
10503#define LTDL_DLOPEN_DEPLIBS 1
10504_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505
10506fi
10507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010508
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510do
10511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517fi
10518ac_res=`eval echo '${'$as_ac_Header'}'`
10519 { echo "$as_me:$LINENO: result: $ac_res" >&5
10520echo "${ECHO_T}$ac_res" >&6; }
10521else
10522 # Is the header compilable?
10523{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10525cat >conftest.$ac_ext <<_ACEOF
10526/* confdefs.h. */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h. */
10531$ac_includes_default
10532#include <$ac_header>
10533_ACEOF
10534rm -f conftest.$ac_objext
10535if { (ac_try="$ac_compile"
10536case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_compile") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest.$ac_objext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562esac
10563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_header_compiler=yes
10569else
10570 echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_header_compiler=no
10574fi
10575
10576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10578echo "${ECHO_T}$ac_header_compiler" >&6; }
10579
10580# Is the header present?
10581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10583cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
10589#include <$ac_header>
10590_ACEOF
10591if { (ac_try="$ac_cpp conftest.$ac_ext"
10592case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595esac
10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } >/dev/null; then
10604 if test -s conftest.err; then
10605 ac_cpp_err=$ac_c_preproc_warn_flag
10606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10607 else
10608 ac_cpp_err=
10609 fi
10610else
10611 ac_cpp_err=yes
10612fi
10613if test -z "$ac_cpp_err"; then
10614 ac_header_preproc=yes
10615else
10616 echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 ac_header_preproc=no
10620fi
10621
10622rm -f conftest.err conftest.$ac_ext
10623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10624echo "${ECHO_T}$ac_header_preproc" >&6; }
10625
10626# So? What about this header?
10627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10628 yes:no: )
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10633 ac_header_preproc=yes
10634 ;;
10635 no:yes:* )
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10648 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010649## ------------------------------------ ##
10650## Report this to http://llvm.org/bugs/ ##
10651## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652_ASBOX
10653 ) | sed "s/^/$as_me: WARNING: /" >&2
10654 ;;
10655esac
10656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661 eval "$as_ac_Header=\$ac_header_preproc"
10662fi
10663ac_res=`eval echo '${'$as_ac_Header'}'`
10664 { echo "$as_me:$LINENO: result: $ac_res" >&5
10665echo "${ECHO_T}$ac_res" >&6; }
10666
10667fi
10668if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671_ACEOF
10672
10673fi
10674
10675done
10676
10677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678{ echo "$as_me:$LINENO: checking for error_t" >&5
10679echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10680if test "${ac_cv_type_error_t+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683 cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h. */
10689#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690# include <argz.h>
10691#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010692
10693typedef error_t ac__type_new_;
10694int
10695main ()
10696{
10697if ((ac__type_new_ *) 0)
10698 return 0;
10699if (sizeof (ac__type_new_))
10700 return 0;
10701 ;
10702 return 0;
10703}
10704_ACEOF
10705rm -f conftest.$ac_objext
10706if { (ac_try="$ac_compile"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest.$ac_objext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_type_error_t=yes
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 ac_cv_type_error_t=no
10745fi
10746
10747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748fi
10749{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10750echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10751if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752
10753cat >>confdefs.h <<_ACEOF
10754#define HAVE_ERROR_T 1
10755_ACEOF
10756
10757
10758else
10759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010760cat >>confdefs.h <<\_ACEOF
10761#define error_t int
10762_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763
10764fi
10765
10766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010767
10768
10769
10770
10771
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010773do
10774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 cat >conftest.$ac_ext <<_ACEOF
10781/* confdefs.h. */
10782_ACEOF
10783cat confdefs.h >>conftest.$ac_ext
10784cat >>conftest.$ac_ext <<_ACEOF
10785/* end confdefs.h. */
10786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788#define $ac_func innocuous_$ac_func
10789
10790/* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char $ac_func (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10794
10795#ifdef __STDC__
10796# include <limits.h>
10797#else
10798# include <assert.h>
10799#endif
10800
10801#undef $ac_func
10802
10803/* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806#ifdef __cplusplus
10807extern "C"
10808#endif
10809char $ac_func ();
10810/* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813#if defined __stub_$ac_func || defined __stub___$ac_func
10814choke me
10815#endif
10816
10817int
10818main ()
10819{
10820return $ac_func ();
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext conftest$ac_exeext
10826if { (ac_try="$ac_link"
10827case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843esac
10844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; } &&
10849 { ac_try='test -s conftest$ac_exeext'
10850 { (case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853esac
10854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_try") 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 eval "$as_ac_var=yes"
10860else
10861 echo "$as_me: failed program was:" >&5
10862sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 eval "$as_ac_var=no"
10865fi
10866
10867rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869fi
10870ac_res=`eval echo '${'$as_ac_var'}'`
10871 { echo "$as_me:$LINENO: result: $ac_res" >&5
10872echo "${ECHO_T}$ac_res" >&6; }
10873if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876_ACEOF
10877
10878fi
10879done
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010900
10901
10902
10903
10904
10905
10906
10907
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10909 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010910do
10911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917fi
10918ac_res=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920echo "${ECHO_T}$ac_res" >&6; }
10921else
10922 # Is the header compilable?
10923{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10925cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931$ac_includes_default
10932#include <$ac_header>
10933_ACEOF
10934rm -f conftest.$ac_objext
10935if { (ac_try="$ac_compile"
10936case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939esac
10940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10952esac
10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962esac
10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_header_compiler=yes
10969else
10970 echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5
10972
10973 ac_header_compiler=no
10974fi
10975
10976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10978echo "${ECHO_T}$ac_header_compiler" >&6; }
10979
10980# Is the header present?
10981{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10983cat >conftest.$ac_ext <<_ACEOF
10984/* confdefs.h. */
10985_ACEOF
10986cat confdefs.h >>conftest.$ac_ext
10987cat >>conftest.$ac_ext <<_ACEOF
10988/* end confdefs.h. */
10989#include <$ac_header>
10990_ACEOF
10991if { (ac_try="$ac_cpp conftest.$ac_ext"
10992case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995esac
10996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } >/dev/null; then
11004 if test -s conftest.err; then
11005 ac_cpp_err=$ac_c_preproc_warn_flag
11006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11007 else
11008 ac_cpp_err=
11009 fi
11010else
11011 ac_cpp_err=yes
11012fi
11013if test -z "$ac_cpp_err"; then
11014 ac_header_preproc=yes
11015else
11016 echo "$as_me: failed program was:" >&5
11017sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ac_header_preproc=no
11020fi
11021
11022rm -f conftest.err conftest.$ac_ext
11023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024echo "${ECHO_T}$ac_header_preproc" >&6; }
11025
11026# So? What about this header?
11027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11028 yes:no: )
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11033 ac_header_preproc=yes
11034 ;;
11035 no:yes:* )
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11048 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011049## ------------------------------------ ##
11050## Report this to http://llvm.org/bugs/ ##
11051## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011052_ASBOX
11053 ) | sed "s/^/$as_me: WARNING: /" >&2
11054 ;;
11055esac
11056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060else
11061 eval "$as_ac_Header=\$ac_header_preproc"
11062fi
11063ac_res=`eval echo '${'$as_ac_Header'}'`
11064 { echo "$as_me:$LINENO: result: $ac_res" >&5
11065echo "${ECHO_T}$ac_res" >&6; }
11066
11067fi
11068if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071_ACEOF
11072
11073fi
11074
11075done
11076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011077
11078
11079
11080
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011082do
11083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089fi
11090ac_res=`eval echo '${'$as_ac_Header'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092echo "${ECHO_T}$ac_res" >&6; }
11093else
11094 # Is the header compilable?
11095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103$ac_includes_default
11104#include <$ac_header>
11105_ACEOF
11106rm -f conftest.$ac_objext
11107if { (ac_try="$ac_compile"
11108case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_header_compiler=yes
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_header_compiler=no
11146fi
11147
11148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150echo "${ECHO_T}$ac_header_compiler" >&6; }
11151
11152# Is the header present?
11153{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11155cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161#include <$ac_header>
11162_ACEOF
11163if { (ac_try="$ac_cpp conftest.$ac_ext"
11164case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_c_preproc_warn_flag
11178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11179 else
11180 ac_cpp_err=
11181 fi
11182else
11183 ac_cpp_err=yes
11184fi
11185if test -z "$ac_cpp_err"; then
11186 ac_header_preproc=yes
11187else
11188 echo "$as_me: failed program was:" >&5
11189sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ac_header_preproc=no
11192fi
11193
11194rm -f conftest.err conftest.$ac_ext
11195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196echo "${ECHO_T}$ac_header_preproc" >&6; }
11197
11198# So? What about this header?
11199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11200 yes:no: )
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11205 ac_header_preproc=yes
11206 ;;
11207 no:yes:* )
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11220 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011221## ------------------------------------ ##
11222## Report this to http://llvm.org/bugs/ ##
11223## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011224_ASBOX
11225 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 ;;
11227esac
11228{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232else
11233 eval "$as_ac_Header=\$ac_header_preproc"
11234fi
11235ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237echo "${ECHO_T}$ac_res" >&6; }
11238
11239fi
11240if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243_ACEOF
11244
11245fi
11246
11247done
11248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011249
11250
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252do
11253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259fi
11260ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262echo "${ECHO_T}$ac_res" >&6; }
11263else
11264 # Is the header compilable?
11265{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273$ac_includes_default
11274#include <$ac_header>
11275_ACEOF
11276rm -f conftest.$ac_objext
11277if { (ac_try="$ac_compile"
11278case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304esac
11305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_header_compiler=no
11316fi
11317
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322# Is the header present?
11323{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331#include <$ac_header>
11332_ACEOF
11333if { (ac_try="$ac_cpp conftest.$ac_ext"
11334case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349 else
11350 ac_cpp_err=
11351 fi
11352else
11353 ac_cpp_err=yes
11354fi
11355if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11357else
11358 echo "$as_me: failed program was:" >&5
11359sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_header_preproc=no
11362fi
11363
11364rm -f conftest.err conftest.$ac_ext
11365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366echo "${ECHO_T}$ac_header_preproc" >&6; }
11367
11368# So? What about this header?
11369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 yes:no: )
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11376 ;;
11377 no:yes:* )
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011391## ------------------------------------ ##
11392## Report this to http://llvm.org/bugs/ ##
11393## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011394_ASBOX
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 ;;
11397esac
11398{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 eval "$as_ac_Header=\$ac_header_preproc"
11404fi
11405ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407echo "${ECHO_T}$ac_res" >&6; }
11408
11409fi
11410if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413_ACEOF
11414 break
11415fi
11416
11417done
11418
11419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011420
11421
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011423do
11424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430 cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
11436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11438#define $ac_func innocuous_$ac_func
11439
11440/* System header to define __stub macros and hopefully few prototypes,
11441 which can conflict with char $ac_func (); below.
11442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443 <limits.h> exists even on freestanding compilers. */
11444
11445#ifdef __STDC__
11446# include <limits.h>
11447#else
11448# include <assert.h>
11449#endif
11450
11451#undef $ac_func
11452
11453/* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456#ifdef __cplusplus
11457extern "C"
11458#endif
11459char $ac_func ();
11460/* The GNU C library defines this for functions which it implements
11461 to always fail with ENOSYS. Some functions are actually named
11462 something starting with __ and the normal name is an alias. */
11463#if defined __stub_$ac_func || defined __stub___$ac_func
11464choke me
11465#endif
11466
11467int
11468main ()
11469{
11470return $ac_func ();
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475rm -f conftest.$ac_objext conftest$ac_exeext
11476if { (ac_try="$ac_link"
11477case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_link") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11490 { (case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_try") 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest$ac_exeext'
11500 { (case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503esac
11504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_try") 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 eval "$as_ac_var=yes"
11510else
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 eval "$as_ac_var=no"
11515fi
11516
11517rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519fi
11520ac_res=`eval echo '${'$as_ac_var'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522echo "${ECHO_T}$ac_res" >&6; }
11523if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526_ACEOF
11527 break
11528fi
11529done
11530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011531
11532
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011534do
11535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11536{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540else
11541 cat >conftest.$ac_ext <<_ACEOF
11542/* confdefs.h. */
11543_ACEOF
11544cat confdefs.h >>conftest.$ac_ext
11545cat >>conftest.$ac_ext <<_ACEOF
11546/* end confdefs.h. */
11547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11549#define $ac_func innocuous_$ac_func
11550
11551/* System header to define __stub macros and hopefully few prototypes,
11552 which can conflict with char $ac_func (); below.
11553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554 <limits.h> exists even on freestanding compilers. */
11555
11556#ifdef __STDC__
11557# include <limits.h>
11558#else
11559# include <assert.h>
11560#endif
11561
11562#undef $ac_func
11563
11564/* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570char $ac_func ();
11571/* The GNU C library defines this for functions which it implements
11572 to always fail with ENOSYS. Some functions are actually named
11573 something starting with __ and the normal name is an alias. */
11574#if defined __stub_$ac_func || defined __stub___$ac_func
11575choke me
11576#endif
11577
11578int
11579main ()
11580{
11581return $ac_func ();
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586rm -f conftest.$ac_objext conftest$ac_exeext
11587if { (ac_try="$ac_link"
11588case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591esac
11592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_link") 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604esac
11605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614esac
11615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 eval "$as_ac_var=yes"
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 eval "$as_ac_var=no"
11626fi
11627
11628rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630fi
11631ac_res=`eval echo '${'$as_ac_var'}'`
11632 { echo "$as_me:$LINENO: result: $ac_res" >&5
11633echo "${ECHO_T}$ac_res" >&6; }
11634if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637_ACEOF
11638 break
11639fi
11640done
11641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011642
11643
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011645do
11646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11649if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651else
11652 cat >conftest.$ac_ext <<_ACEOF
11653/* confdefs.h. */
11654_ACEOF
11655cat confdefs.h >>conftest.$ac_ext
11656cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */
11658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11660#define $ac_func innocuous_$ac_func
11661
11662/* System header to define __stub macros and hopefully few prototypes,
11663 which can conflict with char $ac_func (); below.
11664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11665 <limits.h> exists even on freestanding compilers. */
11666
11667#ifdef __STDC__
11668# include <limits.h>
11669#else
11670# include <assert.h>
11671#endif
11672
11673#undef $ac_func
11674
11675/* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11678#ifdef __cplusplus
11679extern "C"
11680#endif
11681char $ac_func ();
11682/* The GNU C library defines this for functions which it implements
11683 to always fail with ENOSYS. Some functions are actually named
11684 something starting with __ and the normal name is an alias. */
11685#if defined __stub_$ac_func || defined __stub___$ac_func
11686choke me
11687#endif
11688
11689int
11690main ()
11691{
11692return $ac_func ();
11693 ;
11694 return 0;
11695}
11696_ACEOF
11697rm -f conftest.$ac_objext conftest$ac_exeext
11698if { (ac_try="$ac_link"
11699case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11702esac
11703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_link") 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715esac
11716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725esac
11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_try") 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 eval "$as_ac_var=yes"
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 eval "$as_ac_var=no"
11737fi
11738
11739rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11741fi
11742ac_res=`eval echo '${'$as_ac_var'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744echo "${ECHO_T}$ac_res" >&6; }
11745if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748_ACEOF
11749 break
11750fi
11751done
11752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011753
11754
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011756do
11757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762else
11763 cat >conftest.$ac_ext <<_ACEOF
11764/* confdefs.h. */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h. */
11769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11771#define $ac_func innocuous_$ac_func
11772
11773/* System header to define __stub macros and hopefully few prototypes,
11774 which can conflict with char $ac_func (); below.
11775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11776 <limits.h> exists even on freestanding compilers. */
11777
11778#ifdef __STDC__
11779# include <limits.h>
11780#else
11781# include <assert.h>
11782#endif
11783
11784#undef $ac_func
11785
11786/* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11789#ifdef __cplusplus
11790extern "C"
11791#endif
11792char $ac_func ();
11793/* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796#if defined __stub_$ac_func || defined __stub___$ac_func
11797choke me
11798#endif
11799
11800int
11801main ()
11802{
11803return $ac_func ();
11804 ;
11805 return 0;
11806}
11807_ACEOF
11808rm -f conftest.$ac_objext conftest$ac_exeext
11809if { (ac_try="$ac_link"
11810case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_link") 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11826esac
11827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest$ac_exeext'
11833 { (case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_try") 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 eval "$as_ac_var=yes"
11843else
11844 echo "$as_me: failed program was:" >&5
11845sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 eval "$as_ac_var=no"
11848fi
11849
11850rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852fi
11853ac_res=`eval echo '${'$as_ac_var'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855echo "${ECHO_T}$ac_res" >&6; }
11856if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011859_ACEOF
11860
11861fi
11862done
11863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011864
11865
11866
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011868do
11869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11870{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11872if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875 cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
11881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883#define $ac_func innocuous_$ac_func
11884
11885/* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11889
11890#ifdef __STDC__
11891# include <limits.h>
11892#else
11893# include <assert.h>
11894#endif
11895
11896#undef $ac_func
11897
11898/* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char $ac_func ();
11905/* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908#if defined __stub_$ac_func || defined __stub___$ac_func
11909choke me
11910#endif
11911
11912int
11913main ()
11914{
11915return $ac_func ();
11916 ;
11917 return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext conftest$ac_exeext
11921if { (ac_try="$ac_link"
11922case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11935 { (case "(($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_try") 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948esac
11949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 eval "$as_ac_var=yes"
11955else
11956 echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 eval "$as_ac_var=no"
11960fi
11961
11962rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964fi
11965ac_res=`eval echo '${'$as_ac_var'}'`
11966 { echo "$as_me:$LINENO: result: $ac_res" >&5
11967echo "${ECHO_T}$ac_res" >&6; }
11968if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011969 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971_ACEOF
11972
11973fi
11974done
11975
11976
Douglas Gregor01746742009-05-11 18:05:52 +000011977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011978{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11979echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011980
Reid Spencer86901802004-12-08 23:07:27 +000011981ICC=no
11982IXX=no
11983case $CC in
11984 icc*|icpc*)
11985 ICC=yes
11986 IXX=yes
11987 ;;
11988 *)
11989 ;;
11990esac
11991
Duraid Madina937c60a2006-02-15 07:57:42 +000011992if test "$GCC" != "yes" && test "$ICC" != "yes"
11993then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011994 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11995echo "$as_me: error: gcc|icc required but not found" >&2;}
11996 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011997fi
11998
11999if test "$GXX" != "yes" && test "$IXX" != "yes"
12000then
Eric Christopher73e36da2010-12-08 02:02:14 +000012001 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12002echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012003 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012004fi
12005
Reid Spencer86901802004-12-08 23:07:27 +000012006if test "$GCC" = "yes"
12007then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012008 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012009#if !defined(__GNUC__) || __GNUC__ < 3
12010#error Unsupported GCC version
12011#endif
12012
12013_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012014rm -f conftest.$ac_objext
12015if { (ac_try="$ac_compile"
12016case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042esac
12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012050 echo "$as_me: failed program was:" >&5
12051sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12054echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12055 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012057
Chris Lattner399c7c72008-02-05 19:43:53 +000012058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012059fi
12060
12061if test -z "$llvm_cv_gnu_make_command"
12062then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012063 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12064echo "$as_me: error: GNU Make required but not found" >&2;}
12065 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012066fi
12067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012068{ echo "$as_me:$LINENO: result: ok" >&5
12069echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012071{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12072echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012073NO_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 +000012074
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012075NO_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 +000012076
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012077COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12078
12079{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12080echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012081
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012083
12084{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12085echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12086if test "${ac_cv_lib_m_sin+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012088else
12089 ac_check_lib_save_LIBS=$LIBS
12090LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012091cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012096/* end confdefs.h. */
12097
Reid Spencera773bd52006-08-04 18:18:08 +000012098/* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012101#ifdef __cplusplus
12102extern "C"
12103#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012104char sin ();
12105int
12106main ()
12107{
Reid Spencera773bd52006-08-04 18:18:08 +000012108return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012109 ;
12110 return 0;
12111}
12112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012113rm -f conftest.$ac_objext conftest$ac_exeext
12114if { (ac_try="$ac_link"
12115case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_link") 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest$ac_exeext'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012147 ac_cv_lib_m_sin=yes
12148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154
Bill Wendlingebcceee2009-04-18 11:20:33 +000012155rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012157LIBS=$ac_check_lib_save_LIBS
12158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012159{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12160echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12161if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012162 cat >>confdefs.h <<_ACEOF
12163#define HAVE_LIBM 1
12164_ACEOF
12165
12166 LIBS="-lm $LIBS"
12167
12168fi
12169
Jeff Cohen28783c32007-01-12 18:22:38 +000012170if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012171
12172{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12173echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12174if test "${ac_cv_lib_imagehlp_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="-limagehlp $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_imagehlp_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_imagehlp_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_imagehlp_main" >&5
12242echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12243if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012244 cat >>confdefs.h <<_ACEOF
12245#define HAVE_LIBIMAGEHLP 1
12246_ACEOF
12247
12248 LIBS="-limagehlp $LIBS"
12249
12250fi
12251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012252
12253{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12254echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12255if test "${ac_cv_lib_psapi_main+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012257else
12258 ac_check_lib_save_LIBS=$LIBS
12259LIBS="-lpsapi $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
Reid Spencer484fc8e2006-06-01 16:55:59 +000012265/* end confdefs.h. */
12266
Reid Spencer48fdf912006-06-01 19:03:21 +000012267
Reid Spencer484fc8e2006-06-01 16:55:59 +000012268int
12269main ()
12270{
Reid Spencera773bd52006-08-04 18:18:08 +000012271return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012272 ;
12273 return 0;
12274}
12275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012276rm -f conftest.$ac_objext conftest$ac_exeext
12277if { (ac_try="$ac_link"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (case "(($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_try") 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest$ac_exeext'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12304esac
12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012310 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012317
Bill Wendlingebcceee2009-04-18 11:20:33 +000012318rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012320LIBS=$ac_check_lib_save_LIBS
12321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012322{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12323echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12324if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012325 cat >>confdefs.h <<_ACEOF
12326#define HAVE_LIBPSAPI 1
12327_ACEOF
12328
12329 LIBS="-lpsapi $LIBS"
12330
12331fi
12332
12333fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012335{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12336echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12337if test "${ac_cv_search_dlopen+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012339else
12340 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012341cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012347
Reid Spencera773bd52006-08-04 18:18:08 +000012348/* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012351#ifdef __cplusplus
12352extern "C"
12353#endif
John Criswell7a73b802003-06-30 21:59:07 +000012354char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012355int
12356main ()
12357{
Reid Spencera773bd52006-08-04 18:18:08 +000012358return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012359 ;
12360 return 0;
12361}
12362_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012363for ac_lib in '' dl; do
12364 if test -z "$ac_lib"; then
12365 ac_res="none required"
12366 else
12367 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012369 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012370 rm -f conftest.$ac_objext conftest$ac_exeext
12371if { (ac_try="$ac_link"
12372case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375esac
12376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388esac
12389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012404 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012405else
12406 echo "$as_me: failed program was:" >&5
12407sed 's/^/| /' conftest.$ac_ext >&5
12408
12409
John Criswell7a73b802003-06-30 21:59:07 +000012410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411
Bill Wendlingebcceee2009-04-18 11:20:33 +000012412rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012413 conftest$ac_exeext
12414 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012415 break
John Criswell7a73b802003-06-30 21:59:07 +000012416fi
Reid Spencera773bd52006-08-04 18:18:08 +000012417done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012418if test "${ac_cv_search_dlopen+set}" = set; then
12419 :
Reid Spencera773bd52006-08-04 18:18:08 +000012420else
12421 ac_cv_search_dlopen=no
12422fi
12423rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012424LIBS=$ac_func_search_save_LIBS
12425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012426{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12427echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012428ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012429if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432cat >>confdefs.h <<\_ACEOF
12433#define HAVE_DLOPEN 1
12434_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012435
12436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012437 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12438echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012439fi
12440
12441
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012442if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012443 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12444echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12445if test "${ac_cv_search_ffi_call+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012447else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012448 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012449cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012454/* end confdefs.h. */
12455
12456/* Override any GCC internal prototype to avoid an error.
12457 Use char because int might match the return type of a GCC
12458 builtin and then its argument prototype would still apply. */
12459#ifdef __cplusplus
12460extern "C"
12461#endif
12462char ffi_call ();
12463int
12464main ()
12465{
12466return ffi_call ();
12467 ;
12468 return 0;
12469}
12470_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012471for ac_lib in '' ffi; do
12472 if test -z "$ac_lib"; then
12473 ac_res="none required"
12474 else
12475 ac_res=-l$ac_lib
12476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12477 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012478 rm -f conftest.$ac_objext conftest$ac_exeext
12479if { (ac_try="$ac_link"
12480case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12483esac
12484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_link") 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493 { (case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496esac
12497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_try") 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest$ac_exeext'
12503 { (case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506esac
12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_try") 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012512 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012513else
12514 echo "$as_me: failed program was:" >&5
12515sed 's/^/| /' conftest.$ac_ext >&5
12516
12517
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012519
Bill Wendlingebcceee2009-04-18 11:20:33 +000012520rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012521 conftest$ac_exeext
12522 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012523 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012524fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012526if test "${ac_cv_search_ffi_call+set}" = set; then
12527 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012528else
12529 ac_cv_search_ffi_call=no
12530fi
12531rm conftest.$ac_ext
12532LIBS=$ac_func_search_save_LIBS
12533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012534{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12535echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012536ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012537if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012540cat >>confdefs.h <<\_ACEOF
12541#define HAVE_FFI_CALL 1
12542_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012543
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012544else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012545 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12546echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12547 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012548fi
12549
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012550fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012552{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12553echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12554if test "${ac_cv_search_mallinfo+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012556else
12557 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012558cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012564
Reid Spencera773bd52006-08-04 18:18:08 +000012565/* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012568#ifdef __cplusplus
12569extern "C"
12570#endif
John Criswell7a73b802003-06-30 21:59:07 +000012571char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012572int
12573main ()
12574{
Reid Spencera773bd52006-08-04 18:18:08 +000012575return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012576 ;
12577 return 0;
12578}
12579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012580for ac_lib in '' malloc; do
12581 if test -z "$ac_lib"; then
12582 ac_res="none required"
12583 else
12584 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012586 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012587 rm -f conftest.$ac_objext conftest$ac_exeext
12588if { (ac_try="$ac_link"
12589case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592esac
12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_link") 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605esac
12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012621 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012622else
12623 echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
12626
John Criswell7a73b802003-06-30 21:59:07 +000012627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012628
Bill Wendlingebcceee2009-04-18 11:20:33 +000012629rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012630 conftest$ac_exeext
12631 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012632 break
John Criswell7a73b802003-06-30 21:59:07 +000012633fi
Reid Spencera773bd52006-08-04 18:18:08 +000012634done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012635if test "${ac_cv_search_mallinfo+set}" = set; then
12636 :
Reid Spencera773bd52006-08-04 18:18:08 +000012637else
12638 ac_cv_search_mallinfo=no
12639fi
12640rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012641LIBS=$ac_func_search_save_LIBS
12642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012643{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12644echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012645ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012646if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012649cat >>confdefs.h <<\_ACEOF
12650#define HAVE_MALLINFO 1
12651_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012652
12653fi
12654
12655
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012656if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012657
12658{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12659echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12660if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012662else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012663 ac_check_lib_save_LIBS=$LIBS
12664LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012665cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012670/* end confdefs.h. */
12671
Reid Spencera773bd52006-08-04 18:18:08 +000012672/* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012675#ifdef __cplusplus
12676extern "C"
12677#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012678char pthread_mutex_init ();
12679int
12680main ()
12681{
Reid Spencera773bd52006-08-04 18:18:08 +000012682return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012683 ;
12684 return 0;
12685}
12686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687rm -f conftest.$ac_objext conftest$ac_exeext
12688if { (ac_try="$ac_link"
12689case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705esac
12706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012721 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012728
Bill Wendlingebcceee2009-04-18 11:20:33 +000012729rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012731LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012733{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12734echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12735if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012736 cat >>confdefs.h <<_ACEOF
12737#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012738_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012739
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012740 LIBS="-lpthread $LIBS"
12741
Reid Spencer22177fe2005-07-12 15:24:20 +000012742fi
12743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012744 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12745echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12746if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012748else
12749 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012750cat >conftest.$ac_ext <<_ACEOF
12751/* confdefs.h. */
12752_ACEOF
12753cat confdefs.h >>conftest.$ac_ext
12754cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012755/* end confdefs.h. */
12756
Reid Spencera773bd52006-08-04 18:18:08 +000012757/* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012760#ifdef __cplusplus
12761extern "C"
12762#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012763char pthread_mutex_lock ();
12764int
12765main ()
12766{
Reid Spencera773bd52006-08-04 18:18:08 +000012767return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012768 ;
12769 return 0;
12770}
12771_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012772for ac_lib in '' pthread; do
12773 if test -z "$ac_lib"; then
12774 ac_res="none required"
12775 else
12776 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012778 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779 rm -f conftest.$ac_objext conftest$ac_exeext
12780if { (ac_try="$ac_link"
12781case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012813 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012814else
12815 echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
12818
Brian Gaeke5f268f72003-12-05 19:29:01 +000012819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012820
Bill Wendlingebcceee2009-04-18 11:20:33 +000012821rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822 conftest$ac_exeext
12823 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012824 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012825fi
Reid Spencera773bd52006-08-04 18:18:08 +000012826done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012827if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12828 :
Reid Spencera773bd52006-08-04 18:18:08 +000012829else
12830 ac_cv_search_pthread_mutex_lock=no
12831fi
12832rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012833LIBS=$ac_func_search_save_LIBS
12834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012835{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12836echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012837ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012838if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012841cat >>confdefs.h <<\_ACEOF
12842#define HAVE_PTHREAD_MUTEX_LOCK 1
12843_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012844
12845fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012847 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12848echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12849if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012851else
12852 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012853cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012858/* end confdefs.h. */
12859
12860/* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863#ifdef __cplusplus
12864extern "C"
12865#endif
12866char pthread_rwlock_init ();
12867int
12868main ()
12869{
12870return pthread_rwlock_init ();
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875for ac_lib in '' pthread; do
12876 if test -z "$ac_lib"; then
12877 ac_res="none required"
12878 else
12879 ac_res=-l$ac_lib
12880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12881 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882 rm -f conftest.$ac_objext conftest$ac_exeext
12883if { (ac_try="$ac_link"
12884case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012916 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921
Owen Andersonde8aed22009-06-16 18:20:20 +000012922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012923
Owen Andersonde8aed22009-06-16 18:20:20 +000012924rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012925 conftest$ac_exeext
12926 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012927 break
12928fi
12929done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12931 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012932else
12933 ac_cv_search_pthread_rwlock_init=no
12934fi
12935rm conftest.$ac_ext
12936LIBS=$ac_func_search_save_LIBS
12937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12939echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012940ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012944cat >>confdefs.h <<\_ACEOF
12945#define HAVE_PTHREAD_RWLOCK_INIT 1
12946_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012947
12948fi
12949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012950 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12951echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12952if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012954else
12955 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012956cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h. */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012961/* end confdefs.h. */
12962
12963/* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966#ifdef __cplusplus
12967extern "C"
12968#endif
12969char pthread_getspecific ();
12970int
12971main ()
12972{
12973return pthread_getspecific ();
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978for ac_lib in '' pthread; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12981 else
12982 ac_res=-l$ac_lib
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12984 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012985 rm -f conftest.$ac_objext conftest$ac_exeext
12986if { (ac_try="$ac_link"
12987case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
13014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013019 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020else
13021 echo "$as_me: failed program was:" >&5
13022sed 's/^/| /' conftest.$ac_ext >&5
13023
13024
Owen Anderson27fcfe12009-06-25 23:10:26 +000013025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026
Owen Anderson27fcfe12009-06-25 23:10:26 +000013027rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028 conftest$ac_exeext
13029 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013030 break
13031fi
13032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13034 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013035else
13036 ac_cv_search_pthread_getspecific=no
13037fi
13038rm conftest.$ac_ext
13039LIBS=$ac_func_search_save_LIBS
13040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013041{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13042echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013043ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047cat >>confdefs.h <<\_ACEOF
13048#define HAVE_PTHREAD_GETSPECIFIC 1
13049_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013050
13051fi
13052
Reid Spencer0a262ba2005-08-24 10:07:20 +000013053fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013054
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013055
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013056# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013057if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013058 withval=$with_udis86;
13059 USE_UDIS86=1
13060
13061 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013062 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013063 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13064 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065
13066{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13067echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13068if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013070else
13071 ac_check_lib_save_LIBS=$LIBS
13072LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013073cat >conftest.$ac_ext <<_ACEOF
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013078/* end confdefs.h. */
13079
13080/* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083#ifdef __cplusplus
13084extern "C"
13085#endif
13086char ud_init ();
13087int
13088main ()
13089{
13090return ud_init ();
13091 ;
13092 return 0;
13093}
13094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013095rm -f conftest.$ac_objext conftest$ac_exeext
13096if { (ac_try="$ac_link"
13097case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_link") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013129 ac_cv_lib_udis86_ud_init=yes
13130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013131 echo "$as_me: failed program was:" >&5
13132sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013136
Bill Wendlingebcceee2009-04-18 11:20:33 +000013137rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013139LIBS=$ac_check_lib_save_LIBS
13140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13142echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13143if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013144 cat >>confdefs.h <<_ACEOF
13145#define HAVE_LIBUDIS86 1
13146_ACEOF
13147
13148 LIBS="-ludis86 $LIBS"
13149
13150else
13151
13152 echo "Error! You need to have libudis86 around."
13153 exit -1
13154
13155fi
13156
13157
13158else
13159 USE_UDIS86=0
13160
13161fi
13162
13163
13164cat >>confdefs.h <<_ACEOF
13165#define USE_UDIS86 $USE_UDIS86
13166_ACEOF
13167
13168
13169
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013170# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013172 withval=$with_oprofile;
13173 USE_OPROFILE=1
13174
13175 case "$withval" in
13176 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013177 no) llvm_cv_oppath=
13178 USE_OPROFILE=0
13179 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013180 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013181 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013182 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013183 case $llvm_cv_os_type in
13184 Linux)
13185 if test -n "$llvm_cv_oppath" ; then
13186 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13187 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013188echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13189if test "${ac_cv_search_bfd_init+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013191else
13192 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193cat >conftest.$ac_ext <<_ACEOF
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013198/* end confdefs.h. */
13199
13200/* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203#ifdef __cplusplus
13204extern "C"
13205#endif
13206char bfd_init ();
13207int
13208main ()
13209{
13210return bfd_init ();
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215for ac_lib in '' bfd; do
13216 if test -z "$ac_lib"; then
13217 ac_res="none required"
13218 else
13219 ac_res=-l$ac_lib
13220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13221 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222 rm -f conftest.$ac_objext conftest$ac_exeext
13223if { (ac_try="$ac_link"
13224case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13237 { (case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240esac
13241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_try") 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest$ac_exeext'
13247 { (case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250esac
13251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_try") 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013256 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257else
13258 echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
13261
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013263
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013264rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 conftest$ac_exeext
13266 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013267 break
13268fi
13269done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013270if test "${ac_cv_search_bfd_init+set}" = set; then
13271 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013272else
13273 ac_cv_search_bfd_init=no
13274fi
13275rm conftest.$ac_ext
13276LIBS=$ac_func_search_save_LIBS
13277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13279echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013280ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13283
13284fi
13285
Eli Bendersky61b18512012-03-13 08:33:15 +000013286 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13288if test "${ac_cv_search_op_open_agent+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013290else
13291 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292cat >conftest.$ac_ext <<_ACEOF
13293/* confdefs.h. */
13294_ACEOF
13295cat confdefs.h >>conftest.$ac_ext
13296cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013297/* end confdefs.h. */
13298
13299/* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
13302#ifdef __cplusplus
13303extern "C"
13304#endif
13305char op_open_agent ();
13306int
13307main ()
13308{
13309return op_open_agent ();
13310 ;
13311 return 0;
13312}
13313_ACEOF
13314for ac_lib in '' opagent; do
13315 if test -z "$ac_lib"; then
13316 ac_res="none required"
13317 else
13318 ac_res=-l$ac_lib
13319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13320 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321 rm -f conftest.$ac_objext conftest$ac_exeext
13322if { (ac_try="$ac_link"
13323case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_link") 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13336 { (case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339esac
13340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_try") 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest$ac_exeext'
13346 { (case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349esac
13350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_try") 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013355 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013363rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364 conftest$ac_exeext
13365 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013366 break
13367fi
13368done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369if test "${ac_cv_search_op_open_agent+set}" = set; then
13370 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013371else
13372 ac_cv_search_op_open_agent=no
13373fi
13374rm conftest.$ac_ext
13375LIBS=$ac_func_search_save_LIBS
13376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013377{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13378echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013379ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13382
13383else
13384
Eli Bendersky61b18512012-03-13 08:33:15 +000013385 echo "Error! You need to have libopagent around."
13386 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013387
13388fi
13389
Eli Bendersky61b18512012-03-13 08:33:15 +000013390 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13392echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13393if test "${ac_cv_header_opagent_h+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395fi
13396{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13397echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13398else
13399 # Is the header compilable?
13400{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13401echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13402cat >conftest.$ac_ext <<_ACEOF
13403/* confdefs.h. */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h. */
13408$ac_includes_default
13409#include <opagent.h>
13410_ACEOF
13411rm -f conftest.$ac_objext
13412if { (ac_try="$ac_compile"
13413case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_header_compiler=yes
13446else
13447 echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013450 ac_header_compiler=no
13451fi
13452
13453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13455echo "${ECHO_T}$ac_header_compiler" >&6; }
13456
13457# Is the header present?
13458{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13459echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13460cat >conftest.$ac_ext <<_ACEOF
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
13465/* end confdefs.h. */
13466#include <opagent.h>
13467_ACEOF
13468if { (ac_try="$ac_cpp conftest.$ac_ext"
13469case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } >/dev/null; then
13481 if test -s conftest.err; then
13482 ac_cpp_err=$ac_c_preproc_warn_flag
13483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13484 else
13485 ac_cpp_err=
13486 fi
13487else
13488 ac_cpp_err=yes
13489fi
13490if test -z "$ac_cpp_err"; then
13491 ac_header_preproc=yes
13492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_header_preproc=no
13497fi
13498
13499rm -f conftest.err conftest.$ac_ext
13500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501echo "${ECHO_T}$ac_header_preproc" >&6; }
13502
13503# So? What about this header?
13504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 yes:no: )
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13507echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13509echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc=yes
13511 ;;
13512 no:yes:* )
13513 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13514echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13516echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13518echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13520echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13522echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13524echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13525 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013526## ------------------------------------ ##
13527## Report this to http://llvm.org/bugs/ ##
13528## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013529_ASBOX
13530 ) | sed "s/^/$as_me: WARNING: /" >&2
13531 ;;
13532esac
13533{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13534echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13535if test "${ac_cv_header_opagent_h+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538 ac_cv_header_opagent_h=$ac_header_preproc
13539fi
13540{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13541echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13542
13543fi
13544if test $ac_cv_header_opagent_h = yes; then
13545 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013546else
13547
Eli Bendersky61b18512012-03-13 08:33:15 +000013548 echo "Error! You need to have opagent.h around."
13549 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013550
13551fi
13552
13553
Eli Bendersky61b18512012-03-13 08:33:15 +000013554 fi ;;
13555 *)
13556 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13557echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13558 { (exit 1); exit 1; }; } ;;
13559 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013560
13561else
13562
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013563 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013564
13565
13566fi
13567
13568
13569cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013570#define LLVM_USE_OPROFILE $USE_OPROFILE
13571_ACEOF
13572
13573
13574
13575# Check whether --with-intel-jitevents was given.
13576if test "${with_intel_jitevents+set}" = set; then
13577 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013578 case "$withval" in
13579 yes) USE_INTEL_JITEVENTS=1
13580;;
13581 no) USE_INTEL_JITEVENTS=0
13582;;
13583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13584echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13585 { (exit 1); exit 1; }; };;
13586 esac
13587
Eli Bendersky61b18512012-03-13 08:33:15 +000013588 case $llvm_cv_os_type in
13589 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013590 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13591echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13592 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013593 esac
13594
Eli Bendersky61b18512012-03-13 08:33:15 +000013595 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013596 x86|x86_64) ;;
13597 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13598echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13599 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013600 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013601
13602else
13603
13604 USE_INTEL_JITEVENTS=0
13605
13606
13607fi
13608
13609
13610cat >>confdefs.h <<_ACEOF
13611#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013612_ACEOF
13613
13614
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013615for ac_prog in xml2-config
13616do
13617 # Extract the first word of "$ac_prog", so it can be a program name with args.
13618set dummy $ac_prog; ac_word=$2
13619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13621if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623else
13624 if test -n "$XML2CONFIG"; then
13625 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13626else
13627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628for as_dir in $PATH
13629do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_XML2CONFIG="$ac_prog"
13635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638done
13639done
13640IFS=$as_save_IFS
13641
13642fi
13643fi
13644XML2CONFIG=$ac_cv_prog_XML2CONFIG
13645if test -n "$XML2CONFIG"; then
13646 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13647echo "${ECHO_T}$XML2CONFIG" >&6; }
13648else
13649 { echo "$as_me:$LINENO: result: no" >&5
13650echo "${ECHO_T}no" >&6; }
13651fi
13652
13653
13654 test -n "$XML2CONFIG" && break
13655done
13656
13657
13658{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13659echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13660if test "x$XML2CONFIG" = "x"; then
13661 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13662echo "${ECHO_T}xml2-config not found" >&6; }
13663else
13664 LIBXML2_INC=`$XML2CONFIG --cflags`
13665 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13666echo "${ECHO_T}$LIBXML2_INC" >&6; }
13667 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13668echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13669if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 ac_check_lib_save_LIBS=$LIBS
13673LIBS="-lxml2 $LIBS"
13674cat >conftest.$ac_ext <<_ACEOF
13675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
13680
13681/* Override any GCC internal prototype to avoid an error.
13682 Use char because int might match the return type of a GCC
13683 builtin and then its argument prototype would still apply. */
13684#ifdef __cplusplus
13685extern "C"
13686#endif
13687char xmlReadFile ();
13688int
13689main ()
13690{
13691return xmlReadFile ();
13692 ;
13693 return 0;
13694}
13695_ACEOF
13696rm -f conftest.$ac_objext conftest$ac_exeext
13697if { (ac_try="$ac_link"
13698case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_link") 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13711 { (case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_try") 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_try") 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_cv_lib_xml2_xmlReadFile=yes
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_cv_lib_xml2_xmlReadFile=no
13736fi
13737
13738rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13740LIBS=$ac_check_lib_save_LIBS
13741fi
13742{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13743echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13744if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13745
13746cat >>confdefs.h <<\_ACEOF
13747#define CLANG_HAVE_LIBXML 1
13748_ACEOF
13749
13750 LIBXML2_LIBS="-lxml2"
13751fi
13752
13753fi
13754
13755
13756
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758
13759
13760
13761
13762
Reid Spencer59473af2004-12-25 07:31:29 +000013763ac_header_dirent=no
13764for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013765 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13766{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13767echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013771 cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013776/* end confdefs.h. */
13777#include <sys/types.h>
13778#include <$ac_hdr>
13779
13780int
13781main ()
13782{
13783if ((DIR *) 0)
13784return 0;
13785 ;
13786 return 0;
13787}
13788_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789rm -f conftest.$ac_objext
13790if { (ac_try="$ac_compile"
13791case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794esac
13795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817esac
13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013823 eval "$as_ac_Header=yes"
13824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830
Reid Spencera773bd52006-08-04 18:18:08 +000013831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013833ac_res=`eval echo '${'$as_ac_Header'}'`
13834 { echo "$as_me:$LINENO: result: $ac_res" >&5
13835echo "${ECHO_T}$ac_res" >&6; }
13836if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013837 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013838#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013839_ACEOF
13840
13841ac_header_dirent=$ac_hdr; break
13842fi
13843
13844done
13845# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13846if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13848echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13849if test "${ac_cv_search_opendir+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013851else
13852 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013853cat >conftest.$ac_ext <<_ACEOF
13854/* confdefs.h. */
13855_ACEOF
13856cat confdefs.h >>conftest.$ac_ext
13857cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013858/* end confdefs.h. */
13859
Reid Spencera773bd52006-08-04 18:18:08 +000013860/* Override any GCC internal prototype to avoid an error.
13861 Use char because int might match the return type of a GCC
13862 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013863#ifdef __cplusplus
13864extern "C"
13865#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013866char opendir ();
13867int
13868main ()
13869{
Reid Spencera773bd52006-08-04 18:18:08 +000013870return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013871 ;
13872 return 0;
13873}
13874_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013875for ac_lib in '' dir; do
13876 if test -z "$ac_lib"; then
13877 ac_res="none required"
13878 else
13879 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013881 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882 rm -f conftest.$ac_objext conftest$ac_exeext
13883if { (ac_try="$ac_link"
13884case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887esac
13888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest$ac_exeext'
13907 { (case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910esac
13911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_try") 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013916 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013917else
13918 echo "$as_me: failed program was:" >&5
13919sed 's/^/| /' conftest.$ac_ext >&5
13920
13921
Reid Spencer59473af2004-12-25 07:31:29 +000013922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923
Bill Wendlingebcceee2009-04-18 11:20:33 +000013924rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013925 conftest$ac_exeext
13926 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013927 break
Reid Spencer59473af2004-12-25 07:31:29 +000013928fi
Reid Spencera773bd52006-08-04 18:18:08 +000013929done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930if test "${ac_cv_search_opendir+set}" = set; then
13931 :
Reid Spencera773bd52006-08-04 18:18:08 +000013932else
13933 ac_cv_search_opendir=no
13934fi
13935rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013936LIBS=$ac_func_search_save_LIBS
13937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13939echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013940ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013941if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013943
13944fi
13945
13946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013947 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13948echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13949if test "${ac_cv_search_opendir+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013951else
13952 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013958/* end confdefs.h. */
13959
Reid Spencera773bd52006-08-04 18:18:08 +000013960/* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013963#ifdef __cplusplus
13964extern "C"
13965#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013966char opendir ();
13967int
13968main ()
13969{
Reid Spencera773bd52006-08-04 18:18:08 +000013970return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013971 ;
13972 return 0;
13973}
13974_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013975for ac_lib in '' x; do
13976 if test -z "$ac_lib"; then
13977 ac_res="none required"
13978 else
13979 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013981 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013982 rm -f conftest.$ac_objext conftest$ac_exeext
13983if { (ac_try="$ac_link"
13984case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987esac
13988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_link") 2>conftest.er1
13990 ac_status=$?
13991 grep -v '^ *+' conftest.er1 >conftest.err
13992 rm -f conftest.er1
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13997 { (case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14000esac
14001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_try") 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest$ac_exeext'
14007 { (case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010esac
14011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_try") 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014016 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017else
14018 echo "$as_me: failed program was:" >&5
14019sed 's/^/| /' conftest.$ac_ext >&5
14020
14021
Reid Spencer59473af2004-12-25 07:31:29 +000014022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023
Bill Wendlingebcceee2009-04-18 11:20:33 +000014024rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014025 conftest$ac_exeext
14026 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014027 break
Reid Spencer59473af2004-12-25 07:31:29 +000014028fi
Reid Spencera773bd52006-08-04 18:18:08 +000014029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030if test "${ac_cv_search_opendir+set}" = set; then
14031 :
Reid Spencera773bd52006-08-04 18:18:08 +000014032else
14033 ac_cv_search_opendir=no
14034fi
14035rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014036LIBS=$ac_func_search_save_LIBS
14037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014038{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14039echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014040ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014043
14044fi
14045
14046fi
14047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14049echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14050if test "${ac_cv_header_mmap_anon+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014052else
14053 ac_ext=c
14054ac_cpp='$CPP $CPPFLAGS'
14055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057ac_compiler_gnu=$ac_cv_c_compiler_gnu
14058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059 cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014064/* end confdefs.h. */
14065#include <sys/mman.h>
14066#include <unistd.h>
14067#include <fcntl.h>
14068int
14069main ()
14070{
14071mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14072 ;
14073 return 0;
14074}
14075_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076rm -f conftest.$ac_objext
14077if { (ac_try="$ac_compile"
14078case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081esac
14082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_compile") 2>conftest.er1
14084 ac_status=$?
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14091 { (case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094esac
14095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_try") 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest.$ac_objext'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104esac
14105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_try") 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014110 ac_cv_header_mmap_anon=yes
14111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112 echo "$as_me: failed program was:" >&5
14113sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117
Reid Spencera773bd52006-08-04 18:18:08 +000014118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014119 ac_ext=c
14120ac_cpp='$CPP $CPPFLAGS'
14121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123ac_compiler_gnu=$ac_cv_c_compiler_gnu
14124
14125
14126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14128echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014129if test "$ac_cv_header_mmap_anon" = yes; then
14130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131cat >>confdefs.h <<\_ACEOF
14132#define HAVE_MMAP_ANONYMOUS 1
14133_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014134
14135fi
14136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14138echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14139if test "${ac_cv_header_stat_broken+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142 cat >conftest.$ac_ext <<_ACEOF
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014147/* end confdefs.h. */
14148#include <sys/types.h>
14149#include <sys/stat.h>
14150
Reid Spencera773bd52006-08-04 18:18:08 +000014151#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152# if S_ISBLK (S_IFDIR)
14153You lose.
14154# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014155#endif
14156
Reid Spencera773bd52006-08-04 18:18:08 +000014157#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158# if S_ISBLK (S_IFCHR)
14159You lose.
14160# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014161#endif
14162
Reid Spencera773bd52006-08-04 18:18:08 +000014163#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164# if S_ISLNK (S_IFREG)
14165You lose.
14166# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014167#endif
14168
Reid Spencera773bd52006-08-04 18:18:08 +000014169#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170# if S_ISSOCK (S_IFREG)
14171You lose.
14172# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014173#endif
14174
14175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14177 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014178 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179else
14180 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182rm -f conftest*
14183
Reid Spencer59473af2004-12-25 07:31:29 +000014184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14186echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014187if test $ac_cv_header_stat_broken = yes; then
14188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189cat >>confdefs.h <<\_ACEOF
14190#define STAT_MACROS_BROKEN 1
14191_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014192
14193fi
14194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14196echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14197if test "${ac_cv_header_sys_wait_h+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200 cat >conftest.$ac_ext <<_ACEOF
14201/* confdefs.h. */
14202_ACEOF
14203cat confdefs.h >>conftest.$ac_ext
14204cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014206#include <sys/types.h>
14207#include <sys/wait.h>
14208#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014209# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014210#endif
14211#ifndef WIFEXITED
14212# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14213#endif
14214
John Criswell7a73b802003-06-30 21:59:07 +000014215int
14216main ()
14217{
14218 int s;
14219 wait (&s);
14220 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14221 ;
14222 return 0;
14223}
14224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225rm -f conftest.$ac_objext
14226if { (ac_try="$ac_compile"
14227case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230esac
14231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_compile") 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240 { (case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243esac
14244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_try") 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14253esac
14254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014259 ac_cv_header_sys_wait_h=yes
14260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261 echo "$as_me: failed program was:" >&5
14262sed 's/^/| /' conftest.$ac_ext >&5
14263
14264 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266
Reid Spencera773bd52006-08-04 18:18:08 +000014267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14270echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014271if test $ac_cv_header_sys_wait_h = yes; then
14272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014273cat >>confdefs.h <<\_ACEOF
14274#define HAVE_SYS_WAIT_H 1
14275_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014276
14277fi
14278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014279{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14280echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14281if test "${ac_cv_header_time+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014284 cat >conftest.$ac_ext <<_ACEOF
14285/* confdefs.h. */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014289/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014290#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014291#include <sys/time.h>
14292#include <time.h>
14293
14294int
14295main ()
14296{
14297if ((struct tm *) 0)
14298return 0;
14299 ;
14300 return 0;
14301}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303rm -f conftest.$ac_objext
14304if { (ac_try="$ac_compile"
14305case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308esac
14309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331esac
14332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014337 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339 echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344
Reid Spencera773bd52006-08-04 18:18:08 +000014345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14348echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014349if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014351cat >>confdefs.h <<\_ACEOF
14352#define TIME_WITH_SYS_TIME 1
14353_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014354
14355fi
14356
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358
14359
14360
14361
14362
14363
Reid Spencer59473af2004-12-25 07:31:29 +000014364for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365do
14366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372fi
14373ac_res=`eval echo '${'$as_ac_Header'}'`
14374 { echo "$as_me:$LINENO: result: $ac_res" >&5
14375echo "${ECHO_T}$ac_res" >&6; }
14376else
14377 # Is the header compilable?
14378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14380cat >conftest.$ac_ext <<_ACEOF
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386$ac_includes_default
14387#include <$ac_header>
14388_ACEOF
14389rm -f conftest.$ac_objext
14390if { (ac_try="$ac_compile"
14391case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_compile") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest.$ac_objext'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417esac
14418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_header_compiler=yes
14424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428 ac_header_compiler=no
14429fi
14430
14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433echo "${ECHO_T}$ac_header_compiler" >&6; }
14434
14435# Is the header present?
14436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14438cat >conftest.$ac_ext <<_ACEOF
14439/* confdefs.h. */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h. */
14444#include <$ac_header>
14445_ACEOF
14446if { (ac_try="$ac_cpp conftest.$ac_ext"
14447case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
14453 ac_status=$?
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } >/dev/null; then
14459 if test -s conftest.err; then
14460 ac_cpp_err=$ac_c_preproc_warn_flag
14461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14462 else
14463 ac_cpp_err=
14464 fi
14465else
14466 ac_cpp_err=yes
14467fi
14468if test -z "$ac_cpp_err"; then
14469 ac_header_preproc=yes
14470else
14471 echo "$as_me: failed program was:" >&5
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ac_header_preproc=no
14475fi
14476
14477rm -f conftest.err conftest.$ac_ext
14478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14479echo "${ECHO_T}$ac_header_preproc" >&6; }
14480
14481# So? What about this header?
14482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14483 yes:no: )
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14488 ac_header_preproc=yes
14489 ;;
14490 no:yes:* )
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14503 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014504## ------------------------------------ ##
14505## Report this to http://llvm.org/bugs/ ##
14506## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014507_ASBOX
14508 ) | sed "s/^/$as_me: WARNING: /" >&2
14509 ;;
14510esac
14511{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516 eval "$as_ac_Header=\$ac_header_preproc"
14517fi
14518ac_res=`eval echo '${'$as_ac_Header'}'`
14519 { echo "$as_me:$LINENO: result: $ac_res" >&5
14520echo "${ECHO_T}$ac_res" >&6; }
14521
14522fi
14523if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014526_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014527
14528fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014529
Reid Spencer59473af2004-12-25 07:31:29 +000014530done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532
14533
14534
14535
14536
14537
Douglas Gregor071d73d2009-05-18 17:21:34 +000014538for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014539do
14540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546fi
14547ac_res=`eval echo '${'$as_ac_Header'}'`
14548 { echo "$as_me:$LINENO: result: $ac_res" >&5
14549echo "${ECHO_T}$ac_res" >&6; }
14550else
14551 # Is the header compilable?
14552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14554cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h. */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h. */
14560$ac_includes_default
14561#include <$ac_header>
14562_ACEOF
14563rm -f conftest.$ac_objext
14564if { (ac_try="$ac_compile"
14565case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568esac
14569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; } &&
14587 { ac_try='test -s conftest.$ac_objext'
14588 { (case "(($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_try") 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_header_compiler=yes
14598else
14599 echo "$as_me: failed program was:" >&5
14600sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 ac_header_compiler=no
14603fi
14604
14605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14607echo "${ECHO_T}$ac_header_compiler" >&6; }
14608
14609# Is the header present?
14610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14612cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618#include <$ac_header>
14619_ACEOF
14620if { (ac_try="$ac_cpp conftest.$ac_ext"
14621case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } >/dev/null; then
14633 if test -s conftest.err; then
14634 ac_cpp_err=$ac_c_preproc_warn_flag
14635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14636 else
14637 ac_cpp_err=
14638 fi
14639else
14640 ac_cpp_err=yes
14641fi
14642if test -z "$ac_cpp_err"; then
14643 ac_header_preproc=yes
14644else
14645 echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 ac_header_preproc=no
14649fi
14650
14651rm -f conftest.err conftest.$ac_ext
14652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14653echo "${ECHO_T}$ac_header_preproc" >&6; }
14654
14655# So? What about this header?
14656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14657 yes:no: )
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14662 ac_header_preproc=yes
14663 ;;
14664 no:yes:* )
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14677 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014678## ------------------------------------ ##
14679## Report this to http://llvm.org/bugs/ ##
14680## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681_ASBOX
14682 ) | sed "s/^/$as_me: WARNING: /" >&2
14683 ;;
14684esac
14685{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689else
14690 eval "$as_ac_Header=\$ac_header_preproc"
14691fi
14692ac_res=`eval echo '${'$as_ac_Header'}'`
14693 { echo "$as_me:$LINENO: result: $ac_res" >&5
14694echo "${ECHO_T}$ac_res" >&6; }
14695
14696fi
14697if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014698 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014700_ACEOF
14701
14702fi
14703
14704done
14705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014706
14707
Douglas Gregor071d73d2009-05-18 17:21:34 +000014708for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709do
14710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716fi
14717ac_res=`eval echo '${'$as_ac_Header'}'`
14718 { echo "$as_me:$LINENO: result: $ac_res" >&5
14719echo "${ECHO_T}$ac_res" >&6; }
14720else
14721 # Is the header compilable?
14722{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h. */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h. */
14730$ac_includes_default
14731#include <$ac_header>
14732_ACEOF
14733rm -f conftest.$ac_objext
14734if { (ac_try="$ac_compile"
14735case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738esac
14739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_header_compiler=yes
14768else
14769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_compiler=no
14773fi
14774
14775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779# Is the header present?
14780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
14788#include <$ac_header>
14789_ACEOF
14790if { (ac_try="$ac_cpp conftest.$ac_ext"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806 else
14807 ac_cpp_err=
14808 fi
14809else
14810 ac_cpp_err=yes
14811fi
14812if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_header_preproc=no
14819fi
14820
14821rm -f conftest.err conftest.$ac_ext
14822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825# So? What about this header?
14826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14833 ;;
14834 no:yes:* )
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14847 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014848## ------------------------------------ ##
14849## Report this to http://llvm.org/bugs/ ##
14850## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014851_ASBOX
14852 ) | sed "s/^/$as_me: WARNING: /" >&2
14853 ;;
14854esac
14855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860 eval "$as_ac_Header=\$ac_header_preproc"
14861fi
14862ac_res=`eval echo '${'$as_ac_Header'}'`
14863 { echo "$as_me:$LINENO: result: $ac_res" >&5
14864echo "${ECHO_T}$ac_res" >&6; }
14865
14866fi
14867if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014868 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014870_ACEOF
14871
14872fi
14873
14874done
Reid Spencer59473af2004-12-25 07:31:29 +000014875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014876
14877
14878
14879
Daniel Dunbar3e462932011-02-03 02:40:02 +000014880
14881for 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 +000014882do
14883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889fi
14890ac_res=`eval echo '${'$as_ac_Header'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892echo "${ECHO_T}$ac_res" >&6; }
14893else
14894 # Is the header compilable?
14895{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14896echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14897cat >conftest.$ac_ext <<_ACEOF
14898/* confdefs.h. */
14899_ACEOF
14900cat confdefs.h >>conftest.$ac_ext
14901cat >>conftest.$ac_ext <<_ACEOF
14902/* end confdefs.h. */
14903$ac_includes_default
14904#include <$ac_header>
14905_ACEOF
14906rm -f conftest.$ac_objext
14907if { (ac_try="$ac_compile"
14908case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911esac
14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest.$ac_objext'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14934esac
14935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_header_compiler=yes
14941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_header_compiler=no
14946fi
14947
14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950echo "${ECHO_T}$ac_header_compiler" >&6; }
14951
14952# Is the header present?
14953{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14955cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961#include <$ac_header>
14962_ACEOF
14963if { (ac_try="$ac_cpp conftest.$ac_ext"
14964case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967esac
14968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } >/dev/null; then
14976 if test -s conftest.err; then
14977 ac_cpp_err=$ac_c_preproc_warn_flag
14978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14979 else
14980 ac_cpp_err=
14981 fi
14982else
14983 ac_cpp_err=yes
14984fi
14985if test -z "$ac_cpp_err"; then
14986 ac_header_preproc=yes
14987else
14988 echo "$as_me: failed program was:" >&5
14989sed 's/^/| /' conftest.$ac_ext >&5
14990
14991 ac_header_preproc=no
14992fi
14993
14994rm -f conftest.err conftest.$ac_ext
14995{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14996echo "${ECHO_T}$ac_header_preproc" >&6; }
14997
14998# So? What about this header?
14999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15000 yes:no: )
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15005 ac_header_preproc=yes
15006 ;;
15007 no:yes:* )
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15020 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015021## ------------------------------------ ##
15022## Report this to http://llvm.org/bugs/ ##
15023## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024_ASBOX
15025 ) | sed "s/^/$as_me: WARNING: /" >&2
15026 ;;
15027esac
15028{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
15033 eval "$as_ac_Header=\$ac_header_preproc"
15034fi
15035ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037echo "${ECHO_T}$ac_res" >&6; }
15038
15039fi
15040if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015041 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015043_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015044
15045fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015046
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015047done
15048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049
15050
15051
15052
Douglas Gregor01746742009-05-11 18:05:52 +000015053for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054do
15055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15061fi
15062ac_res=`eval echo '${'$as_ac_Header'}'`
15063 { echo "$as_me:$LINENO: result: $ac_res" >&5
15064echo "${ECHO_T}$ac_res" >&6; }
15065else
15066 # Is the header compilable?
15067{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15069cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
15075$ac_includes_default
15076#include <$ac_header>
15077_ACEOF
15078rm -f conftest.$ac_objext
15079if { (ac_try="$ac_compile"
15080case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_header_compiler=yes
15113else
15114 echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_header_compiler=no
15118fi
15119
15120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122echo "${ECHO_T}$ac_header_compiler" >&6; }
15123
15124# Is the header present?
15125{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15127cat >conftest.$ac_ext <<_ACEOF
15128/* confdefs.h. */
15129_ACEOF
15130cat confdefs.h >>conftest.$ac_ext
15131cat >>conftest.$ac_ext <<_ACEOF
15132/* end confdefs.h. */
15133#include <$ac_header>
15134_ACEOF
15135if { (ac_try="$ac_cpp conftest.$ac_ext"
15136case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139esac
15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15142 ac_status=$?
15143 grep -v '^ *+' conftest.er1 >conftest.err
15144 rm -f conftest.er1
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } >/dev/null; then
15148 if test -s conftest.err; then
15149 ac_cpp_err=$ac_c_preproc_warn_flag
15150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15151 else
15152 ac_cpp_err=
15153 fi
15154else
15155 ac_cpp_err=yes
15156fi
15157if test -z "$ac_cpp_err"; then
15158 ac_header_preproc=yes
15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 ac_header_preproc=no
15164fi
15165
15166rm -f conftest.err conftest.$ac_ext
15167{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168echo "${ECHO_T}$ac_header_preproc" >&6; }
15169
15170# So? What about this header?
15171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172 yes:no: )
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15177 ac_header_preproc=yes
15178 ;;
15179 no:yes:* )
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15192 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015193## ------------------------------------ ##
15194## Report this to http://llvm.org/bugs/ ##
15195## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015196_ASBOX
15197 ) | sed "s/^/$as_me: WARNING: /" >&2
15198 ;;
15199esac
15200{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204else
15205 eval "$as_ac_Header=\$ac_header_preproc"
15206fi
15207ac_res=`eval echo '${'$as_ac_Header'}'`
15208 { echo "$as_me:$LINENO: result: $ac_res" >&5
15209echo "${ECHO_T}$ac_res" >&6; }
15210
15211fi
15212if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015213 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015215_ACEOF
15216
15217fi
15218
15219done
15220
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015221
15222for ac_header in valgrind/valgrind.h
15223do
15224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15230fi
15231ac_res=`eval echo '${'$as_ac_Header'}'`
15232 { echo "$as_me:$LINENO: result: $ac_res" >&5
15233echo "${ECHO_T}$ac_res" >&6; }
15234else
15235 # Is the header compilable?
15236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15238cat >conftest.$ac_ext <<_ACEOF
15239/* confdefs.h. */
15240_ACEOF
15241cat confdefs.h >>conftest.$ac_ext
15242cat >>conftest.$ac_ext <<_ACEOF
15243/* end confdefs.h. */
15244$ac_includes_default
15245#include <$ac_header>
15246_ACEOF
15247rm -f conftest.$ac_objext
15248if { (ac_try="$ac_compile"
15249case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252esac
15253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_header_compiler=yes
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 ac_header_compiler=no
15287fi
15288
15289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15291echo "${ECHO_T}$ac_header_compiler" >&6; }
15292
15293# Is the header present?
15294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15296cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
15301/* end confdefs.h. */
15302#include <$ac_header>
15303_ACEOF
15304if { (ac_try="$ac_cpp conftest.$ac_ext"
15305case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308esac
15309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } >/dev/null; then
15317 if test -s conftest.err; then
15318 ac_cpp_err=$ac_c_preproc_warn_flag
15319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15320 else
15321 ac_cpp_err=
15322 fi
15323else
15324 ac_cpp_err=yes
15325fi
15326if test -z "$ac_cpp_err"; then
15327 ac_header_preproc=yes
15328else
15329 echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
15332 ac_header_preproc=no
15333fi
15334
15335rm -f conftest.err conftest.$ac_ext
15336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15337echo "${ECHO_T}$ac_header_preproc" >&6; }
15338
15339# So? What about this header?
15340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15341 yes:no: )
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15346 ac_header_preproc=yes
15347 ;;
15348 no:yes:* )
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15361 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015362## ------------------------------------ ##
15363## Report this to http://llvm.org/bugs/ ##
15364## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015365_ASBOX
15366 ) | sed "s/^/$as_me: WARNING: /" >&2
15367 ;;
15368esac
15369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373else
15374 eval "$as_ac_Header=\$ac_header_preproc"
15375fi
15376ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378echo "${ECHO_T}$ac_res" >&6; }
15379
15380fi
15381if test `eval echo '${'$as_ac_Header'}'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15384_ACEOF
15385
15386fi
15387
15388done
15389
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015390
15391for ac_header in fenv.h
15392do
15393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15399fi
15400ac_res=`eval echo '${'$as_ac_Header'}'`
15401 { echo "$as_me:$LINENO: result: $ac_res" >&5
15402echo "${ECHO_T}$ac_res" >&6; }
15403else
15404 # Is the header compilable?
15405{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15407cat >conftest.$ac_ext <<_ACEOF
15408/* confdefs.h. */
15409_ACEOF
15410cat confdefs.h >>conftest.$ac_ext
15411cat >>conftest.$ac_ext <<_ACEOF
15412/* end confdefs.h. */
15413$ac_includes_default
15414#include <$ac_header>
15415_ACEOF
15416rm -f conftest.$ac_objext
15417if { (ac_try="$ac_compile"
15418case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421esac
15422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_header_compiler=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455 ac_header_compiler=no
15456fi
15457
15458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460echo "${ECHO_T}$ac_header_compiler" >&6; }
15461
15462# Is the header present?
15463{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15465cat >conftest.$ac_ext <<_ACEOF
15466/* confdefs.h. */
15467_ACEOF
15468cat confdefs.h >>conftest.$ac_ext
15469cat >>conftest.$ac_ext <<_ACEOF
15470/* end confdefs.h. */
15471#include <$ac_header>
15472_ACEOF
15473if { (ac_try="$ac_cpp conftest.$ac_ext"
15474case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477esac
15478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15480 ac_status=$?
15481 grep -v '^ *+' conftest.er1 >conftest.err
15482 rm -f conftest.er1
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } >/dev/null; then
15486 if test -s conftest.err; then
15487 ac_cpp_err=$ac_c_preproc_warn_flag
15488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15489 else
15490 ac_cpp_err=
15491 fi
15492else
15493 ac_cpp_err=yes
15494fi
15495if test -z "$ac_cpp_err"; then
15496 ac_header_preproc=yes
15497else
15498 echo "$as_me: failed program was:" >&5
15499sed 's/^/| /' conftest.$ac_ext >&5
15500
15501 ac_header_preproc=no
15502fi
15503
15504rm -f conftest.err conftest.$ac_ext
15505{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15506echo "${ECHO_T}$ac_header_preproc" >&6; }
15507
15508# So? What about this header?
15509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15510 yes:no: )
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15515 ac_header_preproc=yes
15516 ;;
15517 no:yes:* )
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15530 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015531## ------------------------------------ ##
15532## Report this to http://llvm.org/bugs/ ##
15533## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015534_ASBOX
15535 ) | sed "s/^/$as_me: WARNING: /" >&2
15536 ;;
15537esac
15538{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15542else
15543 eval "$as_ac_Header=\$ac_header_preproc"
15544fi
15545ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547echo "${ECHO_T}$ac_res" >&6; }
15548
15549fi
15550if test `eval echo '${'$as_ac_Header'}'` = yes; then
15551 cat >>confdefs.h <<_ACEOF
15552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15553_ACEOF
15554
15555fi
15556
15557done
15558
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015559if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560
15561for ac_header in pthread.h
15562do
15563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569fi
15570ac_res=`eval echo '${'$as_ac_Header'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572echo "${ECHO_T}$ac_res" >&6; }
15573else
15574 # Is the header compilable?
15575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583$ac_includes_default
15584#include <$ac_header>
15585_ACEOF
15586rm -f conftest.$ac_objext
15587if { (ac_try="$ac_compile"
15588case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591esac
15592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_header_compiler=yes
15621else
15622 echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625 ac_header_compiler=no
15626fi
15627
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632# Is the header present?
15633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641#include <$ac_header>
15642_ACEOF
15643if { (ac_try="$ac_cpp conftest.$ac_ext"
15644case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647esac
15648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659 else
15660 ac_cpp_err=
15661 fi
15662else
15663 ac_cpp_err=yes
15664fi
15665if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15667else
15668 echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 ac_header_preproc=no
15672fi
15673
15674rm -f conftest.err conftest.$ac_ext
15675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678# So? What about this header?
15679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 yes:no: )
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15686 ;;
15687 no:yes:* )
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015701## ------------------------------------ ##
15702## Report this to http://llvm.org/bugs/ ##
15703## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015704_ASBOX
15705 ) | sed "s/^/$as_me: WARNING: /" >&2
15706 ;;
15707esac
15708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15712else
15713 eval "$as_ac_Header=\$ac_header_preproc"
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718
15719fi
15720if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015721 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015723_ACEOF
15724 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015725
15726else
15727 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015728
15729fi
15730
Reid Spencerbe3e4192007-08-17 05:45:26 +000015731done
Reid Spencer1000b732006-12-01 00:37:14 +000015732
15733else
15734 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015735
15736fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015737
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015738if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015739
15740
15741for ac_header in ffi.h ffi/ffi.h
15742do
15743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749fi
15750ac_res=`eval echo '${'$as_ac_Header'}'`
15751 { echo "$as_me:$LINENO: result: $ac_res" >&5
15752echo "${ECHO_T}$ac_res" >&6; }
15753else
15754 # Is the header compilable?
15755{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15757cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764#include <$ac_header>
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (ac_try="$ac_compile"
15768case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771esac
15772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_header_compiler=yes
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_header_compiler=no
15806fi
15807
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810echo "${ECHO_T}$ac_header_compiler" >&6; }
15811
15812# Is the header present?
15813{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15815cat >conftest.$ac_ext <<_ACEOF
15816/* confdefs.h. */
15817_ACEOF
15818cat confdefs.h >>conftest.$ac_ext
15819cat >>conftest.$ac_ext <<_ACEOF
15820/* end confdefs.h. */
15821#include <$ac_header>
15822_ACEOF
15823if { (ac_try="$ac_cpp conftest.$ac_ext"
15824case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827esac
15828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null; then
15836 if test -s conftest.err; then
15837 ac_cpp_err=$ac_c_preproc_warn_flag
15838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15839 else
15840 ac_cpp_err=
15841 fi
15842else
15843 ac_cpp_err=yes
15844fi
15845if test -z "$ac_cpp_err"; then
15846 ac_header_preproc=yes
15847else
15848 echo "$as_me: failed program was:" >&5
15849sed 's/^/| /' conftest.$ac_ext >&5
15850
15851 ac_header_preproc=no
15852fi
15853
15854rm -f conftest.err conftest.$ac_ext
15855{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15856echo "${ECHO_T}$ac_header_preproc" >&6; }
15857
15858# So? What about this header?
15859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860 yes:no: )
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15862echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15864echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15865 ac_header_preproc=yes
15866 ;;
15867 no:yes:* )
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15871echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15873echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15875echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15879echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15880 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015881## ------------------------------------ ##
15882## Report this to http://llvm.org/bugs/ ##
15883## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015884_ASBOX
15885 ) | sed "s/^/$as_me: WARNING: /" >&2
15886 ;;
15887esac
15888{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15892else
15893 eval "$as_ac_Header=\$ac_header_preproc"
15894fi
15895ac_res=`eval echo '${'$as_ac_Header'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897echo "${ECHO_T}$ac_res" >&6; }
15898
15899fi
15900if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015901 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015903_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015904
15905fi
15906
15907done
15908
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015909fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015910
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015911
Eric Christopher654dee42010-06-22 21:01:04 +000015912for ac_header in CrashReporterClient.h
15913do
15914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15920fi
15921ac_res=`eval echo '${'$as_ac_Header'}'`
15922 { echo "$as_me:$LINENO: result: $ac_res" >&5
15923echo "${ECHO_T}$ac_res" >&6; }
15924else
15925 # Is the header compilable?
15926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15928cat >conftest.$ac_ext <<_ACEOF
15929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
15933/* end confdefs.h. */
15934$ac_includes_default
15935#include <$ac_header>
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (ac_try="$ac_compile"
15939case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942esac
15943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_compile") 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15955esac
15956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965esac
15966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_header_compiler=yes
15972else
15973 echo "$as_me: failed program was:" >&5
15974sed 's/^/| /' conftest.$ac_ext >&5
15975
15976 ac_header_compiler=no
15977fi
15978
15979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15981echo "${ECHO_T}$ac_header_compiler" >&6; }
15982
15983# Is the header present?
15984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15986cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992#include <$ac_header>
15993_ACEOF
15994if { (ac_try="$ac_cpp conftest.$ac_ext"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } >/dev/null; then
16007 if test -s conftest.err; then
16008 ac_cpp_err=$ac_c_preproc_warn_flag
16009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16010 else
16011 ac_cpp_err=
16012 fi
16013else
16014 ac_cpp_err=yes
16015fi
16016if test -z "$ac_cpp_err"; then
16017 ac_header_preproc=yes
16018else
16019 echo "$as_me: failed program was:" >&5
16020sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 ac_header_preproc=no
16023fi
16024
16025rm -f conftest.err conftest.$ac_ext
16026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16027echo "${ECHO_T}$ac_header_preproc" >&6; }
16028
16029# So? What about this header?
16030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16031 yes:no: )
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16036 ac_header_preproc=yes
16037 ;;
16038 no:yes:* )
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16051 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016052## ------------------------------------ ##
16053## Report this to http://llvm.org/bugs/ ##
16054## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016055_ASBOX
16056 ) | sed "s/^/$as_me: WARNING: /" >&2
16057 ;;
16058esac
16059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063else
16064 eval "$as_ac_Header=\$ac_header_preproc"
16065fi
16066ac_res=`eval echo '${'$as_ac_Header'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068echo "${ECHO_T}$ac_res" >&6; }
16069
16070fi
16071if test `eval echo '${'$as_ac_Header'}'` = yes; then
16072 cat >>confdefs.h <<_ACEOF
16073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16074_ACEOF
16075
16076fi
16077
16078done
16079
16080
Eric Christopher51e57132010-12-07 02:05:42 +000016081{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16082echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016083cat >conftest.$ac_ext <<_ACEOF
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016089extern const char *__crashreporter_info__;
16090 int main() {
16091 __crashreporter_info__ = "test";
16092 return 0;
16093 }
Eric Christopher481d4022010-12-03 07:45:22 +000016094
Eric Christopher481d4022010-12-03 07:45:22 +000016095_ACEOF
16096rm -f conftest.$ac_objext conftest$ac_exeext
16097if { (ac_try="$ac_link"
16098case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16124esac
16125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016130 { echo "$as_me:$LINENO: result: yes" >&5
16131echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016132
16133cat >>confdefs.h <<\_ACEOF
16134#define HAVE_CRASHREPORTER_INFO 1
16135_ACEOF
16136
Eric Christopher51e57132010-12-07 02:05:42 +000016137else
16138 echo "$as_me: failed program was:" >&5
16139sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 { echo "$as_me:$LINENO: result: no" >&5
16142echo "${ECHO_T}no" >&6; }
16143
16144cat >>confdefs.h <<\_ACEOF
16145#define HAVE_CRASHREPORTER_INFO 0
16146_ACEOF
16147
Eric Christopher481d4022010-12-03 07:45:22 +000016148fi
Eric Christopher654dee42010-06-22 21:01:04 +000016149
Eric Christopher51e57132010-12-07 02:05:42 +000016150rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152
16153
Reid Spencer8085cff2005-01-16 02:58:39 +000016154
Torok Edwin871384f2010-01-26 08:50:50 +000016155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016156 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16157echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16158if test "${ac_cv_huge_val_sanity+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016160else
16161
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016162 ac_ext=cpp
16163ac_cpp='$CXXCPP $CPPFLAGS'
16164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016167
Eric Christopherc7718502010-03-02 05:06:54 +000016168 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016169 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016170 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016171 ac_cv_huge_val_sanity=yes
16172else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016173 cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016178/* end confdefs.h. */
16179#include <math.h>
16180int
16181main ()
16182{
16183double x = HUGE_VAL; return x != x;
16184 ;
16185 return 0;
16186}
16187_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016188rm -f conftest$ac_exeext
16189if { (ac_try="$ac_link"
16190case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193esac
16194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_link") 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16199 { (case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202esac
16203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_try") 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016208 ac_cv_huge_val_sanity=yes
16209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016210 echo "$as_me: program exited with status $ac_status" >&5
16211echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214( exit $ac_status )
16215ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016217rm -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 +000016218fi
16219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016220
Eric Christopherc7718502010-03-02 05:06:54 +000016221 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016222 ac_ext=c
16223ac_cpp='$CPP $CPPFLAGS'
16224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226ac_compiler_gnu=$ac_cv_c_compiler_gnu
16227
16228
16229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016230{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16231echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016232 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16233
16234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016235{ echo "$as_me:$LINENO: checking for pid_t" >&5
16236echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16237if test "${ac_cv_type_pid_t+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239else
16240 cat >conftest.$ac_ext <<_ACEOF
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
16246$ac_includes_default
16247typedef pid_t ac__type_new_;
16248int
16249main ()
16250{
16251if ((ac__type_new_ *) 0)
16252 return 0;
16253if (sizeof (ac__type_new_))
16254 return 0;
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext
16260if { (ac_try="$ac_compile"
16261case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264esac
16265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_compile") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287esac
16288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_try") 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_cv_type_pid_t=yes
16294else
16295 echo "$as_me: failed program was:" >&5
16296sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016298 ac_cv_type_pid_t=no
16299fi
16300
16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302fi
16303{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16304echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16305if test $ac_cv_type_pid_t = yes; then
16306 :
John Criswell7a73b802003-06-30 21:59:07 +000016307else
16308
16309cat >>confdefs.h <<_ACEOF
16310#define pid_t int
16311_ACEOF
16312
16313fi
16314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016315{ echo "$as_me:$LINENO: checking for size_t" >&5
16316echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16317if test "${ac_cv_type_size_t+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319else
16320 cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327typedef size_t ac__type_new_;
16328int
16329main ()
16330{
16331if ((ac__type_new_ *) 0)
16332 return 0;
16333if (sizeof (ac__type_new_))
16334 return 0;
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext
16340if { (ac_try="$ac_compile"
16341case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344esac
16345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_compile") 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
16364 { (case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367esac
16368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_try") 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_cv_type_size_t=yes
16374else
16375 echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016378 ac_cv_type_size_t=no
16379fi
16380
16381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382fi
16383{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16384echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16385if test $ac_cv_type_size_t = yes; then
16386 :
John Criswell7a73b802003-06-30 21:59:07 +000016387else
16388
16389cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016390#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016391_ACEOF
16392
16393fi
16394
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016395
16396cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016397#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016398_ACEOF
16399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016400{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16401echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16402if test "${ac_cv_struct_tm+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016405 cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016410/* end confdefs.h. */
16411#include <sys/types.h>
16412#include <time.h>
16413
16414int
16415main ()
16416{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016418 ;
16419 return 0;
16420}
16421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016422rm -f conftest.$ac_objext
16423if { (ac_try="$ac_compile"
16424case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427esac
16428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_compile") 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16437 { (case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440esac
16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_try") 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
16447 { (case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16450esac
16451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_try") 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016456 ac_cv_struct_tm=time.h
16457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016463
Reid Spencera773bd52006-08-04 18:18:08 +000016464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016466{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16467echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016468if test $ac_cv_struct_tm = sys/time.h; then
16469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016470cat >>confdefs.h <<\_ACEOF
16471#define TM_IN_SYS_TIME 1
16472_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016473
16474fi
16475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016476{ echo "$as_me:$LINENO: checking for int64_t" >&5
16477echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16478if test "${ac_cv_type_int64_t+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480else
16481 cat >conftest.$ac_ext <<_ACEOF
16482/* confdefs.h. */
16483_ACEOF
16484cat confdefs.h >>conftest.$ac_ext
16485cat >>conftest.$ac_ext <<_ACEOF
16486/* end confdefs.h. */
16487$ac_includes_default
16488typedef int64_t ac__type_new_;
16489int
16490main ()
16491{
16492if ((ac__type_new_ *) 0)
16493 return 0;
16494if (sizeof (ac__type_new_))
16495 return 0;
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext
16501if { (ac_try="$ac_compile"
16502case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505esac
16506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_compile") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528esac
16529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_type_int64_t=yes
16535else
16536 echo "$as_me: failed program was:" >&5
16537sed 's/^/| /' conftest.$ac_ext >&5
16538
16539 ac_cv_type_int64_t=no
16540fi
16541
16542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543fi
16544{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16545echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16546if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016547
16548cat >>confdefs.h <<_ACEOF
16549#define HAVE_INT64_T 1
16550_ACEOF
16551
16552
16553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016554 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16555echo "$as_me: error: Type int64_t required but not found" >&2;}
16556 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016557fi
16558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016559{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16560echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16561if test "${ac_cv_type_uint64_t+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563else
16564 cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570$ac_includes_default
16571typedef uint64_t ac__type_new_;
16572int
16573main ()
16574{
16575if ((ac__type_new_ *) 0)
16576 return 0;
16577if (sizeof (ac__type_new_))
16578 return 0;
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (ac_try="$ac_compile"
16585case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588esac
16589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601esac
16602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_type_uint64_t=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_cv_type_uint64_t=no
16623fi
16624
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626fi
16627{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16628echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16629if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016630
16631cat >>confdefs.h <<_ACEOF
16632#define HAVE_UINT64_T 1
16633_ACEOF
16634
16635
16636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016637 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16638echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16639if test "${ac_cv_type_u_int64_t+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 cat >conftest.$ac_ext <<_ACEOF
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
16648$ac_includes_default
16649typedef u_int64_t ac__type_new_;
16650int
16651main ()
16652{
16653if ((ac__type_new_ *) 0)
16654 return 0;
16655if (sizeof (ac__type_new_))
16656 return 0;
16657 ;
16658 return 0;
16659}
16660_ACEOF
16661rm -f conftest.$ac_objext
16662if { (ac_try="$ac_compile"
16663case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689esac
16690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_type_u_int64_t=yes
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_cv_type_u_int64_t=no
16701fi
16702
16703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704fi
16705{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16706echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16707if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016708
16709cat >>confdefs.h <<_ACEOF
16710#define HAVE_U_INT64_T 1
16711_ACEOF
16712
16713
Misha Brukmanceca9042004-09-02 23:02:30 +000016714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016715 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16716echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16717 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016718fi
16719
John Criswell679ff312004-09-02 18:44:44 +000016720fi
16721
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016722
16723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016724
16725
16726
16727
16728
16729
16730
Reid Spencerdf3be822006-01-23 08:15:53 +000016731for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016732do
16733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16734{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16738else
16739 cat >conftest.$ac_ext <<_ACEOF
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16747#define $ac_func innocuous_$ac_func
16748
16749/* System header to define __stub macros and hopefully few prototypes,
16750 which can conflict with char $ac_func (); below.
16751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16752 <limits.h> exists even on freestanding compilers. */
16753
16754#ifdef __STDC__
16755# include <limits.h>
16756#else
16757# include <assert.h>
16758#endif
16759
16760#undef $ac_func
16761
16762/* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16765#ifdef __cplusplus
16766extern "C"
16767#endif
16768char $ac_func ();
16769/* The GNU C library defines this for functions which it implements
16770 to always fail with ENOSYS. Some functions are actually named
16771 something starting with __ and the normal name is an alias. */
16772#if defined __stub_$ac_func || defined __stub___$ac_func
16773choke me
16774#endif
16775
16776int
16777main ()
16778{
16779return $ac_func ();
16780 ;
16781 return 0;
16782}
16783_ACEOF
16784rm -f conftest.$ac_objext conftest$ac_exeext
16785if { (ac_try="$ac_link"
16786case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789esac
16790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799 { (case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_try") 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_try") 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 eval "$as_ac_var=yes"
16819else
16820 echo "$as_me: failed program was:" >&5
16821sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 eval "$as_ac_var=no"
16824fi
16825
16826rm -f core conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16828fi
16829ac_res=`eval echo '${'$as_ac_var'}'`
16830 { echo "$as_me:$LINENO: result: $ac_res" >&5
16831echo "${ECHO_T}$ac_res" >&6; }
16832if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016833 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016835_ACEOF
16836
16837fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016838done
John Criswell7a73b802003-06-30 21:59:07 +000016839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016840
16841
16842
16843
Reid Spencer96cf5872007-07-13 10:05:30 +000016844for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016845do
16846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851else
16852 cat >conftest.$ac_ext <<_ACEOF
16853/* confdefs.h. */
16854_ACEOF
16855cat confdefs.h >>conftest.$ac_ext
16856cat >>conftest.$ac_ext <<_ACEOF
16857/* end confdefs.h. */
16858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16860#define $ac_func innocuous_$ac_func
16861
16862/* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char $ac_func (); below.
16864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865 <limits.h> exists even on freestanding compilers. */
16866
16867#ifdef __STDC__
16868# include <limits.h>
16869#else
16870# include <assert.h>
16871#endif
16872
16873#undef $ac_func
16874
16875/* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878#ifdef __cplusplus
16879extern "C"
16880#endif
16881char $ac_func ();
16882/* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
16885#if defined __stub_$ac_func || defined __stub___$ac_func
16886choke me
16887#endif
16888
16889int
16890main ()
16891{
16892return $ac_func ();
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext conftest$ac_exeext
16898if { (ac_try="$ac_link"
16899case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 eval "$as_ac_var=yes"
16932else
16933 echo "$as_me: failed program was:" >&5
16934sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 eval "$as_ac_var=no"
16937fi
16938
16939rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941fi
16942ac_res=`eval echo '${'$as_ac_var'}'`
16943 { echo "$as_me:$LINENO: result: $ac_res" >&5
16944echo "${ECHO_T}$ac_res" >&6; }
16945if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016946 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016948_ACEOF
16949
16950fi
16951done
16952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016953
16954
16955
16956
16957
Reid Spencerb90645c2007-02-16 19:17:20 +000016958for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016959do
16960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965else
16966 cat >conftest.$ac_ext <<_ACEOF
16967/* confdefs.h. */
16968_ACEOF
16969cat confdefs.h >>conftest.$ac_ext
16970cat >>conftest.$ac_ext <<_ACEOF
16971/* end confdefs.h. */
16972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16974#define $ac_func innocuous_$ac_func
16975
16976/* System header to define __stub macros and hopefully few prototypes,
16977 which can conflict with char $ac_func (); below.
16978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979 <limits.h> exists even on freestanding compilers. */
16980
16981#ifdef __STDC__
16982# include <limits.h>
16983#else
16984# include <assert.h>
16985#endif
16986
16987#undef $ac_func
16988
16989/* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16992#ifdef __cplusplus
16993extern "C"
16994#endif
16995char $ac_func ();
16996/* The GNU C library defines this for functions which it implements
16997 to always fail with ENOSYS. Some functions are actually named
16998 something starting with __ and the normal name is an alias. */
16999#if defined __stub_$ac_func || defined __stub___$ac_func
17000choke me
17001#endif
17002
17003int
17004main ()
17005{
17006return $ac_func ();
17007 ;
17008 return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext conftest$ac_exeext
17012if { (ac_try="$ac_link"
17013case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 eval "$as_ac_var=yes"
17046else
17047 echo "$as_me: failed program was:" >&5
17048sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 eval "$as_ac_var=no"
17051fi
17052
17053rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055fi
17056ac_res=`eval echo '${'$as_ac_var'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058echo "${ECHO_T}$ac_res" >&6; }
17059if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017062_ACEOF
17063
17064fi
17065done
17066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017067
17068
17069
Reid Spencerb90645c2007-02-16 19:17:20 +000017070for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017071do
17072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17073{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17075if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17077else
17078 cat >conftest.$ac_ext <<_ACEOF
17079/* confdefs.h. */
17080_ACEOF
17081cat confdefs.h >>conftest.$ac_ext
17082cat >>conftest.$ac_ext <<_ACEOF
17083/* end confdefs.h. */
17084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17086#define $ac_func innocuous_$ac_func
17087
17088/* System header to define __stub macros and hopefully few prototypes,
17089 which can conflict with char $ac_func (); below.
17090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17091 <limits.h> exists even on freestanding compilers. */
17092
17093#ifdef __STDC__
17094# include <limits.h>
17095#else
17096# include <assert.h>
17097#endif
17098
17099#undef $ac_func
17100
17101/* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17104#ifdef __cplusplus
17105extern "C"
17106#endif
17107char $ac_func ();
17108/* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
17111#if defined __stub_$ac_func || defined __stub___$ac_func
17112choke me
17113#endif
17114
17115int
17116main ()
17117{
17118return $ac_func ();
17119 ;
17120 return 0;
17121}
17122_ACEOF
17123rm -f conftest.$ac_objext conftest$ac_exeext
17124if { (ac_try="$ac_link"
17125case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128esac
17129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_link") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 eval "$as_ac_var=yes"
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 eval "$as_ac_var=no"
17163fi
17164
17165rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167fi
17168ac_res=`eval echo '${'$as_ac_var'}'`
17169 { echo "$as_me:$LINENO: result: $ac_res" >&5
17170echo "${ECHO_T}$ac_res" >&6; }
17171if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017172 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017174_ACEOF
17175
17176fi
17177done
17178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017179
17180
17181
17182
17183
Eric Christophere4291822010-04-16 05:14:21 +000017184
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017185
17186for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017187do
17188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193else
17194 cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
17200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17202#define $ac_func innocuous_$ac_func
17203
17204/* System header to define __stub macros and hopefully few prototypes,
17205 which can conflict with char $ac_func (); below.
17206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17207 <limits.h> exists even on freestanding compilers. */
17208
17209#ifdef __STDC__
17210# include <limits.h>
17211#else
17212# include <assert.h>
17213#endif
17214
17215#undef $ac_func
17216
17217/* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17220#ifdef __cplusplus
17221extern "C"
17222#endif
17223char $ac_func ();
17224/* The GNU C library defines this for functions which it implements
17225 to always fail with ENOSYS. Some functions are actually named
17226 something starting with __ and the normal name is an alias. */
17227#if defined __stub_$ac_func || defined __stub___$ac_func
17228choke me
17229#endif
17230
17231int
17232main ()
17233{
17234return $ac_func ();
17235 ;
17236 return 0;
17237}
17238_ACEOF
17239rm -f conftest.$ac_objext conftest$ac_exeext
17240if { (ac_try="$ac_link"
17241case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244esac
17245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_link") 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest$ac_exeext'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17267esac
17268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 eval "$as_ac_var=yes"
17274else
17275 echo "$as_me: failed program was:" >&5
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 eval "$as_ac_var=no"
17279fi
17280
17281rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283fi
17284ac_res=`eval echo '${'$as_ac_var'}'`
17285 { echo "$as_me:$LINENO: result: $ac_res" >&5
17286echo "${ECHO_T}$ac_res" >&6; }
17287if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017288 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017290_ACEOF
17291
17292fi
17293done
Reid Spencerdf3be822006-01-23 08:15:53 +000017294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017295
17296
17297
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017298
17299for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017300do
17301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306else
17307 cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315#define $ac_func innocuous_$ac_func
17316
17317/* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17321
17322#ifdef __STDC__
17323# include <limits.h>
17324#else
17325# include <assert.h>
17326#endif
17327
17328#undef $ac_func
17329
17330/* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336char $ac_func ();
17337/* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340#if defined __stub_$ac_func || defined __stub___$ac_func
17341choke me
17342#endif
17343
17344int
17345main ()
17346{
17347return $ac_func ();
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext conftest$ac_exeext
17353if { (ac_try="$ac_link"
17354case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 eval "$as_ac_var=yes"
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 eval "$as_ac_var=no"
17392fi
17393
17394rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396fi
17397ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result: $ac_res" >&5
17399echo "${ECHO_T}$ac_res" >&6; }
17400if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017401 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017403_ACEOF
17404
17405fi
17406done
17407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017408
17409
17410
17411
Chris Lattner511f11d2005-11-14 07:25:50 +000017412for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017413do
17414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419else
17420 cat >conftest.$ac_ext <<_ACEOF
17421/* confdefs.h. */
17422_ACEOF
17423cat confdefs.h >>conftest.$ac_ext
17424cat >>conftest.$ac_ext <<_ACEOF
17425/* end confdefs.h. */
17426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428#define $ac_func innocuous_$ac_func
17429
17430/* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17434
17435#ifdef __STDC__
17436# include <limits.h>
17437#else
17438# include <assert.h>
17439#endif
17440
17441#undef $ac_func
17442
17443/* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446#ifdef __cplusplus
17447extern "C"
17448#endif
17449char $ac_func ();
17450/* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453#if defined __stub_$ac_func || defined __stub___$ac_func
17454choke me
17455#endif
17456
17457int
17458main ()
17459{
17460return $ac_func ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext conftest$ac_exeext
17466if { (ac_try="$ac_link"
17467case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
17471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_link") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483esac
17484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493esac
17494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 eval "$as_ac_var=yes"
17500else
17501 echo "$as_me: failed program was:" >&5
17502sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 eval "$as_ac_var=no"
17505fi
17506
17507rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509fi
17510ac_res=`eval echo '${'$as_ac_var'}'`
17511 { echo "$as_me:$LINENO: result: $ac_res" >&5
17512echo "${ECHO_T}$ac_res" >&6; }
17513if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017514 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017516_ACEOF
17517
17518fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017519done
John Criswell7a73b802003-06-30 21:59:07 +000017520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017521
17522
17523
17524
Daniel Dunbar3e462932011-02-03 02:40:02 +000017525
17526for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017527do
17528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533else
17534 cat >conftest.$ac_ext <<_ACEOF
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
17540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542#define $ac_func innocuous_$ac_func
17543
17544/* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17548
17549#ifdef __STDC__
17550# include <limits.h>
17551#else
17552# include <assert.h>
17553#endif
17554
17555#undef $ac_func
17556
17557/* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17560#ifdef __cplusplus
17561extern "C"
17562#endif
17563char $ac_func ();
17564/* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567#if defined __stub_$ac_func || defined __stub___$ac_func
17568choke me
17569#endif
17570
17571int
17572main ()
17573{
17574return $ac_func ();
17575 ;
17576 return 0;
17577}
17578_ACEOF
17579rm -f conftest.$ac_objext conftest$ac_exeext
17580if { (ac_try="$ac_link"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17614else
17615 echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 eval "$as_ac_var=no"
17619fi
17620
17621rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623fi
17624ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result: $ac_res" >&5
17626echo "${ECHO_T}$ac_res" >&6; }
17627if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017628 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017630_ACEOF
17631
17632fi
17633done
17634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017635{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17636echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17637if test "${llvm_cv_c_printf_a+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017639else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017641ac_cpp='$CPP $CPPFLAGS'
17642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017647 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017649 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017651 /* confdefs.h. */
17652_ACEOF
17653cat confdefs.h >>conftest.$ac_ext
17654cat >>conftest.$ac_ext <<_ACEOF
17655/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017656
John Criswella0137d32003-10-13 16:22:01 +000017657#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658#include <stdlib.h>
17659
John Criswella0137d32003-10-13 16:22:01 +000017660int
17661main ()
17662{
17663
Reid Spencer2706f8c2004-09-19 23:53:36 +000017664volatile double A, B;
17665char Buffer[100];
17666A = 1;
17667A /= 10.0;
17668sprintf(Buffer, "%a", A);
17669B = atof(Buffer);
17670if (A != B)
17671 return (1);
17672if (A != 0x1.999999999999ap-4)
17673 return (1);
17674return (0);
John Criswella0137d32003-10-13 16:22:01 +000017675 ;
17676 return 0;
17677}
17678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017679rm -f conftest$ac_exeext
17680if { (ac_try="$ac_link"
17681case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17684esac
17685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_link") 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690 { (case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693esac
17694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_try") 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017699 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017701 echo "$as_me: program exited with status $ac_status" >&5
17702echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
17705( exit $ac_status )
17706llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708rm -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 +000017709fi
Reid Spencera773bd52006-08-04 18:18:08 +000017710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017711
Reid Spencer2706f8c2004-09-19 23:53:36 +000017712 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017713ac_cpp='$CPP $CPPFLAGS'
17714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017719{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17720echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017721 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017723cat >>confdefs.h <<\_ACEOF
17724#define HAVE_PRINTF_A 1
17725_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017726
Reid Spencer2706f8c2004-09-19 23:53:36 +000017727 fi
John Criswella0137d32003-10-13 16:22:01 +000017728
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017730{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17731echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17732if test "${ac_cv_func_rand48+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017734else
Reid Spencera773bd52006-08-04 18:18:08 +000017735 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017736ac_cpp='$CXXCPP $CPPFLAGS'
17737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017746/* end confdefs.h. */
17747#include <stdlib.h>
17748int
17749main ()
17750{
17751srand48(0);lrand48();drand48();
17752 ;
17753 return 0;
17754}
17755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017756rm -f conftest.$ac_objext
17757if { (ac_try="$ac_compile"
17758case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761esac
17762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_compile") 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17771 { (case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774esac
17775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_try") 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17784esac
17785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_try") 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017790 ac_cv_func_rand48=yes
17791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017792 echo "$as_me: failed program was:" >&5
17793sed 's/^/| /' conftest.$ac_ext >&5
17794
17795 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017797
Reid Spencera773bd52006-08-04 18:18:08 +000017798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017799 ac_ext=c
17800ac_cpp='$CPP $CPPFLAGS'
17801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17803ac_compiler_gnu=$ac_cv_c_compiler_gnu
17804
17805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017806{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17807echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017808
17809if test "$ac_cv_func_rand48" = "yes" ; then
17810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017811cat >>confdefs.h <<\_ACEOF
17812#define HAVE_RAND48 1
17813_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017814
17815fi
John Criswell0021c312004-02-13 21:57:29 +000017816
17817
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017818{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17819echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17820if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822else
17823 cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829$ac_includes_default
17830int
17831main ()
17832{
17833#ifndef strerror_s
17834 char *p = (char *) strerror_s;
17835 return !p;
17836#endif
17837
17838 ;
17839 return 0;
17840}
17841_ACEOF
17842rm -f conftest.$ac_objext
17843if { (ac_try="$ac_compile"
17844case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847esac
17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870esac
17871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_try") 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_have_decl_strerror_s=yes
17877else
17878 echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ac_cv_have_decl_strerror_s=no
17882fi
17883
17884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885fi
17886{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17887echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17888if test $ac_cv_have_decl_strerror_s = yes; then
17889
17890cat >>confdefs.h <<_ACEOF
17891#define HAVE_DECL_STRERROR_S 1
17892_ACEOF
17893
17894
17895else
17896 cat >>confdefs.h <<_ACEOF
17897#define HAVE_DECL_STRERROR_S 0
17898_ACEOF
17899
17900
17901fi
17902
17903
17904
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017905if test "$llvm_cv_os_type" = "MingW" ; then
17906 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17907echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17908if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17910else
17911 ac_check_lib_save_LIBS=$LIBS
17912LIBS="-lgcc $LIBS"
17913cat >conftest.$ac_ext <<_ACEOF
17914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
17919
17920/* Override any GCC internal prototype to avoid an error.
17921 Use char because int might match the return type of a GCC
17922 builtin and then its argument prototype would still apply. */
17923#ifdef __cplusplus
17924extern "C"
17925#endif
17926char _alloca ();
17927int
17928main ()
17929{
17930return _alloca ();
17931 ;
17932 return 0;
17933}
17934_ACEOF
17935rm -f conftest.$ac_objext conftest$ac_exeext
17936if { (ac_try="$ac_link"
17937case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940esac
17941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_link") 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953esac
17954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest$ac_exeext'
17960 { (case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17963esac
17964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_try") 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_lib_gcc__alloca=yes
17970else
17971 echo "$as_me: failed program was:" >&5
17972sed 's/^/| /' conftest.$ac_ext >&5
17973
17974 ac_cv_lib_gcc__alloca=no
17975fi
17976
17977rm -f core conftest.err conftest.$ac_objext \
17978 conftest$ac_exeext conftest.$ac_ext
17979LIBS=$ac_check_lib_save_LIBS
17980fi
17981{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17982echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17983if test $ac_cv_lib_gcc__alloca = yes; then
17984
17985cat >>confdefs.h <<\_ACEOF
17986#define HAVE__ALLOCA 1
17987_ACEOF
17988
17989fi
17990
17991 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17992echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17993if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995else
17996 ac_check_lib_save_LIBS=$LIBS
17997LIBS="-lgcc $LIBS"
17998cat >conftest.$ac_ext <<_ACEOF
17999/* confdefs.h. */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
18003/* end confdefs.h. */
18004
18005/* Override any GCC internal prototype to avoid an error.
18006 Use char because int might match the return type of a GCC
18007 builtin and then its argument prototype would still apply. */
18008#ifdef __cplusplus
18009extern "C"
18010#endif
18011char __alloca ();
18012int
18013main ()
18014{
18015return __alloca ();
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020rm -f conftest.$ac_objext conftest$ac_exeext
18021if { (ac_try="$ac_link"
18022case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025esac
18026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_link") 2>conftest.er1
18028 ac_status=$?
18029 grep -v '^ *+' conftest.er1 >conftest.err
18030 rm -f conftest.er1
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18035 { (case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038esac
18039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_try") 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest$ac_exeext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048esac
18049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_try") 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_lib_gcc___alloca=yes
18055else
18056 echo "$as_me: failed program was:" >&5
18057sed 's/^/| /' conftest.$ac_ext >&5
18058
18059 ac_cv_lib_gcc___alloca=no
18060fi
18061
18062rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064LIBS=$ac_check_lib_save_LIBS
18065fi
18066{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18067echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18068if test $ac_cv_lib_gcc___alloca = yes; then
18069
18070cat >>confdefs.h <<\_ACEOF
18071#define HAVE___ALLOCA 1
18072_ACEOF
18073
18074fi
18075
18076 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18077echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18078if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080else
18081 ac_check_lib_save_LIBS=$LIBS
18082LIBS="-lgcc $LIBS"
18083cat >conftest.$ac_ext <<_ACEOF
18084/* confdefs.h. */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h. */
18089
18090/* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18093#ifdef __cplusplus
18094extern "C"
18095#endif
18096char __chkstk ();
18097int
18098main ()
18099{
18100return __chkstk ();
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext conftest$ac_exeext
18106if { (ac_try="$ac_link"
18107case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123esac
18124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest$ac_exeext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133esac
18134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_lib_gcc___chkstk=yes
18140else
18141 echo "$as_me: failed program was:" >&5
18142sed 's/^/| /' conftest.$ac_ext >&5
18143
18144 ac_cv_lib_gcc___chkstk=no
18145fi
18146
18147rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149LIBS=$ac_check_lib_save_LIBS
18150fi
18151{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18152echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18153if test $ac_cv_lib_gcc___chkstk = yes; then
18154
18155cat >>confdefs.h <<\_ACEOF
18156#define HAVE___CHKSTK 1
18157_ACEOF
18158
18159fi
18160
18161 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18162echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18163if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
18166 ac_check_lib_save_LIBS=$LIBS
18167LIBS="-lgcc $LIBS"
18168cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174
18175/* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char ___chkstk ();
18182int
18183main ()
18184{
18185return ___chkstk ();
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext conftest$ac_exeext
18191if { (ac_try="$ac_link"
18192case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218esac
18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_gcc____chkstk=yes
18225else
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_cv_lib_gcc____chkstk=no
18230fi
18231
18232rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234LIBS=$ac_check_lib_save_LIBS
18235fi
18236{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18237echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18238if test $ac_cv_lib_gcc____chkstk = yes; then
18239
18240cat >>confdefs.h <<\_ACEOF
18241#define HAVE____CHKSTK 1
18242_ACEOF
18243
18244fi
18245
18246
18247 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18248echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18249if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252 ac_check_lib_save_LIBS=$LIBS
18253LIBS="-lgcc $LIBS"
18254cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260
18261/* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
18264#ifdef __cplusplus
18265extern "C"
18266#endif
18267char __ashldi3 ();
18268int
18269main ()
18270{
18271return __ashldi3 ();
18272 ;
18273 return 0;
18274}
18275_ACEOF
18276rm -f conftest.$ac_objext conftest$ac_exeext
18277if { (ac_try="$ac_link"
18278case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_link") 2>conftest.er1
18284 ac_status=$?
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304esac
18305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 ac_cv_lib_gcc___ashldi3=yes
18311else
18312 echo "$as_me: failed program was:" >&5
18313sed 's/^/| /' conftest.$ac_ext >&5
18314
18315 ac_cv_lib_gcc___ashldi3=no
18316fi
18317
18318rm -f core conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18320LIBS=$ac_check_lib_save_LIBS
18321fi
18322{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18323echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18324if test $ac_cv_lib_gcc___ashldi3 = yes; then
18325
18326cat >>confdefs.h <<\_ACEOF
18327#define HAVE___ASHLDI3 1
18328_ACEOF
18329
18330fi
18331
18332 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18333echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18334if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18336else
18337 ac_check_lib_save_LIBS=$LIBS
18338LIBS="-lgcc $LIBS"
18339cat >conftest.$ac_ext <<_ACEOF
18340/* confdefs.h. */
18341_ACEOF
18342cat confdefs.h >>conftest.$ac_ext
18343cat >>conftest.$ac_ext <<_ACEOF
18344/* end confdefs.h. */
18345
18346/* Override any GCC internal prototype to avoid an error.
18347 Use char because int might match the return type of a GCC
18348 builtin and then its argument prototype would still apply. */
18349#ifdef __cplusplus
18350extern "C"
18351#endif
18352char __ashrdi3 ();
18353int
18354main ()
18355{
18356return __ashrdi3 ();
18357 ;
18358 return 0;
18359}
18360_ACEOF
18361rm -f conftest.$ac_objext conftest$ac_exeext
18362if { (ac_try="$ac_link"
18363case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366esac
18367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_link") 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376 { (case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379esac
18380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_try") 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389esac
18390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_try") 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_lib_gcc___ashrdi3=yes
18396else
18397 echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_cv_lib_gcc___ashrdi3=no
18401fi
18402
18403rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405LIBS=$ac_check_lib_save_LIBS
18406fi
18407{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18408echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18409if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18410
18411cat >>confdefs.h <<\_ACEOF
18412#define HAVE___ASHRDI3 1
18413_ACEOF
18414
18415fi
18416
18417 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18418echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18419if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18421else
18422 ac_check_lib_save_LIBS=$LIBS
18423LIBS="-lgcc $LIBS"
18424cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
18430
18431/* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18434#ifdef __cplusplus
18435extern "C"
18436#endif
18437char __divdi3 ();
18438int
18439main ()
18440{
18441return __divdi3 ();
18442 ;
18443 return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext conftest$ac_exeext
18447if { (ac_try="$ac_link"
18448case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18464esac
18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_gcc___divdi3=yes
18481else
18482 echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_cv_lib_gcc___divdi3=no
18486fi
18487
18488rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490LIBS=$ac_check_lib_save_LIBS
18491fi
18492{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18493echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18494if test $ac_cv_lib_gcc___divdi3 = yes; then
18495
18496cat >>confdefs.h <<\_ACEOF
18497#define HAVE___DIVDI3 1
18498_ACEOF
18499
18500fi
18501
18502 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18503echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18504if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 ac_check_lib_save_LIBS=$LIBS
18508LIBS="-lgcc $LIBS"
18509cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h. */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
18514/* end confdefs.h. */
18515
18516/* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18519#ifdef __cplusplus
18520extern "C"
18521#endif
18522char __fixdfdi ();
18523int
18524main ()
18525{
18526return __fixdfdi ();
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext conftest$ac_exeext
18532if { (ac_try="$ac_link"
18533case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18539 ac_status=$?
18540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559esac
18560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___fixdfdi=yes
18566else
18567 echo "$as_me: failed program was:" >&5
18568sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_cv_lib_gcc___fixdfdi=no
18571fi
18572
18573rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575LIBS=$ac_check_lib_save_LIBS
18576fi
18577{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18578echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18579if test $ac_cv_lib_gcc___fixdfdi = yes; then
18580
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE___FIXDFDI 1
18583_ACEOF
18584
18585fi
18586
18587 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18588echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18589if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 ac_check_lib_save_LIBS=$LIBS
18593LIBS="-lgcc $LIBS"
18594cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
18600
18601/* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607char __fixsfdi ();
18608int
18609main ()
18610{
18611return __fixsfdi ();
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext conftest$ac_exeext
18617if { (ac_try="$ac_link"
18618case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18624 ac_status=$?
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644esac
18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___fixsfdi=yes
18651else
18652 echo "$as_me: failed program was:" >&5
18653sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_cv_lib_gcc___fixsfdi=no
18656fi
18657
18658rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660LIBS=$ac_check_lib_save_LIBS
18661fi
18662{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18663echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18664if test $ac_cv_lib_gcc___fixsfdi = yes; then
18665
18666cat >>confdefs.h <<\_ACEOF
18667#define HAVE___FIXSFDI 1
18668_ACEOF
18669
18670fi
18671
18672 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18673echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18674if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676else
18677 ac_check_lib_save_LIBS=$LIBS
18678LIBS="-lgcc $LIBS"
18679cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
18685
18686/* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689#ifdef __cplusplus
18690extern "C"
18691#endif
18692char __floatdidf ();
18693int
18694main ()
18695{
18696return __floatdidf ();
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext conftest$ac_exeext
18702if { (ac_try="$ac_link"
18703case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18709 ac_status=$?
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc___floatdidf=yes
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_lib_gcc___floatdidf=no
18741fi
18742
18743rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745LIBS=$ac_check_lib_save_LIBS
18746fi
18747{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18748echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18749if test $ac_cv_lib_gcc___floatdidf = yes; then
18750
18751cat >>confdefs.h <<\_ACEOF
18752#define HAVE___FLOATDIDF 1
18753_ACEOF
18754
18755fi
18756
18757 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18758echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18759if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762 ac_check_lib_save_LIBS=$LIBS
18763LIBS="-lgcc $LIBS"
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770
18771/* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18774#ifdef __cplusplus
18775extern "C"
18776#endif
18777char __lshrdi3 ();
18778int
18779main ()
18780{
18781return __lshrdi3 ();
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext conftest$ac_exeext
18787if { (ac_try="$ac_link"
18788case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_lib_gcc___lshrdi3=yes
18821else
18822 echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 ac_cv_lib_gcc___lshrdi3=no
18826fi
18827
18828rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830LIBS=$ac_check_lib_save_LIBS
18831fi
18832{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18833echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18834if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18835
18836cat >>confdefs.h <<\_ACEOF
18837#define HAVE___LSHRDI3 1
18838_ACEOF
18839
18840fi
18841
18842 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18843echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18844if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 ac_check_lib_save_LIBS=$LIBS
18848LIBS="-lgcc $LIBS"
18849cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18859#ifdef __cplusplus
18860extern "C"
18861#endif
18862char __moddi3 ();
18863int
18864main ()
18865{
18866return __moddi3 ();
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext conftest$ac_exeext
18872if { (ac_try="$ac_link"
18873case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18899esac
18900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_gcc___moddi3=yes
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_lib_gcc___moddi3=no
18911fi
18912
18913rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915LIBS=$ac_check_lib_save_LIBS
18916fi
18917{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18918echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18919if test $ac_cv_lib_gcc___moddi3 = yes; then
18920
18921cat >>confdefs.h <<\_ACEOF
18922#define HAVE___MODDI3 1
18923_ACEOF
18924
18925fi
18926
18927 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18928echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18929if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 ac_check_lib_save_LIBS=$LIBS
18933LIBS="-lgcc $LIBS"
18934cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
18940
18941/* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18944#ifdef __cplusplus
18945extern "C"
18946#endif
18947char __udivdi3 ();
18948int
18949main ()
18950{
18951return __udivdi3 ();
18952 ;
18953 return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext conftest$ac_exeext
18957if { (ac_try="$ac_link"
18958case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gcc___udivdi3=yes
18991else
18992 echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ac_cv_lib_gcc___udivdi3=no
18996fi
18997
18998rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000LIBS=$ac_check_lib_save_LIBS
19001fi
19002{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19003echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19004if test $ac_cv_lib_gcc___udivdi3 = yes; then
19005
19006cat >>confdefs.h <<\_ACEOF
19007#define HAVE___UDIVDI3 1
19008_ACEOF
19009
19010fi
19011
19012 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19013echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19014if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016else
19017 ac_check_lib_save_LIBS=$LIBS
19018LIBS="-lgcc $LIBS"
19019cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
19025
19026/* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032char __umoddi3 ();
19033int
19034main ()
19035{
19036return __umoddi3 ();
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext conftest$ac_exeext
19042if { (ac_try="$ac_link"
19043case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19069esac
19070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_cv_lib_gcc___umoddi3=yes
19076else
19077 echo "$as_me: failed program was:" >&5
19078sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_cv_lib_gcc___umoddi3=no
19081fi
19082
19083rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085LIBS=$ac_check_lib_save_LIBS
19086fi
19087{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19088echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19089if test $ac_cv_lib_gcc___umoddi3 = yes; then
19090
19091cat >>confdefs.h <<\_ACEOF
19092#define HAVE___UMODDI3 1
19093_ACEOF
19094
19095fi
19096
19097
19098 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19099echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19100if test "${ac_cv_lib_gcc___main+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102else
19103 ac_check_lib_save_LIBS=$LIBS
19104LIBS="-lgcc $LIBS"
19105cat >conftest.$ac_ext <<_ACEOF
19106/* confdefs.h. */
19107_ACEOF
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
19111
19112/* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19115#ifdef __cplusplus
19116extern "C"
19117#endif
19118char __main ();
19119int
19120main ()
19121{
19122return __main ();
19123 ;
19124 return 0;
19125}
19126_ACEOF
19127rm -f conftest.$ac_objext conftest$ac_exeext
19128if { (ac_try="$ac_link"
19129case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132esac
19133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19135 ac_status=$?
19136 grep -v '^ *+' conftest.er1 >conftest.err
19137 rm -f conftest.er1
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19142 { (case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145esac
19146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_try") 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19155esac
19156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_try") 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_gcc___main=yes
19162else
19163 echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 ac_cv_lib_gcc___main=no
19167fi
19168
19169rm -f core conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19171LIBS=$ac_check_lib_save_LIBS
19172fi
19173{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19174echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19175if test $ac_cv_lib_gcc___main = yes; then
19176
19177cat >>confdefs.h <<\_ACEOF
19178#define HAVE___MAIN 1
19179_ACEOF
19180
19181fi
19182
19183 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19184echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19185if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187else
19188 ac_check_lib_save_LIBS=$LIBS
19189LIBS="-lgcc $LIBS"
19190cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
19196
19197/* Override any GCC internal prototype to avoid an error.
19198 Use char because int might match the return type of a GCC
19199 builtin and then its argument prototype would still apply. */
19200#ifdef __cplusplus
19201extern "C"
19202#endif
19203char __cmpdi2 ();
19204int
19205main ()
19206{
19207return __cmpdi2 ();
19208 ;
19209 return 0;
19210}
19211_ACEOF
19212rm -f conftest.$ac_objext conftest$ac_exeext
19213if { (ac_try="$ac_link"
19214case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19217esac
19218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_link") 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19227 { (case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230esac
19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_try") 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240esac
19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_try") 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_lib_gcc___cmpdi2=yes
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_cv_lib_gcc___cmpdi2=no
19252fi
19253
19254rm -f core conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
19256LIBS=$ac_check_lib_save_LIBS
19257fi
19258{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19259echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19260if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19261
19262cat >>confdefs.h <<\_ACEOF
19263#define HAVE___CMPDI2 1
19264_ACEOF
19265
19266fi
19267
19268fi
19269
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019270if test "$llvm_cv_os_type" = "MingW" ; then
19271 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19272echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19273 cat >conftest.$ac_ext <<_ACEOF
19274#include <windows.h>
19275#include <imagehlp.h>
19276extern void foo(PENUMLOADED_MODULES_CALLBACK);
19277extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19278_ACEOF
19279rm -f conftest.$ac_objext
19280if { (ac_try="$ac_compile"
19281case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19284esac
19285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_compile") 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19294 { (case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19297esac
19298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_try") 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try='test -s conftest.$ac_objext'
19304 { (case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307esac
19308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_try") 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313
19314 { echo "$as_me:$LINENO: result: yes" >&5
19315echo "${ECHO_T}yes" >&6; }
19316 llvm_cv_win32_elmcb_pcstr="PCSTR"
19317
19318else
19319 echo "$as_me: failed program was:" >&5
19320sed 's/^/| /' conftest.$ac_ext >&5
19321
19322
19323 { echo "$as_me:$LINENO: result: no" >&5
19324echo "${ECHO_T}no" >&6; }
19325 llvm_cv_win32_elmcb_pcstr="PSTR"
19326
19327fi
19328
19329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330
19331cat >>confdefs.h <<_ACEOF
19332#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19333_ACEOF
19334
19335fi
19336
Torok Edwin871384f2010-01-26 08:50:50 +000019337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019338{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19339echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19340if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019342else
Reid Spencera773bd52006-08-04 18:18:08 +000019343 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019344ac_cpp='$CXXCPP $CPPFLAGS'
19345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019349 cat >conftest.$ac_ext <<_ACEOF
19350/* confdefs.h. */
19351_ACEOF
19352cat confdefs.h >>conftest.$ac_ext
19353cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019354/* end confdefs.h. */
19355#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019356int
19357main ()
19358{
19359float f; isnan(f);
19360 ;
19361 return 0;
19362}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019363_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019364rm -f conftest.$ac_objext
19365if { (ac_try="$ac_compile"
19366case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_compile") 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382esac
19383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; } &&
19388 { ac_try='test -s conftest.$ac_objext'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392esac
19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019398 ac_cv_func_isnan_in_math_h=yes
19399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019400 echo "$as_me: failed program was:" >&5
19401sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019405
Reid Spencera773bd52006-08-04 18:18:08 +000019406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019407 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019408ac_cpp='$CPP $CPPFLAGS'
19409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411ac_compiler_gnu=$ac_cv_c_compiler_gnu
19412
19413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19415echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019416
19417
19418if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019420cat >>confdefs.h <<\_ACEOF
19421#define HAVE_ISNAN_IN_MATH_H 1
19422_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019423
Reid Spencerabec8f92004-10-27 23:03:44 +000019424fi
19425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019426{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19427echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19428if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019430else
Reid Spencera773bd52006-08-04 18:18:08 +000019431 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019432ac_cpp='$CXXCPP $CPPFLAGS'
19433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019437 cat >conftest.$ac_ext <<_ACEOF
19438/* confdefs.h. */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019442/* end confdefs.h. */
19443#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019444int
19445main ()
19446{
19447float f; isnan(f);
19448 ;
19449 return 0;
19450}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019451_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019452rm -f conftest.$ac_objext
19453if { (ac_try="$ac_compile"
19454case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470esac
19471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19480esac
19481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_try") 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019486 ac_cv_func_isnan_in_cmath=yes
19487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019493
Reid Spencera773bd52006-08-04 18:18:08 +000019494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019495 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019496ac_cpp='$CPP $CPPFLAGS'
19497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499ac_compiler_gnu=$ac_cv_c_compiler_gnu
19500
19501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19503echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019504
19505if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019507cat >>confdefs.h <<\_ACEOF
19508#define HAVE_ISNAN_IN_CMATH 1
19509_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019510
Reid Spencerabec8f92004-10-27 23:03:44 +000019511fi
19512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019513{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19514echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19515if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019517else
Reid Spencera773bd52006-08-04 18:18:08 +000019518 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019519ac_cpp='$CXXCPP $CPPFLAGS'
19520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019529/* end confdefs.h. */
19530#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019531int
19532main ()
19533{
19534float f; std::isnan(f);
19535 ;
19536 return 0;
19537}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019539rm -f conftest.$ac_objext
19540if { (ac_try="$ac_compile"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557esac
19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
19564 { (case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19567esac
19568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_try") 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019573 ac_cv_func_std_isnan_in_cmath=yes
19574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575 echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019580
Reid Spencera773bd52006-08-04 18:18:08 +000019581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019582 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019583ac_cpp='$CPP $CPPFLAGS'
19584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586ac_compiler_gnu=$ac_cv_c_compiler_gnu
19587
19588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019589{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19590echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019591
19592if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019594cat >>confdefs.h <<\_ACEOF
19595#define HAVE_STD_ISNAN_IN_CMATH 1
19596_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019597
Reid Spencerabec8f92004-10-27 23:03:44 +000019598fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019599
19600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019601{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19602echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19603if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019605else
Reid Spencera773bd52006-08-04 18:18:08 +000019606 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019607ac_cpp='$CXXCPP $CPPFLAGS'
19608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019612 cat >conftest.$ac_ext <<_ACEOF
19613/* confdefs.h. */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019617/* end confdefs.h. */
19618#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019619int
19620main ()
19621{
19622float f; isinf(f);
19623 ;
19624 return 0;
19625}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019627rm -f conftest.$ac_objext
19628if { (ac_try="$ac_compile"
19629case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_compile") 2>conftest.er1
19635 ac_status=$?
19636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } &&
19641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19642 { (case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19645esac
19646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_try") 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest.$ac_objext'
19652 { (case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655esac
19656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_try") 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019661 ac_cv_func_isinf_in_math_h=yes
19662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019668
Reid Spencera773bd52006-08-04 18:18:08 +000019669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019670 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019671ac_cpp='$CPP $CPPFLAGS'
19672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675
19676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019677{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19678echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019679
19680if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682cat >>confdefs.h <<\_ACEOF
19683#define HAVE_ISINF_IN_MATH_H 1
19684_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019685
Reid Spencerabec8f92004-10-27 23:03:44 +000019686fi
19687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019688{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19689echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19690if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019692else
Reid Spencera773bd52006-08-04 18:18:08 +000019693 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019694ac_cpp='$CXXCPP $CPPFLAGS'
19695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699 cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019704/* end confdefs.h. */
19705#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019706int
19707main ()
19708{
19709float f; isinf(f);
19710 ;
19711 return 0;
19712}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019713_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019714rm -f conftest.$ac_objext
19715if { (ac_try="$ac_compile"
19716case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_compile") 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
19728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732esac
19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742esac
19743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_try") 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019748 ac_cv_func_isinf_in_cmath=yes
19749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019750 echo "$as_me: failed program was:" >&5
19751sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019755
Reid Spencera773bd52006-08-04 18:18:08 +000019756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019757 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019758ac_cpp='$CPP $CPPFLAGS'
19759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762
19763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019764{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19765echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019766
19767if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019769cat >>confdefs.h <<\_ACEOF
19770#define HAVE_ISINF_IN_CMATH 1
19771_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019772
Reid Spencerabec8f92004-10-27 23:03:44 +000019773fi
19774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019775{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19776echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19777if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019779else
Reid Spencera773bd52006-08-04 18:18:08 +000019780 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019781ac_cpp='$CXXCPP $CPPFLAGS'
19782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019786 cat >conftest.$ac_ext <<_ACEOF
19787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019791/* end confdefs.h. */
19792#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019793int
19794main ()
19795{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019796float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019797 ;
19798 return 0;
19799}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019800_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801rm -f conftest.$ac_objext
19802if { (ac_try="$ac_compile"
19803case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806esac
19807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819esac
19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
19826 { (case "(($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_try") 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019835 ac_cv_func_std_isinf_in_cmath=yes
19836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019837 echo "$as_me: failed program was:" >&5
19838sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019842
Reid Spencera773bd52006-08-04 18:18:08 +000019843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019844 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019845ac_cpp='$CPP $CPPFLAGS'
19846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
19850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019851{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19852echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019853
19854if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019856cat >>confdefs.h <<\_ACEOF
19857#define HAVE_STD_ISINF_IN_CMATH 1
19858_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019859
Reid Spencerabec8f92004-10-27 23:03:44 +000019860fi
19861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019862{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19863echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19864if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019866else
Reid Spencera773bd52006-08-04 18:18:08 +000019867 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019868ac_cpp='$CXXCPP $CPPFLAGS'
19869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019878/* end confdefs.h. */
19879#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019880int
19881main ()
19882{
19883float f; finite(f);
19884 ;
19885 return 0;
19886}
Brian Gaeked59a6472004-07-21 03:33:58 +000019887_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019888rm -f conftest.$ac_objext
19889if { (ac_try="$ac_compile"
19890case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893esac
19894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_compile") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (case "(($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_try") 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019922 ac_cv_func_finite_in_ieeefp_h=yes
19923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019929
Reid Spencera773bd52006-08-04 18:18:08 +000019930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019931 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019932ac_cpp='$CPP $CPPFLAGS'
19933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19935ac_compiler_gnu=$ac_cv_c_compiler_gnu
19936
19937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019938{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19939echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019940
Brian Gaeke6802b552004-10-28 05:06:45 +000019941if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943cat >>confdefs.h <<\_ACEOF
19944#define HAVE_FINITE_IN_IEEEFP_H 1
19945_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019946
Reid Spencerabec8f92004-10-27 23:03:44 +000019947fi
19948
19949
19950
Reid Spencer30fe5262007-01-20 07:48:49 +000019951if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019952
19953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019954for ac_header in stdlib.h unistd.h
19955do
19956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962fi
19963ac_res=`eval echo '${'$as_ac_Header'}'`
19964 { echo "$as_me:$LINENO: result: $ac_res" >&5
19965echo "${ECHO_T}$ac_res" >&6; }
19966else
19967 # Is the header compilable?
19968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19970cat >conftest.$ac_ext <<_ACEOF
19971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
19976$ac_includes_default
19977#include <$ac_header>
19978_ACEOF
19979rm -f conftest.$ac_objext
19980if { (ac_try="$ac_compile"
19981case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984esac
19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_compile") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20007esac
20008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_header_compiler=yes
20014else
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020018 ac_header_compiler=no
20019fi
20020
20021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023echo "${ECHO_T}$ac_header_compiler" >&6; }
20024
20025# Is the header present?
20026{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20028cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
20034#include <$ac_header>
20035_ACEOF
20036if { (ac_try="$ac_cpp conftest.$ac_ext"
20037case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } >/dev/null; then
20049 if test -s conftest.err; then
20050 ac_cpp_err=$ac_c_preproc_warn_flag
20051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20052 else
20053 ac_cpp_err=
20054 fi
20055else
20056 ac_cpp_err=yes
20057fi
20058if test -z "$ac_cpp_err"; then
20059 ac_header_preproc=yes
20060else
20061 echo "$as_me: failed program was:" >&5
20062sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 ac_header_preproc=no
20065fi
20066
20067rm -f conftest.err conftest.$ac_ext
20068{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069echo "${ECHO_T}$ac_header_preproc" >&6; }
20070
20071# So? What about this header?
20072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073 yes:no: )
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20078 ac_header_preproc=yes
20079 ;;
20080 no:yes:* )
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20093 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020094## ------------------------------------ ##
20095## Report this to http://llvm.org/bugs/ ##
20096## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020097_ASBOX
20098 ) | sed "s/^/$as_me: WARNING: /" >&2
20099 ;;
20100esac
20101{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105else
20106 eval "$as_ac_Header=\$ac_header_preproc"
20107fi
20108ac_res=`eval echo '${'$as_ac_Header'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110echo "${ECHO_T}$ac_res" >&6; }
20111
20112fi
20113if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020114 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020116_ACEOF
20117
20118fi
20119
20120done
20121
20122
20123for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020124do
20125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20126{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20128if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20130else
20131 cat >conftest.$ac_ext <<_ACEOF
20132/* confdefs.h. */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h. */
20137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20139#define $ac_func innocuous_$ac_func
20140
20141/* System header to define __stub macros and hopefully few prototypes,
20142 which can conflict with char $ac_func (); below.
20143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20144 <limits.h> exists even on freestanding compilers. */
20145
20146#ifdef __STDC__
20147# include <limits.h>
20148#else
20149# include <assert.h>
20150#endif
20151
20152#undef $ac_func
20153
20154/* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20157#ifdef __cplusplus
20158extern "C"
20159#endif
20160char $ac_func ();
20161/* The GNU C library defines this for functions which it implements
20162 to always fail with ENOSYS. Some functions are actually named
20163 something starting with __ and the normal name is an alias. */
20164#if defined __stub_$ac_func || defined __stub___$ac_func
20165choke me
20166#endif
20167
20168int
20169main ()
20170{
20171return $ac_func ();
20172 ;
20173 return 0;
20174}
20175_ACEOF
20176rm -f conftest.$ac_objext conftest$ac_exeext
20177if { (ac_try="$ac_link"
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_link") 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_exeext'
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 eval "$as_ac_var=yes"
20211else
20212 echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 eval "$as_ac_var=no"
20216fi
20217
20218rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20220fi
20221ac_res=`eval echo '${'$as_ac_var'}'`
20222 { echo "$as_me:$LINENO: result: $ac_res" >&5
20223echo "${ECHO_T}$ac_res" >&6; }
20224if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020225 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020227_ACEOF
20228
20229fi
20230done
20231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232{ echo "$as_me:$LINENO: checking for working mmap" >&5
20233echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20234if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020237 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020238 ac_cv_func_mmap_fixed_mapped=no
20239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020240 cat >conftest.$ac_ext <<_ACEOF
20241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020246$ac_includes_default
20247/* malloc might have been renamed as rpl_malloc. */
20248#undef malloc
20249
20250/* Thanks to Mike Haertel and Jim Avera for this test.
20251 Here is a matrix of mmap possibilities:
20252 mmap private not fixed
20253 mmap private fixed at somewhere currently unmapped
20254 mmap private fixed at somewhere already mapped
20255 mmap shared not fixed
20256 mmap shared fixed at somewhere currently unmapped
20257 mmap shared fixed at somewhere already mapped
20258 For private mappings, we should verify that changes cannot be read()
20259 back from the file, nor mmap's back from the file at a different
20260 address. (There have been systems where private was not correctly
20261 implemented like the infamous i386 svr4.0, and systems where the
20262 VM page cache was not coherent with the file system buffer cache
20263 like early versions of FreeBSD and possibly contemporary NetBSD.)
20264 For shared mappings, we should conversely verify that changes get
20265 propagated back to all the places they're supposed to be.
20266
20267 Grep wants private fixed already mapped.
20268 The main things grep needs to know about mmap are:
20269 * does it exist and is it safe to write into the mmap'd area
20270 * how to use it (BSD variants) */
20271
20272#include <fcntl.h>
20273#include <sys/mman.h>
20274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020275#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020276char *malloc ();
20277#endif
20278
20279/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020280#if !HAVE_GETPAGESIZE
20281/* Assume that all systems that can run configure have sys/param.h. */
20282# if !HAVE_SYS_PARAM_H
20283# define HAVE_SYS_PARAM_H 1
20284# endif
20285
John Criswell7a73b802003-06-30 21:59:07 +000020286# ifdef _SC_PAGESIZE
20287# define getpagesize() sysconf(_SC_PAGESIZE)
20288# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020290# include <sys/param.h>
20291# ifdef EXEC_PAGESIZE
20292# define getpagesize() EXEC_PAGESIZE
20293# else /* no EXEC_PAGESIZE */
20294# ifdef NBPG
20295# define getpagesize() NBPG * CLSIZE
20296# ifndef CLSIZE
20297# define CLSIZE 1
20298# endif /* no CLSIZE */
20299# else /* no NBPG */
20300# ifdef NBPC
20301# define getpagesize() NBPC
20302# else /* no NBPC */
20303# ifdef PAGESIZE
20304# define getpagesize() PAGESIZE
20305# endif /* PAGESIZE */
20306# endif /* no NBPC */
20307# endif /* no NBPG */
20308# endif /* no EXEC_PAGESIZE */
20309# else /* no HAVE_SYS_PARAM_H */
20310# define getpagesize() 8192 /* punt totally */
20311# endif /* no HAVE_SYS_PARAM_H */
20312# endif /* no _SC_PAGESIZE */
20313
20314#endif /* no HAVE_GETPAGESIZE */
20315
20316int
20317main ()
20318{
20319 char *data, *data2, *data3;
20320 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020321 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020322
20323 pagesize = getpagesize ();
20324
20325 /* First, make a file with some known garbage in it. */
20326 data = (char *) malloc (pagesize);
20327 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020328 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020329 for (i = 0; i < pagesize; ++i)
20330 *(data + i) = rand ();
20331 umask (0);
20332 fd = creat ("conftest.mmap", 0600);
20333 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020334 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020335 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020337 close (fd);
20338
20339 /* Next, try to mmap the file at a fixed address which already has
20340 something else allocated at it. If we can, also make sure that
20341 we see the same garbage. */
20342 fd = open ("conftest.mmap", O_RDWR);
20343 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020344 return 1;
20345 data2 = (char *) malloc (2 * pagesize);
20346 if (!data2)
20347 return 1;
20348 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020349 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020350 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020351 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020352 for (i = 0; i < pagesize; ++i)
20353 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020355
20356 /* Finally, make sure that changes to the mapped area do not
20357 percolate back to the file as seen by read(). (This is a bug on
20358 some variants of i386 svr4.0.) */
20359 for (i = 0; i < pagesize; ++i)
20360 *(data2 + i) = *(data2 + i) + 1;
20361 data3 = (char *) malloc (pagesize);
20362 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020364 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020366 for (i = 0; i < pagesize; ++i)
20367 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020368 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020369 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020370 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020371}
20372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373rm -f 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>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20387esac
20388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020393 ac_cv_func_mmap_fixed_mapped=yes
20394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020395 echo "$as_me: program exited with status $ac_status" >&5
20396echo "$as_me: failed program was:" >&5
20397sed 's/^/| /' conftest.$ac_ext >&5
20398
20399( exit $ac_status )
20400ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402rm -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 +000020403fi
Reid Spencera773bd52006-08-04 18:18:08 +000020404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020405
John Criswell7a73b802003-06-30 21:59:07 +000020406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20408echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020409if test $ac_cv_func_mmap_fixed_mapped = yes; then
20410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020411cat >>confdefs.h <<\_ACEOF
20412#define HAVE_MMAP 1
20413_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020414
20415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020418 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20419echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20420if test "${ac_cv_func_mmap_file+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020422else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020423 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020424ac_cpp='$CPP $CPPFLAGS'
20425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20427ac_compiler_gnu=$ac_cv_c_compiler_gnu
20428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020430 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020432 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434 /* confdefs.h. */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020439
John Criswell7a73b802003-06-30 21:59:07 +000020440#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020441#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020442#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020443
20444int
20445main ()
20446{
John Criswell7a73b802003-06-30 21:59:07 +000020447
20448 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020449 fd = creat ("foo",0777);
20450 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20451 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020452 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020453 ;
20454 return 0;
20455}
John Criswell7a73b802003-06-30 21:59:07 +000020456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457rm -f conftest$ac_exeext
20458if { (ac_try="$ac_link"
20459case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462esac
20463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471esac
20472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020477 ac_cv_func_mmap_file=yes
20478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020479 echo "$as_me: program exited with status $ac_status" >&5
20480echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483( exit $ac_status )
20484ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486rm -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 +000020487fi
Reid Spencera773bd52006-08-04 18:18:08 +000020488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489
John Criswell7a73b802003-06-30 21:59:07 +000020490 ac_ext=c
20491ac_cpp='$CPP $CPPFLAGS'
20492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
20496
20497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20499echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020500if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502cat >>confdefs.h <<\_ACEOF
20503#define HAVE_MMAP_FILE
20504_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020505
20506 MMAP_FILE=yes
20507
20508fi
20509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20511echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20512if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020514else
Reid Spencer582a23c2004-12-29 07:07:57 +000020515 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020516 ac_cv_need_dev_zero_for_mmap=yes
20517 else
20518 ac_cv_need_dev_zero_for_mmap=no
20519 fi
20520
20521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020522{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20523echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020524if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526cat >>confdefs.h <<\_ACEOF
20527#define NEED_DEV_ZERO_FOR_MMAP 1
20528_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020529
20530fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020531
Reid Spencer30fe5262007-01-20 07:48:49 +000020532 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20533 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020534 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20535echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020536 fi
20537 if test "$ac_cv_func_mmap_file" = "no"
20538 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020539 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20540echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020541 fi
John Criswellb13092b2003-07-22 21:00:24 +000020542fi
John Criswell7a73b802003-06-30 21:59:07 +000020543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20545echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020546ac_ext=cpp
20547ac_cpp='$CXXCPP $CPPFLAGS'
20548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552cat >conftest.$ac_ext <<_ACEOF
20553/* confdefs.h. */
20554_ACEOF
20555cat confdefs.h >>conftest.$ac_ext
20556cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020557/* end confdefs.h. */
20558int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020559 volatile unsigned long val = 1;
20560 __sync_synchronize();
20561 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020562 __sync_add_and_fetch(&val, 1);
20563 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020564 return 0;
20565 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020566
20567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568rm -f conftest.$ac_objext conftest$ac_exeext
20569if { (ac_try="$ac_link"
20570case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573esac
20574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20576 ac_status=$?
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583 { (case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_try") 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest$ac_exeext'
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596esac
20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020602 ac_ext=c
20603ac_cpp='$CPP $CPPFLAGS'
20604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606ac_compiler_gnu=$ac_cv_c_compiler_gnu
20607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608 { echo "$as_me:$LINENO: result: yes" >&5
20609echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020612#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020614
Owen Andersond4b272b2009-05-18 23:58:51 +000020615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616 echo "$as_me: failed program was:" >&5
20617sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020619 { echo "$as_me:$LINENO: result: no" >&5
20620echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020623#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624_ACEOF
20625
20626 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20627echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020629
Owen Andersond4b272b2009-05-18 23:58:51 +000020630rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020631 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020632
John Criswell7a73b802003-06-30 21:59:07 +000020633
Nick Lewycky4372e692009-09-29 06:18:23 +000020634if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20636echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20637if test "${llvm_cv_linux_mixed+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020639else
20640 ac_ext=c
20641ac_cpp='$CPP $CPPFLAGS'
20642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020646 cat >conftest.$ac_ext <<_ACEOF
20647/* confdefs.h. */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020651/* end confdefs.h. */
20652#ifndef __x86_64__
20653 error: Not x86-64 even if uname says so!
20654 #endif
20655
20656int
20657main ()
20658{
20659
20660 ;
20661 return 0;
20662}
20663_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020664rm -f conftest.$ac_objext
20665if { (ac_try="$ac_compile"
20666case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20669esac
20670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_compile") 2>conftest.er1
20672 ac_status=$?
20673 grep -v '^ *+' conftest.er1 >conftest.err
20674 rm -f conftest.er1
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20679 { (case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682esac
20683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_try") 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; } &&
20688 { ac_try='test -s conftest.$ac_objext'
20689 { (case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20692esac
20693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694 (eval "$ac_try") 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020698 llvm_cv_linux_mixed=no
20699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020705
Nick Lewycky4372e692009-09-29 06:18:23 +000020706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 ac_ext=c
20708ac_cpp='$CPP $CPPFLAGS'
20709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712
20713
20714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020715{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20716echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020717
20718 if test "$llvm_cv_linux_mixed" = "yes"; then
20719 llvm_cv_target_arch="x86"
20720 ARCH="x86"
20721 fi
20722fi
20723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724
Reid Spencer9372f152007-07-30 20:13:24 +000020725for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726do
20727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20732else
20733 cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h. */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h. */
20739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20741#define $ac_func innocuous_$ac_func
20742
20743/* System header to define __stub macros and hopefully few prototypes,
20744 which can conflict with char $ac_func (); below.
20745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20746 <limits.h> exists even on freestanding compilers. */
20747
20748#ifdef __STDC__
20749# include <limits.h>
20750#else
20751# include <assert.h>
20752#endif
20753
20754#undef $ac_func
20755
20756/* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20759#ifdef __cplusplus
20760extern "C"
20761#endif
20762char $ac_func ();
20763/* The GNU C library defines this for functions which it implements
20764 to always fail with ENOSYS. Some functions are actually named
20765 something starting with __ and the normal name is an alias. */
20766#if defined __stub_$ac_func || defined __stub___$ac_func
20767choke me
20768#endif
20769
20770int
20771main ()
20772{
20773return $ac_func ();
20774 ;
20775 return 0;
20776}
20777_ACEOF
20778rm -f conftest.$ac_objext conftest$ac_exeext
20779if { (ac_try="$ac_link"
20780case "(($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_link") 2>conftest.er1
20786 ac_status=$?
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796esac
20797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20799 ac_status=$?
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; } &&
20802 { ac_try='test -s conftest$ac_exeext'
20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20806esac
20807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 eval "$as_ac_var=yes"
20813else
20814 echo "$as_me: failed program was:" >&5
20815sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 eval "$as_ac_var=no"
20818fi
20819
20820rm -f core conftest.err conftest.$ac_objext \
20821 conftest$ac_exeext conftest.$ac_ext
20822fi
20823ac_res=`eval echo '${'$as_ac_var'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825echo "${ECHO_T}$ac_res" >&6; }
20826if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020827 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020829_ACEOF
20830
20831fi
20832done
20833
20834
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020835SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020836
20837
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020838SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20839
20840
Jeff Cohen28783c32007-01-12 18:22:38 +000020841if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020842 prefix="/usr/local"
20843fi
Reid Spencere9de0912004-08-20 09:03:57 +000020844eval LLVM_PREFIX="${prefix}";
20845eval LLVM_BINDIR="${prefix}/bin";
20846eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020847eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020848eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020849eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020850eval LLVM_INCLUDEDIR="${prefix}/include";
20851eval LLVM_INFODIR="${prefix}/info";
20852eval LLVM_MANDIR="${prefix}/man";
20853LLVM_CONFIGTIME=`date`
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020865if test "${ENABLE_TIMESTAMPS}" = "0"; then
20866 LLVM_CONFIGTIME="(timestamp not enabled)"
20867fi
20868
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020869
Reid Spencere9de0912004-08-20 09:03:57 +000020870cat >>confdefs.h <<_ACEOF
20871#define LLVM_PREFIX "$LLVM_PREFIX"
20872_ACEOF
20873
20874
20875cat >>confdefs.h <<_ACEOF
20876#define LLVM_BINDIR "$LLVM_BINDIR"
20877_ACEOF
20878
20879
20880cat >>confdefs.h <<_ACEOF
20881#define LLVM_LIBDIR "$LLVM_LIBDIR"
20882_ACEOF
20883
20884
20885cat >>confdefs.h <<_ACEOF
20886#define LLVM_DATADIR "$LLVM_DATADIR"
20887_ACEOF
20888
20889
20890cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020891#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020892_ACEOF
20893
20894
20895cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020896#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020897_ACEOF
20898
20899
20900cat >>confdefs.h <<_ACEOF
20901#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20902_ACEOF
20903
20904
20905cat >>confdefs.h <<_ACEOF
20906#define LLVM_INFODIR "$LLVM_INFODIR"
20907_ACEOF
20908
20909
20910cat >>confdefs.h <<_ACEOF
20911#define LLVM_MANDIR "$LLVM_MANDIR"
20912_ACEOF
20913
20914
20915cat >>confdefs.h <<_ACEOF
20916#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20917_ACEOF
20918
20919
Eric Christopher790e11c2007-12-01 00:34:39 +000020920cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000020921#define LLVM_HOSTTRIPLE "$host"
20922_ACEOF
20923
20924
20925cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020926#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020927_ACEOF
20928
20929
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020930if test "$BINDINGS_TO_BUILD" = auto ; then
20931 BINDINGS_TO_BUILD=""
20932 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20933 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20934 fi
20935fi
20936BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20937
20938
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020939ALL_BINDINGS=ocaml
20940
20941
Gordon Henriksenf0915682007-10-02 16:42:22 +000020942binding_prereqs_failed=0
20943for a_binding in $BINDINGS_TO_BUILD ; do
20944 case "$a_binding" in
20945 ocaml)
20946 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20948echo "$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 +000020949 binding_prereqs_failed=1
20950 fi
20951 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020952 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20953echo "$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 +000020954 binding_prereqs_failed=1
20955 fi
20956 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20958echo "$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 +000020959 fi
20960 if test "x$with_ocaml_libdir" != xauto ; then
20961 OCAML_LIBDIR=$with_ocaml_libdir
20962
20963 else
20964 ocaml_stdlib="`"$OCAMLC" -where`"
20965 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20966 then
20967 # ocaml stdlib is beneath our prefix; use stdlib
20968 OCAML_LIBDIR=$ocaml_stdlib
20969
20970 else
20971 # ocaml stdlib is outside our prefix; use libdir/ocaml
20972 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20973
20974 fi
20975 fi
20976 ;;
20977 esac
20978done
20979if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20981echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20982 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020983fi
20984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20986echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20987if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020989else
20990 ac_ext=cpp
20991ac_cpp='$CXXCPP $CPPFLAGS'
20992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20995
20996 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000020997 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020998 cat >conftest.$ac_ext <<_ACEOF
20999/* confdefs.h. */
21000_ACEOF
21001cat confdefs.h >>conftest.$ac_ext
21002cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021003/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021004template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021005int
21006main ()
21007{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021008X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021009 ;
21010 return 0;
21011}
21012_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021013rm -f conftest.$ac_objext
21014if { (ac_try="$ac_compile"
21015case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018esac
21019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21028 { (case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21031esac
21032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_try") 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
21038 { (case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_try") 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021047 llvm_cv_cxx_visibility_inlines_hidden=yes
21048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021049 echo "$as_me: failed program was:" >&5
21050sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021054
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 CXXFLAGS="$oldcxxflags"
21057 ac_ext=c
21058ac_cpp='$CPP $CPPFLAGS'
21059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063
21064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21066echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021067if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21068 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21069
21070else
21071 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21072
21073fi
21074
Gordon Henriksenf0915682007-10-02 16:42:22 +000021075
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021076if test "$llvm_cv_link_use_r" = "yes" ; then
21077 RPATH="-Wl,-R"
21078else
21079 RPATH="-Wl,-rpath"
21080fi
21081
21082
21083if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21084 RDYNAMIC="-Wl,-export-dynamic"
21085else
21086 RDYNAMIC=""
21087fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021088
21089
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021090
Eric Christophera1cba682010-08-08 02:44:25 +000021091ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021092
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021093
21094
21095
21096
21097
Douglas Gregor1555a232009-06-16 20:12:29 +000021098ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21099
21100ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21101
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021102ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21103
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021104ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21105
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021106ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021107
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021108
Reid Spencera773bd52006-08-04 18:18:08 +000021109ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021110
Eric Christopher360fa9a2011-10-26 00:42:12 +000021111
Reid Spencerea949cf2006-08-16 00:45:38 +000021112ac_config_files="$ac_config_files llvm.spec"
21113
21114
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021115ac_config_files="$ac_config_files docs/doxygen.cfg"
21116
Eric Christopher63c09512012-02-02 00:16:55 +000021117
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021118if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021119 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021120fi
Eric Christopher63c09512012-02-02 00:16:55 +000021121if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021122 configh="include/clang/Config/config.h"
21123 doxy="docs/doxygen.cfg"
21124 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021125
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021126 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021127
21128fi
21129
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021130ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021131
Eric Christopher360fa9a2011-10-26 00:42:12 +000021132
Jordan Rose92080522012-10-01 18:40:32 +000021133test "x$program_prefix" = "xNONE" && program_prefix=""
21134
21135
21136
Reid Spencera773bd52006-08-04 18:18:08 +000021137ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021138
Reid Spencera773bd52006-08-04 18:18:08 +000021139ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021140
21141
Reid Spencera773bd52006-08-04 18:18:08 +000021142ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021143
21144
Reid Spencera773bd52006-08-04 18:18:08 +000021145ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021146
21147
Reid Spencera773bd52006-08-04 18:18:08 +000021148ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021149
21150
Reid Spencer8b2e1412006-11-17 03:32:33 +000021151ac_config_commands="$ac_config_commands runtime/Makefile"
21152
21153
Reid Spencera773bd52006-08-04 18:18:08 +000021154ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021155
21156
Reid Spencera773bd52006-08-04 18:18:08 +000021157ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021158
21159
Bill Wendlingf24eb392009-01-04 23:12:30 +000021160ac_config_commands="$ac_config_commands unittests/Makefile"
21161
21162
Reid Spencera773bd52006-08-04 18:18:08 +000021163ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021164
21165
Reid Spencera773bd52006-08-04 18:18:08 +000021166ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021167
21168
Reid Spencera773bd52006-08-04 18:18:08 +000021169ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021170
21171
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021172ac_config_commands="$ac_config_commands bindings/Makefile"
21173
21174
21175ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21176
21177
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021178
John Criswell7a73b802003-06-30 21:59:07 +000021179cat >confcache <<\_ACEOF
21180# This file is a shell script that caches the results of configure
21181# tests run on this system so they can be shared between configure
21182# scripts and configure runs, see configure's option --config-cache.
21183# It is not useful on other systems. If it contains results you don't
21184# want to keep, you may remove or edit it.
21185#
21186# config.status only pays attention to the cache file if you give it
21187# the --recheck option to rerun configure.
21188#
John Criswell0c38eaf2003-09-10 15:17:25 +000021189# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021190# loading this file, other *unset* `ac_cv_foo' will be assigned the
21191# following values.
21192
21193_ACEOF
21194
21195# The following way of writing the cache mishandles newlines in values,
21196# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021197# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021198# Ultrix sh set writes to stderr and can't be redirected directly,
21199# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021200(
21201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21202 eval ac_val=\$$ac_var
21203 case $ac_val in #(
21204 *${as_nl}*)
21205 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21207echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021208 esac
21209 case $ac_var in #(
21210 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021212 esac ;;
21213 esac
21214 done
21215
John Criswell7a73b802003-06-30 21:59:07 +000021216 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21218 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219 # `set' does not quote correctly, so add quotes (double-quote
21220 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021221 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021222 "s/'/'\\\\''/g;
21223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021224 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021225 *)
21226 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021229 esac |
21230 sort
21231) |
John Criswell7a73b802003-06-30 21:59:07 +000021232 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021233 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021234 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021235 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21237 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21239 :end' >>confcache
21240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21241 if test -w "$cache_file"; then
21242 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21244echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021245 cat confcache >$cache_file
21246 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21248echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021249 fi
21250fi
21251rm -f confcache
21252
21253test "x$prefix" = xNONE && prefix=$ac_default_prefix
21254# Let make expand exec_prefix.
21255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21256
John Criswell7a73b802003-06-30 21:59:07 +000021257DEFS=-DHAVE_CONFIG_H
21258
John Criswell0c38eaf2003-09-10 15:17:25 +000021259ac_libobjs=
21260ac_ltlibobjs=
21261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21262 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21266 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021269done
21270LIBOBJS=$ac_libobjs
21271
21272LTLIBOBJS=$ac_ltlibobjs
21273
21274
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021275if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21277Usually this means the macro was only invoked conditionally." >&5
21278echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21279Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021281fi
21282if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21284Usually this means the macro was only invoked conditionally." >&5
21285echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21286Usually this means the macro was only invoked conditionally." >&2;}
21287 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021288fi
John Criswell7a73b802003-06-30 21:59:07 +000021289
21290: ${CONFIG_STATUS=./config.status}
21291ac_clean_files_save=$ac_clean_files
21292ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21294echo "$as_me: creating $CONFIG_STATUS" >&6;}
21295cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021296#! $SHELL
21297# Generated by $as_me.
21298# Run this file to recreate the current configuration.
21299# Compiler output produced by configure, useful for debugging
21300# configure, is in config.log if it exists.
21301
21302debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021303ac_cs_recheck=false
21304ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021305SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021308cat >>$CONFIG_STATUS <<\_ACEOF
21309## --------------------- ##
21310## M4sh Initialization. ##
21311## --------------------- ##
21312
21313# Be Bourne compatible
21314if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021315 emulate sh
21316 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021318 # is contrary to our usage. Disable this feature.
21319 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021320 setopt NO_GLOB_SUBST
21321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021324BIN_SH=xpg4; export BIN_SH # for Tru64
21325DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021326
John Criswell7a73b802003-06-30 21:59:07 +000021327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328# PATH needs CR
21329# Avoid depending upon Character Ranges.
21330as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21331as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21332as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21333as_cr_digits='0123456789'
21334as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021335
21336# The user is always right.
21337if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021338 echo "#! /bin/sh" >conf$$.sh
21339 echo "exit 0" >>conf$$.sh
21340 chmod +x conf$$.sh
21341 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21342 PATH_SEPARATOR=';'
21343 else
21344 PATH_SEPARATOR=:
21345 fi
21346 rm -f conf$$.sh
21347fi
21348
21349# Support unset when possible.
21350if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21351 as_unset=unset
21352else
21353 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021354fi
John Criswell7a73b802003-06-30 21:59:07 +000021355
Reid Spencera773bd52006-08-04 18:18:08 +000021356
21357# IFS
21358# We need space, tab and new line, in precisely that order. Quoting is
21359# there to prevent editors from complaining about space-tab.
21360# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21361# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021362as_nl='
21363'
Reid Spencera773bd52006-08-04 18:18:08 +000021364IFS=" "" $as_nl"
21365
21366# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021367case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021368 *[\\/]* ) as_myself=$0 ;;
21369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021370for as_dir in $PATH
21371do
21372 IFS=$as_save_IFS
21373 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21375done
Reid Spencera773bd52006-08-04 18:18:08 +000021376IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021377
Reid Spencera773bd52006-08-04 18:18:08 +000021378 ;;
21379esac
21380# We did not find ourselves, most probably we were run as `sh COMMAND'
21381# in which case we are not to be found in the path.
21382if test "x$as_myself" = x; then
21383 as_myself=$0
21384fi
21385if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21387 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021388fi
21389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390# Work around bugs in pre-3.0 UWIN ksh.
21391for as_var in ENV MAIL MAILPATH
21392do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021393done
21394PS1='$ '
21395PS2='> '
21396PS4='+ '
21397
21398# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021399for as_var in \
21400 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21401 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21402 LC_TELEPHONE LC_TIME
21403do
21404 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21405 eval $as_var=C; export $as_var
21406 else
21407 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021408 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021409done
Torok Edwin871384f2010-01-26 08:50:50 +000021410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021412if expr a : '\(a\)' >/dev/null 2>&1 &&
21413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21414 as_expr=expr
21415else
21416 as_expr=false
21417fi
21418
21419if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21420 as_basename=basename
21421else
21422 as_basename=false
21423fi
21424
21425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021426# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021427as_me=`$as_basename -- "$0" ||
21428$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21429 X"$0" : 'X\(//\)$' \| \
21430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021432 sed '/^.*\/\([^/][^/]*\)\/*$/{
21433 s//\1/
21434 q
21435 }
21436 /^X\/\(\/\/\)$/{
21437 s//\1/
21438 q
21439 }
21440 /^X\/\(\/\).*/{
21441 s//\1/
21442 q
21443 }
21444 s/.*/./; q'`
21445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021446# CDPATH.
21447$as_unset CDPATH
21448
21449
21450
21451 as_lineno_1=$LINENO
21452 as_lineno_2=$LINENO
21453 test "x$as_lineno_1" != "x$as_lineno_2" &&
21454 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21455
21456 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21457 # uniformly replaced by the line number. The first 'sed' inserts a
21458 # line-number line after each line using $LINENO; the second 'sed'
21459 # does the real work. The second script uses 'N' to pair each
21460 # line-number line with the line containing $LINENO, and appends
21461 # trailing '-' during substitution so that $LINENO is not a special
21462 # case at line end.
21463 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21464 # scripts with optimization help from Paolo Bonzini. Blame Lee
21465 # E. McMahon (1931-1989) for sed's syntax. :-)
21466 sed -n '
21467 p
21468 /[$]LINENO/=
21469 ' <$as_myself |
21470 sed '
21471 s/[$]LINENO.*/&-/
21472 t lineno
21473 b
21474 :lineno
21475 N
21476 :loop
21477 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21478 t loop
21479 s/-\n.*//
21480 ' >$as_me.lineno &&
21481 chmod +x "$as_me.lineno" ||
21482 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21483 { (exit 1); exit 1; }; }
21484
21485 # Don't try to exec as it changes $[0], causing all sort of problems
21486 # (the dirname of $[0] is not the place where we might find the
21487 # original and so on. Autoconf is especially sensitive to this).
21488 . "./$as_me.lineno"
21489 # Exit status is that of the last command.
21490 exit
21491}
21492
21493
21494if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21495 as_dirname=dirname
21496else
21497 as_dirname=false
21498fi
Reid Spencera773bd52006-08-04 18:18:08 +000021499
21500ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021502-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021506 esac;;
21507*)
21508 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021509esac
21510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021511if expr a : '\(a\)' >/dev/null 2>&1 &&
21512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21513 as_expr=expr
21514else
21515 as_expr=false
21516fi
21517
John Criswell7a73b802003-06-30 21:59:07 +000021518rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021519if test -d conf$$.dir; then
21520 rm -f conf$$.dir/conf$$.file
21521else
21522 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021525echo >conf$$.file
21526if ln -s conf$$.file conf$$ 2>/dev/null; then
21527 as_ln_s='ln -s'
21528 # ... but there are two gotchas:
21529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21531 # In both cases, we have to default to `cp -p'.
21532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021533 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021534elif ln conf$$.file conf$$ 2>/dev/null; then
21535 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021536else
21537 as_ln_s='cp -p'
21538fi
Reid Spencera773bd52006-08-04 18:18:08 +000021539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21540rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021541
John Criswell0c38eaf2003-09-10 15:17:25 +000021542if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021544else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021545 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021546 as_mkdir_p=false
21547fi
21548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21550# systems may use methods other than mode bits to determine executability.
21551cat >conf$$.file <<_ASEOF
21552#! /bin/sh
21553exit 0
21554_ASEOF
21555chmod +x conf$$.file
21556if test -x conf$$.file >/dev/null 2>&1; then
21557 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021561rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021562
21563# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021565
21566# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021568
21569
John Criswell7a73b802003-06-30 21:59:07 +000021570exec 6>&1
21571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021573# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021574# values after options handling.
21575ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021576This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021577generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021578
21579 CONFIG_FILES = $CONFIG_FILES
21580 CONFIG_HEADERS = $CONFIG_HEADERS
21581 CONFIG_LINKS = $CONFIG_LINKS
21582 CONFIG_COMMANDS = $CONFIG_COMMANDS
21583 $ $0 $@
21584
Reid Spencera773bd52006-08-04 18:18:08 +000021585on `(hostname || uname -n) 2>/dev/null | sed 1q`
21586"
21587
John Criswell7a73b802003-06-30 21:59:07 +000021588_ACEOF
21589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021590cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021591# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021592config_files="$ac_config_files"
21593config_headers="$ac_config_headers"
21594config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021595
Reid Spencera773bd52006-08-04 18:18:08 +000021596_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021598cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021599ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021600\`$as_me' instantiates files from templates according to the
21601current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021604
21605 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021606 -V, --version print version number, then exit
21607 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021608 -d, --debug don't remove temporary files
21609 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021610 --file=FILE[:TEMPLATE]
21611 instantiate the configuration file FILE
21612 --header=FILE[:TEMPLATE]
21613 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021614
21615Configuration files:
21616$config_files
21617
21618Configuration headers:
21619$config_headers
21620
John Criswellc764fbc2003-09-06 15:17:13 +000021621Configuration commands:
21622$config_commands
21623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021625
Reid Spencera773bd52006-08-04 18:18:08 +000021626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021627cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021628ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021629LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630configured by $0, generated by GNU Autoconf 2.60,
21631 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021634This config.status script is free software; the Free Software Foundation
21635gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021636
21637ac_pwd='$ac_pwd'
21638srcdir='$srcdir'
21639INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021640_ACEOF
21641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642cat >>$CONFIG_STATUS <<\_ACEOF
21643# If no file are specified by the user, then we need to provide default
21644# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021645ac_need_defaults=:
21646while test $# != 0
21647do
21648 case $1 in
21649 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021652 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021653 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021654 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021655 ac_option=$1
21656 ac_optarg=$2
21657 ac_shift=shift
21658 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021659 esac
21660
John Criswell0c38eaf2003-09-10 15:17:25 +000021661 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021662 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21664 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021667 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021668 debug=: ;;
21669 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021670 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021672 ac_need_defaults=false;;
21673 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021674 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021675 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021676 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021677 --he | --h)
21678 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679 { echo "$as_me: error: ambiguous option: $1
21680Try \`$0 --help' for more information." >&2
21681 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021682 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021683 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21686 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021687
21688 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689 -*) { echo "$as_me: error: unrecognized option: $1
21690Try \`$0 --help' for more information." >&2
21691 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021694 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021695
21696 esac
21697 shift
21698done
21699
John Criswell0c38eaf2003-09-10 15:17:25 +000021700ac_configure_extra_args=
21701
21702if $ac_cs_silent; then
21703 exec 6>/dev/null
21704 ac_configure_extra_args="$ac_configure_extra_args --silent"
21705fi
21706
21707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021709if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21711 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021712 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021714fi
21715
John Criswell7a73b802003-06-30 21:59:07 +000021716_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021718exec 5>>config.log
21719{
21720 echo
21721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21722## Running $as_me. ##
21723_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021724 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021725} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021726
Reid Spencera773bd52006-08-04 18:18:08 +000021727_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021729#
Reid Spencera773bd52006-08-04 18:18:08 +000021730# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021731#
Reid Spencerc0682832005-02-24 19:05:19 +000021732llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021733
21734_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021736cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021737
21738# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021739for ac_config_target in $ac_config_targets
21740do
Reid Spencera773bd52006-08-04 18:18:08 +000021741 case $ac_config_target in
21742 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021743 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021744 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21745 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021746 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021747 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021748 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021749 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021750 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021751 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021752 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21753 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021754 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021755 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21756 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21757 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21758 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21759 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021760 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021761 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21762 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021763 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021764 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21765 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21766 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021767 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21768 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21771echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21772 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021773 esac
21774done
21775
Reid Spencera773bd52006-08-04 18:18:08 +000021776
John Criswell7a73b802003-06-30 21:59:07 +000021777# If the user did not use the arguments to specify the items to instantiate,
21778# then the envvar interface is used. Set only those that are not.
21779# We use the long form for the default assignment because of an extremely
21780# bizarre bug on SunOS 4.1.3.
21781if $ac_need_defaults; then
21782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021785fi
21786
John Criswell0c38eaf2003-09-10 15:17:25 +000021787# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021788# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021789# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021790# Hook for its removal unless debugging.
21791# Note that there is a small window in which the directory will not be cleaned:
21792# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021793$debug ||
21794{
Reid Spencera773bd52006-08-04 18:18:08 +000021795 tmp=
21796 trap 'exit_status=$?
21797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21798' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021800}
John Criswell7a73b802003-06-30 21:59:07 +000021801# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021802
John Criswell7a73b802003-06-30 21:59:07 +000021803{
Reid Spencera773bd52006-08-04 18:18:08 +000021804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021805 test -n "$tmp" && test -d "$tmp"
21806} ||
21807{
Reid Spencera773bd52006-08-04 18:18:08 +000021808 tmp=./conf$$-$RANDOM
21809 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021810} ||
21811{
21812 echo "$me: cannot create a temporary directory in ." >&2
21813 { (exit 1); exit 1; }
21814}
John Criswell7a73b802003-06-30 21:59:07 +000021815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816#
21817# Set up the sed scripts for CONFIG_FILES section.
21818#
21819
21820# No need to generate the scripts if there are no CONFIG_FILES.
21821# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021822if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021823
21824_ACEOF
21825
Reid Spencera773bd52006-08-04 18:18:08 +000021826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827
Reid Spencera773bd52006-08-04 18:18:08 +000021828ac_delim='%!_!# '
21829for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830 cat >conf$$subs.sed <<_ACEOF
21831SHELL!$SHELL$ac_delim
21832PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21833PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21834PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21835PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21836PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21837PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21838exec_prefix!$exec_prefix$ac_delim
21839prefix!$prefix$ac_delim
21840program_transform_name!$program_transform_name$ac_delim
21841bindir!$bindir$ac_delim
21842sbindir!$sbindir$ac_delim
21843libexecdir!$libexecdir$ac_delim
21844datarootdir!$datarootdir$ac_delim
21845datadir!$datadir$ac_delim
21846sysconfdir!$sysconfdir$ac_delim
21847sharedstatedir!$sharedstatedir$ac_delim
21848localstatedir!$localstatedir$ac_delim
21849includedir!$includedir$ac_delim
21850oldincludedir!$oldincludedir$ac_delim
21851docdir!$docdir$ac_delim
21852infodir!$infodir$ac_delim
21853htmldir!$htmldir$ac_delim
21854dvidir!$dvidir$ac_delim
21855pdfdir!$pdfdir$ac_delim
21856psdir!$psdir$ac_delim
21857libdir!$libdir$ac_delim
21858localedir!$localedir$ac_delim
21859mandir!$mandir$ac_delim
21860DEFS!$DEFS$ac_delim
21861ECHO_C!$ECHO_C$ac_delim
21862ECHO_N!$ECHO_N$ac_delim
21863ECHO_T!$ECHO_T$ac_delim
21864LIBS!$LIBS$ac_delim
21865build_alias!$build_alias$ac_delim
21866host_alias!$host_alias$ac_delim
21867target_alias!$target_alias$ac_delim
21868LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021869CC!$CC$ac_delim
21870CFLAGS!$CFLAGS$ac_delim
21871LDFLAGS!$LDFLAGS$ac_delim
21872CPPFLAGS!$CPPFLAGS$ac_delim
21873ac_ct_CC!$ac_ct_CC$ac_delim
21874EXEEXT!$EXEEXT$ac_delim
21875OBJEXT!$OBJEXT$ac_delim
21876CXX!$CXX$ac_delim
21877CXXFLAGS!$CXXFLAGS$ac_delim
21878ac_ct_CXX!$ac_ct_CXX$ac_delim
21879CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021881ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21882LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883build!$build$ac_delim
21884build_cpu!$build_cpu$ac_delim
21885build_vendor!$build_vendor$ac_delim
21886build_os!$build_os$ac_delim
21887host!$host$ac_delim
21888host_cpu!$host_cpu$ac_delim
21889host_vendor!$host_vendor$ac_delim
21890host_os!$host_os$ac_delim
21891target!$target$ac_delim
21892target_cpu!$target_cpu$ac_delim
21893target_vendor!$target_vendor$ac_delim
21894target_os!$target_os$ac_delim
21895OS!$OS$ac_delim
21896HOST_OS!$HOST_OS$ac_delim
21897TARGET_OS!$TARGET_OS$ac_delim
21898LINKALL!$LINKALL$ac_delim
21899NOLINKALL!$NOLINKALL$ac_delim
21900LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21901LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21902ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021903HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905GREP!$GREP$ac_delim
21906EGREP!$EGREP$ac_delim
21907LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21908BUILD_CC!$BUILD_CC$ac_delim
21909BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21910BUILD_CXX!$BUILD_CXX$ac_delim
21911CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021912ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021913ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21915ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21916DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000021917ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021918ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21919EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21920DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21921DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000021922KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923JIT!$JIT$ac_delim
21924TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021925ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Eric Christopher164a3082012-08-28 01:17:46 +000021927LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021928_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021930 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021931 break
21932 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021933 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21934echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21935 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021936 else
21937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021938 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021939done
21940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21942if test -n "$ac_eof"; then
21943 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21944 ac_eof=`expr $ac_eof + 1`
21945fi
21946
21947cat >>$CONFIG_STATUS <<_ACEOF
21948cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21949/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021950_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951sed '
21952s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21953s/^/s,@/; s/!/@,|#_!!_#|/
21954:n
21955t n
21956s/'"$ac_delim"'$/,g/; t
21957s/$/\\/; p
21958N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21959' >>$CONFIG_STATUS <conf$$subs.sed
21960rm -f conf$$subs.sed
21961cat >>$CONFIG_STATUS <<_ACEOF
21962CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021963_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021964
21965
21966ac_delim='%!_!# '
21967for ac_last_try in false false false false false :; do
21968 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000021969ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000021970ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021971ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021972ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021973ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021974TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21975LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21976LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021977LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021978LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021979OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021980EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021981EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021982CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021983BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021984INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985NM!$NM$ac_delim
21986ifGNUmake!$ifGNUmake$ac_delim
21987LN_S!$LN_S$ac_delim
21988CMP!$CMP$ac_delim
21989CP!$CP$ac_delim
21990DATE!$DATE$ac_delim
21991FIND!$FIND$ac_delim
21992MKDIR!$MKDIR$ac_delim
21993MV!$MV$ac_delim
21994RANLIB!$RANLIB$ac_delim
21995AR!$AR$ac_delim
21996RM!$RM$ac_delim
21997SED!$SED$ac_delim
21998TAR!$TAR$ac_delim
21999BINPWD!$BINPWD$ac_delim
22000GRAPHVIZ!$GRAPHVIZ$ac_delim
22001DOT!$DOT$ac_delim
22002FDP!$FDP$ac_delim
22003NEATO!$NEATO$ac_delim
22004TWOPI!$TWOPI$ac_delim
22005CIRCO!$CIRCO$ac_delim
22006GV!$GV$ac_delim
22007DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022008XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011INSTALL_DATA!$INSTALL_DATA$ac_delim
22012BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022013CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022015GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022016GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022017PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022018ZIP!$ZIP$ac_delim
22019OCAMLC!$OCAMLC$ac_delim
22020OCAMLOPT!$OCAMLOPT$ac_delim
22021OCAMLDEP!$OCAMLDEP$ac_delim
22022OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022023GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022024HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022025INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22026INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22027CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22028CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22029LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22031NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022032COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033USE_UDIS86!$USE_UDIS86$ac_delim
22034USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022035USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022036XML2CONFIG!$XML2CONFIG$ac_delim
22037LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22038LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22040HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22041MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022042SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022043SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22045LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22046LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22047LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22048LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22049LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22050LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22051LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22052LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22053LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22054BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22055ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022056OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22057ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22058RPATH!$RPATH$ac_delim
22059RDYNAMIC!$RDYNAMIC$ac_delim
Jordan Rose92080522012-10-01 18:40:32 +000022060program_prefix!$program_prefix$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022061LIBOBJS!$LIBOBJS$ac_delim
22062LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022063_ACEOF
22064
Jordan Rose92080522012-10-01 18:40:32 +000022065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066 break
22067 elif $ac_last_try; then
22068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22069echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22070 { (exit 1); exit 1; }; }
22071 else
22072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22073 fi
22074done
22075
22076ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22077if test -n "$ac_eof"; then
22078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22079 ac_eof=`expr $ac_eof + 1`
22080fi
22081
22082cat >>$CONFIG_STATUS <<_ACEOF
22083cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022084/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022085_ACEOF
22086sed '
22087s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22088s/^/s,@/; s/!/@,|#_!!_#|/
22089:n
22090t n
22091s/'"$ac_delim"'$/,g/; t
22092s/$/\\/; p
22093N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22094' >>$CONFIG_STATUS <conf$$subs.sed
22095rm -f conf$$subs.sed
22096cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022097:end
22098s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022099CEOF$ac_eof
22100_ACEOF
22101
22102
Reid Spencera773bd52006-08-04 18:18:08 +000022103# VPATH may cause trouble with some makes, so we remove $(srcdir),
22104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22105# trailing colons and then remove the whole line if VPATH becomes empty
22106# (actually we leave an empty line to preserve line numbers).
22107if test "x$srcdir" = x.; then
22108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22109s/:*\$(srcdir):*/:/
22110s/:*\${srcdir}:*/:/
22111s/:*@srcdir@:*/:/
22112s/^\([^=]*=[ ]*\):*/\1/
22113s/:*$//
22114s/^[^=]*=[ ]*$//
22115}'
22116fi
22117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022119fi # test -n "$CONFIG_FILES"
22120
Reid Spencera773bd52006-08-04 18:18:08 +000022121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022123do
22124 case $ac_tag in
22125 :[FHLC]) ac_mode=$ac_tag; continue;;
22126 esac
22127 case $ac_mode$ac_tag in
22128 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22130echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22131 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022132 :[FH]-) ac_tag=-:-;;
22133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22134 esac
22135 ac_save_IFS=$IFS
22136 IFS=:
22137 set x $ac_tag
22138 IFS=$ac_save_IFS
22139 shift
22140 ac_file=$1
22141 shift
22142
22143 case $ac_mode in
22144 :L) ac_source=$1;;
22145 :[FH])
22146 ac_file_inputs=
22147 for ac_f
22148 do
22149 case $ac_f in
22150 -) ac_f="$tmp/stdin";;
22151 *) # Look for the file first in the build tree, then in the source tree
22152 # (if the path is not absolute). The absolute path cannot be DOS-style,
22153 # because $ac_f cannot contain `:'.
22154 test -f "$ac_f" ||
22155 case $ac_f in
22156 [\\/$]*) false;;
22157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22158 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22160echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22161 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022162 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022163 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022164 done
22165
22166 # Let's still pretend it is `configure' which instantiates (i.e., don't
22167 # use $as_me), people would be surprised to read:
22168 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022169 configure_input="Generated from "`IFS=:
22170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022171 if test x"$ac_file" != x-; then
22172 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022173 { echo "$as_me:$LINENO: creating $ac_file" >&5
22174echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022175 fi
22176
22177 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022179 esac
22180 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022181 esac
22182
Reid Spencera773bd52006-08-04 18:18:08 +000022183 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022185 X"$ac_file" : 'X\(//\)[^/]' \| \
22186 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022188echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190 s//\1/
22191 q
22192 }
22193 /^X\(\/\/\)[^/].*/{
22194 s//\1/
22195 q
22196 }
22197 /^X\(\/\/\)$/{
22198 s//\1/
22199 q
22200 }
22201 /^X\(\/\).*/{
22202 s//\1/
22203 q
22204 }
22205 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206 { as_dir="$ac_dir"
22207 case $as_dir in #(
22208 -*) as_dir=./$as_dir;;
22209 esac
22210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22211 as_dirs=
22212 while :; do
22213 case $as_dir in #(
22214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22215 *) as_qdir=$as_dir;;
22216 esac
22217 as_dirs="'$as_qdir' $as_dirs"
22218 as_dir=`$as_dirname -- "$as_dir" ||
22219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22223echo X"$as_dir" |
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225 s//\1/
22226 q
22227 }
22228 /^X\(\/\/\)[^/].*/{
22229 s//\1/
22230 q
22231 }
22232 /^X\(\/\/\)$/{
22233 s//\1/
22234 q
22235 }
22236 /^X\(\/\).*/{
22237 s//\1/
22238 q
22239 }
22240 s/.*/./; q'`
22241 test -d "$as_dir" && break
22242 done
22243 test -z "$as_dirs" || eval "mkdir $as_dirs"
22244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22245echo "$as_me: error: cannot create directory $as_dir" >&2;}
22246 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022247 ac_builddir=.
22248
Reid Spencera773bd52006-08-04 18:18:08 +000022249case "$ac_dir" in
22250.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022253 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022255 case $ac_top_builddir_sub in
22256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22258 esac ;;
22259esac
22260ac_abs_top_builddir=$ac_pwd
22261ac_abs_builddir=$ac_pwd$ac_dir_suffix
22262# for backward compatibility:
22263ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022264
22265case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022266 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022267 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022268 ac_top_srcdir=$ac_top_builddir_sub
22269 ac_abs_top_srcdir=$ac_pwd ;;
22270 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022271 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022272 ac_top_srcdir=$srcdir
22273 ac_abs_top_srcdir=$srcdir ;;
22274 *) # Relative name.
22275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22276 ac_top_srcdir=$ac_top_build_prefix$srcdir
22277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022278esac
Reid Spencera773bd52006-08-04 18:18:08 +000022279ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022280
John Criswell7a73b802003-06-30 21:59:07 +000022281
Reid Spencera773bd52006-08-04 18:18:08 +000022282 case $ac_mode in
22283 :F)
22284 #
22285 # CONFIG_FILE
22286 #
John Criswell7a73b802003-06-30 21:59:07 +000022287
22288 case $INSTALL in
22289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022291 esac
John Criswell7a73b802003-06-30 21:59:07 +000022292_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022295# If the template does not know about datarootdir, expand it.
22296# FIXME: This hack should be removed a few years after 2.60.
22297ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298
22299case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022300 p
22301 q
22302}
22303/@datadir@/p
22304/@docdir@/p
22305/@infodir@/p
22306/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022307/@mandir@/p
22308' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022309*datarootdir*) ac_datarootdir_seen=yes;;
22310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22312echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022314cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022315 ac_datarootdir_hack='
22316 s&@datadir@&$datadir&g
22317 s&@docdir@&$docdir&g
22318 s&@infodir@&$infodir&g
22319 s&@localedir@&$localedir&g
22320 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022322esac
22323_ACEOF
22324
22325# Neutralize VPATH when `$srcdir' = `.'.
22326# Shell code in configure.ac might set extrasub.
22327# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022328cat >>$CONFIG_STATUS <<_ACEOF
22329 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022330$extrasub
22331_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022333:t
22334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022335s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022336s&@top_builddir@&$ac_top_builddir_sub&;t t
22337s&@srcdir@&$ac_srcdir&;t t
22338s&@abs_srcdir@&$ac_abs_srcdir&;t t
22339s&@top_srcdir@&$ac_top_srcdir&;t t
22340s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22341s&@builddir@&$ac_builddir&;t t
22342s&@abs_builddir@&$ac_abs_builddir&;t t
22343s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22344s&@INSTALL@&$ac_INSTALL&;t t
22345$ac_datarootdir_hack
Jordan Rose85042e62012-09-26 00:01:00 +000022346" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022347
Reid Spencera773bd52006-08-04 18:18:08 +000022348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22349 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022351 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022352which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022353echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022354which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022355
Reid Spencera773bd52006-08-04 18:18:08 +000022356 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022357 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358 -) cat "$tmp/out"; rm -f "$tmp/out";;
22359 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22360 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022361 ;;
22362 :H)
22363 #
22364 # CONFIG_HEADER
22365 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022366_ACEOF
22367
22368# Transform confdefs.h into a sed script `conftest.defines', that
22369# substitutes the proper values into config.h.in to produce config.h.
22370rm -f conftest.defines conftest.tail
22371# First, append a space to every undef/define line, to ease matching.
22372echo 's/$/ /' >conftest.defines
22373# Then, protect against being on the right side of a sed subst, or in
22374# an unquoted here document, in config.status. If some macros were
22375# called several times there might be several #defines for the same
22376# symbol, which is useless. But do not sort them, since the last
22377# AC_DEFINE must be honored.
22378ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22380# NAME is the cpp macro being defined, VALUE is the value it is being given.
22381# PARAMS is the parameter list in the macro definition--in most cases, it's
22382# just an empty string.
22383ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22384ac_dB='\\)[ (].*,\\1define\\2'
22385ac_dC=' '
22386ac_dD=' ,'
22387
22388uniq confdefs.h |
22389 sed -n '
22390 t rset
22391 :rset
22392 s/^[ ]*#[ ]*define[ ][ ]*//
22393 t ok
22394 d
22395 :ok
22396 s/[\\&,]/\\&/g
22397 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22398 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22399 ' >>conftest.defines
22400
22401# Remove the space that was appended to ease matching.
22402# Then replace #undef with comments. This is necessary, for
22403# example, in the case of _POSIX_SOURCE, which is predefined and required
22404# on some systems where configure will not decide to define it.
22405# (The regexp can be short, since the line contains either #define or #undef.)
22406echo 's/ $//
22407s,^[ #]*u.*,/* & */,' >>conftest.defines
22408
22409# Break up conftest.defines:
22410ac_max_sed_lines=50
22411
22412# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22413# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22414# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22415# et cetera.
22416ac_in='$ac_file_inputs'
22417ac_out='"$tmp/out1"'
22418ac_nxt='"$tmp/out2"'
22419
22420while :
22421do
22422 # Write a here document:
22423 cat >>$CONFIG_STATUS <<_ACEOF
22424 # First, check the format of the line:
22425 cat >"\$tmp/defines.sed" <<\\CEOF
22426/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22427/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22428b
22429:def
22430_ACEOF
22431 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22432 echo 'CEOF
22433 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22434 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22435 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22436 grep . conftest.tail >/dev/null || break
22437 rm -f conftest.defines
22438 mv conftest.tail conftest.defines
22439done
22440rm -f conftest.defines conftest.tail
22441
22442echo "ac_result=$ac_in" >>$CONFIG_STATUS
22443cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022444 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445 echo "/* $configure_input */" >"$tmp/config.h"
22446 cat "$ac_result" >>"$tmp/config.h"
22447 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22448 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22449echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022450 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022451 rm -f $ac_file
22452 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022453 fi
22454 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022455 echo "/* $configure_input */"
22456 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022457 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022458 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022459 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022461 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22462echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022463 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022464 esac
John Criswell7a73b802003-06-30 21:59:07 +000022465
Reid Spencera773bd52006-08-04 18:18:08 +000022466
22467 case $ac_file$ac_mode in
22468 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022470 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022472 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022474 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022476 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022478 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022480 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022482 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022484 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022486 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022488 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022490 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022492 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022493 ${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 +000022494
22495 esac
22496done # for ac_tag
22497
John Criswell7a73b802003-06-30 21:59:07 +000022498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022502ac_clean_files=$ac_clean_files_save
22503
22504
22505# configure is writing to config.log, and then calls config.status.
22506# config.status does its own redirection, appending to config.log.
22507# Unfortunately, on DOS this fails, as config.log is still kept open
22508# by configure, so config.status won't be able to write to it; its
22509# output is simply discarded. So we exec the FD to /dev/null,
22510# effectively closing config.log, so it can be properly (re)opened and
22511# appended to by config.status. When coming back to configure, we
22512# need to make the FD available again.
22513if test "$no_create" != yes; then
22514 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022515 ac_config_status_args=
22516 test "$silent" = yes &&
22517 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022518 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022520 exec 5>>config.log
22521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22522 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022524fi
22525
John Criswell12399a12003-09-30 15:55:44 +000022526#
22527# CONFIG_SUBDIRS section.
22528#
22529if test "$no_recursion" != yes; then
22530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022531 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022532 ac_sub_configure_args=
22533 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022534 eval "set x $ac_configure_args"
22535 shift
22536 for ac_arg
22537 do
John Criswell12399a12003-09-30 15:55:44 +000022538 if test -n "$ac_prev"; then
22539 ac_prev=
22540 continue
22541 fi
22542 case $ac_arg in
22543 -cache-file | --cache-file | --cache-fil | --cache-fi \
22544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22545 ac_prev=cache_file ;;
22546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22548 | --c=*)
22549 ;;
22550 --config-cache | -C)
22551 ;;
22552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22553 ac_prev=srcdir ;;
22554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22555 ;;
22556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22557 ac_prev=prefix ;;
22558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022560 *)
22561 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022562 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022563 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022564 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022565 esac
22566 done
22567
22568 # Always prepend --prefix to ensure using the same prefix
22569 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022570 ac_arg="--prefix=$prefix"
22571 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022572 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022573 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022575
22576 ac_popdir=`pwd`
22577 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22578
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022581 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022582
Reid Spencera773bd52006-08-04 18:18:08 +000022583 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022584 echo "$as_me:$LINENO: $ac_msg" >&5
22585 echo "$ac_msg" >&6
22586 { as_dir="$ac_dir"
22587 case $as_dir in #(
22588 -*) as_dir=./$as_dir;;
22589 esac
22590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22591 as_dirs=
22592 while :; do
22593 case $as_dir in #(
22594 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22595 *) as_qdir=$as_dir;;
22596 esac
22597 as_dirs="'$as_qdir' $as_dirs"
22598 as_dir=`$as_dirname -- "$as_dir" ||
22599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$as_dir" : 'X\(//\)[^/]' \| \
22601 X"$as_dir" : 'X\(//\)$' \| \
22602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22603echo X"$as_dir" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605 s//\1/
22606 q
22607 }
22608 /^X\(\/\/\)[^/].*/{
22609 s//\1/
22610 q
22611 }
22612 /^X\(\/\/\)$/{
22613 s//\1/
22614 q
22615 }
22616 /^X\(\/\).*/{
22617 s//\1/
22618 q
22619 }
22620 s/.*/./; q'`
22621 test -d "$as_dir" && break
22622 done
22623 test -z "$as_dirs" || eval "mkdir $as_dirs"
22624 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22625echo "$as_me: error: cannot create directory $as_dir" >&2;}
22626 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022627 ac_builddir=.
22628
Reid Spencera773bd52006-08-04 18:18:08 +000022629case "$ac_dir" in
22630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22631*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022633 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022635 case $ac_top_builddir_sub in
22636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22638 esac ;;
22639esac
22640ac_abs_top_builddir=$ac_pwd
22641ac_abs_builddir=$ac_pwd$ac_dir_suffix
22642# for backward compatibility:
22643ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022644
22645case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022646 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022647 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022648 ac_top_srcdir=$ac_top_builddir_sub
22649 ac_abs_top_srcdir=$ac_pwd ;;
22650 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022651 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022652 ac_top_srcdir=$srcdir
22653 ac_abs_top_srcdir=$srcdir ;;
22654 *) # Relative name.
22655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22656 ac_top_srcdir=$ac_top_build_prefix$srcdir
22657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022658esac
Reid Spencera773bd52006-08-04 18:18:08 +000022659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022660
22661
Reid Spencera773bd52006-08-04 18:18:08 +000022662 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022663
22664 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022665 if test -f "$ac_srcdir/configure.gnu"; then
22666 ac_sub_configure=$ac_srcdir/configure.gnu
22667 elif test -f "$ac_srcdir/configure"; then
22668 ac_sub_configure=$ac_srcdir/configure
22669 elif test -f "$ac_srcdir/configure.in"; then
22670 # This should be Cygnus configure.
22671 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022672 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022673 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22674echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022675 ac_sub_configure=
22676 fi
22677
22678 # The recursion is here.
22679 if test -n "$ac_sub_configure"; then
22680 # Make the cache file name correct relative to the subdirectory.
22681 case $cache_file in
22682 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022683 *) # Relative name.
22684 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022685 esac
22686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022687 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22688echo "$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 +000022689 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022690 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22691 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022692 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22693echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22694 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022695 fi
22696
Reid Spencera773bd52006-08-04 18:18:08 +000022697 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022698 done
22699fi
22700