blob: e25edc43659fc1a566db646c43a590676d7574a6 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherf33ab862011-12-21 00:52:44 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001320\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001386 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001427 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001428 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001433 --with-optimize-option Select the compiler options to use for optimized
1434 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001435 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001436 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001439 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1442 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001443 --with-c-include-dirs Colon separated list of directories clang will
1444 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001445 --with-gcc-toolchain Directory where gcc is installed.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001446 --with-binutils-include Specify path to binutils/include/ containing
1447 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001448 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001449 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001450 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001451 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001452 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001457 CC C compiler command
1458 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001462 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001465 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
Eric Christopherf33ab862011-12-21 00:52:44 +00001470Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001472ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001478 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001479 ac_builddir=.
1480
Reid Spencera773bd52006-08-04 18:18:08 +00001481case "$ac_dir" in
1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001485 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491esac
1492ac_abs_top_builddir=$ac_pwd
1493ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494# for backward compatibility:
1495ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001496
1497case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001498 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001503 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001510esac
Reid Spencera773bd52006-08-04 18:18:08 +00001511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001512
Reid Spencera773bd52006-08-04 18:18:08 +00001513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001521 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001525 done
1526fi
1527
Reid Spencera773bd52006-08-04 18:18:08 +00001528test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001529if $ac_init_version; then
1530 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001531LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001539Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001541 exit
John Criswell7a73b802003-06-30 21:59:07 +00001542fi
Reid Spencera773bd52006-08-04 18:18:08 +00001543cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001544This file contains any messages produced by compilers while
1545running configure, to aid debugging if configure makes a mistake.
1546
Eric Christopherf33ab862011-12-21 00:52:44 +00001547It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001548generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001549
1550 $ $0 $@
1551
1552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001553exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001554{
1555cat <<_ASUNAME
1556## --------- ##
1557## Platform. ##
1558## --------- ##
1559
1560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568
1569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1576
1577_ASUNAME
1578
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001584 echo "PATH: $as_dir"
1585done
Reid Spencera773bd52006-08-04 18:18:08 +00001586IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588} >&5
1589
1590cat >&5 <<_ACEOF
1591
1592
1593## ----------- ##
1594## Core tests. ##
1595## ----------- ##
1596
1597_ACEOF
1598
1599
1600# Keep a trace of the command line.
1601# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001602# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001603# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001605ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001606ac_configure_args0=
1607ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_must_keep_next=false
1609for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001610do
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 for ac_arg
1612 do
1613 case $ac_arg in
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1617 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001618 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 esac
1621 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001626 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 case $ac_arg in
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 esac
1636 ;;
1637 -* ) ac_must_keep_next=true ;;
1638 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ;;
1642 esac
1643 done
John Criswell7a73b802003-06-30 21:59:07 +00001644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646$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 +00001647
1648# When interrupted or exit'd, cleanup temporary files, and complete
1649# config.log. We remove comments because anyway the quotes in there
1650# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001651# WARNING: Use '\'' to represent an apostrophe within the trap.
1652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001653trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1655 {
1656 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001657
John Criswell7a73b802003-06-30 21:59:07 +00001658 cat <<\_ASBOX
1659## ---------------- ##
1660## Cache variables. ##
1661## ---------------- ##
1662_ASBOX
1663 echo
1664 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001665(
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1668 case $ac_val in #(
1669 *${as_nl}*)
1670 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001673 esac
1674 case $ac_var in #(
1675 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 esac ;;
1678 esac
1679 done
John Criswell7a73b802003-06-30 21:59:07 +00001680 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001683 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001687 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001690 esac |
1691 sort
1692)
John Criswell7a73b802003-06-30 21:59:07 +00001693 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001694
1695 cat <<\_ASBOX
1696## ----------------- ##
1697## Output variables. ##
1698## ----------------- ##
1699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_vars
1702 do
Reid Spencera773bd52006-08-04 18:18:08 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001706 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001708 done | sort
1709 echo
1710
1711 if test -n "$ac_subst_files"; then
1712 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001713## ------------------- ##
1714## File substitutions. ##
1715## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001716_ASBOX
1717 echo
1718 for ac_var in $ac_subst_files
1719 do
Reid Spencera773bd52006-08-04 18:18:08 +00001720 eval ac_val=\$$ac_var
1721 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001723 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 done | sort
1726 echo
1727 fi
1728
John Criswell7a73b802003-06-30 21:59:07 +00001729 if test -s confdefs.h; then
1730 cat <<\_ASBOX
1731## ----------- ##
1732## confdefs.h. ##
1733## ----------- ##
1734_ASBOX
1735 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001736 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001737 echo
1738 fi
1739 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001742 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001745 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001746' 0
John Criswell7a73b802003-06-30 21:59:07 +00001747for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001749done
1750ac_signal=0
1751
1752# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001753rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001754
1755# Predefined preprocessor variables.
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_NAME "$PACKAGE_NAME"
1759_ACEOF
1760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761
John Criswell7a73b802003-06-30 21:59:07 +00001762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_VERSION "$PACKAGE_VERSION"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_STRING "$PACKAGE_STRING"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779_ACEOF
1780
1781
1782# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001784if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001786elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792shift
1793for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001794do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001798 sed 's/^/| /' "$ac_site_file" >&5
1799 . "$ac_site_file"
1800 fi
1801done
1802
1803if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001809 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001812 esac
1813 fi
1814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001817 >$cache_file
1818fi
1819
1820# Check that the precious variables saved in the cache have kept the same
1821# value.
1822ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001823for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001828 case $ac_old_set,$ac_new_set in
1829 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 ac_cache_corrupted=: ;;
1833 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 ac_cache_corrupted=: ;;
1837 ,);;
1838 *)
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001847 fi;;
1848 esac
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1851 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001853 *) ac_arg=$ac_var=$ac_new_val ;;
1854 esac
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 esac
1859 fi
1860done
1861if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
Reid Spencera773bd52006-08-04 18:18:08 +00001892
John Criswell7a73b802003-06-30 21:59:07 +00001893ac_ext=c
1894ac_cpp='$CPP $CPPFLAGS'
1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001901cat >>confdefs.h <<\_ACEOF
1902#define LLVM_VERSION_MAJOR 3
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<\_ACEOF
1907#define LLVM_VERSION_MINOR 1
1908_ACEOF
1909
1910
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001911LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001912
1913
1914
1915
1916
1917
1918
John Criswell7a73b802003-06-30 21:59:07 +00001919ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001920for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001921 if test -f "$ac_dir/install-sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1924 break
1925 elif test -f "$ac_dir/install.sh"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1928 break
1929 elif test -f "$ac_dir/shtool"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1932 break
1933 fi
John Criswell7a73b802003-06-30 21:59:07 +00001934done
1935if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001939fi
Reid Spencera773bd52006-08-04 18:18:08 +00001940
1941# These three variables are undocumented and unsupported,
1942# and are intended to be withdrawn in a future Autoconf release.
1943# They can cause serious problems if a builder's source tree is in a directory
1944# whose full name contains unusual characters.
1945ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948
John Criswell7a73b802003-06-30 21:59:07 +00001949
John Criswell392aaa32003-07-22 19:18:09 +00001950
Reid Spencer2706f8c2004-09-19 23:53:36 +00001951if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001956 fi
John Criswell93e1c722003-09-15 17:04:06 +00001957fi
1958
Nick Lewycky83fc4472009-09-29 05:48:51 +00001959ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001964if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001965 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001966 do
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001973else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001976else
1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978for as_dir in $PATH
1979do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 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 +00001984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001986 break 2
1987 fi
1988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989done
Reid Spencera773bd52006-08-04 18:18:08 +00001990IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001991
1992fi
1993fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001994CC=$ac_cv_prog_CC
1995if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996 { echo "$as_me:$LINENO: result: $CC" >&5
1997echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 { echo "$as_me:$LINENO: result: no" >&5
2000echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002001fi
2002
Reid Spencera773bd52006-08-04 18:18:08 +00002003
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002005 done
2006fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007if test -z "$CC"; then
2008 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002009 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002010do
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002017else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 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 +00002028 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002030 break 2
2031 fi
2032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033done
Reid Spencera773bd52006-08-04 18:18:08 +00002034IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002035
2036fi
2037fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 { echo "$as_me:$LINENO: result: no" >&5
2044echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002045fi
2046
Reid Spencera773bd52006-08-04 18:18:08 +00002047
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002049done
John Criswell7a73b802003-06-30 21:59:07 +00002050
Reid Spencera773bd52006-08-04 18:18:08 +00002051 if test "x$ac_ct_CC" = x; then
2052 CC=""
2053 else
2054 case $cross_compiling:$ac_tool_warned in
2055yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057whose name does not start with the host triplet. If you think this
2058configuration is useful to you, please write to autoconf@gnu.org." >&5
2059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet. If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002062ac_tool_warned=yes ;;
2063esac
2064 CC=$ac_ct_CC
2065 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066fi
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074
John Criswell7a73b802003-06-30 21:59:07 +00002075# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076echo "$as_me:$LINENO: checking for C compiler version" >&5
2077ac_compiler=`set X $ac_compile; echo $2`
2078{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002079case "(($ac_try" in
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2082esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002085 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088{ (ac_try="$ac_compiler -v >&5"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -v >&5") 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098{ (ac_try="$ac_compiler -V >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -V >&5") 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002109cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h. */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116int
2117main ()
2118{
2119
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002126# Try to create an executable without -o first, disregard a.out.
2127# It will help us diagnose broken compilers, and finding out an intuition
2128# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132#
2133# List of possible output files, starting from the most likely.
2134# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135# only as a last resort. b.out is created by i960 compilers.
2136ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137#
2138# The IRIX 6 linker writes into existing files which may not be
2139# executable, retaining their permissions. Remove them first so a
2140# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002141ac_rmfiles=
2142for ac_file in $ac_files
2143do
2144 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147 esac
2148done
2149rm -f $ac_rmfiles
2150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002157 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002158 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163# in a Makefile. We should not override ac_cv_exeext if it was cached,
2164# so that the user can short-circuit this test for compilers unknown to
2165# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002167do
2168 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002169 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002171 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002172 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002173 # We found the default executable, but exeext='' is most
2174 # certainly right.
2175 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002176 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002178 then :; else
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180 fi
2181 # We set ac_cv_exeext here because the later test for it is not
2182 # safe: cross compilers may not add the suffix if given an `-o'
2183 # argument, so we may need to know it at that point already.
2184 # Even if this section looks crufty: it has the advantage of
2185 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002189 esac
2190done
Reid Spencera773bd52006-08-04 18:18:08 +00002191test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
John Criswell7a73b802003-06-30 21:59:07 +00002193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002195sed 's/^/| /' conftest.$ac_ext >&5
2196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198See \`config.log' for more details." >&5
2199echo "$as_me: error: C compiler cannot create executables
2200See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002202fi
John Criswell7a73b802003-06-30 21:59:07 +00002203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002204ac_exeext=$ac_cv_exeext
2205{ echo "$as_me:$LINENO: result: $ac_file" >&5
2206echo "${ECHO_T}$ac_file" >&6; }
2207
2208# Check that the compiler produces executables we can run. If not, either
2209# the compiler is broken, or we cross compile.
2210{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213# If not cross compiling, check that we can run a simple program.
2214if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219esac
2220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_try") 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 cross_compiling=no
2226 else
2227 if test "$cross_compiling" = maybe; then
2228 cross_compiling=yes
2229 else
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2237 fi
2238 fi
2239fi
2240{ echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6; }
2242
2243rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002244ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002245# Check that the compiler produces executables we can run. If not, either
2246# the compiler is broken, or we cross compile.
2247{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002255case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002260 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002261 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266# work properly (i.e., refer to `conftest.exe'), while it won't with
2267# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002268for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002270 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002273 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 * ) break;;
2275 esac
2276done
2277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284
2285rm -f conftest$ac_cv_exeext
2286{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002288
2289rm -f conftest.$ac_ext
2290EXEEXT=$ac_cv_exeext
2291ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297 cat >conftest.$ac_ext <<_ACEOF
2298/* confdefs.h. */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002303
John Criswell7a73b802003-06-30 21:59:07 +00002304int
2305main ()
2306{
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002319 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002320 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002323 for ac_file in conftest.o conftest.obj conftest.*; do
2324 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002325 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328 break;;
2329 esac
2330done
2331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002333sed 's/^/| /' conftest.$ac_ext >&5
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341
John Criswell7a73b802003-06-30 21:59:07 +00002342rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002346OBJEXT=$ac_cv_objext
2347ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002353 cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002359
John Criswell7a73b802003-06-30 21:59:07 +00002360int
2361main ()
2362{
2363#ifndef __GNUC__
2364 choke me
2365#endif
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371rm -f conftest.$ac_objext
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002405 ac_compiler_gnu=yes
2406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407 echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412
Reid Spencera773bd52006-08-04 18:18:08 +00002413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002415
2416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420ac_test_CFLAGS=${CFLAGS+set}
2421ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002426else
Reid Spencera773bd52006-08-04 18:18:08 +00002427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2429 ac_cv_prog_cc_g=no
2430 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431 cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002437
John Criswell7a73b802003-06-30 21:59:07 +00002438int
2439main ()
2440{
2441
2442 ;
2443 return 0;
2444}
2445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446rm -f conftest.$ac_objext
2447if { (ac_try="$ac_compile"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464esac
2465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 CFLAGS=""
2486 cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002491/* end confdefs.h. */
2492
2493int
2494main ()
2495{
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002501rm -f conftest.$ac_objext
2502if { (ac_try="$ac_compile"
2503case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506esac
2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 :
Torok Edwin871384f2010-01-26 08:50:50 +00002536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002541 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002542 cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002547/* end confdefs.h. */
2548
2549int
2550main ()
2551{
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557rm -f conftest.$ac_objext
2558if { (ac_try="$ac_compile"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
John Criswell7a73b802003-06-30 21:59:07 +00002597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598
Reid Spencera773bd52006-08-04 18:18:08 +00002599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601
Reid Spencera773bd52006-08-04 18:18:08 +00002602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604
Reid Spencera773bd52006-08-04 18:18:08 +00002605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2614 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002615 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002617 fi
2618else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 if test "$GCC" = yes; then
2620 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002621 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002623 fi
2624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629else
Reid Spencera773bd52006-08-04 18:18:08 +00002630 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002632cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637/* end confdefs.h. */
2638#include <stdarg.h>
2639#include <stdio.h>
2640#include <sys/types.h>
2641#include <sys/stat.h>
2642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643struct buf { int x; };
2644FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645static char *e (p, i)
2646 char **p;
2647 int i;
2648{
2649 return p[i];
2650}
2651static char *f (char * (*g) (char **, int), char **p, ...)
2652{
2653 char *s;
2654 va_list v;
2655 va_start (v,p);
2656 s = g (p, va_arg (v,int));
2657 va_end (v);
2658 return s;
2659}
2660
2661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002664 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002667 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
Reid Spencera773bd52006-08-04 18:18:08 +00002670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2672#define FOO(x) 'x'
2673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675int test (int i, double x);
2676struct s1 {int (*f) (int a);};
2677struct s2 {int (*f) (double a);};
2678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679int argc;
2680char **argv;
2681int
2682main ()
2683{
2684return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2685 ;
2686 return 0;
2687}
2688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002691do
2692 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693 rm -f conftest.$ac_objext
2694if { (ac_try="$ac_compile"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002727 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002734
Reid Spencera773bd52006-08-04 18:18:08 +00002735rm -f core conftest.err conftest.$ac_objext
2736 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737done
Reid Spencera773bd52006-08-04 18:18:08 +00002738rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739CC=$ac_save_CC
2740
2741fi
Reid Spencera773bd52006-08-04 18:18:08 +00002742# AC_CACHE_VAL
2743case "x$ac_cv_prog_cc_c89" in
2744 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745 { echo "$as_me:$LINENO: result: none needed" >&5
2746echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002747 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 { echo "$as_me:$LINENO: result: unsupported" >&5
2749echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002751 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754esac
2755
John Criswell0c38eaf2003-09-10 15:17:25 +00002756
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757ac_ext=c
2758ac_cpp='$CPP $CPPFLAGS'
2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
Eric Christopherffee5722011-09-16 20:36:25 +00002763ac_ext=cpp
2764ac_cpp='$CXXCPP $CPPFLAGS'
2765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768if test -z "$CXX"; then
2769 if test -n "$CCC"; then
2770 CXX=$CCC
2771 else
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang++ llvm-g++ g++
2774 do
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779if test "${ac_cv_prog_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 if test -n "$CXX"; then
2783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802CXX=$ac_cv_prog_CXX
2803if test -n "$CXX"; then
2804 { echo "$as_me:$LINENO: result: $CXX" >&5
2805echo "${ECHO_T}$CXX" >&6; }
2806else
2807 { echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6; }
2809fi
2810
2811
2812 test -n "$CXX" && break
2813 done
2814fi
2815if test -z "$CXX"; then
2816 ac_ct_CXX=$CXX
2817 for ac_prog in clang++ llvm-g++ g++
2818do
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820set dummy $ac_prog; ac_word=$2
2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826 if test -n "$ac_ct_CXX"; then
2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CXX="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840done
2841done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847if test -n "$ac_ct_CXX"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6; }
2853fi
2854
2855
2856 test -n "$ac_ct_CXX" && break
2857done
2858
2859 if test "x$ac_ct_CXX" = x; then
2860 CXX="g++"
2861 else
2862 case $cross_compiling:$ac_tool_warned in
2863yes:)
2864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865whose name does not start with the host triplet. If you think this
2866configuration is useful to you, please write to autoconf@gnu.org." >&5
2867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet. If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870ac_tool_warned=yes ;;
2871esac
2872 CXX=$ac_ct_CXX
2873 fi
2874fi
2875
2876 fi
2877fi
2878# Provide some information about the compiler.
2879echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880ac_compiler=`set X $ac_compile; echo $2`
2881{ (ac_try="$ac_compiler --version >&5"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler --version >&5") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891{ (ac_try="$ac_compiler -v >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -v >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901{ (ac_try="$ac_compiler -V >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -V >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911
2912{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923
2924int
2925main ()
2926{
2927#ifndef __GNUC__
2928 choke me
2929#endif
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
2936if { (ac_try="$ac_compile"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_compiler_gnu=yes
2970else
2971 echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 ac_compiler_gnu=no
2975fi
2976
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980fi
2981{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983GXX=`test $ac_compiler_gnu = yes && echo yes`
2984ac_test_CXXFLAGS=${CXXFLAGS+set}
2985ac_save_CXXFLAGS=$CXXFLAGS
2986{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988if test "${ac_cv_prog_cxx_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992 ac_cxx_werror_flag=yes
2993 ac_cv_prog_cxx_g=no
2994 CXXFLAGS="-g"
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
3010rm -f conftest.$ac_objext
3011if { (ac_try="$ac_compile"
3012case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_cxx_g=yes
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 CXXFLAGS=""
3050 cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
3056
3057int
3058main ()
3059{
3060
3061 ;
3062 return 0;
3063}
3064_ACEOF
3065rm -f conftest.$ac_objext
3066if { (ac_try="$ac_compile"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 :
3100else
3101 echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105 CXXFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cxx_g=yes
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161fi
3162
3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171fi
3172{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174if test "$ac_test_CXXFLAGS" = set; then
3175 CXXFLAGS=$ac_save_CXXFLAGS
3176elif test $ac_cv_prog_cxx_g = yes; then
3177 if test "$GXX" = yes; then
3178 CXXFLAGS="-g -O2"
3179 else
3180 CXXFLAGS="-g"
3181 fi
3182else
3183 if test "$GXX" = yes; then
3184 CXXFLAGS="-O2"
3185 else
3186 CXXFLAGS=
3187 fi
3188fi
3189ac_ext=c
3190ac_cpp='$CPP $CPPFLAGS'
3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003200{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003202# On Suns, sometimes $CPP names a directory.
3203if test -n "$CPP" && test -d "$CPP"; then
3204 CPP=
3205fi
3206if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003207 if test "${ac_cv_prog_CPP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209else
3210 # Double quotes because CPP needs to be expanded
3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212 do
3213 ac_preproc_ok=false
3214for ac_c_preproc_warn_flag in '' yes
3215do
3216 # Use a header file that comes with gcc, so configuring glibc
3217 # with a fresh cross-compiler works.
3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219 # <limits.h> exists even on freestanding compilers.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227/* end confdefs.h. */
3228#ifdef __STDC__
3229# include <limits.h>
3230#else
3231# include <assert.h>
3232#endif
3233 Syntax error
3234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003235if { (ac_try="$ac_cpp conftest.$ac_ext"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251 else
3252 ac_cpp_err=
3253 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255 ac_cpp_err=yes
3256fi
3257if test -z "$ac_cpp_err"; then
3258 :
3259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 # Broken: fails on valid input.
3264continue
3265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267rm -f conftest.err conftest.$ac_ext
3268
Reid Spencera773bd52006-08-04 18:18:08 +00003269 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271 cat >conftest.$ac_ext <<_ACEOF
3272/* confdefs.h. */
3273_ACEOF
3274cat confdefs.h >>conftest.$ac_ext
3275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276/* end confdefs.h. */
3277#include <ac_nonexistent.h>
3278_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003279if { (ac_try="$ac_cpp conftest.$ac_ext"
3280case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
3300fi
3301if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302 # Broken: success on invalid input.
3303continue
3304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003305 echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 # Passes both tests.
3309ac_preproc_ok=:
3310break
3311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313rm -f conftest.err conftest.$ac_ext
3314
3315done
3316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003318if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319 break
3320fi
3321
3322 done
3323 ac_cv_prog_CPP=$CPP
3324
3325fi
3326 CPP=$ac_cv_prog_CPP
3327else
3328 ac_cv_prog_CPP=$CPP
3329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330{ echo "$as_me:$LINENO: result: $CPP" >&5
3331echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332ac_preproc_ok=false
3333for ac_c_preproc_warn_flag in '' yes
3334do
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341 cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346/* end confdefs.h. */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352 Syntax error
3353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003354if { (ac_try="$ac_cpp conftest.$ac_ext"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370 else
3371 ac_cpp_err=
3372 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 :
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382 # Broken: fails on valid input.
3383continue
3384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386rm -f conftest.err conftest.$ac_ext
3387
Reid Spencera773bd52006-08-04 18:18:08 +00003388 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395/* end confdefs.h. */
3396#include <ac_nonexistent.h>
3397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398if { (ac_try="$ac_cpp conftest.$ac_ext"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 else
3415 ac_cpp_err=
3416 fi
3417else
3418 ac_cpp_err=yes
3419fi
3420if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421 # Broken: success on invalid input.
3422continue
3423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003424 echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003437if $ac_preproc_ok; then
3438 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441See \`config.log' for more details." >&5
3442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445fi
3446
John Criswell7a73b802003-06-30 21:59:07 +00003447ac_ext=c
3448ac_cpp='$CPP $CPPFLAGS'
3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
John Criswell7a73b802003-06-30 21:59:07 +00003453
Eric Christopherffee5722011-09-16 20:36:25 +00003454
3455
3456if test -d ${srcdir}/projects/llvm-gcc ; then
3457 subdirs="$subdirs projects/llvm-gcc"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/test-suite ; then
3462 subdirs="$subdirs projects/test-suite"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/llvm-test ; then
3467 subdirs="$subdirs projects/llvm-test"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/poolalloc ; then
3472 subdirs="$subdirs projects/poolalloc"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477 subdirs="$subdirs projects/llvm-poolalloc"
3478
3479fi
3480
3481for i in `ls ${srcdir}/projects`
3482do
3483 if test -d ${srcdir}/projects/${i} ; then
3484 case ${i} in
3485 sample) subdirs="$subdirs projects/sample"
3486 ;;
3487 privbracket) subdirs="$subdirs projects/privbracket"
3488 ;;
3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490 ;;
3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3492;;
3493 llvm-java) subdirs="$subdirs projects/llvm-java"
3494 ;;
3495 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3496 ;;
3497 safecode) subdirs="$subdirs projects/safecode"
3498 ;;
3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3500 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003501 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003502 llvm-gcc) ;;
3503 test-suite) ;;
3504 llvm-test) ;;
3505 poolalloc) ;;
3506 llvm-poolalloc) ;;
3507 *)
3508 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510 ;;
3511 esac
3512 fi
3513done
3514
3515# Check whether --enable-polly was given.
3516if test "${enable_polly+set}" = set; then
3517 enableval=$enable_polly;
3518else
3519 enableval=default
3520fi
3521
3522case "$enableval" in
3523 yes) ENABLE_POLLY=1
3524 ;;
3525 no) ENABLE_POLLY=0
3526 ;;
3527 default) ENABLE_POLLY=1
3528 ;;
3529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531 { (exit 1); exit 1; }; } ;;
3532esac
3533
3534
3535if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3536 LLVM_HAS_POLLY=1
3537
3538 subdirs="$subdirs tools/polly"
3539
3540fi
3541
3542
3543# Make sure we can run config.sub.
3544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547 { (exit 1); exit 1; }; }
3548
3549{ echo "$as_me:$LINENO: checking build system type" >&5
3550echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551if test "${ac_cv_build+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 ac_build_alias=$build_alias
3555test "x$ac_build_alias" = x &&
3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557test "x$ac_build_alias" = x &&
3558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560 { (exit 1); exit 1; }; }
3561ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564 { (exit 1); exit 1; }; }
3565
3566fi
3567{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568echo "${ECHO_T}$ac_cv_build" >&6; }
3569case $ac_cv_build in
3570*-*-*) ;;
3571*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572echo "$as_me: error: invalid value of canonical build" >&2;}
3573 { (exit 1); exit 1; }; };;
3574esac
3575build=$ac_cv_build
3576ac_save_IFS=$IFS; IFS='-'
3577set x $ac_cv_build
3578shift
3579build_cpu=$1
3580build_vendor=$2
3581shift; shift
3582# Remember, the first character of IFS is used to create $*,
3583# except with old shells:
3584build_os=$*
3585IFS=$ac_save_IFS
3586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587
3588
3589{ echo "$as_me:$LINENO: checking host system type" >&5
3590echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591if test "${ac_cv_host+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 if test "x$host_alias" = x; then
3595 ac_cv_host=$ac_cv_build
3596else
3597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600 { (exit 1); exit 1; }; }
3601fi
3602
3603fi
3604{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605echo "${ECHO_T}$ac_cv_host" >&6; }
3606case $ac_cv_host in
3607*-*-*) ;;
3608*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609echo "$as_me: error: invalid value of canonical host" >&2;}
3610 { (exit 1); exit 1; }; };;
3611esac
3612host=$ac_cv_host
3613ac_save_IFS=$IFS; IFS='-'
3614set x $ac_cv_host
3615shift
3616host_cpu=$1
3617host_vendor=$2
3618shift; shift
3619# Remember, the first character of IFS is used to create $*,
3620# except with old shells:
3621host_os=$*
3622IFS=$ac_save_IFS
3623case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
3626{ echo "$as_me:$LINENO: checking target system type" >&5
3627echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628if test "${ac_cv_target+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 if test "x$target_alias" = x; then
3632 ac_cv_target=$ac_cv_host
3633else
3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3638fi
3639
3640fi
3641{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642echo "${ECHO_T}$ac_cv_target" >&6; }
3643case $ac_cv_target in
3644*-*-*) ;;
3645*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646echo "$as_me: error: invalid value of canonical target" >&2;}
3647 { (exit 1); exit 1; }; };;
3648esac
3649target=$ac_cv_target
3650ac_save_IFS=$IFS; IFS='-'
3651set x $ac_cv_target
3652shift
3653target_cpu=$1
3654target_vendor=$2
3655shift; shift
3656# Remember, the first character of IFS is used to create $*,
3657# except with old shells:
3658target_os=$*
3659IFS=$ac_save_IFS
3660case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663# The aliases save the names the user supplied, while $host etc.
3664# will get canonicalized.
3665test -n "$target_alias" &&
3666 test "$program_prefix$program_suffix$program_transform_name" = \
3667 NONENONEs,x,x, &&
3668 program_prefix=${target_alias}-
3669
3670{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672if test "${llvm_cv_os_type+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675 case $host in
3676 *-*-aix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="AIX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-irix*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="IRIX"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-cygwin*)
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="Cygwin"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-darwin*)
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Darwin"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-minix*)
3697 llvm_cv_link_all_option="-Wl,-all_load"
3698 llvm_cv_no_link_all_option="-Wl,-noall_load"
3699 llvm_cv_os_type="Minix"
3700 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003701 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="FreeBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-openbsd*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="OpenBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-netbsd*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="NetBSD"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-dragonfly*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="DragonFly"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-hpux*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="HP-UX"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-interix*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Interix"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-linux*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="Linux"
3735 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003736 *-*-gnu*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="GNU"
3740 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003741 *-*-solaris*)
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="SunOS"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-auroraux*)
3747 llvm_cv_link_all_option="-Wl,-z,allextract"
3748 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749 llvm_cv_os_type="AuroraUX"
3750 llvm_cv_platform_type="Unix" ;;
3751 *-*-win32*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Win32"
3755 llvm_cv_platform_type="Win32" ;;
3756 *-*-mingw*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="MingW"
3760 llvm_cv_platform_type="Win32" ;;
3761 *-*-haiku*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Haiku"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-unknown-eabi*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3771 *-unknown-elf*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Freestanding"
3775 llvm_cv_platform_type="Unix" ;;
3776 *)
3777 llvm_cv_link_all_option=""
3778 llvm_cv_no_link_all_option=""
3779 llvm_cv_os_type="Unknown"
3780 llvm_cv_platform_type="Unknown" ;;
3781esac
3782fi
3783{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3785
3786{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788if test "${llvm_cv_target_os_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791 case $target in
3792 *-*-aix*)
3793 llvm_cv_target_os_type="AIX" ;;
3794 *-*-irix*)
3795 llvm_cv_target_os_type="IRIX" ;;
3796 *-*-cygwin*)
3797 llvm_cv_target_os_type="Cygwin" ;;
3798 *-*-darwin*)
3799 llvm_cv_target_os_type="Darwin" ;;
3800 *-*-minix*)
3801 llvm_cv_target_os_type="Minix" ;;
3802 *-*-freebsd*)
3803 llvm_cv_target_os_type="FreeBSD" ;;
3804 *-*-openbsd*)
3805 llvm_cv_target_os_type="OpenBSD" ;;
3806 *-*-netbsd*)
3807 llvm_cv_target_os_type="NetBSD" ;;
3808 *-*-dragonfly*)
3809 llvm_cv_target_os_type="DragonFly" ;;
3810 *-*-hpux*)
3811 llvm_cv_target_os_type="HP-UX" ;;
3812 *-*-interix*)
3813 llvm_cv_target_os_type="Interix" ;;
3814 *-*-linux*)
3815 llvm_cv_target_os_type="Linux" ;;
3816 *-*-solaris*)
3817 llvm_cv_target_os_type="SunOS" ;;
3818 *-*-auroraux*)
3819 llvm_cv_target_os_type="AuroraUX" ;;
3820 *-*-win32*)
3821 llvm_cv_target_os_type="Win32" ;;
3822 *-*-mingw*)
3823 llvm_cv_target_os_type="MingW" ;;
3824 *-*-haiku*)
3825 llvm_cv_target_os_type="Haiku" ;;
3826 *-*-rtems*)
3827 llvm_cv_target_os_type="RTEMS" ;;
3828 *-*-nacl*)
3829 llvm_cv_target_os_type="NativeClient" ;;
3830 *-unknown-eabi*)
3831 llvm_cv_target_os_type="Freestanding" ;;
3832 *)
3833 llvm_cv_target_os_type="Unknown" ;;
3834esac
3835fi
3836{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3837echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3838
3839if test "$llvm_cv_os_type" = "Unknown" ; then
3840 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3841echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3842 { (exit 1); exit 1; }; }
3843fi
3844
3845OS=$llvm_cv_os_type
3846
3847HOST_OS=$llvm_cv_os_type
3848
3849TARGET_OS=$llvm_cv_target_os_type
3850
3851
3852LINKALL=$llvm_cv_link_all_option
3853
3854NOLINKALL=$llvm_cv_no_link_all_option
3855
3856
3857case $llvm_cv_platform_type in
3858 Unix)
3859
3860cat >>confdefs.h <<\_ACEOF
3861#define LLVM_ON_UNIX 1
3862_ACEOF
3863
3864 LLVM_ON_UNIX=1
3865
3866 LLVM_ON_WIN32=0
3867
3868 ;;
3869 Win32)
3870
3871cat >>confdefs.h <<\_ACEOF
3872#define LLVM_ON_WIN32 1
3873_ACEOF
3874
3875 LLVM_ON_UNIX=0
3876
3877 LLVM_ON_WIN32=1
3878
3879 ;;
3880esac
3881
3882{ echo "$as_me:$LINENO: checking target architecture" >&5
3883echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3884if test "${llvm_cv_target_arch+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 case $target in
3888 i?86-*) llvm_cv_target_arch="x86" ;;
3889 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3890 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3891 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003892 arm*-*) llvm_cv_target_arch="ARM" ;;
3893 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003894 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003895 xcore-*) llvm_cv_target_arch="XCore" ;;
3896 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003897 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003898 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3899 ptx-*) llvm_cv_target_arch="PTX" ;;
3900 *) llvm_cv_target_arch="Unknown" ;;
3901esac
3902fi
3903{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3904echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3905
3906if test "$llvm_cv_target_arch" = "Unknown" ; then
3907 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3908echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3909fi
3910
Eric Christopherffee5722011-09-16 20:36:25 +00003911case "$llvm_cv_target_arch" in
3912 x86) LLVM_NATIVE_ARCH="X86" ;;
3913 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3914 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3915esac
3916
3917ARCH=$llvm_cv_target_arch
3918
3919
3920
3921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3923echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3924if test "${ac_cv_path_GREP+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927 # Extract the first word of "grep ggrep" to use in msg output
3928if test -z "$GREP"; then
3929set dummy grep ggrep; ac_prog_name=$2
3930if test "${ac_cv_path_GREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
Reid Spencera773bd52006-08-04 18:18:08 +00003933 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003934# Loop through the user's path and test for each of PROGNAME-LIST
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003936for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940 for ac_prog in grep ggrep; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3943 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3944 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003945 # Check for GNU $ac_path_GREP
3946case `"$ac_path_GREP" --version 2>&1` in
3947*GNU*)
3948 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3949*)
3950 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003951 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003952 while :
3953 do
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_GREP="$ac_path_GREP"
3964 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003965 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3968 done
3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970esac
3971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003972
3973 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003974 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975done
3976
3977done
Reid Spencera773bd52006-08-04 18:18:08 +00003978IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979
3980
3981fi
3982
3983GREP="$ac_cv_path_GREP"
3984if test -z "$GREP"; then
3985 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3986echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3987 { (exit 1); exit 1; }; }
3988fi
3989
Reid Spencera773bd52006-08-04 18:18:08 +00003990else
3991 ac_cv_path_GREP=$GREP
3992fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994
Reid Spencera773bd52006-08-04 18:18:08 +00003995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3997echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003998 GREP="$ac_cv_path_GREP"
3999
4000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001{ echo "$as_me:$LINENO: checking for egrep" >&5
4002echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4003if test "${ac_cv_path_EGREP+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004005else
4006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4007 then ac_cv_path_EGREP="$GREP -E"
4008 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009 # Extract the first word of "egrep" to use in msg output
4010if test -z "$EGREP"; then
4011set dummy egrep; ac_prog_name=$2
4012if test "${ac_cv_path_EGREP+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
Reid Spencera773bd52006-08-04 18:18:08 +00004015 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004016# Loop through the user's path and test for each of PROGNAME-LIST
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022 for ac_prog in egrep; do
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4025 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4026 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004027 # Check for GNU $ac_path_EGREP
4028case `"$ac_path_EGREP" --version 2>&1` in
4029*GNU*)
4030 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4031*)
4032 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004034 while :
4035 do
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004042 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_EGREP="$ac_path_EGREP"
4046 ac_path_EGREP_max=$ac_count
4047 fi
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4050 done
4051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4052esac
4053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004054
4055 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004056 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057done
4058
4059done
Reid Spencera773bd52006-08-04 18:18:08 +00004060IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061
4062
4063fi
4064
4065EGREP="$ac_cv_path_EGREP"
4066if test -z "$EGREP"; then
4067 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4068echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4069 { (exit 1); exit 1; }; }
4070fi
4071
Reid Spencera773bd52006-08-04 18:18:08 +00004072else
4073 ac_cv_path_EGREP=$EGREP
4074fi
4075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076
Reid Spencera773bd52006-08-04 18:18:08 +00004077 fi
4078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4080echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004081 EGREP="$ac_cv_path_EGREP"
4082
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4085echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4086if test "${ac_cv_header_stdc+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004095#include <stdlib.h>
4096#include <stdarg.h>
4097#include <string.h>
4098#include <float.h>
4099
John Criswell0c38eaf2003-09-10 15:17:25 +00004100int
4101main ()
4102{
4103
4104 ;
4105 return 0;
4106}
John Criswell7a73b802003-06-30 21:59:07 +00004107_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004108rm -f conftest.$ac_objext
4109if { (ac_try="$ac_compile"
4110case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4123 { (case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_try") 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } &&
4132 { ac_try='test -s conftest.$ac_objext'
4133 { (case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_try") 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004142 ac_cv_header_stdc=yes
4143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149
Reid Spencera773bd52006-08-04 18:18:08 +00004150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004151
4152if test $ac_cv_header_stdc = yes; then
4153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004160#include <string.h>
4161
4162_ACEOF
4163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004164 $EGREP "memchr" >/dev/null 2>&1; then
4165 :
John Criswell7a73b802003-06-30 21:59:07 +00004166else
4167 ac_cv_header_stdc=no
4168fi
4169rm -f conftest*
4170
4171fi
4172
4173if test $ac_cv_header_stdc = yes; then
4174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004175 cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004181#include <stdlib.h>
4182
4183_ACEOF
4184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 $EGREP "free" >/dev/null 2>&1; then
4186 :
John Criswell7a73b802003-06-30 21:59:07 +00004187else
4188 ac_cv_header_stdc=no
4189fi
4190rm -f conftest*
4191
4192fi
4193
4194if test $ac_cv_header_stdc = yes; then
4195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004196 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004197 :
4198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004199 cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004205#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004206#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004207#if ((' ' & 0x0FF) == 0x020)
4208# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4209# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4210#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004211# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004212 (('a' <= (c) && (c) <= 'i') \
4213 || ('j' <= (c) && (c) <= 'r') \
4214 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004215# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4216#endif
4217
4218#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4219int
4220main ()
4221{
4222 int i;
4223 for (i = 0; i < 256; i++)
4224 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004225 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004226 return 2;
4227 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004228}
4229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004230rm -f conftest$ac_exeext
4231if { (ac_try="$ac_link"
4232case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_link") 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 :
John Criswell7a73b802003-06-30 21:59:07 +00004251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252 echo "$as_me: program exited with status $ac_status" >&5
4253echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256( exit $ac_status )
4257ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004259rm -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 +00004260fi
4261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262
John Criswell7a73b802003-06-30 21:59:07 +00004263fi
4264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004267if test $ac_cv_header_stdc = yes; then
4268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004269cat >>confdefs.h <<\_ACEOF
4270#define STDC_HEADERS 1
4271_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004272
4273fi
4274
Reid Spencera773bd52006-08-04 18:18:08 +00004275# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276
4277
4278
4279
4280
4281
4282
4283
4284
Reid Spencera773bd52006-08-04 18:18:08 +00004285for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287do
4288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294 cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
4300$ac_includes_default
4301
4302#include <$ac_header>
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (ac_try="$ac_compile"
4306case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 eval "$as_ac_Header=yes"
4339else
4340 echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 eval "$as_ac_Header=no"
4344fi
4345
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347fi
4348ac_res=`eval echo '${'$as_ac_Header'}'`
4349 { echo "$as_me:$LINENO: result: $ac_res" >&5
4350echo "${ECHO_T}$ac_res" >&6; }
4351if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004352 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004354_ACEOF
4355
4356fi
4357
4358done
4359
4360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004361{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4362echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4363if test "${ac_cv_c_bigendian+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366 # See if sys/param.h defines the BYTE_ORDER macro.
4367cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004372/* end confdefs.h. */
4373#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004375
4376int
4377main ()
4378{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4380 bogus endian macros
4381#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004382
4383 ;
4384 return 0;
4385}
4386_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387rm -f conftest.$ac_objext
4388if { (ac_try="$ac_compile"
4389case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004421 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004427/* end confdefs.h. */
4428#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004429#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004430
4431int
4432main ()
4433{
4434#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004435 not big endian
4436#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004437
4438 ;
4439 return 0;
4440}
4441_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442rm -f conftest.$ac_objext
4443if { (ac_try="$ac_compile"
4444case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447esac
4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_compile") 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470esac
4471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_try") 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004476 ac_cv_c_bigendian=yes
4477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004478 echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 ac_cv_c_bigendian=no
4482fi
4483
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485else
4486 echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 # It does not; compile a test program.
4490if test "$cross_compiling" = yes; then
4491 # try to guess the endianness by grepping values into an object file
4492 ac_cv_c_bigendian=unknown
4493 cat >conftest.$ac_ext <<_ACEOF
4494/* confdefs.h. */
4495_ACEOF
4496cat confdefs.h >>conftest.$ac_ext
4497cat >>conftest.$ac_ext <<_ACEOF
4498/* end confdefs.h. */
4499short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4500short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4501void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4502short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4503short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4504void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004505int
4506main ()
4507{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004509 ;
4510 return 0;
4511}
4512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513rm -f conftest.$ac_objext
4514if { (ac_try="$ac_compile"
4515case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
4519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_compile") 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4528 { (case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_try") 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; } &&
4537 { ac_try='test -s conftest.$ac_objext'
4538 { (case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541esac
4542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_try") 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004548 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549fi
4550if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4551 if test "$ac_cv_c_bigendian" = unknown; then
4552 ac_cv_c_bigendian=no
4553 else
4554 # finding both strings is unlikely to happen, but who knows?
4555 ac_cv_c_bigendian=unknown
4556 fi
4557fi
Reid Spencera773bd52006-08-04 18:18:08 +00004558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559 echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562
Torok Edwin871384f2010-01-26 08:50:50 +00004563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564
Reid Spencera773bd52006-08-04 18:18:08 +00004565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h. */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004572/* end confdefs.h. */
4573$ac_includes_default
4574int
4575main ()
4576{
4577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004578 /* Are we little or big endian? From Harbison&Steele. */
4579 union
4580 {
4581 long int l;
4582 char c[sizeof (long int)];
4583 } u;
4584 u.l = 1;
4585 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004586
4587 ;
4588 return 0;
4589}
4590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591rm -f conftest$ac_exeext
4592if { (ac_try="$ac_link"
4593case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
4597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_link") 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4602 { (case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605esac
4606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_try") 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004611 ac_cv_c_bigendian=no
4612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 echo "$as_me: program exited with status $ac_status" >&5
4614echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617( exit $ac_status )
4618ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620rm -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 +00004621fi
4622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623
Reid Spencera773bd52006-08-04 18:18:08 +00004624fi
4625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627fi
4628{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4629echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4630case $ac_cv_c_bigendian in
4631 yes)
4632 ENDIAN=big
4633 ;;
4634 no)
4635 ENDIAN=little
4636 ;;
4637 *)
4638 { { echo "$as_me:$LINENO: error: unknown endianness
4639presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4640echo "$as_me: error: unknown endianness
4641presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4642 { (exit 1); exit 1; }; } ;;
4643esac
Reid Spencera773bd52006-08-04 18:18:08 +00004644
4645
4646if test "$cross_compiling" = yes; then
4647 LLVM_CROSS_COMPILING=1
4648
4649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4651echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4652if test "${ac_cv_build_exeext+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004654else
4655 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4656 ac_cv_build_exeext=.exe
4657else
4658 ac_build_prefix=${build_alias}-
4659
4660 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4661set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004666else
4667 if test -n "$BUILD_CC"; then
4668 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 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 +00004677 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004679 break 2
4680 fi
4681done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682done
Reid Spencera773bd52006-08-04 18:18:08 +00004683IFS=$as_save_IFS
4684
4685fi
4686fi
4687BUILD_CC=$ac_cv_prog_BUILD_CC
4688if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4690echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004692 { echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004694fi
4695
4696
4697 if test -z "$BUILD_CC"; then
4698 # Extract the first word of "gcc", so it can be a program name with args.
4699set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004704else
4705 if test -n "$BUILD_CC"; then
4706 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 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 +00004715 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004717 break 2
4718 fi
4719done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720done
Reid Spencera773bd52006-08-04 18:18:08 +00004721IFS=$as_save_IFS
4722
4723fi
4724fi
4725BUILD_CC=$ac_cv_prog_BUILD_CC
4726if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4728echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004729else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730 { echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004732fi
4733
4734
4735 if test -z "$BUILD_CC"; then
4736 # Extract the first word of "cc", so it can be a program name with args.
4737set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004742else
4743 if test -n "$BUILD_CC"; then
4744 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4745else
4746 ac_prog_rejected=no
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 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 +00004754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4755 ac_prog_rejected=yes
4756 continue
4757 fi
4758 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004760 break 2
4761 fi
4762done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763done
Reid Spencera773bd52006-08-04 18:18:08 +00004764IFS=$as_save_IFS
4765
4766if test $ac_prog_rejected = yes; then
4767 # We found a bogon in the path, so make sure we never use it.
4768 set dummy $ac_cv_prog_BUILD_CC
4769 shift
4770 if test $# != 0; then
4771 # We chose a different compiler from the bogus one.
4772 # However, it has the same basename, so the bogon will be chosen
4773 # first if we set BUILD_CC to just the basename; use the full file name.
4774 shift
4775 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4776 fi
4777fi
4778fi
4779fi
4780BUILD_CC=$ac_cv_prog_BUILD_CC
4781if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4783echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 { echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004787fi
4788
4789
4790 fi
4791 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004792 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4793echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4794 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004795 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4796 rm -f conftest*
4797 echo 'int main () { return 0; }' > conftest.$ac_ext
4798 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004800 (eval $ac_build_link) 2>&5
4801 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004804 for file in conftest.*; do
4805 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004806 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004807 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4808 esac
4809 done
4810 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004811 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4812echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4813 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004814 fi
4815 rm -f conftest*
4816 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4817fi
4818fi
4819
4820BUILD_EXEEXT=""
4821test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4823echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004824ac_build_exeext=$BUILD_EXEEXT
4825
Jim Grosbach673612e2008-10-02 22:56:44 +00004826 ac_build_prefix=${build_alias}-
4827 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4828set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004833else
4834 if test -n "$BUILD_CXX"; then
4835 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4836else
4837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838for as_dir in $PATH
4839do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 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 +00004844 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004846 break 2
4847 fi
4848done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004849done
Jim Grosbach673612e2008-10-02 22:56:44 +00004850IFS=$as_save_IFS
4851
4852fi
4853fi
4854BUILD_CXX=$ac_cv_prog_BUILD_CXX
4855if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4857echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859 { echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004861fi
4862
4863
4864 if test -z "$BUILD_CXX"; then
4865 # Extract the first word of "g++", so it can be a program name with args.
4866set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004871else
4872 if test -n "$BUILD_CXX"; then
4873 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 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 +00004882 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004884 break 2
4885 fi
4886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887done
Jim Grosbach673612e2008-10-02 22:56:44 +00004888IFS=$as_save_IFS
4889
4890fi
4891fi
4892BUILD_CXX=$ac_cv_prog_BUILD_CXX
4893if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4895echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897 { echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004899fi
4900
4901
4902 if test -z "$BUILD_CXX"; then
4903 # Extract the first word of "c++", so it can be a program name with args.
4904set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004909else
4910 if test -n "$BUILD_CXX"; then
4911 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4912else
4913 ac_prog_rejected=no
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 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 +00004921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4922 ac_prog_rejected=yes
4923 continue
4924 fi
4925 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004927 break 2
4928 fi
4929done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004930done
Jim Grosbach673612e2008-10-02 22:56:44 +00004931IFS=$as_save_IFS
4932
4933if test $ac_prog_rejected = yes; then
4934 # We found a bogon in the path, so make sure we never use it.
4935 set dummy $ac_cv_prog_BUILD_CXX
4936 shift
4937 if test $# != 0; then
4938 # We chose a different compiler from the bogus one.
4939 # However, it has the same basename, so the bogon will be chosen
4940 # first if we set BUILD_CXX to just the basename; use the full file name.
4941 shift
4942 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4943 fi
4944fi
4945fi
4946fi
4947BUILD_CXX=$ac_cv_prog_BUILD_CXX
4948if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004949 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4950echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004951else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952 { echo "$as_me:$LINENO: result: no" >&5
4953echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004954fi
4955
4956
4957 fi
4958 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004959else
4960 LLVM_CROSS_COMPILING=0
4961
4962fi
4963
Dan Gohman56fb5f92010-08-04 16:25:01 +00004964if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004965 cvsbuild="yes"
4966 optimize="no"
4967 CVSBUILD=CVSBUILD=1
4968
4969else
4970 cvsbuild="no"
4971 optimize="yes"
4972fi
4973
4974
Eric Christopherbee515f2011-11-11 22:51:42 +00004975# Check whether --enable-libcpp was given.
4976if test "${enable_libcpp+set}" = set; then
4977 enableval=$enable_libcpp;
4978else
4979 enableval=default
4980fi
4981
4982case "$enableval" in
4983 yes) ENABLE_LIBCPP=1
4984 ;;
4985 no) ENABLE_LIBCPP=0
4986 ;;
4987 default) ENABLE_LIBCPP=0
4988;;
4989 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4990echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4991 { (exit 1); exit 1; }; } ;;
4992esac
4993
Reid Spencera773bd52006-08-04 18:18:08 +00004994# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004995if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004996 enableval=$enable_optimized;
4997else
4998 enableval=$optimize
4999fi
5000
5001if test ${enableval} = "no" ; then
5002 ENABLE_OPTIMIZED=
5003
5004else
5005 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5006
5007fi
5008
David Greene2a5a12c2009-04-17 14:50:39 +00005009# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005010if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005011 enableval=$enable_profiling;
5012else
5013 enableval="no"
5014fi
5015
5016if test ${enableval} = "no" ; then
5017 ENABLE_PROFILING=
5018
5019else
5020 ENABLE_PROFILING=ENABLE_PROFILING=1
5021
5022fi
5023
Reid Spencera773bd52006-08-04 18:18:08 +00005024# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005025if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005026 enableval=$enable_assertions;
5027else
5028 enableval="yes"
5029fi
5030
5031if test ${enableval} = "yes" ; then
5032 DISABLE_ASSERTIONS=
5033
5034else
5035 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5036
5037fi
5038
David Greenea696d242007-06-28 19:36:08 +00005039# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005040if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005041 enableval=$enable_expensive_checks;
5042else
5043 enableval="no"
5044fi
5045
5046if test ${enableval} = "yes" ; then
5047 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048
5049 EXPENSIVE_CHECKS=yes
5050
5051else
5052 ENABLE_EXPENSIVE_CHECKS=
5053
5054 EXPENSIVE_CHECKS=no
5055
5056fi
5057
Reid Spencer8b2e1412006-11-17 03:32:33 +00005058# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005059if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005060 enableval=$enable_debug_runtime;
5061else
5062 enableval=no
5063fi
5064
5065if test ${enableval} = "no" ; then
5066 DEBUG_RUNTIME=
5067
5068else
5069 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5070
5071fi
5072
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005073# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005074if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005075 enableval=$enable_debug_symbols;
5076else
5077 enableval=no
5078fi
5079
5080if test ${enableval} = "no" ; then
5081 DEBUG_SYMBOLS=
5082
5083else
5084 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5085
5086fi
5087
Reid Spencera773bd52006-08-04 18:18:08 +00005088# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005089if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005090 enableval=$enable_jit;
5091else
5092 enableval=default
5093fi
5094
5095if test ${enableval} = "no"
5096then
5097 JIT=
5098
5099else
5100 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005101 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005102 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005103 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005104 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005105 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005106 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005107 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005108 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005109 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005110 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005111 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005112 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005113 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005114 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005115 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005116 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005117 Hexagon) TARGET_HAS_JIT=0
5118 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005119 MBlaze) TARGET_HAS_JIT=0
5120 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005121 PTX) TARGET_HAS_JIT=0
5122 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005123 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005124 ;;
5125 esac
5126fi
5127
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005128# Check whether --enable-docs was given.
5129if test "${enable_docs+set}" = set; then
5130 enableval=$enable_docs;
5131else
5132 enableval=default
5133fi
5134
5135case "$enableval" in
5136 yes) ENABLE_DOCS=1
5137 ;;
5138 no) ENABLE_DOCS=0
5139 ;;
5140 default) ENABLE_DOCS=1
5141 ;;
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5143echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5145esac
5146
Reid Spencera773bd52006-08-04 18:18:08 +00005147# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005149 enableval=$enable_doxygen;
5150else
5151 enableval=default
5152fi
5153
5154case "$enableval" in
5155 yes) ENABLE_DOXYGEN=1
5156 ;;
5157 no) ENABLE_DOXYGEN=0
5158 ;;
5159 default) ENABLE_DOXYGEN=0
5160 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5162echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005164esac
5165
5166# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005167if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005168 enableval=$enable_threads;
5169else
Reid Spencer65c5d752006-11-05 17:08:18 +00005170 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005171fi
5172
5173case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005174 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005175 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005176 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005177 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005178 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005179 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005180 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5181echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5182 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005183esac
5184
Owen Andersona8603702009-05-19 22:18:56 +00005185cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005186#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005187_ACEOF
5188
5189
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005190# Check whether --enable-pthreads was given.
5191if test "${enable_pthreads+set}" = set; then
5192 enableval=$enable_pthreads;
5193else
5194 enableval=default
5195fi
5196
5197case "$enableval" in
5198 yes) ENABLE_PTHREADS=1
5199 ;;
5200 no) ENABLE_PTHREADS=0
5201 ;;
5202 default) ENABLE_PTHREADS=1
5203 ;;
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5205echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5207esac
5208
Reid Spencer89b0d992006-12-16 22:07:52 +00005209# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005211 enableval=$enable_pic;
5212else
5213 enableval=default
5214fi
5215
5216case "$enableval" in
5217 yes) ENABLE_PIC=1
5218 ;;
5219 no) ENABLE_PIC=0
5220 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005221 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005222 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5224echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005226esac
5227
5228cat >>confdefs.h <<_ACEOF
5229#define ENABLE_PIC $ENABLE_PIC
5230_ACEOF
5231
5232
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005233# Check whether --enable-shared was given.
5234if test "${enable_shared+set}" = set; then
5235 enableval=$enable_shared;
5236else
5237 enableval=default
5238fi
5239
5240case "$enableval" in
5241 yes) ENABLE_SHARED=1
5242 ;;
5243 no) ENABLE_SHARED=0
5244 ;;
5245 default) ENABLE_SHARED=0
5246 ;;
5247 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5248echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5250esac
5251
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005252# Check whether --enable-embed-stdcxx was given.
5253if test "${enable_embed_stdcxx+set}" = set; then
5254 enableval=$enable_embed_stdcxx;
5255else
5256 enableval=default
5257fi
5258
5259case "$enableval" in
5260 yes) ENABLE_EMBED_STDCXX=1
5261 ;;
5262 no) ENABLE_EMBED_STDCXX=0
5263 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005264 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005265 ;;
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5267echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5269esac
5270
Daniel Dunbardd464df2010-05-10 20:11:56 +00005271# Check whether --enable-timestamps was given.
5272if test "${enable_timestamps+set}" = set; then
5273 enableval=$enable_timestamps;
5274else
5275 enableval=default
5276fi
5277
5278case "$enableval" in
5279 yes) ENABLE_TIMESTAMPS=1
5280 ;;
5281 no) ENABLE_TIMESTAMPS=0
5282 ;;
5283 default) ENABLE_TIMESTAMPS=1
5284 ;;
5285 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5286echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5288esac
5289
5290cat >>confdefs.h <<_ACEOF
5291#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5292_ACEOF
5293
5294
Reid Spencera773bd52006-08-04 18:18:08 +00005295TARGETS_TO_BUILD=""
5296# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005297if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005298 enableval=$enable_targets;
5299else
5300 enableval=all
5301fi
5302
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005303if test "$enableval" = host-only ; then
5304 enableval=host
5305fi
Reid Spencera773bd52006-08-04 18:18:08 +00005306case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005307 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005308 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005310 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5313 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005314 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005316 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005317 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005318 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005320 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005322 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005323 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005324 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005325 host) case "$llvm_cv_target_arch" in
5326 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005330 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005332 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005333 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005334 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005336 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005337 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005338 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5339echo "$as_me: error: Can not set target to build" >&2;}
5340 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005341 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005342 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5343echo "$as_me: error: Unrecognized target $a_target" >&2;}
5344 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005345 esac
5346 done
5347 ;;
5348esac
Reid Spencera773bd52006-08-04 18:18:08 +00005349TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5350
5351
Douglas Gregor0711c302009-06-17 00:43:20 +00005352for a_target in $TARGETS_TO_BUILD; do
5353 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5354
5355cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005356#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5357_ACEOF
5358
5359 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5360 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005361 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005362 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005363 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5364 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5365 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005366
5367cat >>confdefs.h <<_ACEOF
5368#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005369_ACEOF
5370
5371
5372cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005373#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5374_ACEOF
5375
5376
5377cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005378#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005379_ACEOF
5380
5381
5382cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005383#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005384_ACEOF
5385
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005386 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005387
5388cat >>confdefs.h <<_ACEOF
5389#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5390_ACEOF
5391
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005392 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005393 fi
5394done
5395
Douglas Gregor1555a232009-06-16 20:12:29 +00005396LLVM_ENUM_TARGETS=""
5397LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005398LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005399LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005400for target_to_build in $TARGETS_TO_BUILD; do
5401 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005402 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005403 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5404 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005405 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5407 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005408 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5410 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005411done
5412
5413
5414
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005415
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005416
Reid Spencer65c5d752006-11-05 17:08:18 +00005417# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005418if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005419 enableval=$enable_cbe_printf_a;
5420else
5421 enableval=default
5422fi
5423
5424case "$enableval" in
5425 yes) ENABLE_CBE_PRINTF_A=1
5426 ;;
5427 no) ENABLE_CBE_PRINTF_A=0
5428 ;;
5429 default) ENABLE_CBE_PRINTF_A=1
5430 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005434esac
5435
5436cat >>confdefs.h <<_ACEOF
5437#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5438_ACEOF
5439
5440
Reid Spencera773bd52006-08-04 18:18:08 +00005441
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005442# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005444 withval=$with_optimize_option;
5445else
5446 withval=default
5447fi
5448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449{ echo "$as_me:$LINENO: checking optimization flags" >&5
5450echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005451case "$withval" in
5452 default)
5453 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005454 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005455 MingW) optimize_option=-O2 ;;
5456 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005457 esac ;;
5458 *) optimize_option="$withval" ;;
5459esac
5460OPTIMIZE_OPTION=$optimize_option
5461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005462{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5463echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005464
5465
Reid Spencera773bd52006-08-04 18:18:08 +00005466# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005467if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005468 withval=$with_extra_options;
5469else
5470 withval=default
5471fi
5472
5473case "$withval" in
5474 default) EXTRA_OPTIONS= ;;
5475 *) EXTRA_OPTIONS=$withval ;;
5476esac
5477EXTRA_OPTIONS=$EXTRA_OPTIONS
5478
5479
Daniel Dunbared344d22011-06-16 22:30:41 +00005480
5481# Check whether --with-extra-ld-options was given.
5482if test "${with_extra_ld_options+set}" = set; then
5483 withval=$with_extra_ld_options;
5484else
5485 withval=default
5486fi
5487
5488case "$withval" in
5489 default) EXTRA_LD_OPTIONS= ;;
5490 *) EXTRA_LD_OPTIONS=$withval ;;
5491esac
5492EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5493
5494
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005495# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005496if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005497 enableval=$enable_bindings;
5498else
5499 enableval=default
5500fi
5501
5502BINDINGS_TO_BUILD=""
5503case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005504 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005505 all ) BINDINGS_TO_BUILD="ocaml" ;;
5506 none | no) BINDINGS_TO_BUILD="" ;;
5507 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508 case "$a_binding" in
5509 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005513 esac
5514 done
5515 ;;
5516esac
5517
Reid Spencera773bd52006-08-04 18:18:08 +00005518
Gordon Henriksenf0915682007-10-02 16:42:22 +00005519# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005521 withval=$with_ocaml_libdir;
5522else
5523 withval=auto
5524fi
5525
5526case "$withval" in
5527 auto) with_ocaml_libdir="$withval" ;;
5528 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005529 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005532esac
5533
5534
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005535# Check whether --with-clang-srcdir was given.
5536if test "${with_clang_srcdir+set}" = set; then
5537 withval=$with_clang_srcdir;
5538else
5539 withval="-"
5540fi
5541
5542case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005543 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005544 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545 *) clang_src_root="$ac_pwd/$withval" ;;
5546esac
5547CLANG_SRC_ROOT=$clang_src_root
5548
5549
5550
Chandler Carruth6b241162010-10-19 08:21:25 +00005551# Check whether --with-clang-resource-dir was given.
5552if test "${with_clang_resource_dir+set}" = set; then
5553 withval=$with_clang_resource_dir;
5554else
5555 withval=""
5556fi
5557
5558
5559cat >>confdefs.h <<_ACEOF
5560#define CLANG_RESOURCE_DIR "$withval"
5561_ACEOF
5562
5563
5564
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005565# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005567 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005568else
5569 withval=""
5570fi
5571
5572
5573cat >>confdefs.h <<_ACEOF
5574#define C_INCLUDE_DIRS "$withval"
5575_ACEOF
5576
5577
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005578# Clang normally uses the system c++ headers and libraries. With this option,
5579# clang will use the ones provided by a gcc installation instead. This option should
5580# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005581
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005582# Check whether --with-gcc-toolchain was given.
5583if test "${with_gcc_toolchain+set}" = set; then
5584 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005585else
5586 withval=""
5587fi
5588
5589
5590cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005591#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005592_ACEOF
5593
5594
5595
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005596# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005598 withval=$with_binutils_include;
5599else
5600 withval=default
5601fi
5602
5603case "$withval" in
5604 default) WITH_BINUTILS_INCDIR=default ;;
5605 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005606 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5607echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5608 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005609esac
5610if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5611 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5612
5613 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5614 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005615 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5616echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5617 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005618 fi
5619fi
5620
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005621
5622# Check whether --with-bug-report-url was given.
5623if test "${with_bug_report_url+set}" = set; then
5624 withval=$with_bug_report_url;
5625else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005626 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005627fi
5628
5629
5630cat >>confdefs.h <<_ACEOF
5631#define BUG_REPORT_URL "$withval"
5632_ACEOF
5633
5634
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005635# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005637 enableval=$enable_libffi; case "$enableval" in
5638 yes) llvm_cv_enable_libffi="yes" ;;
5639 no) llvm_cv_enable_libffi="no" ;;
5640 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005641echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5642 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005643 esac
5644else
5645 llvm_cv_enable_libffi=no
5646fi
5647
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005648
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005649
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005650# Check whether --with-internal-prefix was given.
5651if test "${with_internal_prefix+set}" = set; then
5652 withval=$with_internal_prefix;
5653else
5654 withval=""
5655fi
5656
5657INTERNAL_PREFIX=$withval
5658
5659
5660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005661{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5662echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5663if test "${lt_cv_path_NM+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005665else
5666 if test -n "$NM"; then
5667 # Let the user override the test.
5668 lt_cv_path_NM="$NM"
5669else
5670 lt_nm_to_check="${ac_tool_prefix}nm"
5671 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5672 lt_nm_to_check="$lt_nm_to_check nm"
5673 fi
5674 for lt_tmp_nm in $lt_nm_to_check; do
5675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5676 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5677 IFS="$lt_save_ifs"
5678 test -z "$ac_dir" && ac_dir=.
5679 tmp_nm="$ac_dir/$lt_tmp_nm"
5680 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5681 # Check to see if the nm accepts a BSD-compat flag.
5682 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5683 # nm: unknown option "B" ignored
5684 # Tru64's nm complains that /dev/null is an invalid object file
5685 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5686 */dev/null* | *'Invalid file or object type'*)
5687 lt_cv_path_NM="$tmp_nm -B"
5688 break
5689 ;;
5690 *)
5691 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5692 */dev/null*)
5693 lt_cv_path_NM="$tmp_nm -p"
5694 break
5695 ;;
5696 *)
5697 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5698 continue # so that we can try to find one that supports BSD flags
5699 ;;
5700 esac
5701 ;;
5702 esac
5703 fi
5704 done
5705 IFS="$lt_save_ifs"
5706 done
5707 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5708fi
5709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5711echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005712NM="$lt_cv_path_NM"
5713
5714
5715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005716{ echo "$as_me:$LINENO: checking for GNU make" >&5
5717echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5718if test "${llvm_cv_gnu_make_command+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005720else
5721 llvm_cv_gnu_make_command=''
5722 for a in "$MAKE" make gmake gnumake ; do
5723 if test -z "$a" ; then continue ; fi ;
5724 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5725 then
5726 llvm_cv_gnu_make_command=$a ;
5727 break;
5728 fi
5729 done
5730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5732echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005733 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5734 ifGNUmake='' ;
5735 else
5736 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5738echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005739 fi
5740
5741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5743echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005744LN_S=$as_ln_s
5745if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746 { echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5750echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005751fi
5752
5753# Extract the first word of "cmp", so it can be a program name with args.
5754set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757if test "${ac_cv_path_CMP+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005759else
5760 case $CMP in
5761 [\\/]* | ?:[\\/]*)
5762 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5763 ;;
5764 *)
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 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 +00005772 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005774 break 2
5775 fi
5776done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005777done
Reid Spencera773bd52006-08-04 18:18:08 +00005778IFS=$as_save_IFS
5779
5780 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5781 ;;
5782esac
5783fi
5784CMP=$ac_cv_path_CMP
5785if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786 { echo "$as_me:$LINENO: result: $CMP" >&5
5787echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 { echo "$as_me:$LINENO: result: no" >&5
5790echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005791fi
5792
5793
5794# Extract the first word of "cp", so it can be a program name with args.
5795set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798if test "${ac_cv_path_CP+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005800else
5801 case $CP in
5802 [\\/]* | ?:[\\/]*)
5803 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5804 ;;
5805 *)
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 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 +00005813 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005815 break 2
5816 fi
5817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818done
Reid Spencera773bd52006-08-04 18:18:08 +00005819IFS=$as_save_IFS
5820
5821 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5822 ;;
5823esac
5824fi
5825CP=$ac_cv_path_CP
5826if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827 { echo "$as_me:$LINENO: result: $CP" >&5
5828echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830 { echo "$as_me:$LINENO: result: no" >&5
5831echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005832fi
5833
5834
5835# Extract the first word of "date", so it can be a program name with args.
5836set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5839if test "${ac_cv_path_DATE+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005841else
5842 case $DATE in
5843 [\\/]* | ?:[\\/]*)
5844 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5845 ;;
5846 *)
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 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 +00005854 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005856 break 2
5857 fi
5858done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859done
Reid Spencera773bd52006-08-04 18:18:08 +00005860IFS=$as_save_IFS
5861
5862 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5863 ;;
5864esac
5865fi
5866DATE=$ac_cv_path_DATE
5867if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868 { echo "$as_me:$LINENO: result: $DATE" >&5
5869echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871 { echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005873fi
5874
5875
5876# Extract the first word of "find", so it can be a program name with args.
5877set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5880if test "${ac_cv_path_FIND+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005882else
5883 case $FIND in
5884 [\\/]* | ?:[\\/]*)
5885 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5886 ;;
5887 *)
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 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 +00005895 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005897 break 2
5898 fi
5899done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900done
Reid Spencera773bd52006-08-04 18:18:08 +00005901IFS=$as_save_IFS
5902
5903 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5904 ;;
5905esac
5906fi
5907FIND=$ac_cv_path_FIND
5908if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909 { echo "$as_me:$LINENO: result: $FIND" >&5
5910echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912 { echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005914fi
5915
5916
5917# Extract the first word of "grep", so it can be a program name with args.
5918set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921if test "${ac_cv_path_GREP+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005923else
5924 case $GREP in
5925 [\\/]* | ?:[\\/]*)
5926 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5927 ;;
5928 *)
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 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 +00005936 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005938 break 2
5939 fi
5940done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941done
Reid Spencera773bd52006-08-04 18:18:08 +00005942IFS=$as_save_IFS
5943
5944 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5945 ;;
5946esac
5947fi
5948GREP=$ac_cv_path_GREP
5949if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005950 { echo "$as_me:$LINENO: result: $GREP" >&5
5951echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953 { echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005955fi
5956
5957
5958# Extract the first word of "mkdir", so it can be a program name with args.
5959set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962if test "${ac_cv_path_MKDIR+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005964else
5965 case $MKDIR in
5966 [\\/]* | ?:[\\/]*)
5967 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5968 ;;
5969 *)
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 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 +00005977 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005979 break 2
5980 fi
5981done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982done
Reid Spencera773bd52006-08-04 18:18:08 +00005983IFS=$as_save_IFS
5984
5985 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5986 ;;
5987esac
5988fi
5989MKDIR=$ac_cv_path_MKDIR
5990if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5992echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 { echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005996fi
5997
5998
5999# Extract the first word of "mv", so it can be a program name with args.
6000set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003if test "${ac_cv_path_MV+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006005else
6006 case $MV in
6007 [\\/]* | ?:[\\/]*)
6008 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6009 ;;
6010 *)
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 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 +00006018 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006020 break 2
6021 fi
6022done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023done
Reid Spencera773bd52006-08-04 18:18:08 +00006024IFS=$as_save_IFS
6025
6026 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6027 ;;
6028esac
6029fi
6030MV=$ac_cv_path_MV
6031if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032 { echo "$as_me:$LINENO: result: $MV" >&5
6033echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035 { echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006037fi
6038
6039
6040if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045if test "${ac_cv_prog_RANLIB+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006047else
6048 if test -n "$RANLIB"; then
6049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 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 +00006058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006060 break 2
6061 fi
6062done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063done
Reid Spencera773bd52006-08-04 18:18:08 +00006064IFS=$as_save_IFS
6065
6066fi
6067fi
6068RANLIB=$ac_cv_prog_RANLIB
6069if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6071echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006073 { echo "$as_me:$LINENO: result: no" >&5
6074echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006075fi
6076
6077
6078fi
6079if test -z "$ac_cv_prog_RANLIB"; then
6080 ac_ct_RANLIB=$RANLIB
6081 # Extract the first word of "ranlib", so it can be a program name with args.
6082set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6085if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006087else
6088 if test -n "$ac_ct_RANLIB"; then
6089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 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 +00006098 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006100 break 2
6101 fi
6102done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006103done
Reid Spencera773bd52006-08-04 18:18:08 +00006104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6111echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006113 { echo "$as_me:$LINENO: result: no" >&5
6114echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006115fi
6116
6117 if test "x$ac_ct_RANLIB" = x; then
6118 RANLIB=":"
6119 else
6120 case $cross_compiling:$ac_tool_warned in
6121yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6123whose name does not start with the host triplet. If you think this
6124configuration is useful to you, please write to autoconf@gnu.org." >&5
6125echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6126whose name does not start with the host triplet. If you think this
6127configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006128ac_tool_warned=yes ;;
6129esac
6130 RANLIB=$ac_ct_RANLIB
6131 fi
6132else
6133 RANLIB="$ac_cv_prog_RANLIB"
6134fi
6135
Torok Edwin871384f2010-01-26 08:50:50 +00006136if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6138set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141if test "${ac_cv_prog_AR+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006143else
6144 if test -n "$AR"; then
6145 ac_cv_prog_AR="$AR" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 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 +00006154 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006156 break 2
6157 fi
6158done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159done
Torok Edwin871384f2010-01-26 08:50:50 +00006160IFS=$as_save_IFS
6161
6162fi
6163fi
6164AR=$ac_cv_prog_AR
6165if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166 { echo "$as_me:$LINENO: result: $AR" >&5
6167echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169 { echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006171fi
6172
6173
6174fi
6175if test -z "$ac_cv_prog_AR"; then
6176 ac_ct_AR=$AR
6177 # Extract the first word of "ar", so it can be a program name with args.
6178set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006183else
6184 if test -n "$ac_ct_AR"; then
6185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 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 +00006194 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006196 break 2
6197 fi
6198done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199done
Torok Edwin871384f2010-01-26 08:50:50 +00006200IFS=$as_save_IFS
6201
6202fi
6203fi
6204ac_ct_AR=$ac_cv_prog_ac_ct_AR
6205if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6207echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209 { echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006211fi
6212
6213 if test "x$ac_ct_AR" = x; then
6214 AR="false"
6215 else
6216 case $cross_compiling:$ac_tool_warned in
6217yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6219whose name does not start with the host triplet. If you think this
6220configuration is useful to you, please write to autoconf@gnu.org." >&5
6221echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6222whose name does not start with the host triplet. If you think this
6223configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006224ac_tool_warned=yes ;;
6225esac
6226 AR=$ac_ct_AR
6227 fi
6228else
6229 AR="$ac_cv_prog_AR"
6230fi
6231
Reid Spencera773bd52006-08-04 18:18:08 +00006232# Extract the first word of "rm", so it can be a program name with args.
6233set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236if test "${ac_cv_path_RM+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006238else
6239 case $RM in
6240 [\\/]* | ?:[\\/]*)
6241 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6242 ;;
6243 *)
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 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 +00006251 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006253 break 2
6254 fi
6255done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006256done
Reid Spencera773bd52006-08-04 18:18:08 +00006257IFS=$as_save_IFS
6258
6259 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6260 ;;
6261esac
6262fi
6263RM=$ac_cv_path_RM
6264if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 { echo "$as_me:$LINENO: result: $RM" >&5
6266echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268 { echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006270fi
6271
6272
6273# Extract the first word of "sed", so it can be a program name with args.
6274set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277if test "${ac_cv_path_SED+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006279else
6280 case $SED in
6281 [\\/]* | ?:[\\/]*)
6282 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6283 ;;
6284 *)
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 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 +00006292 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006294 break 2
6295 fi
6296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297done
Reid Spencera773bd52006-08-04 18:18:08 +00006298IFS=$as_save_IFS
6299
6300 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6301 ;;
6302esac
6303fi
6304SED=$ac_cv_path_SED
6305if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 { echo "$as_me:$LINENO: result: $SED" >&5
6307echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309 { echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006311fi
6312
6313
6314# Extract the first word of "tar", so it can be a program name with args.
6315set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318if test "${ac_cv_path_TAR+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006320else
6321 case $TAR in
6322 [\\/]* | ?:[\\/]*)
6323 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6324 ;;
6325 *)
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 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 +00006333 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006335 break 2
6336 fi
6337done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338done
Reid Spencera773bd52006-08-04 18:18:08 +00006339IFS=$as_save_IFS
6340
6341 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6342 ;;
6343esac
6344fi
6345TAR=$ac_cv_path_TAR
6346if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347 { echo "$as_me:$LINENO: result: $TAR" >&5
6348echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350 { echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006352fi
6353
6354
6355# Extract the first word of "pwd", so it can be a program name with args.
6356set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6359if test "${ac_cv_path_BINPWD+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006361else
6362 case $BINPWD in
6363 [\\/]* | ?:[\\/]*)
6364 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6365 ;;
6366 *)
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 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 +00006374 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006376 break 2
6377 fi
6378done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379done
Reid Spencera773bd52006-08-04 18:18:08 +00006380IFS=$as_save_IFS
6381
6382 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6383 ;;
6384esac
6385fi
6386BINPWD=$ac_cv_path_BINPWD
6387if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6389echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391 { echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006393fi
6394
6395
6396
6397# Extract the first word of "Graphviz", so it can be a program name with args.
6398set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6401if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006403else
6404 case $GRAPHVIZ in
6405 [\\/]* | ?:[\\/]*)
6406 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6407 ;;
6408 *)
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 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 +00006416 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006418 break 2
6419 fi
6420done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421done
Reid Spencera773bd52006-08-04 18:18:08 +00006422IFS=$as_save_IFS
6423
6424 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6425 ;;
6426esac
6427fi
6428GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6429if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6431echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006432else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433 { echo "$as_me:$LINENO: result: no" >&5
6434echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006435fi
6436
6437
6438if test "$GRAPHVIZ" != "echo Graphviz" ; then
6439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440cat >>confdefs.h <<\_ACEOF
6441#define HAVE_GRAPHVIZ 1
6442_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006443
Jeff Cohen28783c32007-01-12 18:22:38 +00006444 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006445 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6446 fi
6447
6448cat >>confdefs.h <<_ACEOF
6449#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6450_ACEOF
6451
6452fi
6453# Extract the first word of "dot", so it can be a program name with args.
6454set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457if test "${ac_cv_path_DOT+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006459else
6460 case $DOT in
6461 [\\/]* | ?:[\\/]*)
6462 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6463 ;;
6464 *)
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 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 +00006472 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006474 break 2
6475 fi
6476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477done
Reid Spencera773bd52006-08-04 18:18:08 +00006478IFS=$as_save_IFS
6479
6480 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6481 ;;
6482esac
6483fi
6484DOT=$ac_cv_path_DOT
6485if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486 { echo "$as_me:$LINENO: result: $DOT" >&5
6487echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489 { echo "$as_me:$LINENO: result: no" >&5
6490echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006491fi
6492
6493
6494if test "$DOT" != "echo dot" ; then
6495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496cat >>confdefs.h <<\_ACEOF
6497#define HAVE_DOT 1
6498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006499
Jeff Cohen28783c32007-01-12 18:22:38 +00006500 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006501 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502 fi
6503
6504cat >>confdefs.h <<_ACEOF
6505#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6506_ACEOF
6507
6508fi
David Greenef0b9eff2009-07-09 17:16:26 +00006509# Extract the first word of "fdp", so it can be a program name with args.
6510set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513if test "${ac_cv_path_FDP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006515else
6516 case $FDP in
6517 [\\/]* | ?:[\\/]*)
6518 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6519 ;;
6520 *)
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 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 +00006528 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006530 break 2
6531 fi
6532done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533done
David Greenef0b9eff2009-07-09 17:16:26 +00006534IFS=$as_save_IFS
6535
6536 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6537 ;;
6538esac
6539fi
6540FDP=$ac_cv_path_FDP
6541if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 { echo "$as_me:$LINENO: result: $FDP" >&5
6543echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545 { echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006547fi
6548
6549
6550if test "$FDP" != "echo fdp" ; then
6551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552cat >>confdefs.h <<\_ACEOF
6553#define HAVE_FDP 1
6554_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006555
6556 if test "$llvm_cv_os_type" = "MingW" ; then
6557 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6558 fi
6559
6560cat >>confdefs.h <<_ACEOF
6561#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6562_ACEOF
6563
6564fi
6565# Extract the first word of "neato", so it can be a program name with args.
6566set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569if test "${ac_cv_path_NEATO+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006571else
6572 case $NEATO in
6573 [\\/]* | ?:[\\/]*)
6574 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6575 ;;
6576 *)
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 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 +00006584 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006586 break 2
6587 fi
6588done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589done
David Greenef0b9eff2009-07-09 17:16:26 +00006590IFS=$as_save_IFS
6591
6592 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6593 ;;
6594esac
6595fi
6596NEATO=$ac_cv_path_NEATO
6597if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598 { echo "$as_me:$LINENO: result: $NEATO" >&5
6599echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601 { echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006603fi
6604
6605
6606if test "$NEATO" != "echo neato" ; then
6607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608cat >>confdefs.h <<\_ACEOF
6609#define HAVE_NEATO 1
6610_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006611
6612 if test "$llvm_cv_os_type" = "MingW" ; then
6613 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6614 fi
6615
6616cat >>confdefs.h <<_ACEOF
6617#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6618_ACEOF
6619
6620fi
6621# Extract the first word of "twopi", so it can be a program name with args.
6622set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_path_TWOPI+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006627else
6628 case $TWOPI in
6629 [\\/]* | ?:[\\/]*)
6630 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6631 ;;
6632 *)
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 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 +00006640 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006642 break 2
6643 fi
6644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006645done
David Greenef0b9eff2009-07-09 17:16:26 +00006646IFS=$as_save_IFS
6647
6648 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6649 ;;
6650esac
6651fi
6652TWOPI=$ac_cv_path_TWOPI
6653if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6655echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657 { echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006659fi
6660
6661
6662if test "$TWOPI" != "echo twopi" ; then
6663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664cat >>confdefs.h <<\_ACEOF
6665#define HAVE_TWOPI 1
6666_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006667
6668 if test "$llvm_cv_os_type" = "MingW" ; then
6669 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6670 fi
6671
6672cat >>confdefs.h <<_ACEOF
6673#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6674_ACEOF
6675
6676fi
6677# Extract the first word of "circo", so it can be a program name with args.
6678set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_CIRCO+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006683else
6684 case $CIRCO in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 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 +00006696 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006698 break 2
6699 fi
6700done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006701done
David Greenef0b9eff2009-07-09 17:16:26 +00006702IFS=$as_save_IFS
6703
6704 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6705 ;;
6706esac
6707fi
6708CIRCO=$ac_cv_path_CIRCO
6709if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6711echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713 { echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006715fi
6716
6717
6718if test "$CIRCO" != "echo circo" ; then
6719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720cat >>confdefs.h <<\_ACEOF
6721#define HAVE_CIRCO 1
6722_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006723
6724 if test "$llvm_cv_os_type" = "MingW" ; then
6725 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6726 fi
6727
6728cat >>confdefs.h <<_ACEOF
6729#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6730_ACEOF
6731
6732fi
Reid Spencera773bd52006-08-04 18:18:08 +00006733for ac_prog in gv gsview32
6734do
6735 # Extract the first word of "$ac_prog", so it can be a program name with args.
6736set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739if test "${ac_cv_path_GV+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006741else
6742 case $GV in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6745 ;;
6746 *)
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 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 +00006754 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006756 break 2
6757 fi
6758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759done
Reid Spencera773bd52006-08-04 18:18:08 +00006760IFS=$as_save_IFS
6761
6762 ;;
6763esac
6764fi
6765GV=$ac_cv_path_GV
6766if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767 { echo "$as_me:$LINENO: result: $GV" >&5
6768echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770 { echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006772fi
6773
6774
6775 test -n "$GV" && break
6776done
6777test -n "$GV" || GV="echo gv"
6778
6779if test "$GV" != "echo gv" ; then
6780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781cat >>confdefs.h <<\_ACEOF
6782#define HAVE_GV 1
6783_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006784
Jeff Cohen28783c32007-01-12 18:22:38 +00006785 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006786 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6787 fi
6788
6789cat >>confdefs.h <<_ACEOF
6790#define LLVM_PATH_GV "$GV${EXEEXT}"
6791_ACEOF
6792
6793fi
6794# Extract the first word of "dotty", so it can be a program name with args.
6795set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798if test "${ac_cv_path_DOTTY+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006800else
6801 case $DOTTY in
6802 [\\/]* | ?:[\\/]*)
6803 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6804 ;;
6805 *)
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 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 +00006813 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006815 break 2
6816 fi
6817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818done
Reid Spencera773bd52006-08-04 18:18:08 +00006819IFS=$as_save_IFS
6820
6821 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6822 ;;
6823esac
6824fi
6825DOTTY=$ac_cv_path_DOTTY
6826if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6828echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830 { echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006832fi
6833
6834
6835if test "$DOTTY" != "echo dotty" ; then
6836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837cat >>confdefs.h <<\_ACEOF
6838#define HAVE_DOTTY 1
6839_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006840
Jeff Cohen28783c32007-01-12 18:22:38 +00006841 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006842 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6843 fi
6844
6845cat >>confdefs.h <<_ACEOF
6846#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6847_ACEOF
6848
6849fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006850# Extract the first word of "xdot.py", so it can be a program name with args.
6851set dummy xdot.py; ac_word=$2
6852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6854if test "${ac_cv_path_XDOT_PY+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857 case $XDOT_PY in
6858 [\\/]* | ?:[\\/]*)
6859 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6860 ;;
6861 *)
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874done
6875IFS=$as_save_IFS
6876
6877 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6878 ;;
6879esac
6880fi
6881XDOT_PY=$ac_cv_path_XDOT_PY
6882if test -n "$XDOT_PY"; then
6883 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6884echo "${ECHO_T}$XDOT_PY" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891if test "$XDOT_PY" != "echo xdot.py" ; then
6892
6893cat >>confdefs.h <<\_ACEOF
6894#define HAVE_XDOT_PY 1
6895_ACEOF
6896
6897 if test "$llvm_cv_os_type" = "MingW" ; then
6898 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6899 fi
6900
6901cat >>confdefs.h <<_ACEOF
6902#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6903_ACEOF
6904
6905fi
Reid Spencera773bd52006-08-04 18:18:08 +00006906
6907
6908# Extract the first word of "perl", so it can be a program name with args.
6909set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912if test "${ac_cv_path_PERL+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006914else
6915 case $PERL in
6916 [\\/]* | ?:[\\/]*)
6917 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6918 ;;
6919 *)
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 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 +00006927 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006929 break 2
6930 fi
6931done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006932done
Reid Spencera773bd52006-08-04 18:18:08 +00006933IFS=$as_save_IFS
6934
6935 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6936 ;;
6937esac
6938fi
6939PERL=$ac_cv_path_PERL
6940if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: $PERL" >&5
6942echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006946fi
6947
6948
6949if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6951echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006952 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 { echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006955 else
6956 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: not found" >&5
6958echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959 fi
6960fi
6961
6962
6963if test x"$PERL" = xnone; then
6964 HAVE_PERL=0
6965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6967echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6968 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006969else
6970 HAVE_PERL=1
6971
6972fi
6973
6974# Find a good install program. We prefer a C program (faster),
6975# so one script is as good as another. But avoid the broken or
6976# incompatible versions:
6977# SysV /etc/install, /usr/sbin/install
6978# SunOS /usr/etc/install
6979# IRIX /sbin/install
6980# AIX /bin/install
6981# AmigaOS /C/install, which installs bootblocks on floppy discs
6982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6983# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6985# OS/2's system install, which has a completely different semantic
6986# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006989if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990if test "${ac_cv_path_install+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006992else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 # Account for people who put trailing slashes in PATH elements.
6999case $as_dir/ in
7000 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007003 /usr/ucb/* ) ;;
7004 *)
7005 # OSF1 and SCO ODT 3.0 have their own names for install.
7006 # Don't use installbsd from OSF since it installs stuff as root
7007 # by default.
7008 for ac_prog in ginstall scoinst install; do
7009 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 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 +00007011 if test $ac_prog = install &&
7012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7013 # AIX install. It has an incompatible calling convention.
7014 :
7015 elif test $ac_prog = install &&
7016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7017 # program-specific install script used by HP pwplus--don't use.
7018 :
7019 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7021 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007022 fi
7023 fi
7024 done
7025 done
7026 ;;
7027esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007028done
Reid Spencera773bd52006-08-04 18:18:08 +00007029IFS=$as_save_IFS
7030
7031
7032fi
7033 if test "${ac_cv_path_install+set}" = set; then
7034 INSTALL=$ac_cv_path_install
7035 else
7036 # As a last resort, use the slow shell script. Don't cache a
7037 # value for INSTALL within a source directory, because that will
7038 # break other packages using the cache if that directory is
7039 # removed, or if the value is a relative name.
7040 INSTALL=$ac_install_sh
7041 fi
7042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7044echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007045
7046# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7047# It thinks the first close brace ends the variable substitution.
7048test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7049
7050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7051
7052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7053
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007054case "$INSTALL" in
7055 [\\/$]* | ?:[\\/]* ) ;;
7056 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7057esac
Reid Spencera773bd52006-08-04 18:18:08 +00007058
7059# Extract the first word of "bzip2", so it can be a program name with args.
7060set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063if test "${ac_cv_path_BZIP2+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007065else
7066 case $BZIP2 in
7067 [\\/]* | ?:[\\/]*)
7068 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7069 ;;
7070 *)
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007078 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007080 break 2
7081 fi
7082done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083done
Reid Spencera773bd52006-08-04 18:18:08 +00007084IFS=$as_save_IFS
7085
Reid Spencera773bd52006-08-04 18:18:08 +00007086 ;;
7087esac
7088fi
7089BZIP2=$ac_cv_path_BZIP2
7090if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7092echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 { echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007096fi
7097
7098
mike-m68cb3192010-05-06 23:45:43 +00007099# Extract the first word of "cat", so it can be a program name with args.
7100set dummy cat; ac_word=$2
7101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103if test "${ac_cv_path_CAT+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106 case $CAT in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7109 ;;
7110 *)
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122done
7123done
7124IFS=$as_save_IFS
7125
7126 ;;
7127esac
7128fi
7129CAT=$ac_cv_path_CAT
7130if test -n "$CAT"; then
7131 { echo "$as_me:$LINENO: result: $CAT" >&5
7132echo "${ECHO_T}$CAT" >&6; }
7133else
7134 { echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6; }
7136fi
7137
7138
Reid Spencera773bd52006-08-04 18:18:08 +00007139# Extract the first word of "doxygen", so it can be a program name with args.
7140set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143if test "${ac_cv_path_DOXYGEN+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007145else
7146 case $DOXYGEN in
7147 [\\/]* | ?:[\\/]*)
7148 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7149 ;;
7150 *)
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007158 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007160 break 2
7161 fi
7162done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163done
Reid Spencera773bd52006-08-04 18:18:08 +00007164IFS=$as_save_IFS
7165
Reid Spencera773bd52006-08-04 18:18:08 +00007166 ;;
7167esac
7168fi
7169DOXYGEN=$ac_cv_path_DOXYGEN
7170if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7172echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 { echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007176fi
7177
7178
Reid Spencera773bd52006-08-04 18:18:08 +00007179# Extract the first word of "groff", so it can be a program name with args.
7180set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_path_GROFF+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
7186 case $GROFF in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007200 break 2
7201 fi
7202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203done
Reid Spencera773bd52006-08-04 18:18:08 +00007204IFS=$as_save_IFS
7205
Reid Spencera773bd52006-08-04 18:18:08 +00007206 ;;
7207esac
7208fi
7209GROFF=$ac_cv_path_GROFF
7210if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 { echo "$as_me:$LINENO: result: $GROFF" >&5
7212echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 { echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007216fi
7217
7218
7219# Extract the first word of "gzip", so it can be a program name with args.
7220set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007223if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007225else
Eric Christopher031d3072010-12-10 01:31:51 +00007226 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007227 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007228 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007229 ;;
7230 *)
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007238 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007240 break 2
7241 fi
7242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243done
Reid Spencera773bd52006-08-04 18:18:08 +00007244IFS=$as_save_IFS
7245
Reid Spencera773bd52006-08-04 18:18:08 +00007246 ;;
7247esac
7248fi
Eric Christopher031d3072010-12-10 01:31:51 +00007249GZIPBIN=$ac_cv_path_GZIPBIN
7250if test -n "$GZIPBIN"; then
7251 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7252echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254 { echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007256fi
7257
7258
7259# Extract the first word of "pod2html", so it can be a program name with args.
7260set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263if test "${ac_cv_path_POD2HTML+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007265else
7266 case $POD2HTML in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007280 break 2
7281 fi
7282done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283done
Reid Spencera773bd52006-08-04 18:18:08 +00007284IFS=$as_save_IFS
7285
Reid Spencera773bd52006-08-04 18:18:08 +00007286 ;;
7287esac
7288fi
7289POD2HTML=$ac_cv_path_POD2HTML
7290if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7292echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007296fi
7297
7298
7299# Extract the first word of "pod2man", so it can be a program name with args.
7300set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303if test "${ac_cv_path_POD2MAN+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007305else
7306 case $POD2MAN in
7307 [\\/]* | ?:[\\/]*)
7308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7309 ;;
7310 *)
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 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 +00007318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007320 break 2
7321 fi
7322done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323done
Reid Spencera773bd52006-08-04 18:18:08 +00007324IFS=$as_save_IFS
7325
Reid Spencera773bd52006-08-04 18:18:08 +00007326 ;;
7327esac
7328fi
7329POD2MAN=$ac_cv_path_POD2MAN
7330if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7332echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007336fi
7337
7338
mike-m68cb3192010-05-06 23:45:43 +00007339# Extract the first word of "pdfroff", so it can be a program name with args.
7340set dummy pdfroff; ac_word=$2
7341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343if test "${ac_cv_path_PDFROFF+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 case $PDFROFF in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7349 ;;
7350 *)
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364IFS=$as_save_IFS
7365
7366 ;;
7367esac
7368fi
7369PDFROFF=$ac_cv_path_PDFROFF
7370if test -n "$PDFROFF"; then
7371 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7372echo "${ECHO_T}$PDFROFF" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
Reid Spencera773bd52006-08-04 18:18:08 +00007379# Extract the first word of "runtest", so it can be a program name with args.
7380set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383if test "${ac_cv_path_RUNTEST+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007385else
7386 case $RUNTEST in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 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 +00007398 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007400 break 2
7401 fi
7402done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403done
Reid Spencera773bd52006-08-04 18:18:08 +00007404IFS=$as_save_IFS
7405
Reid Spencera773bd52006-08-04 18:18:08 +00007406 ;;
7407esac
7408fi
7409RUNTEST=$ac_cv_path_RUNTEST
7410if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7412echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416fi
7417
7418
7419
7420no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7422echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007423
7424# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007426 withval=$with_tclinclude; with_tclinclude=${withval}
7427else
7428 with_tclinclude=''
7429fi
7430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007431if test "${ac_cv_path_tclsh+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007433else
7434
7435if test x"${with_tclinclude}" != x ; then
7436 if test -f ${with_tclinclude}/tclsh ; then
7437 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7438 elif test -f ${with_tclinclude}/src/tclsh ; then
7439 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7440 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7442echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7443 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007444 fi
7445fi
Torok Edwin871384f2010-01-26 08:50:50 +00007446fi
7447
Reid Spencera773bd52006-08-04 18:18:08 +00007448
7449if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450 { echo "$as_me:$LINENO: result: none" >&5
7451echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007452 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7453do
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458if test "${ac_cv_path_TCLSH+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007460else
7461 case $TCLSH in
7462 [\\/]* | ?:[\\/]*)
7463 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7464 ;;
7465 *)
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 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 +00007473 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007475 break 2
7476 fi
7477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478done
Reid Spencera773bd52006-08-04 18:18:08 +00007479IFS=$as_save_IFS
7480
7481 ;;
7482esac
7483fi
7484TCLSH=$ac_cv_path_TCLSH
7485if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7487echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491fi
7492
7493
7494 test -n "$TCLSH" && break
7495done
7496
7497 if test x"${TCLSH}" = x ; then
7498 ac_cv_path_tclsh='';
7499 else
7500 ac_cv_path_tclsh="${TCLSH}";
7501 fi
7502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7504echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007505 TCLSH="${ac_cv_path_tclsh}"
7506
7507fi
7508
Reid Spencera773bd52006-08-04 18:18:08 +00007509# Extract the first word of "zip", so it can be a program name with args.
7510set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513if test "${ac_cv_path_ZIP+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007515else
7516 case $ZIP in
7517 [\\/]* | ?:[\\/]*)
7518 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7519 ;;
7520 *)
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 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 +00007528 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007530 break 2
7531 fi
7532done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533done
Reid Spencera773bd52006-08-04 18:18:08 +00007534IFS=$as_save_IFS
7535
Reid Spencera773bd52006-08-04 18:18:08 +00007536 ;;
7537esac
7538fi
7539ZIP=$ac_cv_path_ZIP
7540if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 { echo "$as_me:$LINENO: result: $ZIP" >&5
7542echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 { echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007546fi
7547
7548
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007549for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007550do
7551 # Extract the first word of "$ac_prog", so it can be a program name with args.
7552set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555if test "${ac_cv_path_OCAMLC+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007557else
7558 case $OCAMLC in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 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 +00007570 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007572 break 2
7573 fi
7574done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007576IFS=$as_save_IFS
7577
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007578 ;;
7579esac
7580fi
7581OCAMLC=$ac_cv_path_OCAMLC
7582if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7584echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586 { echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007588fi
7589
7590
Gordon Henriksene7072162008-03-07 18:20:01 +00007591 test -n "$OCAMLC" && break
7592done
7593
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007594for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007595do
7596 # Extract the first word of "$ac_prog", so it can be a program name with args.
7597set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007602else
7603 case $OCAMLOPT in
7604 [\\/]* | ?:[\\/]*)
7605 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7606 ;;
7607 *)
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 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 +00007615 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007617 break 2
7618 fi
7619done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007621IFS=$as_save_IFS
7622
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007623 ;;
7624esac
7625fi
7626OCAMLOPT=$ac_cv_path_OCAMLOPT
7627if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7629echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631 { echo "$as_me:$LINENO: result: no" >&5
7632echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007633fi
7634
7635
Gordon Henriksene7072162008-03-07 18:20:01 +00007636 test -n "$OCAMLOPT" && break
7637done
7638
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007639for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007640do
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007647else
7648 case $OCAMLDEP in
7649 [\\/]* | ?:[\\/]*)
7650 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7651 ;;
7652 *)
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 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 +00007660 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007662 break 2
7663 fi
7664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007666IFS=$as_save_IFS
7667
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007668 ;;
7669esac
7670fi
7671OCAMLDEP=$ac_cv_path_OCAMLDEP
7672if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7674echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 { echo "$as_me:$LINENO: result: no" >&5
7677echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007678fi
7679
7680
Gordon Henriksene7072162008-03-07 18:20:01 +00007681 test -n "$OCAMLDEP" && break
7682done
7683
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007684for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007685do
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007692else
7693 case $OCAMLDOC in
7694 [\\/]* | ?:[\\/]*)
7695 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7696 ;;
7697 *)
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 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 +00007705 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007707 break 2
7708 fi
7709done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007711IFS=$as_save_IFS
7712
7713 ;;
7714esac
7715fi
7716OCAMLDOC=$ac_cv_path_OCAMLDOC
7717if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7719echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721 { echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007723fi
7724
7725
7726 test -n "$OCAMLDOC" && break
7727done
7728
Torok Edwincc499a42008-10-22 09:56:27 +00007729for ac_prog in gas as
7730do
7731 # Extract the first word of "$ac_prog", so it can be a program name with args.
7732set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7735if test "${ac_cv_path_GAS+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007737else
7738 case $GAS in
7739 [\\/]* | ?:[\\/]*)
7740 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7741 ;;
7742 *)
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007750 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007752 break 2
7753 fi
7754done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755done
Torok Edwincc499a42008-10-22 09:56:27 +00007756IFS=$as_save_IFS
7757
7758 ;;
7759esac
7760fi
7761GAS=$ac_cv_path_GAS
7762if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763 { echo "$as_me:$LINENO: result: $GAS" >&5
7764echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007765else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766 { echo "$as_me:$LINENO: result: no" >&5
7767echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007768fi
7769
7770
7771 test -n "$GAS" && break
7772done
7773
Reid Spencera773bd52006-08-04 18:18:08 +00007774
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007775{ echo "$as_me:$LINENO: checking for linker version" >&5
7776echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7777if test "${llvm_cv_link_version+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780
7781 version_string="$(ld -v 2>&1 | head -1)"
7782
7783 # Check for ld64.
7784 if (echo "$version_string" | grep -q "ld64"); then
7785 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7786 else
7787 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7788 fi
7789
7790fi
7791{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7792echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7793
7794cat >>confdefs.h <<_ACEOF
7795#define HOST_LINK_VERSION "$llvm_cv_link_version"
7796_ACEOF
7797
7798
7799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7801echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7802if test "${llvm_cv_link_use_r+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007804else
7805 ac_ext=c
7806ac_cpp='$CPP $CPPFLAGS'
7807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811 oldcflags="$CFLAGS"
7812 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813 cat >conftest.$ac_ext <<_ACEOF
7814/* confdefs.h. */
7815_ACEOF
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007818/* end confdefs.h. */
7819
7820int
7821main ()
7822{
Dan Gohman39ed6782010-04-25 00:12:20 +00007823
Reid Spencera773bd52006-08-04 18:18:08 +00007824 ;
7825 return 0;
7826}
7827_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (ac_try="$ac_link"
7830case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833esac
7834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7843 { (case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846esac
7847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_try") 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest$ac_exeext'
7853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007862 llvm_cv_link_use_r=yes
7863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007864 echo "$as_me: failed program was:" >&5
7865sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007869
Bill Wendlingebcceee2009-04-18 11:20:33 +00007870rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007871 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007872 CFLAGS="$oldcflags"
7873 ac_ext=c
7874ac_cpp='$CPP $CPPFLAGS'
7875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879
7880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7882echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007883if test "$llvm_cv_link_use_r" = yes ; then
7884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885cat >>confdefs.h <<\_ACEOF
7886#define HAVE_LINK_R 1
7887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007888
7889 fi
7890
7891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007892{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7893echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7894if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007896else
7897 ac_ext=c
7898ac_cpp='$CPP $CPPFLAGS'
7899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903 oldcflags="$CFLAGS"
7904 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007910/* end confdefs.h. */
7911
7912int
7913main ()
7914{
Dan Gohman39ed6782010-04-25 00:12:20 +00007915
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007916 ;
7917 return 0;
7918}
7919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920rm -f conftest.$ac_objext conftest$ac_exeext
7921if { (ac_try="$ac_link"
7922case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925esac
7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_link") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948esac
7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_try") 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007954 llvm_cv_link_use_export_dynamic=yes
7955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007956 echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961
Bill Wendlingebcceee2009-04-18 11:20:33 +00007962rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007964 CFLAGS="$oldcflags"
7965 ac_ext=c
7966ac_cpp='$CPP $CPPFLAGS'
7967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971
7972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007973{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7974echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007975if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977cat >>confdefs.h <<\_ACEOF
7978#define HAVE_LINK_EXPORT_DYNAMIC 1
7979_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007980
7981 fi
7982
7983
Dan Gohmanda612d62010-06-01 14:56:56 +00007984{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7985echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7986if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989 ac_ext=c
7990ac_cpp='$CPP $CPPFLAGS'
7991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995 oldcflags="$CFLAGS"
7996
7997 # The following code is from the autoconf manual,
7998 # "11.13: Limitations of Usual Tools".
7999 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8000 # Use mktemp if possible; otherwise fall back on mkdir,
8001 # with $RANDOM to make collisions less likely.
8002 : ${TMPDIR=/tmp}
8003 {
8004 tmp=`
8005 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8006 ` &&
8007 test -n "$tmp" && test -d "$tmp"
8008 } || {
8009 tmp=$TMPDIR/foo$$-$RANDOM
8010 (umask 077 && mkdir "$tmp")
8011 } || exit $?
8012
Dan Gohmanda612d62010-06-01 14:56:56 +00008013 echo "{" > "$tmp/export.map"
8014 echo " global: main;" >> "$tmp/export.map"
8015 echo " local: *;" >> "$tmp/export.map"
8016 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008017
Dan Gohmanda612d62010-06-01 14:56:56 +00008018 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008019 cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025
8026int
8027main ()
8028{
Dan Gohman39ed6782010-04-25 00:12:20 +00008029
Dan Gohman391569c2010-04-16 22:59:06 +00008030 ;
8031 return 0;
8032}
8033_ACEOF
8034rm -f conftest.$ac_objext conftest$ac_exeext
8035if { (ac_try="$ac_link"
8036case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_link") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest$ac_exeext'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008068 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008069else
8070 echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
8072
Dan Gohman943005e2010-06-01 16:22:27 +00008073 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008074fi
8075
8076rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008078 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008079 rmdir "$tmp"
8080 CFLAGS="$oldcflags"
8081 ac_ext=c
8082ac_cpp='$CPP $CPPFLAGS'
8083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
8087
8088fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008089{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8090echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8091if test "$llvm_cv_link_use_version_script" = yes ; then
8092 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008093
8094 fi
8095
8096
Reid Spencera773bd52006-08-04 18:18:08 +00008097
8098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8100echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8101if test "${ac_cv_c_const+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008104 cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008109/* end confdefs.h. */
8110
8111int
8112main ()
8113{
8114/* FIXME: Include the comments suggested by Paul. */
8115#ifndef __cplusplus
8116 /* Ultrix mips cc rejects this. */
8117 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008119 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120 char const *const *ccp;
8121 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008122 /* NEC SVR4.0.2 mips cc rejects this. */
8123 struct point {int x, y;};
8124 static struct point const zero = {0,0};
8125 /* AIX XL C 1.02.0.0 rejects this.
8126 It does not let you subtract one const X* pointer from another in
8127 an arm of an if-expression whose if-part is not a constant
8128 expression */
8129 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008131 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132 ++ccp;
8133 p = (char**) ccp;
8134 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008135 { /* SCO 3.2v4 cc rejects this. */
8136 char *t;
8137 char const *s = 0 ? (char *) 0 : (char const *) 0;
8138
8139 *t++ = 0;
8140 if (s) return 0;
8141 }
8142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8143 int x[] = {25, 17};
8144 const int *foo = &x[0];
8145 ++foo;
8146 }
8147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8148 typedef const int *iptr;
8149 iptr p = 0;
8150 ++p;
8151 }
8152 { /* AIX XL C 1.02.0.0 rejects this saying
8153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8154 struct s { int j; const int *ap[3]; };
8155 struct s *b; b->j = 5;
8156 }
8157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8158 const int foo = 10;
8159 if (!foo) return 0;
8160 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008162#endif
8163
8164 ;
8165 return 0;
8166}
8167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168rm -f conftest.$ac_objext
8169if { (ac_try="$ac_compile"
8170case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_compile") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8183 { (case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_try") 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } &&
8192 { ac_try='test -s conftest.$ac_objext'
8193 { (case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196esac
8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_try") 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008202 ac_cv_c_const=yes
8203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008204 echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209
Reid Spencera773bd52006-08-04 18:18:08 +00008210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008214if test $ac_cv_c_const = no; then
8215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216cat >>confdefs.h <<\_ACEOF
8217#define const
8218_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008219
8220fi
8221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222
8223
8224
8225
8226
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008227ac_header_dirent=no
8228for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8230{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8231echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235 cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h. */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008240/* end confdefs.h. */
8241#include <sys/types.h>
8242#include <$ac_hdr>
8243
8244int
8245main ()
8246{
8247if ((DIR *) 0)
8248return 0;
8249 ;
8250 return 0;
8251}
8252_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253rm -f conftest.$ac_objext
8254if { (ac_try="$ac_compile"
8255case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8258esac
8259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_compile") 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8268 { (case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271esac
8272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_try") 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281esac
8282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_try") 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008287 eval "$as_ac_Header=yes"
8288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289 echo "$as_me: failed program was:" >&5
8290sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294
Reid Spencera773bd52006-08-04 18:18:08 +00008295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297ac_res=`eval echo '${'$as_ac_Header'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299echo "${ECHO_T}$ac_res" >&6; }
8300if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008301 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008302#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008303_ACEOF
8304
8305ac_header_dirent=$ac_hdr; break
8306fi
8307
8308done
8309# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8310if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8312echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8313if test "${ac_cv_search_opendir+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008315else
8316 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008322/* end confdefs.h. */
8323
Reid Spencera773bd52006-08-04 18:18:08 +00008324/* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008327#ifdef __cplusplus
8328extern "C"
8329#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330char opendir ();
8331int
8332main ()
8333{
Reid Spencera773bd52006-08-04 18:18:08 +00008334return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335 ;
8336 return 0;
8337}
8338_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008339for ac_lib in '' dir; do
8340 if test -z "$ac_lib"; then
8341 ac_res="none required"
8342 else
8343 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008345 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346 rm -f conftest.$ac_objext conftest$ac_exeext
8347if { (ac_try="$ac_link"
8348case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_link") 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008380 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384
8385
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387
Bill Wendlingebcceee2009-04-18 11:20:33 +00008388rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 conftest$ac_exeext
8390 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008391 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008392fi
John Criswell7a73b802003-06-30 21:59:07 +00008393done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394if test "${ac_cv_search_opendir+set}" = set; then
8395 :
Reid Spencera773bd52006-08-04 18:18:08 +00008396else
8397 ac_cv_search_opendir=no
8398fi
8399rm conftest.$ac_ext
8400LIBS=$ac_func_search_save_LIBS
8401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8403echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008404ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008407
Reid Spencera773bd52006-08-04 18:18:08 +00008408fi
8409
8410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8412echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8413if test "${ac_cv_search_opendir+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008415else
8416 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008422/* end confdefs.h. */
8423
8424/* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430char opendir ();
8431int
8432main ()
8433{
8434return opendir ();
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439for ac_lib in '' x; do
8440 if test -z "$ac_lib"; then
8441 ac_res="none required"
8442 else
8443 ac_res=-l$ac_lib
8444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8445 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 rm -f conftest.$ac_objext conftest$ac_exeext
8447if { (ac_try="$ac_link"
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_link") 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); } &&
8460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474esac
8475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_try") 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008480 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008481else
8482 echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485
Reid Spencera773bd52006-08-04 18:18:08 +00008486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008487
Bill Wendlingebcceee2009-04-18 11:20:33 +00008488rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489 conftest$ac_exeext
8490 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008491 break
8492fi
8493done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494if test "${ac_cv_search_opendir+set}" = set; then
8495 :
Reid Spencera773bd52006-08-04 18:18:08 +00008496else
8497 ac_cv_search_opendir=no
8498fi
8499rm conftest.$ac_ext
8500LIBS=$ac_func_search_save_LIBS
8501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8503echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008504ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8507
8508fi
8509
8510fi
John Criswell7a73b802003-06-30 21:59:07 +00008511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512
John Criswell7a73b802003-06-30 21:59:07 +00008513for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514do
8515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521fi
8522ac_res=`eval echo '${'$as_ac_Header'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524echo "${ECHO_T}$ac_res" >&6; }
8525else
8526 # Is the header compilable?
8527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8529cat >conftest.$ac_ext <<_ACEOF
8530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
8535$ac_includes_default
8536#include <$ac_header>
8537_ACEOF
8538rm -f conftest.$ac_objext
8539if { (ac_try="$ac_compile"
8540case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543esac
8544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8546 ac_status=$?
8547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest.$ac_objext'
8563 { (case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_try") 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_header_compiler=yes
8573else
8574 echo "$as_me: failed program was:" >&5
8575sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 ac_header_compiler=no
8578fi
8579
8580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582echo "${ECHO_T}$ac_header_compiler" >&6; }
8583
8584# Is the header present?
8585{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8587cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
8593#include <$ac_header>
8594_ACEOF
8595if { (ac_try="$ac_cpp conftest.$ac_ext"
8596case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599esac
8600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } >/dev/null; then
8608 if test -s conftest.err; then
8609 ac_cpp_err=$ac_c_preproc_warn_flag
8610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8611 else
8612 ac_cpp_err=
8613 fi
8614else
8615 ac_cpp_err=yes
8616fi
8617if test -z "$ac_cpp_err"; then
8618 ac_header_preproc=yes
8619else
8620 echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623 ac_header_preproc=no
8624fi
8625
8626rm -f conftest.err conftest.$ac_ext
8627{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8628echo "${ECHO_T}$ac_header_preproc" >&6; }
8629
8630# So? What about this header?
8631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8632 yes:no: )
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8637 ac_header_preproc=yes
8638 ;;
8639 no:yes:* )
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8652 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008653## ------------------------------------ ##
8654## Report this to http://llvm.org/bugs/ ##
8655## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008656_ASBOX
8657 ) | sed "s/^/$as_me: WARNING: /" >&2
8658 ;;
8659esac
8660{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 eval "$as_ac_Header=\$ac_header_preproc"
8666fi
8667ac_res=`eval echo '${'$as_ac_Header'}'`
8668 { echo "$as_me:$LINENO: result: $ac_res" >&5
8669echo "${ECHO_T}$ac_res" >&6; }
8670
8671fi
8672if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008673 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008675_ACEOF
8676
8677fi
8678
8679done
8680
Reid Spencera773bd52006-08-04 18:18:08 +00008681# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008683 enableval=$enable_ltdl_install;
8684fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008685
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687
8688
8689if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008690 INSTALL_LTDL_TRUE=
8691 INSTALL_LTDL_FALSE='#'
8692else
8693 INSTALL_LTDL_TRUE='#'
8694 INSTALL_LTDL_FALSE=
8695fi
8696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008697
8698
8699if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008700 CONVENIENCE_LTDL_TRUE=
8701 CONVENIENCE_LTDL_FALSE='#'
8702else
8703 CONVENIENCE_LTDL_TRUE='#'
8704 CONVENIENCE_LTDL_FALSE=
8705fi
8706
8707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008710library_names_spec=
8711libname_spec='lib$name'
8712soname_spec=
8713shrext_cmds=".so"
8714postinstall_cmds=
8715postuninstall_cmds=
8716finish_cmds=
8717finish_eval=
8718shlibpath_var=
8719shlibpath_overrides_runpath=unknown
8720version_type=none
8721dynamic_linker="$host_os ld.so"
8722sys_lib_dlsearch_path_spec="/lib /usr/lib"
8723if test "$GCC" = yes; then
8724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8726 # if the path contains ";" then we assume it to be the separator
8727 # otherwise default to the standard path separator (i.e. ":") - it is
8728 # assumed that no part of a normal pathname contains ";" but that should
8729 # okay in the real world where ";" in dirpaths is itself problematic.
8730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8731 else
8732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8733 fi
8734else
8735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8736fi
8737need_lib_prefix=unknown
8738hardcode_into_libs=no
8739
8740# when you set need_version to no, make sure it does not cause -set_version
8741# flags to be left without arguments
8742need_version=unknown
8743
8744case $host_os in
8745aix3*)
8746 version_type=linux
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8748 shlibpath_var=LIBPATH
8749
8750 # AIX 3 has no versioning support, so we append a major version to the name.
8751 soname_spec='${libname}${release}${shared_ext}$major'
8752 ;;
8753
8754aix4* | aix5*)
8755 version_type=linux
8756 need_lib_prefix=no
8757 need_version=no
8758 hardcode_into_libs=yes
8759 if test "$host_cpu" = ia64; then
8760 # AIX 5 supports IA64
8761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8762 shlibpath_var=LD_LIBRARY_PATH
8763 else
8764 # With GCC up to 2.95.x, collect2 would create an import file
8765 # for dependence libraries. The import file would start with
8766 # the line `#! .'. This would cause the generated library to
8767 # depend on `.', always an invalid library. This was fixed in
8768 # development snapshots of GCC prior to 3.0.
8769 case $host_os in
8770 aix4 | aix4.[01] | aix4.[01].*)
8771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8772 echo ' yes '
8773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8774 :
8775 else
8776 can_build_shared=no
8777 fi
8778 ;;
8779 esac
8780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8781 # soname into executable. Probably we can add versioning support to
8782 # collect2, so additional links can be useful in future.
8783 if test "$aix_use_runtimelinking" = yes; then
8784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8785 # instead of lib<name>.a to let people know that these are not
8786 # typical AIX shared libraries.
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 else
8789 # We preserve .a as extension for shared libraries through AIX4.2
8790 # and later when we are not doing run time linking.
8791 library_names_spec='${libname}${release}.a $libname.a'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 fi
8794 shlibpath_var=LIBPATH
8795 fi
8796 ;;
8797
8798amigaos*)
8799 library_names_spec='$libname.ixlibrary $libname.a'
8800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8801 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'
8802 ;;
8803
8804beos*)
8805 library_names_spec='${libname}${shared_ext}'
8806 dynamic_linker="$host_os ld.so"
8807 shlibpath_var=LIBRARY_PATH
8808 ;;
8809
8810bsdi[45]*)
8811 version_type=linux
8812 need_version=no
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8819 # the default ld.so.conf also contains /usr/contrib/lib and
8820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8821 # libtool to hard-code these into programs
8822 ;;
8823
8824cygwin* | mingw* | pw32*)
8825 version_type=windows
8826 shrext_cmds=".dll"
8827 need_version=no
8828 need_lib_prefix=no
8829
8830 case $GCC,$host_os in
8831 yes,cygwin* | yes,mingw* | yes,pw32*)
8832 library_names_spec='$libname.dll.a'
8833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8834 postinstall_cmds='base_file=`basename \${file}`~
8835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8836 dldir=$destdir/`dirname \$dlpath`~
8837 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008838 $install_prog $dir/$dlname \$dldir/$dlname~
8839 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8841 dlpath=$dir/\$dldll~
8842 $rm \$dlpath'
8843 shlibpath_overrides_runpath=yes
8844
8845 case $host_os in
8846 cygwin*)
8847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8850 ;;
8851 mingw*)
8852 # MinGW DLLs use traditional 'lib' prefix
8853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8856 # It is most probably a Windows format PATH printed by
8857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8858 # path with ; separators, and with drive letters. We can handle the
8859 # drive letters (cygwin fileutils understands them), so leave them,
8860 # especially as we might pass files found there to a mingw objdump,
8861 # which wouldn't understand a cygwinified path. Ahh.
8862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8863 else
8864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8865 fi
8866 ;;
8867 pw32*)
8868 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008869 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 +00008870 ;;
8871 esac
8872 ;;
8873
8874 *)
8875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8876 ;;
8877 esac
8878 dynamic_linker='Win32 ld.exe'
8879 # FIXME: first we should search . and the directory the executable is in
8880 shlibpath_var=PATH
8881 ;;
8882
8883darwin* | rhapsody*)
8884 dynamic_linker="$host_os dyld"
8885 version_type=darwin
8886 need_lib_prefix=no
8887 need_version=no
8888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8889 soname_spec='${libname}${release}${major}$shared_ext'
8890 shlibpath_overrides_runpath=yes
8891 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008892 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8894 if test "$GCC" = yes; then
8895 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"`
8896 else
8897 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8898 fi
8899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8900 ;;
8901
8902dgux*)
8903 version_type=linux
8904 need_lib_prefix=no
8905 need_version=no
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 shlibpath_var=LD_LIBRARY_PATH
8909 ;;
8910
Eric Christopher360fa9a2011-10-26 00:42:12 +00008911freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008912 dynamic_linker=no
8913 ;;
8914
8915kfreebsd*-gnu)
8916 version_type=linux
8917 need_lib_prefix=no
8918 need_version=no
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 shlibpath_overrides_runpath=no
8923 hardcode_into_libs=yes
8924 dynamic_linker='GNU ld.so'
8925 ;;
8926
Reid Spencera773bd52006-08-04 18:18:08 +00008927freebsd* | dragonfly*)
8928 # DragonFly does not have aout. When/if they implement a new
8929 # versioning mechanism, adjust this.
8930 if test -x /usr/bin/objformat; then
8931 objformat=`/usr/bin/objformat`
8932 else
8933 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008934 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008935 *) objformat=elf ;;
8936 esac
8937 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008938 version_type=freebsd-$objformat
8939 case $version_type in
8940 freebsd-elf*)
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8942 need_version=no
8943 need_lib_prefix=no
8944 ;;
8945 freebsd-*)
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8947 need_version=yes
8948 ;;
8949 esac
8950 shlibpath_var=LD_LIBRARY_PATH
8951 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008952 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008953 shlibpath_overrides_runpath=yes
8954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008955 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956 shlibpath_overrides_runpath=yes
8957 hardcode_into_libs=yes
8958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008961 shlibpath_overrides_runpath=no
8962 hardcode_into_libs=yes
8963 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008964 freebsd*) # from 4.6 on
8965 shlibpath_overrides_runpath=yes
8966 hardcode_into_libs=yes
8967 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008968 esac
8969 ;;
8970
8971gnu*)
8972 version_type=linux
8973 need_lib_prefix=no
8974 need_version=no
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8976 soname_spec='${libname}${release}${shared_ext}$major'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 hardcode_into_libs=yes
8979 ;;
8980
8981hpux9* | hpux10* | hpux11*)
8982 # Give a soname corresponding to the major version so that dld.sl refuses to
8983 # link against other versions.
8984 version_type=sunos
8985 need_lib_prefix=no
8986 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008987 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008988 ia64*)
8989 shrext_cmds='.so'
8990 hardcode_into_libs=yes
8991 dynamic_linker="$host_os dld.so"
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 if test "X$HPUX_IA64_MODE" = X32; then
8997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8998 else
8999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9000 fi
9001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9002 ;;
9003 hppa*64*)
9004 shrext_cmds='.sl'
9005 hardcode_into_libs=yes
9006 dynamic_linker="$host_os dld.sl"
9007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013 ;;
9014 *)
9015 shrext_cmds='.sl'
9016 dynamic_linker="$host_os dld.sl"
9017 shlibpath_var=SHLIB_PATH
9018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 ;;
9022 esac
9023 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9024 postinstall_cmds='chmod 555 $lib'
9025 ;;
9026
Reid Spencera773bd52006-08-04 18:18:08 +00009027interix3*)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=no
9036 hardcode_into_libs=yes
9037 ;;
9038
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009039irix5* | irix6* | nonstopux*)
9040 case $host_os in
9041 nonstopux*) version_type=nonstopux ;;
9042 *)
9043 if test "$lt_cv_prog_gnu_ld" = yes; then
9044 version_type=linux
9045 else
9046 version_type=irix
9047 fi ;;
9048 esac
9049 need_lib_prefix=no
9050 need_version=no
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9053 case $host_os in
9054 irix5* | nonstopux*)
9055 libsuff= shlibsuff=
9056 ;;
9057 *)
9058 case $LD in # libtool.m4 will add one of these switches to LD
9059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9060 libsuff= shlibsuff= libmagic=32-bit;;
9061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9062 libsuff=32 shlibsuff=N32 libmagic=N32;;
9063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9065 *) libsuff= shlibsuff= libmagic=never-match;;
9066 esac
9067 ;;
9068 esac
9069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9070 shlibpath_overrides_runpath=no
9071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9073 hardcode_into_libs=yes
9074 ;;
9075
9076# No shared lib support for Linux oldld, aout, or coff.
9077linux*oldld* | linux*aout* | linux*coff*)
9078 dynamic_linker=no
9079 ;;
9080
9081# This must be Linux ELF.
9082linux*)
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=no
9091 # This implies no fast_install, which is unacceptable.
9092 # Some rework will be needed to allow for fast_install
9093 # before this can be enabled.
9094 hardcode_into_libs=yes
9095
9096 # Append ld.so.conf contents to the search path
9097 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009098 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 +00009099 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9100 fi
9101
9102 # We used to test for /lib/ld.so.1 and disable shared libraries on
9103 # powerpc, because MkLinux only supported shared libraries with the
9104 # GNU dynamic linker. Since this was broken with cross compilers,
9105 # most powerpc-linux boxes support dynamic linking these days and
9106 # people can always --disable-shared, the test was removed, and we
9107 # assume the GNU/Linux dynamic linker is in use.
9108 dynamic_linker='GNU/Linux ld.so'
9109 ;;
9110
9111knetbsd*-gnu)
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=no
9119 hardcode_into_libs=yes
9120 dynamic_linker='GNU ld.so'
9121 ;;
9122
9123netbsd*)
9124 version_type=sunos
9125 need_lib_prefix=no
9126 need_version=no
9127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9130 dynamic_linker='NetBSD (a.out) ld.so'
9131 else
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 dynamic_linker='NetBSD ld.elf_so'
9135 fi
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes
9138 hardcode_into_libs=yes
9139 ;;
9140
9141newsos6)
9142 version_type=linux
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 ;;
9147
9148nto-qnx*)
9149 version_type=linux
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=yes
9156 ;;
9157
9158openbsd*)
9159 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009160 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009162 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9163 case $host_os in
9164 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9165 *) need_version=no ;;
9166 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9171 case $host_os in
9172 openbsd2.[89] | openbsd2.[89].*)
9173 shlibpath_overrides_runpath=no
9174 ;;
9175 *)
9176 shlibpath_overrides_runpath=yes
9177 ;;
9178 esac
9179 else
9180 shlibpath_overrides_runpath=yes
9181 fi
9182 ;;
9183
9184os2*)
9185 libname_spec='$name'
9186 shrext_cmds=".dll"
9187 need_lib_prefix=no
9188 library_names_spec='$libname${shared_ext} $libname.a'
9189 dynamic_linker='OS/2 ld.exe'
9190 shlibpath_var=LIBPATH
9191 ;;
9192
9193osf3* | osf4* | osf5*)
9194 version_type=osf
9195 need_lib_prefix=no
9196 need_version=no
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9201 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9202 ;;
9203
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204solaris*)
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes
9212 hardcode_into_libs=yes
9213 # ldd complains unless libraries are executable
9214 postinstall_cmds='chmod +x $lib'
9215 ;;
9216
9217sunos4*)
9218 version_type=sunos
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=yes
9223 if test "$with_gnu_ld" = yes; then
9224 need_lib_prefix=no
9225 fi
9226 need_version=yes
9227 ;;
9228
Reid Spencera773bd52006-08-04 18:18:08 +00009229sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230 version_type=linux
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 case $host_vendor in
9235 sni)
9236 shlibpath_overrides_runpath=no
9237 need_lib_prefix=no
9238 export_dynamic_flag_spec='${wl}-Blargedynsym'
9239 runpath_var=LD_RUN_PATH
9240 ;;
9241 siemens)
9242 need_lib_prefix=no
9243 ;;
9244 motorola)
9245 need_lib_prefix=no
9246 need_version=no
9247 shlibpath_overrides_runpath=no
9248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9249 ;;
9250 esac
9251 ;;
9252
9253sysv4*MP*)
9254 if test -d /usr/nec ;then
9255 version_type=linux
9256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9257 soname_spec='$libname${shared_ext}.$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 fi
9260 ;;
9261
Reid Spencera773bd52006-08-04 18:18:08 +00009262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9263 version_type=freebsd-elf
9264 need_lib_prefix=no
9265 need_version=no
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 hardcode_into_libs=yes
9270 if test "$with_gnu_ld" = yes; then
9271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9272 shlibpath_overrides_runpath=no
9273 else
9274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9275 shlibpath_overrides_runpath=yes
9276 case $host_os in
9277 sco3.2v5*)
9278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9279 ;;
9280 esac
9281 fi
9282 sys_lib_dlsearch_path_spec='/usr/lib'
9283 ;;
9284
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285uts4*)
9286 version_type=linux
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 ;;
9291
9292*)
9293 dynamic_linker=no
9294 ;;
9295esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009296{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9297echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009298test "$dynamic_linker" = no && can_build_shared=no
9299
Reid Spencera773bd52006-08-04 18:18:08 +00009300variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9301if test "$GCC" = yes; then
9302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9303fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009304
Reid Spencera773bd52006-08-04 18:18:08 +00009305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009306{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9307echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9308if test "${libltdl_cv_shlibext+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310else
9311
9312module=yes
9313eval libltdl_cv_shlibext=$shrext_cmds
9314
9315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009316{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9317echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318if test -n "$libltdl_cv_shlibext"; then
9319
9320cat >>confdefs.h <<_ACEOF
9321#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9322_ACEOF
9323
9324fi
9325
9326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009327{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9328echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9329if test "${libltdl_cv_shlibpath_var+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331else
9332 libltdl_cv_shlibpath_var="$shlibpath_var"
9333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009334{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9335echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336if test -n "$libltdl_cv_shlibpath_var"; then
9337
9338cat >>confdefs.h <<_ACEOF
9339#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9340_ACEOF
9341
9342fi
9343
9344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009345{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9346echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9347if test "${libltdl_cv_sys_search_path+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349else
9350 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009352{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9353echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009354if test -n "$libltdl_cv_sys_search_path"; then
9355 sys_search_path=
9356 for dir in $libltdl_cv_sys_search_path; do
9357 if test -z "$sys_search_path"; then
9358 sys_search_path="$dir"
9359 else
9360 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9361 fi
9362 done
9363
9364cat >>confdefs.h <<_ACEOF
9365#define LTDL_SYSSEARCHPATH "$sys_search_path"
9366_ACEOF
9367
9368fi
9369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370{ echo "$as_me:$LINENO: checking for objdir" >&5
9371echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9372if test "${libltdl_cv_objdir+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374else
9375 libltdl_cv_objdir="$objdir"
9376 if test -n "$objdir"; then
9377 :
9378 else
9379 rm -f .libs 2>/dev/null
9380 mkdir .libs 2>/dev/null
9381 if test -d .libs; then
9382 libltdl_cv_objdir=.libs
9383 else
9384 # MS-DOS does not allow filenames that begin with a dot.
9385 libltdl_cv_objdir=_libs
9386 fi
9387 rmdir .libs 2>/dev/null
9388 fi
9389
9390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009391{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9392echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393
9394cat >>confdefs.h <<_ACEOF
9395#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9396_ACEOF
9397
9398
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399
9400
9401
9402
9403# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9405echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9406if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009408else
9409
9410# These are sane defaults that work on at least a few old systems.
9411# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9412
9413# Character class describing NM global symbol codes.
9414symcode='[BCDEGRST]'
9415
9416# Regexp to match symbols that can be accessed directly from C.
9417sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9418
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009419# Transform an extracted symbol line into a proper C declaration
9420lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9421
9422# Transform an extracted symbol line into symbol name and symbol address
9423lt_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'"
9424
9425# Define system-specific variables.
9426case $host_os in
9427aix*)
9428 symcode='[BCDT]'
9429 ;;
9430cygwin* | mingw* | pw32*)
9431 symcode='[ABCDGISTW]'
9432 ;;
9433hpux*) # Its linker distinguishes data from code symbols
9434 if test "$host_cpu" = ia64; then
9435 symcode='[ABCDEGRST]'
9436 fi
9437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9438 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'"
9439 ;;
9440linux*)
9441 if test "$host_cpu" = ia64; then
9442 symcode='[ABCDGIRSTW]'
9443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9444 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'"
9445 fi
9446 ;;
9447irix* | nonstopux*)
9448 symcode='[BCDEGRST]'
9449 ;;
9450osf*)
9451 symcode='[BCDEGQRST]'
9452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009453solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454 symcode='[BDRT]'
9455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009456sco3.2v5*)
9457 symcode='[DT]'
9458 ;;
9459sysv4.2uw2*)
9460 symcode='[DT]'
9461 ;;
9462sysv5* | sco5v6* | unixware* | OpenUNIX*)
9463 symcode='[ABDT]'
9464 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465sysv4)
9466 symcode='[DFNSTU]'
9467 ;;
9468esac
9469
9470# Handle CRLF in mingw tool chain
9471opt_cr=
9472case $build_os in
9473mingw*)
9474 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9475 ;;
9476esac
9477
9478# If we're using GNU nm, then use its standard symbol codes.
9479case `$NM -V 2>&1` in
9480*GNU* | *'with BFD'*)
9481 symcode='[ABCDGIRSTW]' ;;
9482esac
9483
9484# Try without a prefix undercore, then with it.
9485for ac_symprfx in "" "_"; do
9486
Reid Spencera773bd52006-08-04 18:18:08 +00009487 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9488 symxfrm="\\1 $ac_symprfx\\2 \\2"
9489
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009491 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 +00009492
9493 # Check to see that the pipe works correctly.
9494 pipe_works=no
9495
9496 rm -f conftest*
9497 cat > conftest.$ac_ext <<EOF
9498#ifdef __cplusplus
9499extern "C" {
9500#endif
9501char nm_test_var;
9502void nm_test_func(){}
9503#ifdef __cplusplus
9504}
9505#endif
9506int main(){nm_test_var='a';nm_test_func();return(0);}
9507EOF
9508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009510 (eval $ac_compile) 2>&5
9511 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514 # Now try to grab the symbols.
9515 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009516 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 +00009517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9518 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521 # Try sorting and uniquifying the output.
9522 if sort "$nlist" | uniq > "$nlist"T; then
9523 mv -f "$nlist"T "$nlist"
9524 else
9525 rm -f "$nlist"T
9526 fi
9527
9528 # Make sure that we snagged all the symbols we need.
9529 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9530 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9531 cat <<EOF > conftest.$ac_ext
9532#ifdef __cplusplus
9533extern "C" {
9534#endif
9535
9536EOF
9537 # Now generate the symbol file.
9538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9539
9540 cat <<EOF >> conftest.$ac_ext
9541#if defined (__STDC__) && __STDC__
9542# define lt_ptr_t void *
9543#else
9544# define lt_ptr_t char *
9545# define const
9546#endif
9547
9548/* The mapping between symbol names and symbols. */
9549const struct {
9550 const char *name;
9551 lt_ptr_t address;
9552}
9553lt_preloaded_symbols[] =
9554{
9555EOF
9556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9557 cat <<\EOF >> conftest.$ac_ext
9558 {0, (lt_ptr_t) 0}
9559};
9560
9561#ifdef __cplusplus
9562}
9563#endif
9564EOF
9565 # Now try linking the two files.
9566 mv conftest.$ac_objext conftstm.$ac_objext
9567 lt_save_LIBS="$LIBS"
9568 lt_save_CFLAGS="$CFLAGS"
9569 LIBS="conftstm.$ac_objext"
9570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572 (eval $ac_link) 2>&5
9573 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009576 pipe_works=yes
9577 fi
9578 LIBS="$lt_save_LIBS"
9579 CFLAGS="$lt_save_CFLAGS"
9580 else
9581 echo "cannot find nm_test_func in $nlist" >&5
9582 fi
9583 else
9584 echo "cannot find nm_test_var in $nlist" >&5
9585 fi
9586 else
9587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9588 fi
9589 else
9590 echo "$progname: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 fi
9593 rm -f conftest* conftst*
9594
9595 # Do not use the global_symbol_pipe unless it works.
9596 if test "$pipe_works" = yes; then
9597 break
9598 else
9599 lt_cv_sys_global_symbol_pipe=
9600 fi
9601done
9602
9603fi
9604
9605if test -z "$lt_cv_sys_global_symbol_pipe"; then
9606 lt_cv_sys_global_symbol_to_cdecl=
9607fi
9608if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009609 { echo "$as_me:$LINENO: result: failed" >&5
9610echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612 { echo "$as_me:$LINENO: result: ok" >&5
9613echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614fi
9615
9616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009617{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9618echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9619if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621else
9622 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9623 libltdl_cv_preloaded_symbols=yes
9624 else
9625 libltdl_cv_preloaded_symbols=no
9626 fi
9627
9628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009629{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9630echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009633cat >>confdefs.h <<\_ACEOF
9634#define HAVE_PRELOADED_SYMBOLS 1
9635_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636
9637fi
9638
9639LIBADD_DL=
9640
9641ac_ext=c
9642ac_cpp='$CPP $CPPFLAGS'
9643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645ac_compiler_gnu=$ac_cv_c_compiler_gnu
9646
9647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009648{ echo "$as_me:$LINENO: checking for shl_load" >&5
9649echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9650if test "${ac_cv_func_shl_load+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9661#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663/* System header to define __stub macros and hopefully few prototypes,
9664 which can conflict with char shl_load (); below.
9665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9666 <limits.h> exists even on freestanding compilers. */
9667
9668#ifdef __STDC__
9669# include <limits.h>
9670#else
9671# include <assert.h>
9672#endif
9673
9674#undef shl_load
9675
9676/* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679#ifdef __cplusplus
9680extern "C"
9681#endif
9682char shl_load ();
9683/* The GNU C library defines this for functions which it implements
9684 to always fail with ENOSYS. Some functions are actually named
9685 something starting with __ and the normal name is an alias. */
9686#if defined __stub_shl_load || defined __stub___shl_load
9687choke me
9688#endif
9689
9690int
9691main ()
9692{
9693return shl_load ();
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (ac_try="$ac_link"
9700case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726esac
9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_func_shl_load=yes
9733else
9734 echo "$as_me: failed program was:" >&5
9735sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_func_shl_load=no
9738fi
9739
9740rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742fi
9743{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9744echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9745if test $ac_cv_func_shl_load = yes; then
9746
9747cat >>confdefs.h <<\_ACEOF
9748#define HAVE_SHL_LOAD 1
9749_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750
9751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009752 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9753echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9754if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756else
9757 ac_check_lib_save_LIBS=$LIBS
9758LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009759cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764/* end confdefs.h. */
9765
Reid Spencera773bd52006-08-04 18:18:08 +00009766/* Override any GCC internal prototype to avoid an error.
9767 Use char because int might match the return type of a GCC
9768 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769#ifdef __cplusplus
9770extern "C"
9771#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772char shl_load ();
9773int
9774main ()
9775{
Reid Spencera773bd52006-08-04 18:18:08 +00009776return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777 ;
9778 return 0;
9779}
9780_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009781rm -f conftest.$ac_objext conftest$ac_exeext
9782if { (ac_try="$ac_link"
9783case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786esac
9787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799esac
9800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809esac
9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815 ac_cv_lib_dld_shl_load=yes
9816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009817 echo "$as_me: failed program was:" >&5
9818sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009822
Bill Wendlingebcceee2009-04-18 11:20:33 +00009823rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009824 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825LIBS=$ac_check_lib_save_LIBS
9826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9828echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9829if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009831cat >>confdefs.h <<\_ACEOF
9832#define HAVE_SHL_LOAD 1
9833_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834
9835 LIBADD_DL="$LIBADD_DL -ldld"
9836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009837 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9838echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9839if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841else
9842 ac_check_lib_save_LIBS=$LIBS
9843LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849/* end confdefs.h. */
9850
Reid Spencera773bd52006-08-04 18:18:08 +00009851/* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854#ifdef __cplusplus
9855extern "C"
9856#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857char dlopen ();
9858int
9859main ()
9860{
Reid Spencera773bd52006-08-04 18:18:08 +00009861return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 ;
9863 return 0;
9864}
9865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (ac_try="$ac_link"
9868case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900 ac_cv_lib_dl_dlopen=yes
9901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009902 echo "$as_me: failed program was:" >&5
9903sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907
Bill Wendlingebcceee2009-04-18 11:20:33 +00009908rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009909 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910LIBS=$ac_check_lib_save_LIBS
9911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009912{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9913echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9914if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009916cat >>confdefs.h <<\_ACEOF
9917#define HAVE_LIBDL 1
9918_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919
9920 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009922 cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h. */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927/* end confdefs.h. */
9928#if HAVE_DLFCN_H
9929# include <dlfcn.h>
9930#endif
9931
9932int
9933main ()
9934{
9935dlopen(0, 0);
9936 ;
9937 return 0;
9938}
9939_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (ac_try="$ac_link"
9942case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945esac
9946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958esac
9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009975cat >>confdefs.h <<\_ACEOF
9976#define HAVE_LIBDL 1
9977_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978 libltdl_cv_func_dlopen="yes"
9979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009980 echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9984echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9985if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987else
9988 ac_check_lib_save_LIBS=$LIBS
9989LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009990cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h. */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995/* end confdefs.h. */
9996
Reid Spencera773bd52006-08-04 18:18:08 +00009997/* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000#ifdef __cplusplus
10001extern "C"
10002#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003char dlopen ();
10004int
10005main ()
10006{
Reid Spencera773bd52006-08-04 18:18:08 +000010007return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ;
10009 return 0;
10010}
10011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010012rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 ac_cv_lib_svld_dlopen=yes
10047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010053
Bill Wendlingebcceee2009-04-18 11:20:33 +000010054rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010055 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056LIBS=$ac_check_lib_save_LIBS
10057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010058{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10059echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10060if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010062cat >>confdefs.h <<\_ACEOF
10063#define HAVE_LIBDL 1
10064_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065
10066 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010068 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10069echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10070if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072else
10073 ac_check_lib_save_LIBS=$LIBS
10074LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h. */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080/* end confdefs.h. */
10081
Reid Spencera773bd52006-08-04 18:18:08 +000010082/* Override any GCC internal prototype to avoid an error.
10083 Use char because int might match the return type of a GCC
10084 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085#ifdef __cplusplus
10086extern "C"
10087#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088char dld_link ();
10089int
10090main ()
10091{
Reid Spencera773bd52006-08-04 18:18:08 +000010092return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 ;
10094 return 0;
10095}
10096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010097rm -f conftest.$ac_objext conftest$ac_exeext
10098if { (ac_try="$ac_link"
10099case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112 { (case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_try") 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125esac
10126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131 ac_cv_lib_dld_dld_link=yes
10132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010133 echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010138
Bill Wendlingebcceee2009-04-18 11:20:33 +000010139rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010140 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141LIBS=$ac_check_lib_save_LIBS
10142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010143{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10144echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10145if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010147cat >>confdefs.h <<\_ACEOF
10148#define HAVE_DLD 1
10149_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150
10151 LIBADD_DL="$LIBADD_DL -ldld"
10152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010153 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10154echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10155if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10166#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010168/* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char _dyld_func_lookup (); below.
10170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010173#ifdef __STDC__
10174# include <limits.h>
10175#else
10176# include <assert.h>
10177#endif
10178
10179#undef _dyld_func_lookup
10180
10181/* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184#ifdef __cplusplus
10185extern "C"
10186#endif
10187char _dyld_func_lookup ();
10188/* The GNU C library defines this for functions which it implements
10189 to always fail with ENOSYS. Some functions are actually named
10190 something starting with __ and the normal name is an alias. */
10191#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10192choke me
10193#endif
10194
10195int
10196main ()
10197{
10198return _dyld_func_lookup ();
10199 ;
10200 return 0;
10201}
10202_ACEOF
10203rm -f conftest.$ac_objext conftest$ac_exeext
10204if { (ac_try="$ac_link"
10205case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest$ac_exeext'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231esac
10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_cv_func__dyld_func_lookup=yes
10238else
10239 echo "$as_me: failed program was:" >&5
10240sed 's/^/| /' conftest.$ac_ext >&5
10241
10242 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243fi
Reid Spencera773bd52006-08-04 18:18:08 +000010244
Bill Wendlingebcceee2009-04-18 11:20:33 +000010245rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010246 conftest$ac_exeext conftest.$ac_ext
10247fi
10248{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10249echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10250if test $ac_cv_func__dyld_func_lookup = yes; then
10251
10252cat >>confdefs.h <<\_ACEOF
10253#define HAVE_DYLD 1
10254_ACEOF
10255
10256fi
10257
10258
10259fi
10260
10261
10262fi
10263
10264
10265fi
10266
10267rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269
10270fi
10271
10272
10273fi
10274
10275
10276fi
10277
10278
10279if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10280then
10281 lt_save_LIBS="$LIBS"
10282 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010283
10284for ac_func in dlerror
10285do
10286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10287{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
10298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10300#define $ac_func innocuous_$ac_func
10301
10302/* System header to define __stub macros and hopefully few prototypes,
10303 which can conflict with char $ac_func (); below.
10304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10305 <limits.h> exists even on freestanding compilers. */
10306
10307#ifdef __STDC__
10308# include <limits.h>
10309#else
10310# include <assert.h>
10311#endif
10312
10313#undef $ac_func
10314
10315/* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318#ifdef __cplusplus
10319extern "C"
10320#endif
10321char $ac_func ();
10322/* The GNU C library defines this for functions which it implements
10323 to always fail with ENOSYS. Some functions are actually named
10324 something starting with __ and the normal name is an alias. */
10325#if defined __stub_$ac_func || defined __stub___$ac_func
10326choke me
10327#endif
10328
10329int
10330main ()
10331{
10332return $ac_func ();
10333 ;
10334 return 0;
10335}
10336_ACEOF
10337rm -f conftest.$ac_objext conftest$ac_exeext
10338if { (ac_try="$ac_link"
10339case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342esac
10343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_link") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10352 { (case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355esac
10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_try") 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest$ac_exeext'
10362 { (case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365esac
10366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_try") 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 eval "$as_ac_var=yes"
10372else
10373 echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 eval "$as_ac_var=no"
10377fi
10378
10379rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381fi
10382ac_res=`eval echo '${'$as_ac_var'}'`
10383 { echo "$as_me:$LINENO: result: $ac_res" >&5
10384echo "${ECHO_T}$ac_res" >&6; }
10385if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388_ACEOF
10389
10390fi
10391done
10392
10393 LIBS="$lt_save_LIBS"
10394fi
10395ac_ext=c
10396ac_cpp='$CPP $CPPFLAGS'
10397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399ac_compiler_gnu=$ac_cv_c_compiler_gnu
10400
10401
10402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10404echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10405if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407else
10408 ac_cv_sys_symbol_underscore=no
10409 cat > conftest.$ac_ext <<EOF
10410void nm_test_func(){}
10411int main(){nm_test_func;return 0;}
10412EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 (eval $ac_compile) 2>&5
10415 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418 # Now try to grab the symbols.
10419 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010420 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 +000010421 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10422 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 # See whether the symbols have a leading underscore.
10426 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10427 ac_cv_sys_symbol_underscore=yes
10428 else
10429 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10430 :
10431 else
10432 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10433 fi
10434 fi
10435 else
10436 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10437 fi
10438 else
10439 echo "configure: failed program was:" >&5
10440 cat conftest.c >&5
10441 fi
10442 rm -rf conftest*
10443
10444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10446echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447
10448
10449if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10450 if test x"$libltdl_cv_func_dlopen" = xyes ||
10451 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10453echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10454if test "${libltdl_cv_need_uscore+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456else
10457 libltdl_cv_need_uscore=unknown
10458 save_LIBS="$LIBS"
10459 LIBS="$LIBS $LIBADD_DL"
10460 if test "$cross_compiling" = yes; then :
10461 libltdl_cv_need_uscore=cross
10462else
10463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10464 lt_status=$lt_dlunknown
10465 cat > conftest.$ac_ext <<EOF
Dylan Noblesmithfde82372012-02-13 18:48:10 +000010466#line 10466 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467#include "confdefs.h"
10468
10469#if HAVE_DLFCN_H
10470#include <dlfcn.h>
10471#endif
10472
10473#include <stdio.h>
10474
10475#ifdef RTLD_GLOBAL
10476# define LT_DLGLOBAL RTLD_GLOBAL
10477#else
10478# ifdef DL_GLOBAL
10479# define LT_DLGLOBAL DL_GLOBAL
10480# else
10481# define LT_DLGLOBAL 0
10482# endif
10483#endif
10484
10485/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10486 find out it does not work in some platform. */
10487#ifndef LT_DLLAZY_OR_NOW
10488# ifdef RTLD_LAZY
10489# define LT_DLLAZY_OR_NOW RTLD_LAZY
10490# else
10491# ifdef DL_LAZY
10492# define LT_DLLAZY_OR_NOW DL_LAZY
10493# else
10494# ifdef RTLD_NOW
10495# define LT_DLLAZY_OR_NOW RTLD_NOW
10496# else
10497# ifdef DL_NOW
10498# define LT_DLLAZY_OR_NOW DL_NOW
10499# else
10500# define LT_DLLAZY_OR_NOW 0
10501# endif
10502# endif
10503# endif
10504# endif
10505#endif
10506
10507#ifdef __cplusplus
10508extern "C" void exit (int);
10509#endif
10510
10511void fnord() { int i=42;}
10512int main ()
10513{
10514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515 int status = $lt_dlunknown;
10516
10517 if (self)
10518 {
10519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10521 /* dlclose (self); */
10522 }
Reid Spencera773bd52006-08-04 18:18:08 +000010523 else
10524 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525
10526 exit (status);
10527}
10528EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 (eval $ac_link) 2>&5
10531 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010534 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535 lt_status=$?
10536 case x$lt_status in
10537 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10538 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010539 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540 esac
10541 else :
10542 # compilation failed
10543
10544 fi
10545fi
10546rm -fr conftest*
10547
10548 LIBS="$save_LIBS"
10549
10550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010551{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10552echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553 fi
10554fi
10555
10556if test x"$libltdl_cv_need_uscore" = xyes; then
10557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010558cat >>confdefs.h <<\_ACEOF
10559#define NEED_USCORE 1
10560_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561
10562fi
10563
10564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010565{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10566echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10567if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569else
10570 # PORTME does your system automatically load deplibs for dlopen?
10571 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10572 # For now, we just catch OSes we know something about -- in the
10573 # future, we'll try test this programmatically.
10574 libltdl_cv_sys_dlopen_deplibs=unknown
10575 case "$host_os" in
10576 aix3*|aix4.1.*|aix4.2.*)
10577 # Unknown whether this is true for these versions of AIX, but
10578 # we want this `case' here to explicitly catch those versions.
10579 libltdl_cv_sys_dlopen_deplibs=unknown
10580 ;;
10581 aix[45]*)
10582 libltdl_cv_sys_dlopen_deplibs=yes
10583 ;;
10584 darwin*)
10585 # Assuming the user has installed a libdl from somewhere, this is true
10586 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10587 libltdl_cv_sys_dlopen_deplibs=yes
10588 ;;
10589 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10590 # GNU and its variants, using gnu ld.so (Glibc)
10591 libltdl_cv_sys_dlopen_deplibs=yes
10592 ;;
10593 hpux10*|hpux11*)
10594 libltdl_cv_sys_dlopen_deplibs=yes
10595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010596 interix*)
10597 libltdl_cv_sys_dlopen_deplibs=yes
10598 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599 irix[12345]*|irix6.[01]*)
10600 # Catch all versions of IRIX before 6.2, and indicate that we don't
10601 # know how it worked for any of those versions.
10602 libltdl_cv_sys_dlopen_deplibs=unknown
10603 ;;
10604 irix*)
10605 # The case above catches anything before 6.2, and it's known that
10606 # at 6.2 and later dlopen does load deplibs.
10607 libltdl_cv_sys_dlopen_deplibs=yes
10608 ;;
10609 netbsd*)
10610 libltdl_cv_sys_dlopen_deplibs=yes
10611 ;;
10612 openbsd*)
10613 libltdl_cv_sys_dlopen_deplibs=yes
10614 ;;
10615 osf[1234]*)
10616 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10617 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010618 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619 libltdl_cv_sys_dlopen_deplibs=no
10620 ;;
10621 osf5.0|osf5.0a|osf5.1)
10622 # dlopen *does* load deplibs and with the right loader patch applied
10623 # it even uses RPATH in a shared library to search for shared objects
10624 # that the library depends on, but there's no easy way to know if that
10625 # patch is installed. Since this is the case, all we can really
10626 # say is unknown -- it depends on the patch being installed. If
10627 # it is, this changes to `yes'. Without it, it would be `no'.
10628 libltdl_cv_sys_dlopen_deplibs=unknown
10629 ;;
10630 osf*)
10631 # the two cases above should catch all versions of osf <= 5.1. Read
10632 # the comments above for what we know about them.
10633 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10634 # is used to find them so we can finally say `yes'.
10635 libltdl_cv_sys_dlopen_deplibs=yes
10636 ;;
10637 solaris*)
10638 libltdl_cv_sys_dlopen_deplibs=yes
10639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641 libltdl_cv_sys_dlopen_deplibs=yes
10642 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 esac
10644
10645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010646{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10647echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010650cat >>confdefs.h <<\_ACEOF
10651#define LTDL_DLOPEN_DEPLIBS 1
10652_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010653
10654fi
10655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010656
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010658do
10659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665fi
10666ac_res=`eval echo '${'$as_ac_Header'}'`
10667 { echo "$as_me:$LINENO: result: $ac_res" >&5
10668echo "${ECHO_T}$ac_res" >&6; }
10669else
10670 # Is the header compilable?
10671{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10673cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h. */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
10678/* end confdefs.h. */
10679$ac_includes_default
10680#include <$ac_header>
10681_ACEOF
10682rm -f conftest.$ac_objext
10683if { (ac_try="$ac_compile"
10684case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (case "(($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_try") 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_header_compiler=yes
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_header_compiler=no
10722fi
10723
10724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726echo "${ECHO_T}$ac_header_compiler" >&6; }
10727
10728# Is the header present?
10729{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10731cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737#include <$ac_header>
10738_ACEOF
10739if { (ac_try="$ac_cpp conftest.$ac_ext"
10740case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743esac
10744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } >/dev/null; then
10752 if test -s conftest.err; then
10753 ac_cpp_err=$ac_c_preproc_warn_flag
10754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10755 else
10756 ac_cpp_err=
10757 fi
10758else
10759 ac_cpp_err=yes
10760fi
10761if test -z "$ac_cpp_err"; then
10762 ac_header_preproc=yes
10763else
10764 echo "$as_me: failed program was:" >&5
10765sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_header_preproc=no
10768fi
10769
10770rm -f conftest.err conftest.$ac_ext
10771{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772echo "${ECHO_T}$ac_header_preproc" >&6; }
10773
10774# So? What about this header?
10775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10776 yes:no: )
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781 ac_header_preproc=yes
10782 ;;
10783 no:yes:* )
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010797## ------------------------------------ ##
10798## Report this to http://llvm.org/bugs/ ##
10799## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010800_ASBOX
10801 ) | sed "s/^/$as_me: WARNING: /" >&2
10802 ;;
10803esac
10804{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809 eval "$as_ac_Header=\$ac_header_preproc"
10810fi
10811ac_res=`eval echo '${'$as_ac_Header'}'`
10812 { echo "$as_me:$LINENO: result: $ac_res" >&5
10813echo "${ECHO_T}$ac_res" >&6; }
10814
10815fi
10816if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819_ACEOF
10820
10821fi
10822
10823done
10824
10825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826{ echo "$as_me:$LINENO: checking for error_t" >&5
10827echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10828if test "${ac_cv_type_error_t+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10837#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838# include <argz.h>
10839#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840
10841typedef error_t ac__type_new_;
10842int
10843main ()
10844{
10845if ((ac__type_new_ *) 0)
10846 return 0;
10847if (sizeof (ac__type_new_))
10848 return 0;
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext
10854if { (ac_try="$ac_compile"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest.$ac_objext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_type_error_t=yes
10888else
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_cv_type_error_t=no
10893fi
10894
10895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896fi
10897{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10898echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10899if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900
10901cat >>confdefs.h <<_ACEOF
10902#define HAVE_ERROR_T 1
10903_ACEOF
10904
10905
10906else
10907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010908cat >>confdefs.h <<\_ACEOF
10909#define error_t int
10910_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911
10912fi
10913
10914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010915
10916
10917
10918
10919
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010921do
10922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10925if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
10934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10936#define $ac_func innocuous_$ac_func
10937
10938/* System header to define __stub macros and hopefully few prototypes,
10939 which can conflict with char $ac_func (); below.
10940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10941 <limits.h> exists even on freestanding compilers. */
10942
10943#ifdef __STDC__
10944# include <limits.h>
10945#else
10946# include <assert.h>
10947#endif
10948
10949#undef $ac_func
10950
10951/* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954#ifdef __cplusplus
10955extern "C"
10956#endif
10957char $ac_func ();
10958/* The GNU C library defines this for functions which it implements
10959 to always fail with ENOSYS. Some functions are actually named
10960 something starting with __ and the normal name is an alias. */
10961#if defined __stub_$ac_func || defined __stub___$ac_func
10962choke me
10963#endif
10964
10965int
10966main ()
10967{
10968return $ac_func ();
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973rm -f conftest.$ac_objext conftest$ac_exeext
10974if { (ac_try="$ac_link"
10975case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978esac
10979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_link") 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001esac
11002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_try") 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 eval "$as_ac_var=yes"
11008else
11009 echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 eval "$as_ac_var=no"
11013fi
11014
11015rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017fi
11018ac_res=`eval echo '${'$as_ac_var'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020echo "${ECHO_T}$ac_res" >&6; }
11021if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011024_ACEOF
11025
11026fi
11027done
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048
11049
11050
11051
11052
11053
11054
11055
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11057 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011058do
11059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065fi
11066ac_res=`eval echo '${'$as_ac_Header'}'`
11067 { echo "$as_me:$LINENO: result: $ac_res" >&5
11068echo "${ECHO_T}$ac_res" >&6; }
11069else
11070 # Is the header compilable?
11071{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11073cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079$ac_includes_default
11080#include <$ac_header>
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (ac_try="$ac_compile"
11084case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087esac
11088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_compile") 2>conftest.er1
11090 ac_status=$?
11091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110esac
11111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_try") 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_header_compiler=yes
11117else
11118 echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_header_compiler=no
11122fi
11123
11124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126echo "${ECHO_T}$ac_header_compiler" >&6; }
11127
11128# Is the header present?
11129{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h. */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h. */
11137#include <$ac_header>
11138_ACEOF
11139if { (ac_try="$ac_cpp conftest.$ac_ext"
11140case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143esac
11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
11154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11155 else
11156 ac_cpp_err=
11157 fi
11158else
11159 ac_cpp_err=yes
11160fi
11161if test -z "$ac_cpp_err"; then
11162 ac_header_preproc=yes
11163else
11164 echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_header_preproc=no
11168fi
11169
11170rm -f conftest.err conftest.$ac_ext
11171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172echo "${ECHO_T}$ac_header_preproc" >&6; }
11173
11174# So? What about this header?
11175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11176 yes:no: )
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181 ac_header_preproc=yes
11182 ;;
11183 no:yes:* )
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11196 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011197## ------------------------------------ ##
11198## Report this to http://llvm.org/bugs/ ##
11199## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011200_ASBOX
11201 ) | sed "s/^/$as_me: WARNING: /" >&2
11202 ;;
11203esac
11204{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 eval "$as_ac_Header=\$ac_header_preproc"
11210fi
11211ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213echo "${ECHO_T}$ac_res" >&6; }
11214
11215fi
11216if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219_ACEOF
11220
11221fi
11222
11223done
11224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011225
11226
11227
11228
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011230do
11231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237fi
11238ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240echo "${ECHO_T}$ac_res" >&6; }
11241else
11242 # Is the header compilable?
11243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251$ac_includes_default
11252#include <$ac_header>
11253_ACEOF
11254rm -f conftest.$ac_objext
11255if { (ac_try="$ac_compile"
11256case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_header_compiler=yes
11289else
11290 echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
11293 ac_header_compiler=no
11294fi
11295
11296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298echo "${ECHO_T}$ac_header_compiler" >&6; }
11299
11300# Is the header present?
11301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309#include <$ac_header>
11310_ACEOF
11311if { (ac_try="$ac_cpp conftest.$ac_ext"
11312case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null; then
11324 if test -s conftest.err; then
11325 ac_cpp_err=$ac_c_preproc_warn_flag
11326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11327 else
11328 ac_cpp_err=
11329 fi
11330else
11331 ac_cpp_err=yes
11332fi
11333if test -z "$ac_cpp_err"; then
11334 ac_header_preproc=yes
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 ac_header_preproc=no
11340fi
11341
11342rm -f conftest.err conftest.$ac_ext
11343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344echo "${ECHO_T}$ac_header_preproc" >&6; }
11345
11346# So? What about this header?
11347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348 yes:no: )
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11354 ;;
11355 no:yes:* )
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011369## ------------------------------------ ##
11370## Report this to http://llvm.org/bugs/ ##
11371## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011372_ASBOX
11373 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 ;;
11375esac
11376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381 eval "$as_ac_Header=\$ac_header_preproc"
11382fi
11383ac_res=`eval echo '${'$as_ac_Header'}'`
11384 { echo "$as_me:$LINENO: result: $ac_res" >&5
11385echo "${ECHO_T}$ac_res" >&6; }
11386
11387fi
11388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391_ACEOF
11392
11393fi
11394
11395done
11396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011397
11398
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011400do
11401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407fi
11408ac_res=`eval echo '${'$as_ac_Header'}'`
11409 { echo "$as_me:$LINENO: result: $ac_res" >&5
11410echo "${ECHO_T}$ac_res" >&6; }
11411else
11412 # Is the header compilable?
11413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421$ac_includes_default
11422#include <$ac_header>
11423_ACEOF
11424rm -f conftest.$ac_objext
11425if { (ac_try="$ac_compile"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452esac
11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_header_compiler=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_header_compiler=no
11464fi
11465
11466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468echo "${ECHO_T}$ac_header_compiler" >&6; }
11469
11470# Is the header present?
11471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479#include <$ac_header>
11480_ACEOF
11481if { (ac_try="$ac_cpp conftest.$ac_ext"
11482case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } >/dev/null; then
11494 if test -s conftest.err; then
11495 ac_cpp_err=$ac_c_preproc_warn_flag
11496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497 else
11498 ac_cpp_err=
11499 fi
11500else
11501 ac_cpp_err=yes
11502fi
11503if test -z "$ac_cpp_err"; then
11504 ac_header_preproc=yes
11505else
11506 echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_header_preproc=no
11510fi
11511
11512rm -f conftest.err conftest.$ac_ext
11513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514echo "${ECHO_T}$ac_header_preproc" >&6; }
11515
11516# So? What about this header?
11517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518 yes:no: )
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523 ac_header_preproc=yes
11524 ;;
11525 no:yes:* )
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011539## ------------------------------------ ##
11540## Report this to http://llvm.org/bugs/ ##
11541## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011542_ASBOX
11543 ) | sed "s/^/$as_me: WARNING: /" >&2
11544 ;;
11545esac
11546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11552fi
11553ac_res=`eval echo '${'$as_ac_Header'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555echo "${ECHO_T}$ac_res" >&6; }
11556
11557fi
11558if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561_ACEOF
11562 break
11563fi
11564
11565done
11566
11567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011568
11569
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011571do
11572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11573{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h. */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h. */
11584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11586#define $ac_func innocuous_$ac_func
11587
11588/* System header to define __stub macros and hopefully few prototypes,
11589 which can conflict with char $ac_func (); below.
11590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591 <limits.h> exists even on freestanding compilers. */
11592
11593#ifdef __STDC__
11594# include <limits.h>
11595#else
11596# include <assert.h>
11597#endif
11598
11599#undef $ac_func
11600
11601/* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11604#ifdef __cplusplus
11605extern "C"
11606#endif
11607char $ac_func ();
11608/* The GNU C library defines this for functions which it implements
11609 to always fail with ENOSYS. Some functions are actually named
11610 something starting with __ and the normal name is an alias. */
11611#if defined __stub_$ac_func || defined __stub___$ac_func
11612choke me
11613#endif
11614
11615int
11616main ()
11617{
11618return $ac_func ();
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext conftest$ac_exeext
11624if { (ac_try="$ac_link"
11625case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_link") 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest$ac_exeext'
11648 { (case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651esac
11652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_try") 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 eval "$as_ac_var=yes"
11658else
11659 echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 eval "$as_ac_var=no"
11663fi
11664
11665rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667fi
11668ac_res=`eval echo '${'$as_ac_var'}'`
11669 { echo "$as_me:$LINENO: result: $ac_res" >&5
11670echo "${ECHO_T}$ac_res" >&6; }
11671if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674_ACEOF
11675 break
11676fi
11677done
11678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011679
11680
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011682do
11683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11684{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11697#define $ac_func innocuous_$ac_func
11698
11699/* System header to define __stub macros and hopefully few prototypes,
11700 which can conflict with char $ac_func (); below.
11701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702 <limits.h> exists even on freestanding compilers. */
11703
11704#ifdef __STDC__
11705# include <limits.h>
11706#else
11707# include <assert.h>
11708#endif
11709
11710#undef $ac_func
11711
11712/* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11715#ifdef __cplusplus
11716extern "C"
11717#endif
11718char $ac_func ();
11719/* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722#if defined __stub_$ac_func || defined __stub___$ac_func
11723choke me
11724#endif
11725
11726int
11727main ()
11728{
11729return $ac_func ();
11730 ;
11731 return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext conftest$ac_exeext
11735if { (ac_try="$ac_link"
11736case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_link") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762esac
11763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 eval "$as_ac_var=yes"
11769else
11770 echo "$as_me: failed program was:" >&5
11771sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 eval "$as_ac_var=no"
11774fi
11775
11776rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778fi
11779ac_res=`eval echo '${'$as_ac_var'}'`
11780 { echo "$as_me:$LINENO: result: $ac_res" >&5
11781echo "${ECHO_T}$ac_res" >&6; }
11782if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785_ACEOF
11786 break
11787fi
11788done
11789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011790
11791
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011793do
11794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799else
11800 cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808#define $ac_func innocuous_$ac_func
11809
11810/* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11814
11815#ifdef __STDC__
11816# include <limits.h>
11817#else
11818# include <assert.h>
11819#endif
11820
11821#undef $ac_func
11822
11823/* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11826#ifdef __cplusplus
11827extern "C"
11828#endif
11829char $ac_func ();
11830/* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833#if defined __stub_$ac_func || defined __stub___$ac_func
11834choke me
11835#endif
11836
11837int
11838main ()
11839{
11840return $ac_func ();
11841 ;
11842 return 0;
11843}
11844_ACEOF
11845rm -f conftest.$ac_objext conftest$ac_exeext
11846if { (ac_try="$ac_link"
11847case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850esac
11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_link") 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 eval "$as_ac_var=yes"
11880else
11881 echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 eval "$as_ac_var=no"
11885fi
11886
11887rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11889fi
11890ac_res=`eval echo '${'$as_ac_var'}'`
11891 { echo "$as_me:$LINENO: result: $ac_res" >&5
11892echo "${ECHO_T}$ac_res" >&6; }
11893if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896_ACEOF
11897 break
11898fi
11899done
11900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011901
11902
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011904do
11905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911 cat >conftest.$ac_ext <<_ACEOF
11912/* confdefs.h. */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h. */
11917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11919#define $ac_func innocuous_$ac_func
11920
11921/* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char $ac_func (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
11925
11926#ifdef __STDC__
11927# include <limits.h>
11928#else
11929# include <assert.h>
11930#endif
11931
11932#undef $ac_func
11933
11934/* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply. */
11937#ifdef __cplusplus
11938extern "C"
11939#endif
11940char $ac_func ();
11941/* The GNU C library defines this for functions which it implements
11942 to always fail with ENOSYS. Some functions are actually named
11943 something starting with __ and the normal name is an alias. */
11944#if defined __stub_$ac_func || defined __stub___$ac_func
11945choke me
11946#endif
11947
11948int
11949main ()
11950{
11951return $ac_func ();
11952 ;
11953 return 0;
11954}
11955_ACEOF
11956rm -f conftest.$ac_objext conftest$ac_exeext
11957if { (ac_try="$ac_link"
11958case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961esac
11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974esac
11975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest$ac_exeext'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 eval "$as_ac_var=yes"
11991else
11992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 eval "$as_ac_var=no"
11996fi
11997
11998rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000fi
12001ac_res=`eval echo '${'$as_ac_var'}'`
12002 { echo "$as_me:$LINENO: result: $ac_res" >&5
12003echo "${ECHO_T}$ac_res" >&6; }
12004if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007_ACEOF
12008
12009fi
12010done
12011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012012
12013
12014
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012016do
12017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12018{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 cat >conftest.$ac_ext <<_ACEOF
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
12029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12031#define $ac_func innocuous_$ac_func
12032
12033/* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12037
12038#ifdef __STDC__
12039# include <limits.h>
12040#else
12041# include <assert.h>
12042#endif
12043
12044#undef $ac_func
12045
12046/* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049#ifdef __cplusplus
12050extern "C"
12051#endif
12052char $ac_func ();
12053/* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056#if defined __stub_$ac_func || defined __stub___$ac_func
12057choke me
12058#endif
12059
12060int
12061main ()
12062{
12063return $ac_func ();
12064 ;
12065 return 0;
12066}
12067_ACEOF
12068rm -f conftest.$ac_objext conftest$ac_exeext
12069if { (ac_try="$ac_link"
12070case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073esac
12074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096esac
12097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 eval "$as_ac_var=yes"
12103else
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 eval "$as_ac_var=no"
12108fi
12109
12110rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112fi
12113ac_res=`eval echo '${'$as_ac_var'}'`
12114 { echo "$as_me:$LINENO: result: $ac_res" >&5
12115echo "${ECHO_T}$ac_res" >&6; }
12116if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119_ACEOF
12120
12121fi
12122done
12123
12124
Douglas Gregor01746742009-05-11 18:05:52 +000012125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012126{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12127echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012128
Reid Spencer86901802004-12-08 23:07:27 +000012129ICC=no
12130IXX=no
12131case $CC in
12132 icc*|icpc*)
12133 ICC=yes
12134 IXX=yes
12135 ;;
12136 *)
12137 ;;
12138esac
12139
Duraid Madina937c60a2006-02-15 07:57:42 +000012140if test "$GCC" != "yes" && test "$ICC" != "yes"
12141then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012142 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12143echo "$as_me: error: gcc|icc required but not found" >&2;}
12144 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012145fi
12146
12147if test "$GXX" != "yes" && test "$IXX" != "yes"
12148then
Eric Christopher73e36da2010-12-08 02:02:14 +000012149 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12150echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012151 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012152fi
12153
Reid Spencer86901802004-12-08 23:07:27 +000012154if test "$GCC" = "yes"
12155then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012157#if !defined(__GNUC__) || __GNUC__ < 3
12158#error Unsupported GCC version
12159#endif
12160
12161_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012162rm -f conftest.$ac_objext
12163if { (ac_try="$ac_compile"
12164case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012198 echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12202echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12203 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012205
Chris Lattner399c7c72008-02-05 19:43:53 +000012206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012207fi
12208
12209if test -z "$llvm_cv_gnu_make_command"
12210then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012211 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12212echo "$as_me: error: GNU Make required but not found" >&2;}
12213 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012214fi
12215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012216{ echo "$as_me:$LINENO: result: ok" >&5
12217echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012219{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12220echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012221NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12222
12223NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012225{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12226echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012227
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229
12230{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12231echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12232if test "${ac_cv_lib_m_sin+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012234else
12235 ac_check_lib_save_LIBS=$LIBS
12236LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012242/* end confdefs.h. */
12243
Reid Spencera773bd52006-08-04 18:18:08 +000012244/* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012247#ifdef __cplusplus
12248extern "C"
12249#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012250char sin ();
12251int
12252main ()
12253{
Reid Spencera773bd52006-08-04 18:18:08 +000012254return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012255 ;
12256 return 0;
12257}
12258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259rm -f conftest.$ac_objext conftest$ac_exeext
12260if { (ac_try="$ac_link"
12261case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_link") 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287esac
12288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012293 ac_cv_lib_m_sin=yes
12294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012300
Bill Wendlingebcceee2009-04-18 11:20:33 +000012301rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012302 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012303LIBS=$ac_check_lib_save_LIBS
12304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012305{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12306echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12307if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012308 cat >>confdefs.h <<_ACEOF
12309#define HAVE_LIBM 1
12310_ACEOF
12311
12312 LIBS="-lm $LIBS"
12313
12314fi
12315
Jeff Cohen28783c32007-01-12 18:22:38 +000012316if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012317
12318{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12319echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12320if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012322else
12323 ac_check_lib_save_LIBS=$LIBS
12324LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012325cat >conftest.$ac_ext <<_ACEOF
12326/* confdefs.h. */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012330/* end confdefs.h. */
12331
Reid Spencer48fdf912006-06-01 19:03:21 +000012332
Reid Spencer484fc8e2006-06-01 16:55:59 +000012333int
12334main ()
12335{
Reid Spencera773bd52006-08-04 18:18:08 +000012336return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012337 ;
12338 return 0;
12339}
12340_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012341rm -f conftest.$ac_objext conftest$ac_exeext
12342if { (ac_try="$ac_link"
12343case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346esac
12347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_link") 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356 { (case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_try") 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369esac
12370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012375 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012382
Bill Wendlingebcceee2009-04-18 11:20:33 +000012383rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012384 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012385LIBS=$ac_check_lib_save_LIBS
12386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012387{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12388echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12389if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012390 cat >>confdefs.h <<_ACEOF
12391#define HAVE_LIBIMAGEHLP 1
12392_ACEOF
12393
12394 LIBS="-limagehlp $LIBS"
12395
12396fi
12397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012398
12399{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12400echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12401if test "${ac_cv_lib_psapi_main+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012403else
12404 ac_check_lib_save_LIBS=$LIBS
12405LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012411/* end confdefs.h. */
12412
Reid Spencer48fdf912006-06-01 19:03:21 +000012413
Reid Spencer484fc8e2006-06-01 16:55:59 +000012414int
12415main ()
12416{
Reid Spencera773bd52006-08-04 18:18:08 +000012417return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012418 ;
12419 return 0;
12420}
12421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012422rm -f conftest.$ac_objext conftest$ac_exeext
12423if { (ac_try="$ac_link"
12424case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427esac
12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450esac
12451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012456 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012458 echo "$as_me: failed program was:" >&5
12459sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012463
Bill Wendlingebcceee2009-04-18 11:20:33 +000012464rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012465 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012466LIBS=$ac_check_lib_save_LIBS
12467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012468{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12469echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12470if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012471 cat >>confdefs.h <<_ACEOF
12472#define HAVE_LIBPSAPI 1
12473_ACEOF
12474
12475 LIBS="-lpsapi $LIBS"
12476
12477fi
12478
12479fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012481{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12482echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12483if test "${ac_cv_search_dlopen+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012485else
12486 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012487cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012492/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012493
Reid Spencera773bd52006-08-04 18:18:08 +000012494/* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012497#ifdef __cplusplus
12498extern "C"
12499#endif
John Criswell7a73b802003-06-30 21:59:07 +000012500char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012501int
12502main ()
12503{
Reid Spencera773bd52006-08-04 18:18:08 +000012504return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012505 ;
12506 return 0;
12507}
12508_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012509for ac_lib in '' dl; do
12510 if test -z "$ac_lib"; then
12511 ac_res="none required"
12512 else
12513 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012515 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012516 rm -f conftest.$ac_objext conftest$ac_exeext
12517if { (ac_try="$ac_link"
12518case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012550 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012551else
12552 echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555
John Criswell7a73b802003-06-30 21:59:07 +000012556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012557
Bill Wendlingebcceee2009-04-18 11:20:33 +000012558rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012559 conftest$ac_exeext
12560 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012561 break
John Criswell7a73b802003-06-30 21:59:07 +000012562fi
Reid Spencera773bd52006-08-04 18:18:08 +000012563done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564if test "${ac_cv_search_dlopen+set}" = set; then
12565 :
Reid Spencera773bd52006-08-04 18:18:08 +000012566else
12567 ac_cv_search_dlopen=no
12568fi
12569rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012570LIBS=$ac_func_search_save_LIBS
12571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12573echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012574ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012578cat >>confdefs.h <<\_ACEOF
12579#define HAVE_DLOPEN 1
12580_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012581
12582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12584echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012585fi
12586
12587
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012588if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012589 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12590echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12591if test "${ac_cv_search_ffi_call+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012593else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012594 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012595cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012600/* end confdefs.h. */
12601
12602/* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12605#ifdef __cplusplus
12606extern "C"
12607#endif
12608char ffi_call ();
12609int
12610main ()
12611{
12612return ffi_call ();
12613 ;
12614 return 0;
12615}
12616_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012617for ac_lib in '' ffi; do
12618 if test -z "$ac_lib"; then
12619 ac_res="none required"
12620 else
12621 ac_res=-l$ac_lib
12622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12623 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012624 rm -f conftest.$ac_objext conftest$ac_exeext
12625if { (ac_try="$ac_link"
12626case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629esac
12630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642esac
12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
12653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012658 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012659else
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
12663
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012665
Bill Wendlingebcceee2009-04-18 11:20:33 +000012666rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012667 conftest$ac_exeext
12668 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012669 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012670fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012672if test "${ac_cv_search_ffi_call+set}" = set; then
12673 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012674else
12675 ac_cv_search_ffi_call=no
12676fi
12677rm conftest.$ac_ext
12678LIBS=$ac_func_search_save_LIBS
12679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012680{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12681echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012682ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012683if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012686cat >>confdefs.h <<\_ACEOF
12687#define HAVE_FFI_CALL 1
12688_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012689
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012690else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012691 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12692echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12693 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012694fi
12695
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012696fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012698{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12699echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12700if test "${ac_cv_search_mallinfo+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012702else
12703 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012709/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012710
Reid Spencera773bd52006-08-04 18:18:08 +000012711/* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012714#ifdef __cplusplus
12715extern "C"
12716#endif
John Criswell7a73b802003-06-30 21:59:07 +000012717char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012718int
12719main ()
12720{
Reid Spencera773bd52006-08-04 18:18:08 +000012721return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012722 ;
12723 return 0;
12724}
12725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012726for ac_lib in '' malloc; do
12727 if test -z "$ac_lib"; then
12728 ac_res="none required"
12729 else
12730 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012732 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012733 rm -f conftest.$ac_objext conftest$ac_exeext
12734if { (ac_try="$ac_link"
12735case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738esac
12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_link") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751esac
12752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012767 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772
John Criswell7a73b802003-06-30 21:59:07 +000012773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012774
Bill Wendlingebcceee2009-04-18 11:20:33 +000012775rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012776 conftest$ac_exeext
12777 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012778 break
John Criswell7a73b802003-06-30 21:59:07 +000012779fi
Reid Spencera773bd52006-08-04 18:18:08 +000012780done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781if test "${ac_cv_search_mallinfo+set}" = set; then
12782 :
Reid Spencera773bd52006-08-04 18:18:08 +000012783else
12784 ac_cv_search_mallinfo=no
12785fi
12786rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012787LIBS=$ac_func_search_save_LIBS
12788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12790echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012791ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012792if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012795cat >>confdefs.h <<\_ACEOF
12796#define HAVE_MALLINFO 1
12797_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012798
12799fi
12800
12801
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012802if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012803
12804{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12805echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12806if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012808else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012809 ac_check_lib_save_LIBS=$LIBS
12810LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012811cat >conftest.$ac_ext <<_ACEOF
12812/* confdefs.h. */
12813_ACEOF
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012816/* end confdefs.h. */
12817
Reid Spencera773bd52006-08-04 18:18:08 +000012818/* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012821#ifdef __cplusplus
12822extern "C"
12823#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012824char pthread_mutex_init ();
12825int
12826main ()
12827{
Reid Spencera773bd52006-08-04 18:18:08 +000012828return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012829 ;
12830 return 0;
12831}
12832_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012833rm -f conftest.$ac_objext conftest$ac_exeext
12834if { (ac_try="$ac_link"
12835case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_link") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851esac
12852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012867 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012874
Bill Wendlingebcceee2009-04-18 11:20:33 +000012875rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012876 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012877LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012879{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12880echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12881if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012882 cat >>confdefs.h <<_ACEOF
12883#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012884_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012885
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012886 LIBS="-lpthread $LIBS"
12887
Reid Spencer22177fe2005-07-12 15:24:20 +000012888fi
12889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012890 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12891echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12892if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012894else
12895 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012896cat >conftest.$ac_ext <<_ACEOF
12897/* confdefs.h. */
12898_ACEOF
12899cat confdefs.h >>conftest.$ac_ext
12900cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012901/* end confdefs.h. */
12902
Reid Spencera773bd52006-08-04 18:18:08 +000012903/* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012906#ifdef __cplusplus
12907extern "C"
12908#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012909char pthread_mutex_lock ();
12910int
12911main ()
12912{
Reid Spencera773bd52006-08-04 18:18:08 +000012913return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012914 ;
12915 return 0;
12916}
12917_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012918for ac_lib in '' pthread; do
12919 if test -z "$ac_lib"; then
12920 ac_res="none required"
12921 else
12922 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012924 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012925 rm -f conftest.$ac_objext conftest$ac_exeext
12926if { (ac_try="$ac_link"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953esac
12954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012959 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960else
12961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
Brian Gaeke5f268f72003-12-05 19:29:01 +000012965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966
Bill Wendlingebcceee2009-04-18 11:20:33 +000012967rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012968 conftest$ac_exeext
12969 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012970 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012971fi
Reid Spencera773bd52006-08-04 18:18:08 +000012972done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12974 :
Reid Spencera773bd52006-08-04 18:18:08 +000012975else
12976 ac_cv_search_pthread_mutex_lock=no
12977fi
12978rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012979LIBS=$ac_func_search_save_LIBS
12980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12982echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012983ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987cat >>confdefs.h <<\_ACEOF
12988#define HAVE_PTHREAD_MUTEX_LOCK 1
12989_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012990
12991fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012993 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12994echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12995if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012997else
12998 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013004/* end confdefs.h. */
13005
13006/* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13009#ifdef __cplusplus
13010extern "C"
13011#endif
13012char pthread_rwlock_init ();
13013int
13014main ()
13015{
13016return pthread_rwlock_init ();
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021for ac_lib in '' pthread; do
13022 if test -z "$ac_lib"; then
13023 ac_res="none required"
13024 else
13025 ac_res=-l$ac_lib
13026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13027 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028 rm -f conftest.$ac_objext conftest$ac_exeext
13029if { (ac_try="$ac_link"
13030case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033esac
13034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056esac
13057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_try") 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013062 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013063else
13064 echo "$as_me: failed program was:" >&5
13065sed 's/^/| /' conftest.$ac_ext >&5
13066
13067
Owen Andersonde8aed22009-06-16 18:20:20 +000013068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069
Owen Andersonde8aed22009-06-16 18:20:20 +000013070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013071 conftest$ac_exeext
13072 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013073 break
13074fi
13075done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13077 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013078else
13079 ac_cv_search_pthread_rwlock_init=no
13080fi
13081rm conftest.$ac_ext
13082LIBS=$ac_func_search_save_LIBS
13083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13085echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013086ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013090cat >>confdefs.h <<\_ACEOF
13091#define HAVE_PTHREAD_RWLOCK_INIT 1
13092_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013093
13094fi
13095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013096 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13097echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13098if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013100else
13101 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013102cat >conftest.$ac_ext <<_ACEOF
13103/* confdefs.h. */
13104_ACEOF
13105cat confdefs.h >>conftest.$ac_ext
13106cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013107/* end confdefs.h. */
13108
13109/* Override any GCC internal prototype to avoid an error.
13110 Use char because int might match the return type of a GCC
13111 builtin and then its argument prototype would still apply. */
13112#ifdef __cplusplus
13113extern "C"
13114#endif
13115char pthread_getspecific ();
13116int
13117main ()
13118{
13119return pthread_getspecific ();
13120 ;
13121 return 0;
13122}
13123_ACEOF
13124for ac_lib in '' pthread; do
13125 if test -z "$ac_lib"; then
13126 ac_res="none required"
13127 else
13128 ac_res=-l$ac_lib
13129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13130 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013131 rm -f conftest.$ac_objext conftest$ac_exeext
13132if { (ac_try="$ac_link"
13133case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_link") 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest$ac_exeext'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013165 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170
Owen Anderson27fcfe12009-06-25 23:10:26 +000013171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013172
Owen Anderson27fcfe12009-06-25 23:10:26 +000013173rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013174 conftest$ac_exeext
13175 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013176 break
13177fi
13178done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13180 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013181else
13182 ac_cv_search_pthread_getspecific=no
13183fi
13184rm conftest.$ac_ext
13185LIBS=$ac_func_search_save_LIBS
13186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13188echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013189ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193cat >>confdefs.h <<\_ACEOF
13194#define HAVE_PTHREAD_GETSPECIFIC 1
13195_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013196
13197fi
13198
Reid Spencer0a262ba2005-08-24 10:07:20 +000013199fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013200
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013201
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013202# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013204 withval=$with_udis86;
13205 USE_UDIS86=1
13206
13207 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013208 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013209 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13210 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211
13212{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13213echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13214if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013216else
13217 ac_check_lib_save_LIBS=$LIBS
13218LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013219cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013224/* end confdefs.h. */
13225
13226/* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13229#ifdef __cplusplus
13230extern "C"
13231#endif
13232char ud_init ();
13233int
13234main ()
13235{
13236return ud_init ();
13237 ;
13238 return 0;
13239}
13240_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013241rm -f conftest.$ac_objext conftest$ac_exeext
13242if { (ac_try="$ac_link"
13243case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13246esac
13247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_link") 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259esac
13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest$ac_exeext'
13266 { (case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269esac
13270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_try") 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013275 ac_cv_lib_udis86_ud_init=yes
13276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277 echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282
Bill Wendlingebcceee2009-04-18 11:20:33 +000013283rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013285LIBS=$ac_check_lib_save_LIBS
13286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13288echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13289if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013290 cat >>confdefs.h <<_ACEOF
13291#define HAVE_LIBUDIS86 1
13292_ACEOF
13293
13294 LIBS="-ludis86 $LIBS"
13295
13296else
13297
13298 echo "Error! You need to have libudis86 around."
13299 exit -1
13300
13301fi
13302
13303
13304else
13305 USE_UDIS86=0
13306
13307fi
13308
13309
13310cat >>confdefs.h <<_ACEOF
13311#define USE_UDIS86 $USE_UDIS86
13312_ACEOF
13313
13314
13315
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013316# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013317if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013318 withval=$with_oprofile;
13319 USE_OPROFILE=1
13320
13321 case "$withval" in
13322 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013323 no) llvm_cv_oppath=
13324 USE_OPROFILE=0
13325 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013326 *) llvm_cv_oppath="${withval}/lib/oprofile"
13327 CPPFLAGS="-I${withval}/include";;
13328 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013329 if test -n "$llvm_cv_oppath" ; then
13330 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013331 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13332echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13333if test "${ac_cv_search_bfd_init+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013335else
13336 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013337cat >conftest.$ac_ext <<_ACEOF
13338/* confdefs.h. */
13339_ACEOF
13340cat confdefs.h >>conftest.$ac_ext
13341cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013342/* end confdefs.h. */
13343
13344/* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13347#ifdef __cplusplus
13348extern "C"
13349#endif
13350char bfd_init ();
13351int
13352main ()
13353{
13354return bfd_init ();
13355 ;
13356 return 0;
13357}
13358_ACEOF
13359for ac_lib in '' bfd; do
13360 if test -z "$ac_lib"; then
13361 ac_res="none required"
13362 else
13363 ac_res=-l$ac_lib
13364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13365 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366 rm -f conftest.$ac_objext conftest$ac_exeext
13367if { (ac_try="$ac_link"
13368case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371esac
13372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394esac
13395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013400 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013401else
13402 echo "$as_me: failed program was:" >&5
13403sed 's/^/| /' conftest.$ac_ext >&5
13404
13405
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013407
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013408rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013409 conftest$ac_exeext
13410 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013411 break
13412fi
13413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414if test "${ac_cv_search_bfd_init+set}" = set; then
13415 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013416else
13417 ac_cv_search_bfd_init=no
13418fi
13419rm conftest.$ac_ext
13420LIBS=$ac_func_search_save_LIBS
13421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13423echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013424ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013425if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13427
13428fi
13429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013430 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13431echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13432if test "${ac_cv_search_op_open_agent+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013434else
13435 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h. */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013441/* end confdefs.h. */
13442
13443/* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13446#ifdef __cplusplus
13447extern "C"
13448#endif
13449char op_open_agent ();
13450int
13451main ()
13452{
13453return op_open_agent ();
13454 ;
13455 return 0;
13456}
13457_ACEOF
13458for ac_lib in '' opagent; do
13459 if test -z "$ac_lib"; then
13460 ac_res="none required"
13461 else
13462 ac_res=-l$ac_lib
13463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13464 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013465 rm -f conftest.$ac_objext conftest$ac_exeext
13466if { (ac_try="$ac_link"
13467case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483esac
13484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493esac
13494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013499 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500else
13501 echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
13504
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013506
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013507rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508 conftest$ac_exeext
13509 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013510 break
13511fi
13512done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513if test "${ac_cv_search_op_open_agent+set}" = set; then
13514 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013515else
13516 ac_cv_search_op_open_agent=no
13517fi
13518rm conftest.$ac_ext
13519LIBS=$ac_func_search_save_LIBS
13520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13522echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013523ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526
13527else
13528
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013529 echo "Error! You need to have libopagent around."
13530 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013531
13532fi
13533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534 if test "${ac_cv_header_opagent_h+set}" = set; then
13535 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13536echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13537if test "${ac_cv_header_opagent_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539fi
13540{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13541echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13542else
13543 # Is the header compilable?
13544{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13545echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552$ac_includes_default
13553#include <opagent.h>
13554_ACEOF
13555rm -f conftest.$ac_objext
13556if { (ac_try="$ac_compile"
13557case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560esac
13561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_compile") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583esac
13584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_header_compiler=yes
13590else
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013594 ac_header_compiler=no
13595fi
13596
13597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13599echo "${ECHO_T}$ac_header_compiler" >&6; }
13600
13601# Is the header present?
13602{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13603echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13604cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
13610#include <opagent.h>
13611_ACEOF
13612if { (ac_try="$ac_cpp conftest.$ac_ext"
13613case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616esac
13617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } >/dev/null; then
13625 if test -s conftest.err; then
13626 ac_cpp_err=$ac_c_preproc_warn_flag
13627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13628 else
13629 ac_cpp_err=
13630 fi
13631else
13632 ac_cpp_err=yes
13633fi
13634if test -z "$ac_cpp_err"; then
13635 ac_header_preproc=yes
13636else
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640 ac_header_preproc=no
13641fi
13642
13643rm -f conftest.err conftest.$ac_ext
13644{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645echo "${ECHO_T}$ac_header_preproc" >&6; }
13646
13647# So? What about this header?
13648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13649 yes:no: )
13650 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13651echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13653echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13654 ac_header_preproc=yes
13655 ;;
13656 no:yes:* )
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13658echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13660echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13662echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13664echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13666echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13668echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13669 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013670## ------------------------------------ ##
13671## Report this to http://llvm.org/bugs/ ##
13672## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013673_ASBOX
13674 ) | sed "s/^/$as_me: WARNING: /" >&2
13675 ;;
13676esac
13677{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13678echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13679if test "${ac_cv_header_opagent_h+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13681else
13682 ac_cv_header_opagent_h=$ac_header_preproc
13683fi
13684{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13685echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13686
13687fi
13688if test $ac_cv_header_opagent_h = yes; then
13689 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013690else
13691
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013692 echo "Error! You need to have opagent.h around."
13693 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013694
13695fi
13696
13697
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013698 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013699
13700else
13701
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013702 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013703
13704
13705fi
13706
13707
13708cat >>confdefs.h <<_ACEOF
13709#define USE_OPROFILE $USE_OPROFILE
13710_ACEOF
13711
13712
13713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013714
13715
13716
13717
13718
Reid Spencer59473af2004-12-25 07:31:29 +000013719ac_header_dirent=no
13720for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013721 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13722{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13723echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013732/* end confdefs.h. */
13733#include <sys/types.h>
13734#include <$ac_hdr>
13735
13736int
13737main ()
13738{
13739if ((DIR *) 0)
13740return 0;
13741 ;
13742 return 0;
13743}
13744_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013745rm -f conftest.$ac_objext
13746if { (ac_try="$ac_compile"
13747case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773esac
13774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013779 eval "$as_ac_Header=yes"
13780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781 echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786
Reid Spencera773bd52006-08-04 18:18:08 +000013787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789ac_res=`eval echo '${'$as_ac_Header'}'`
13790 { echo "$as_me:$LINENO: result: $ac_res" >&5
13791echo "${ECHO_T}$ac_res" >&6; }
13792if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013793 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013795_ACEOF
13796
13797ac_header_dirent=$ac_hdr; break
13798fi
13799
13800done
13801# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13802if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013803 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13804echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13805if test "${ac_cv_search_opendir+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013807else
13808 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013809cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013814/* end confdefs.h. */
13815
Reid Spencera773bd52006-08-04 18:18:08 +000013816/* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013819#ifdef __cplusplus
13820extern "C"
13821#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013822char opendir ();
13823int
13824main ()
13825{
Reid Spencera773bd52006-08-04 18:18:08 +000013826return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013827 ;
13828 return 0;
13829}
13830_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013831for ac_lib in '' dir; do
13832 if test -z "$ac_lib"; then
13833 ac_res="none required"
13834 else
13835 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013837 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013838 rm -f conftest.$ac_objext conftest$ac_exeext
13839if { (ac_try="$ac_link"
13840case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest$ac_exeext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013872 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873else
13874 echo "$as_me: failed program was:" >&5
13875sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
Reid Spencer59473af2004-12-25 07:31:29 +000013878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879
Bill Wendlingebcceee2009-04-18 11:20:33 +000013880rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881 conftest$ac_exeext
13882 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013883 break
Reid Spencer59473af2004-12-25 07:31:29 +000013884fi
Reid Spencera773bd52006-08-04 18:18:08 +000013885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886if test "${ac_cv_search_opendir+set}" = set; then
13887 :
Reid Spencera773bd52006-08-04 18:18:08 +000013888else
13889 ac_cv_search_opendir=no
13890fi
13891rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013892LIBS=$ac_func_search_save_LIBS
13893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013894{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13895echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013896ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013899
13900fi
13901
13902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13904echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13905if test "${ac_cv_search_opendir+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013907else
13908 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909cat >conftest.$ac_ext <<_ACEOF
13910/* confdefs.h. */
13911_ACEOF
13912cat confdefs.h >>conftest.$ac_ext
13913cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013914/* end confdefs.h. */
13915
Reid Spencera773bd52006-08-04 18:18:08 +000013916/* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013919#ifdef __cplusplus
13920extern "C"
13921#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013922char opendir ();
13923int
13924main ()
13925{
Reid Spencera773bd52006-08-04 18:18:08 +000013926return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013927 ;
13928 return 0;
13929}
13930_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013931for ac_lib in '' x; do
13932 if test -z "$ac_lib"; then
13933 ac_res="none required"
13934 else
13935 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013937 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938 rm -f conftest.$ac_objext conftest$ac_exeext
13939if { (ac_try="$ac_link"
13940case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13943esac
13944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956esac
13957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest$ac_exeext'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966esac
13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013972 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973else
13974 echo "$as_me: failed program was:" >&5
13975sed 's/^/| /' conftest.$ac_ext >&5
13976
13977
Reid Spencer59473af2004-12-25 07:31:29 +000013978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013979
Bill Wendlingebcceee2009-04-18 11:20:33 +000013980rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981 conftest$ac_exeext
13982 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013983 break
Reid Spencer59473af2004-12-25 07:31:29 +000013984fi
Reid Spencera773bd52006-08-04 18:18:08 +000013985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986if test "${ac_cv_search_opendir+set}" = set; then
13987 :
Reid Spencera773bd52006-08-04 18:18:08 +000013988else
13989 ac_cv_search_opendir=no
13990fi
13991rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013992LIBS=$ac_func_search_save_LIBS
13993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13995echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013996ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013999
14000fi
14001
14002fi
14003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014004{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14005echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14006if test "${ac_cv_header_mmap_anon+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014008else
14009 ac_ext=c
14010ac_cpp='$CPP $CPPFLAGS'
14011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14013ac_compiler_gnu=$ac_cv_c_compiler_gnu
14014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015 cat >conftest.$ac_ext <<_ACEOF
14016/* confdefs.h. */
14017_ACEOF
14018cat confdefs.h >>conftest.$ac_ext
14019cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014020/* end confdefs.h. */
14021#include <sys/mman.h>
14022#include <unistd.h>
14023#include <fcntl.h>
14024int
14025main ()
14026{
14027mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14028 ;
14029 return 0;
14030}
14031_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032rm -f conftest.$ac_objext
14033if { (ac_try="$ac_compile"
14034case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_compile") 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060esac
14061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014066 ac_cv_header_mmap_anon=yes
14067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
14071 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073
Reid Spencera773bd52006-08-04 18:18:08 +000014074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014075 ac_ext=c
14076ac_cpp='$CPP $CPPFLAGS'
14077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14079ac_compiler_gnu=$ac_cv_c_compiler_gnu
14080
14081
14082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14084echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014085if test "$ac_cv_header_mmap_anon" = yes; then
14086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014087cat >>confdefs.h <<\_ACEOF
14088#define HAVE_MMAP_ANONYMOUS 1
14089_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014090
14091fi
14092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14094echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14095if test "${ac_cv_header_stat_broken+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014098 cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014103/* end confdefs.h. */
14104#include <sys/types.h>
14105#include <sys/stat.h>
14106
Reid Spencera773bd52006-08-04 18:18:08 +000014107#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014108# if S_ISBLK (S_IFDIR)
14109You lose.
14110# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014111#endif
14112
Reid Spencera773bd52006-08-04 18:18:08 +000014113#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114# if S_ISBLK (S_IFCHR)
14115You lose.
14116# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014117#endif
14118
Reid Spencera773bd52006-08-04 18:18:08 +000014119#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120# if S_ISLNK (S_IFREG)
14121You lose.
14122# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014123#endif
14124
Reid Spencera773bd52006-08-04 18:18:08 +000014125#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126# if S_ISSOCK (S_IFREG)
14127You lose.
14128# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014129#endif
14130
14131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14133 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014134 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135else
14136 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138rm -f conftest*
14139
Reid Spencer59473af2004-12-25 07:31:29 +000014140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14142echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014143if test $ac_cv_header_stat_broken = yes; then
14144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145cat >>confdefs.h <<\_ACEOF
14146#define STAT_MACROS_BROKEN 1
14147_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014148
14149fi
14150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14152echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14153if test "${ac_cv_header_sys_wait_h+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156 cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014162#include <sys/types.h>
14163#include <sys/wait.h>
14164#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014165# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014166#endif
14167#ifndef WIFEXITED
14168# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14169#endif
14170
John Criswell7a73b802003-06-30 21:59:07 +000014171int
14172main ()
14173{
14174 int s;
14175 wait (&s);
14176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14177 ;
14178 return 0;
14179}
14180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181rm -f conftest.$ac_objext
14182if { (ac_try="$ac_compile"
14183case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14186esac
14187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199esac
14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest.$ac_objext'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014215 ac_cv_header_sys_wait_h=yes
14216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217 echo "$as_me: failed program was:" >&5
14218sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222
Reid Spencera773bd52006-08-04 18:18:08 +000014223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14226echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014227if test $ac_cv_header_sys_wait_h = yes; then
14228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229cat >>confdefs.h <<\_ACEOF
14230#define HAVE_SYS_WAIT_H 1
14231_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014232
14233fi
14234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14236echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14237if test "${ac_cv_header_time+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014245/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014246#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014247#include <sys/time.h>
14248#include <time.h>
14249
14250int
14251main ()
14252{
14253if ((struct tm *) 0)
14254return 0;
14255 ;
14256 return 0;
14257}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259rm -f conftest.$ac_objext
14260if { (ac_try="$ac_compile"
14261case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014293 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300
Reid Spencera773bd52006-08-04 18:18:08 +000014301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14304echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014305if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307cat >>confdefs.h <<\_ACEOF
14308#define TIME_WITH_SYS_TIME 1
14309_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014310
14311fi
14312
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014314
14315
14316
14317
14318
14319
Reid Spencer59473af2004-12-25 07:31:29 +000014320for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321do
14322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328fi
14329ac_res=`eval echo '${'$as_ac_Header'}'`
14330 { echo "$as_me:$LINENO: result: $ac_res" >&5
14331echo "${ECHO_T}$ac_res" >&6; }
14332else
14333 # Is the header compilable?
14334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14336cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
14342$ac_includes_default
14343#include <$ac_header>
14344_ACEOF
14345rm -f conftest.$ac_objext
14346if { (ac_try="$ac_compile"
14347case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14350esac
14351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_compile") 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } &&
14359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14360 { (case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14363esac
14364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_try") 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest.$ac_objext'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_header_compiler=yes
14380else
14381 echo "$as_me: failed program was:" >&5
14382sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_header_compiler=no
14385fi
14386
14387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14389echo "${ECHO_T}$ac_header_compiler" >&6; }
14390
14391# Is the header present?
14392{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14394cat >conftest.$ac_ext <<_ACEOF
14395/* confdefs.h. */
14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
14399/* end confdefs.h. */
14400#include <$ac_header>
14401_ACEOF
14402if { (ac_try="$ac_cpp conftest.$ac_ext"
14403case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406esac
14407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } >/dev/null; then
14415 if test -s conftest.err; then
14416 ac_cpp_err=$ac_c_preproc_warn_flag
14417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14418 else
14419 ac_cpp_err=
14420 fi
14421else
14422 ac_cpp_err=yes
14423fi
14424if test -z "$ac_cpp_err"; then
14425 ac_header_preproc=yes
14426else
14427 echo "$as_me: failed program was:" >&5
14428sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 ac_header_preproc=no
14431fi
14432
14433rm -f conftest.err conftest.$ac_ext
14434{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14435echo "${ECHO_T}$ac_header_preproc" >&6; }
14436
14437# So? What about this header?
14438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14439 yes:no: )
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14444 ac_header_preproc=yes
14445 ;;
14446 no:yes:* )
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14459 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014460## ------------------------------------ ##
14461## Report this to http://llvm.org/bugs/ ##
14462## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463_ASBOX
14464 ) | sed "s/^/$as_me: WARNING: /" >&2
14465 ;;
14466esac
14467{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471else
14472 eval "$as_ac_Header=\$ac_header_preproc"
14473fi
14474ac_res=`eval echo '${'$as_ac_Header'}'`
14475 { echo "$as_me:$LINENO: result: $ac_res" >&5
14476echo "${ECHO_T}$ac_res" >&6; }
14477
14478fi
14479if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014480 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014482_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014483
14484fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014485
Reid Spencer59473af2004-12-25 07:31:29 +000014486done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488
14489
14490
14491
14492
14493
Douglas Gregor071d73d2009-05-18 17:21:34 +000014494for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014495do
14496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502fi
14503ac_res=`eval echo '${'$as_ac_Header'}'`
14504 { echo "$as_me:$LINENO: result: $ac_res" >&5
14505echo "${ECHO_T}$ac_res" >&6; }
14506else
14507 # Is the header compilable?
14508{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14510cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516$ac_includes_default
14517#include <$ac_header>
14518_ACEOF
14519rm -f conftest.$ac_objext
14520if { (ac_try="$ac_compile"
14521case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_compile") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_header_compiler=yes
14554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 ac_header_compiler=no
14559fi
14560
14561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14563echo "${ECHO_T}$ac_header_compiler" >&6; }
14564
14565# Is the header present?
14566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14568cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574#include <$ac_header>
14575_ACEOF
14576if { (ac_try="$ac_cpp conftest.$ac_ext"
14577case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580esac
14581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } >/dev/null; then
14589 if test -s conftest.err; then
14590 ac_cpp_err=$ac_c_preproc_warn_flag
14591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14592 else
14593 ac_cpp_err=
14594 fi
14595else
14596 ac_cpp_err=yes
14597fi
14598if test -z "$ac_cpp_err"; then
14599 ac_header_preproc=yes
14600else
14601 echo "$as_me: failed program was:" >&5
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 ac_header_preproc=no
14605fi
14606
14607rm -f conftest.err conftest.$ac_ext
14608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14609echo "${ECHO_T}$ac_header_preproc" >&6; }
14610
14611# So? What about this header?
14612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14613 yes:no: )
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14618 ac_header_preproc=yes
14619 ;;
14620 no:yes:* )
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14633 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014634## ------------------------------------ ##
14635## Report this to http://llvm.org/bugs/ ##
14636## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014637_ASBOX
14638 ) | sed "s/^/$as_me: WARNING: /" >&2
14639 ;;
14640esac
14641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
14646 eval "$as_ac_Header=\$ac_header_preproc"
14647fi
14648ac_res=`eval echo '${'$as_ac_Header'}'`
14649 { echo "$as_me:$LINENO: result: $ac_res" >&5
14650echo "${ECHO_T}$ac_res" >&6; }
14651
14652fi
14653if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014654 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014656_ACEOF
14657
14658fi
14659
14660done
14661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662
14663
Douglas Gregor071d73d2009-05-18 17:21:34 +000014664for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665do
14666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672fi
14673ac_res=`eval echo '${'$as_ac_Header'}'`
14674 { echo "$as_me:$LINENO: result: $ac_res" >&5
14675echo "${ECHO_T}$ac_res" >&6; }
14676else
14677 # Is the header compilable?
14678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14680cat >conftest.$ac_ext <<_ACEOF
14681/* confdefs.h. */
14682_ACEOF
14683cat confdefs.h >>conftest.$ac_ext
14684cat >>conftest.$ac_ext <<_ACEOF
14685/* end confdefs.h. */
14686$ac_includes_default
14687#include <$ac_header>
14688_ACEOF
14689rm -f conftest.$ac_objext
14690if { (ac_try="$ac_compile"
14691case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694esac
14695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_compile") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14707esac
14708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_try") 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717esac
14718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14724else
14725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_compiler=no
14729fi
14730
14731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733echo "${ECHO_T}$ac_header_compiler" >&6; }
14734
14735# Is the header present?
14736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14738cat >conftest.$ac_ext <<_ACEOF
14739/* confdefs.h. */
14740_ACEOF
14741cat confdefs.h >>conftest.$ac_ext
14742cat >>conftest.$ac_ext <<_ACEOF
14743/* end confdefs.h. */
14744#include <$ac_header>
14745_ACEOF
14746if { (ac_try="$ac_cpp conftest.$ac_ext"
14747case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14753 ac_status=$?
14754 grep -v '^ *+' conftest.er1 >conftest.err
14755 rm -f conftest.er1
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } >/dev/null; then
14759 if test -s conftest.err; then
14760 ac_cpp_err=$ac_c_preproc_warn_flag
14761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14762 else
14763 ac_cpp_err=
14764 fi
14765else
14766 ac_cpp_err=yes
14767fi
14768if test -z "$ac_cpp_err"; then
14769 ac_header_preproc=yes
14770else
14771 echo "$as_me: failed program was:" >&5
14772sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ac_header_preproc=no
14775fi
14776
14777rm -f conftest.err conftest.$ac_ext
14778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779echo "${ECHO_T}$ac_header_preproc" >&6; }
14780
14781# So? What about this header?
14782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783 yes:no: )
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
14789 ;;
14790 no:yes:* )
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14803 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014804## ------------------------------------ ##
14805## Report this to http://llvm.org/bugs/ ##
14806## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014807_ASBOX
14808 ) | sed "s/^/$as_me: WARNING: /" >&2
14809 ;;
14810esac
14811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
14816 eval "$as_ac_Header=\$ac_header_preproc"
14817fi
14818ac_res=`eval echo '${'$as_ac_Header'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820echo "${ECHO_T}$ac_res" >&6; }
14821
14822fi
14823if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014824 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014826_ACEOF
14827
14828fi
14829
14830done
Reid Spencer59473af2004-12-25 07:31:29 +000014831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014832
14833
14834
14835
Daniel Dunbar3e462932011-02-03 02:40:02 +000014836
14837for 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 +000014838do
14839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845fi
14846ac_res=`eval echo '${'$as_ac_Header'}'`
14847 { echo "$as_me:$LINENO: result: $ac_res" >&5
14848echo "${ECHO_T}$ac_res" >&6; }
14849else
14850 # Is the header compilable?
14851{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14853cat >conftest.$ac_ext <<_ACEOF
14854/* confdefs.h. */
14855_ACEOF
14856cat confdefs.h >>conftest.$ac_ext
14857cat >>conftest.$ac_ext <<_ACEOF
14858/* end confdefs.h. */
14859$ac_includes_default
14860#include <$ac_header>
14861_ACEOF
14862rm -f conftest.$ac_objext
14863if { (ac_try="$ac_compile"
14864case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867esac
14868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_compile") 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest.$ac_objext'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_header_compiler=yes
14897else
14898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 ac_header_compiler=no
14902fi
14903
14904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14906echo "${ECHO_T}$ac_header_compiler" >&6; }
14907
14908# Is the header present?
14909{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14911cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h. */
14917#include <$ac_header>
14918_ACEOF
14919if { (ac_try="$ac_cpp conftest.$ac_ext"
14920case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923esac
14924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14926 ac_status=$?
14927 grep -v '^ *+' conftest.er1 >conftest.err
14928 rm -f conftest.er1
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } >/dev/null; then
14932 if test -s conftest.err; then
14933 ac_cpp_err=$ac_c_preproc_warn_flag
14934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14935 else
14936 ac_cpp_err=
14937 fi
14938else
14939 ac_cpp_err=yes
14940fi
14941if test -z "$ac_cpp_err"; then
14942 ac_header_preproc=yes
14943else
14944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
14947 ac_header_preproc=no
14948fi
14949
14950rm -f conftest.err conftest.$ac_ext
14951{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14952echo "${ECHO_T}$ac_header_preproc" >&6; }
14953
14954# So? What about this header?
14955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14956 yes:no: )
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14961 ac_header_preproc=yes
14962 ;;
14963 no:yes:* )
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14971echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14976 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014977## ------------------------------------ ##
14978## Report this to http://llvm.org/bugs/ ##
14979## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014980_ASBOX
14981 ) | sed "s/^/$as_me: WARNING: /" >&2
14982 ;;
14983esac
14984{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988else
14989 eval "$as_ac_Header=\$ac_header_preproc"
14990fi
14991ac_res=`eval echo '${'$as_ac_Header'}'`
14992 { echo "$as_me:$LINENO: result: $ac_res" >&5
14993echo "${ECHO_T}$ac_res" >&6; }
14994
14995fi
14996if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000014999_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015000
15001fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015002
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015003done
15004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015005
15006
15007
15008
Douglas Gregor01746742009-05-11 18:05:52 +000015009for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015010do
15011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017fi
15018ac_res=`eval echo '${'$as_ac_Header'}'`
15019 { echo "$as_me:$LINENO: result: $ac_res" >&5
15020echo "${ECHO_T}$ac_res" >&6; }
15021else
15022 # Is the header compilable?
15023{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15025cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
15031$ac_includes_default
15032#include <$ac_header>
15033_ACEOF
15034rm -f conftest.$ac_objext
15035if { (ac_try="$ac_compile"
15036case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15039esac
15040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_compile") 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062esac
15063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_header_compiler=yes
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 ac_header_compiler=no
15074fi
15075
15076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15078echo "${ECHO_T}$ac_header_compiler" >&6; }
15079
15080# Is the header present?
15081{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15083cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089#include <$ac_header>
15090_ACEOF
15091if { (ac_try="$ac_cpp conftest.$ac_ext"
15092case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } >/dev/null; then
15104 if test -s conftest.err; then
15105 ac_cpp_err=$ac_c_preproc_warn_flag
15106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15107 else
15108 ac_cpp_err=
15109 fi
15110else
15111 ac_cpp_err=yes
15112fi
15113if test -z "$ac_cpp_err"; then
15114 ac_header_preproc=yes
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119 ac_header_preproc=no
15120fi
15121
15122rm -f conftest.err conftest.$ac_ext
15123{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15124echo "${ECHO_T}$ac_header_preproc" >&6; }
15125
15126# So? What about this header?
15127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15128 yes:no: )
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15133 ac_header_preproc=yes
15134 ;;
15135 no:yes:* )
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15148 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015149## ------------------------------------ ##
15150## Report this to http://llvm.org/bugs/ ##
15151## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015152_ASBOX
15153 ) | sed "s/^/$as_me: WARNING: /" >&2
15154 ;;
15155esac
15156{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15160else
15161 eval "$as_ac_Header=\$ac_header_preproc"
15162fi
15163ac_res=`eval echo '${'$as_ac_Header'}'`
15164 { echo "$as_me:$LINENO: result: $ac_res" >&5
15165echo "${ECHO_T}$ac_res" >&6; }
15166
15167fi
15168if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015169 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015171_ACEOF
15172
15173fi
15174
15175done
15176
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015177
15178for ac_header in valgrind/valgrind.h
15179do
15180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186fi
15187ac_res=`eval echo '${'$as_ac_Header'}'`
15188 { echo "$as_me:$LINENO: result: $ac_res" >&5
15189echo "${ECHO_T}$ac_res" >&6; }
15190else
15191 # Is the header compilable?
15192{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15194cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
15199/* end confdefs.h. */
15200$ac_includes_default
15201#include <$ac_header>
15202_ACEOF
15203rm -f conftest.$ac_objext
15204if { (ac_try="$ac_compile"
15205case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208esac
15209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_compile") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15231esac
15232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler=yes
15238else
15239 echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 ac_header_compiler=no
15243fi
15244
15245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15247echo "${ECHO_T}$ac_header_compiler" >&6; }
15248
15249# Is the header present?
15250{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15252cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258#include <$ac_header>
15259_ACEOF
15260if { (ac_try="$ac_cpp conftest.$ac_ext"
15261case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } >/dev/null; then
15273 if test -s conftest.err; then
15274 ac_cpp_err=$ac_c_preproc_warn_flag
15275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15276 else
15277 ac_cpp_err=
15278 fi
15279else
15280 ac_cpp_err=yes
15281fi
15282if test -z "$ac_cpp_err"; then
15283 ac_header_preproc=yes
15284else
15285 echo "$as_me: failed program was:" >&5
15286sed 's/^/| /' conftest.$ac_ext >&5
15287
15288 ac_header_preproc=no
15289fi
15290
15291rm -f conftest.err conftest.$ac_ext
15292{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15293echo "${ECHO_T}$ac_header_preproc" >&6; }
15294
15295# So? What about this header?
15296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15297 yes:no: )
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15302 ac_header_preproc=yes
15303 ;;
15304 no:yes:* )
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15312echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15317 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015318## ------------------------------------ ##
15319## Report this to http://llvm.org/bugs/ ##
15320## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015321_ASBOX
15322 ) | sed "s/^/$as_me: WARNING: /" >&2
15323 ;;
15324esac
15325{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329else
15330 eval "$as_ac_Header=\$ac_header_preproc"
15331fi
15332ac_res=`eval echo '${'$as_ac_Header'}'`
15333 { echo "$as_me:$LINENO: result: $ac_res" >&5
15334echo "${ECHO_T}$ac_res" >&6; }
15335
15336fi
15337if test `eval echo '${'$as_ac_Header'}'` = yes; then
15338 cat >>confdefs.h <<_ACEOF
15339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15340_ACEOF
15341
15342fi
15343
15344done
15345
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015346
15347for ac_header in fenv.h
15348do
15349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15355fi
15356ac_res=`eval echo '${'$as_ac_Header'}'`
15357 { echo "$as_me:$LINENO: result: $ac_res" >&5
15358echo "${ECHO_T}$ac_res" >&6; }
15359else
15360 # Is the header compilable?
15361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15363cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
15368/* end confdefs.h. */
15369$ac_includes_default
15370#include <$ac_header>
15371_ACEOF
15372rm -f conftest.$ac_objext
15373if { (ac_try="$ac_compile"
15374case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_compile") 2>conftest.er1
15380 ac_status=$?
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387 { (case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390esac
15391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_try") 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
15397 { (case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400esac
15401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_try") 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_header_compiler=yes
15407else
15408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
15410
15411 ac_header_compiler=no
15412fi
15413
15414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416echo "${ECHO_T}$ac_header_compiler" >&6; }
15417
15418# Is the header present?
15419{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15421cat >conftest.$ac_ext <<_ACEOF
15422/* confdefs.h. */
15423_ACEOF
15424cat confdefs.h >>conftest.$ac_ext
15425cat >>conftest.$ac_ext <<_ACEOF
15426/* end confdefs.h. */
15427#include <$ac_header>
15428_ACEOF
15429if { (ac_try="$ac_cpp conftest.$ac_ext"
15430case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15436 ac_status=$?
15437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } >/dev/null; then
15442 if test -s conftest.err; then
15443 ac_cpp_err=$ac_c_preproc_warn_flag
15444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15445 else
15446 ac_cpp_err=
15447 fi
15448else
15449 ac_cpp_err=yes
15450fi
15451if test -z "$ac_cpp_err"; then
15452 ac_header_preproc=yes
15453else
15454 echo "$as_me: failed program was:" >&5
15455sed 's/^/| /' conftest.$ac_ext >&5
15456
15457 ac_header_preproc=no
15458fi
15459
15460rm -f conftest.err conftest.$ac_ext
15461{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462echo "${ECHO_T}$ac_header_preproc" >&6; }
15463
15464# So? What about this header?
15465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15466 yes:no: )
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15471 ac_header_preproc=yes
15472 ;;
15473 no:yes:* )
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15486 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015487## ------------------------------------ ##
15488## Report this to http://llvm.org/bugs/ ##
15489## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015490_ASBOX
15491 ) | sed "s/^/$as_me: WARNING: /" >&2
15492 ;;
15493esac
15494{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498else
15499 eval "$as_ac_Header=\$ac_header_preproc"
15500fi
15501ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503echo "${ECHO_T}$ac_res" >&6; }
15504
15505fi
15506if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509_ACEOF
15510
15511fi
15512
15513done
15514
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015515if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015516
15517for ac_header in pthread.h
15518do
15519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15525fi
15526ac_res=`eval echo '${'$as_ac_Header'}'`
15527 { echo "$as_me:$LINENO: result: $ac_res" >&5
15528echo "${ECHO_T}$ac_res" >&6; }
15529else
15530 # Is the header compilable?
15531{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15533cat >conftest.$ac_ext <<_ACEOF
15534/* confdefs.h. */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h. */
15539$ac_includes_default
15540#include <$ac_header>
15541_ACEOF
15542rm -f conftest.$ac_objext
15543if { (ac_try="$ac_compile"
15544case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_try") 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570esac
15571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_try") 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_header_compiler=yes
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_header_compiler=no
15582fi
15583
15584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586echo "${ECHO_T}$ac_header_compiler" >&6; }
15587
15588# Is the header present?
15589{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15591cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597#include <$ac_header>
15598_ACEOF
15599if { (ac_try="$ac_cpp conftest.$ac_ext"
15600case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15603esac
15604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15606 ac_status=$?
15607 grep -v '^ *+' conftest.er1 >conftest.err
15608 rm -f conftest.er1
15609 cat conftest.err >&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } >/dev/null; then
15612 if test -s conftest.err; then
15613 ac_cpp_err=$ac_c_preproc_warn_flag
15614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15615 else
15616 ac_cpp_err=
15617 fi
15618else
15619 ac_cpp_err=yes
15620fi
15621if test -z "$ac_cpp_err"; then
15622 ac_header_preproc=yes
15623else
15624 echo "$as_me: failed program was:" >&5
15625sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 ac_header_preproc=no
15628fi
15629
15630rm -f conftest.err conftest.$ac_ext
15631{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15632echo "${ECHO_T}$ac_header_preproc" >&6; }
15633
15634# So? What about this header?
15635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15636 yes:no: )
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15641 ac_header_preproc=yes
15642 ;;
15643 no:yes:* )
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15651echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15656 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015657## ------------------------------------ ##
15658## Report this to http://llvm.org/bugs/ ##
15659## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015660_ASBOX
15661 ) | sed "s/^/$as_me: WARNING: /" >&2
15662 ;;
15663esac
15664{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668else
15669 eval "$as_ac_Header=\$ac_header_preproc"
15670fi
15671ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result: $ac_res" >&5
15673echo "${ECHO_T}$ac_res" >&6; }
15674
15675fi
15676if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015677 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015679_ACEOF
15680 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015681
15682else
15683 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015684
15685fi
15686
Reid Spencerbe3e4192007-08-17 05:45:26 +000015687done
Reid Spencer1000b732006-12-01 00:37:14 +000015688
15689else
15690 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015691
15692fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015693
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015694if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015695
15696
15697for ac_header in ffi.h ffi/ffi.h
15698do
15699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705fi
15706ac_res=`eval echo '${'$as_ac_Header'}'`
15707 { echo "$as_me:$LINENO: result: $ac_res" >&5
15708echo "${ECHO_T}$ac_res" >&6; }
15709else
15710 # Is the header compilable?
15711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15713cat >conftest.$ac_ext <<_ACEOF
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719$ac_includes_default
15720#include <$ac_header>
15721_ACEOF
15722rm -f conftest.$ac_objext
15723if { (ac_try="$ac_compile"
15724case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15727esac
15728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_compile") 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15737 { (case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_try") 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
15747 { (case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_try") 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler=yes
15757else
15758 echo "$as_me: failed program was:" >&5
15759sed 's/^/| /' conftest.$ac_ext >&5
15760
15761 ac_header_compiler=no
15762fi
15763
15764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15766echo "${ECHO_T}$ac_header_compiler" >&6; }
15767
15768# Is the header present?
15769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15771cat >conftest.$ac_ext <<_ACEOF
15772/* confdefs.h. */
15773_ACEOF
15774cat confdefs.h >>conftest.$ac_ext
15775cat >>conftest.$ac_ext <<_ACEOF
15776/* end confdefs.h. */
15777#include <$ac_header>
15778_ACEOF
15779if { (ac_try="$ac_cpp conftest.$ac_ext"
15780case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } >/dev/null; then
15792 if test -s conftest.err; then
15793 ac_cpp_err=$ac_c_preproc_warn_flag
15794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15795 else
15796 ac_cpp_err=
15797 fi
15798else
15799 ac_cpp_err=yes
15800fi
15801if test -z "$ac_cpp_err"; then
15802 ac_header_preproc=yes
15803else
15804 echo "$as_me: failed program was:" >&5
15805sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_header_preproc=no
15808fi
15809
15810rm -f conftest.err conftest.$ac_ext
15811{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15812echo "${ECHO_T}$ac_header_preproc" >&6; }
15813
15814# So? What about this header?
15815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15816 yes:no: )
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15821 ac_header_preproc=yes
15822 ;;
15823 no:yes:* )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15836 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015837## ------------------------------------ ##
15838## Report this to http://llvm.org/bugs/ ##
15839## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015840_ASBOX
15841 ) | sed "s/^/$as_me: WARNING: /" >&2
15842 ;;
15843esac
15844{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848else
15849 eval "$as_ac_Header=\$ac_header_preproc"
15850fi
15851ac_res=`eval echo '${'$as_ac_Header'}'`
15852 { echo "$as_me:$LINENO: result: $ac_res" >&5
15853echo "${ECHO_T}$ac_res" >&6; }
15854
15855fi
15856if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015857 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015859_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015860
15861fi
15862
15863done
15864
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015865fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015866
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015867
Eric Christopher654dee42010-06-22 21:01:04 +000015868for ac_header in CrashReporterClient.h
15869do
15870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876fi
15877ac_res=`eval echo '${'$as_ac_Header'}'`
15878 { echo "$as_me:$LINENO: result: $ac_res" >&5
15879echo "${ECHO_T}$ac_res" >&6; }
15880else
15881 # Is the header compilable?
15882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15884cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890$ac_includes_default
15891#include <$ac_header>
15892_ACEOF
15893rm -f conftest.$ac_objext
15894if { (ac_try="$ac_compile"
15895case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898esac
15899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_compile") 2>conftest.er1
15901 ac_status=$?
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15908 { (case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911esac
15912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_try") 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_header_compiler=yes
15928else
15929 echo "$as_me: failed program was:" >&5
15930sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 ac_header_compiler=no
15933fi
15934
15935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15937echo "${ECHO_T}$ac_header_compiler" >&6; }
15938
15939# Is the header present?
15940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15942cat >conftest.$ac_ext <<_ACEOF
15943/* confdefs.h. */
15944_ACEOF
15945cat confdefs.h >>conftest.$ac_ext
15946cat >>conftest.$ac_ext <<_ACEOF
15947/* end confdefs.h. */
15948#include <$ac_header>
15949_ACEOF
15950if { (ac_try="$ac_cpp conftest.$ac_ext"
15951case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954esac
15955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } >/dev/null; then
15963 if test -s conftest.err; then
15964 ac_cpp_err=$ac_c_preproc_warn_flag
15965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15966 else
15967 ac_cpp_err=
15968 fi
15969else
15970 ac_cpp_err=yes
15971fi
15972if test -z "$ac_cpp_err"; then
15973 ac_header_preproc=yes
15974else
15975 echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ac_header_preproc=no
15979fi
15980
15981rm -f conftest.err conftest.$ac_ext
15982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15983echo "${ECHO_T}$ac_header_preproc" >&6; }
15984
15985# So? What about this header?
15986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15987 yes:no: )
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15992 ac_header_preproc=yes
15993 ;;
15994 no:yes:* )
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16007 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016008## ------------------------------------ ##
16009## Report this to http://llvm.org/bugs/ ##
16010## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016011_ASBOX
16012 ) | sed "s/^/$as_me: WARNING: /" >&2
16013 ;;
16014esac
16015{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16019else
16020 eval "$as_ac_Header=\$ac_header_preproc"
16021fi
16022ac_res=`eval echo '${'$as_ac_Header'}'`
16023 { echo "$as_me:$LINENO: result: $ac_res" >&5
16024echo "${ECHO_T}$ac_res" >&6; }
16025
16026fi
16027if test `eval echo '${'$as_ac_Header'}'` = yes; then
16028 cat >>confdefs.h <<_ACEOF
16029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16030_ACEOF
16031
16032fi
16033
16034done
16035
16036
Eric Christopher51e57132010-12-07 02:05:42 +000016037{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16038echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016039cat >conftest.$ac_ext <<_ACEOF
16040/* confdefs.h. */
16041_ACEOF
16042cat confdefs.h >>conftest.$ac_ext
16043cat >>conftest.$ac_ext <<_ACEOF
16044/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016045extern const char *__crashreporter_info__;
16046 int main() {
16047 __crashreporter_info__ = "test";
16048 return 0;
16049 }
Eric Christopher481d4022010-12-03 07:45:22 +000016050
Eric Christopher481d4022010-12-03 07:45:22 +000016051_ACEOF
16052rm -f conftest.$ac_objext conftest$ac_exeext
16053if { (ac_try="$ac_link"
16054case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16057esac
16058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_link") 2>conftest.er1
16060 ac_status=$?
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16070esac
16071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest$ac_exeext'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080esac
16081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016086 { echo "$as_me:$LINENO: result: yes" >&5
16087echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016088
16089cat >>confdefs.h <<\_ACEOF
16090#define HAVE_CRASHREPORTER_INFO 1
16091_ACEOF
16092
Eric Christopher51e57132010-12-07 02:05:42 +000016093else
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 { echo "$as_me:$LINENO: result: no" >&5
16098echo "${ECHO_T}no" >&6; }
16099
16100cat >>confdefs.h <<\_ACEOF
16101#define HAVE_CRASHREPORTER_INFO 0
16102_ACEOF
16103
Eric Christopher481d4022010-12-03 07:45:22 +000016104fi
Eric Christopher654dee42010-06-22 21:01:04 +000016105
Eric Christopher51e57132010-12-07 02:05:42 +000016106rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108
16109
Reid Spencer8085cff2005-01-16 02:58:39 +000016110
Torok Edwin871384f2010-01-26 08:50:50 +000016111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016112 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16113echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16114if test "${ac_cv_huge_val_sanity+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016116else
16117
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016118 ac_ext=cpp
16119ac_cpp='$CXXCPP $CPPFLAGS'
16120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016123
Eric Christopherc7718502010-03-02 05:06:54 +000016124 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016125 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016126 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016127 ac_cv_huge_val_sanity=yes
16128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016129 cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h. */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016134/* end confdefs.h. */
16135#include <math.h>
16136int
16137main ()
16138{
16139double x = HUGE_VAL; return x != x;
16140 ;
16141 return 0;
16142}
16143_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016144rm -f conftest$ac_exeext
16145if { (ac_try="$ac_link"
16146case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149esac
16150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_link") 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158esac
16159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016164 ac_cv_huge_val_sanity=yes
16165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016166 echo "$as_me: program exited with status $ac_status" >&5
16167echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170( exit $ac_status )
16171ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016173rm -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 +000016174fi
16175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016176
Eric Christopherc7718502010-03-02 05:06:54 +000016177 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016178 ac_ext=c
16179ac_cpp='$CPP $CPPFLAGS'
16180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16182ac_compiler_gnu=$ac_cv_c_compiler_gnu
16183
16184
16185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016186{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16187echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016188 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16189
16190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016191{ echo "$as_me:$LINENO: checking for pid_t" >&5
16192echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16193if test "${ac_cv_type_pid_t+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195else
16196 cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h. */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h. */
16202$ac_includes_default
16203typedef pid_t ac__type_new_;
16204int
16205main ()
16206{
16207if ((ac__type_new_ *) 0)
16208 return 0;
16209if (sizeof (ac__type_new_))
16210 return 0;
16211 ;
16212 return 0;
16213}
16214_ACEOF
16215rm -f conftest.$ac_objext
16216if { (ac_try="$ac_compile"
16217case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16220esac
16221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_compile") 2>conftest.er1
16223 ac_status=$?
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16243esac
16244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_cv_type_pid_t=yes
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016254 ac_cv_type_pid_t=no
16255fi
16256
16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258fi
16259{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16260echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16261if test $ac_cv_type_pid_t = yes; then
16262 :
John Criswell7a73b802003-06-30 21:59:07 +000016263else
16264
16265cat >>confdefs.h <<_ACEOF
16266#define pid_t int
16267_ACEOF
16268
16269fi
16270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016271{ echo "$as_me:$LINENO: checking for size_t" >&5
16272echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16273if test "${ac_cv_type_size_t+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282$ac_includes_default
16283typedef size_t ac__type_new_;
16284int
16285main ()
16286{
16287if ((ac__type_new_ *) 0)
16288 return 0;
16289if (sizeof (ac__type_new_))
16290 return 0;
16291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext
16296if { (ac_try="$ac_compile"
16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_type_size_t=yes
16330else
16331 echo "$as_me: failed program was:" >&5
16332sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016334 ac_cv_type_size_t=no
16335fi
16336
16337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338fi
16339{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16340echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16341if test $ac_cv_type_size_t = yes; then
16342 :
John Criswell7a73b802003-06-30 21:59:07 +000016343else
16344
16345cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016346#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016347_ACEOF
16348
16349fi
16350
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016351
16352cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016353#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016354_ACEOF
16355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016356{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16357echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16358if test "${ac_cv_struct_tm+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016361 cat >conftest.$ac_ext <<_ACEOF
16362/* confdefs.h. */
16363_ACEOF
16364cat confdefs.h >>conftest.$ac_ext
16365cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016366/* end confdefs.h. */
16367#include <sys/types.h>
16368#include <time.h>
16369
16370int
16371main ()
16372{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016373struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016374 ;
16375 return 0;
16376}
16377_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016378rm -f conftest.$ac_objext
16379if { (ac_try="$ac_compile"
16380case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383esac
16384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016412 ac_cv_struct_tm=time.h
16413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016419
Reid Spencera773bd52006-08-04 18:18:08 +000016420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016422{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16423echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016424if test $ac_cv_struct_tm = sys/time.h; then
16425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016426cat >>confdefs.h <<\_ACEOF
16427#define TM_IN_SYS_TIME 1
16428_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016429
16430fi
16431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016432{ echo "$as_me:$LINENO: checking for int64_t" >&5
16433echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16434if test "${ac_cv_type_int64_t+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437 cat >conftest.$ac_ext <<_ACEOF
16438/* confdefs.h. */
16439_ACEOF
16440cat confdefs.h >>conftest.$ac_ext
16441cat >>conftest.$ac_ext <<_ACEOF
16442/* end confdefs.h. */
16443$ac_includes_default
16444typedef int64_t ac__type_new_;
16445int
16446main ()
16447{
16448if ((ac__type_new_ *) 0)
16449 return 0;
16450if (sizeof (ac__type_new_))
16451 return 0;
16452 ;
16453 return 0;
16454}
16455_ACEOF
16456rm -f conftest.$ac_objext
16457if { (ac_try="$ac_compile"
16458case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461esac
16462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_type_int64_t=yes
16491else
16492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 ac_cv_type_int64_t=no
16496fi
16497
16498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499fi
16500{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16501echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16502if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016503
16504cat >>confdefs.h <<_ACEOF
16505#define HAVE_INT64_T 1
16506_ACEOF
16507
16508
16509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016510 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16511echo "$as_me: error: Type int64_t required but not found" >&2;}
16512 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016513fi
16514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016515{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16516echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16517if test "${ac_cv_type_uint64_t+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16519else
16520 cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526$ac_includes_default
16527typedef uint64_t ac__type_new_;
16528int
16529main ()
16530{
16531if ((ac__type_new_ *) 0)
16532 return 0;
16533if (sizeof (ac__type_new_))
16534 return 0;
16535 ;
16536 return 0;
16537}
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (ac_try="$ac_compile"
16541case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544esac
16545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557esac
16558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_try") 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16567esac
16568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_uint64_t=yes
16574else
16575 echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 ac_cv_type_uint64_t=no
16579fi
16580
16581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582fi
16583{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16584echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16585if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016586
16587cat >>confdefs.h <<_ACEOF
16588#define HAVE_UINT64_T 1
16589_ACEOF
16590
16591
16592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016593 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16594echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16595if test "${ac_cv_type_u_int64_t+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597else
16598 cat >conftest.$ac_ext <<_ACEOF
16599/* confdefs.h. */
16600_ACEOF
16601cat confdefs.h >>conftest.$ac_ext
16602cat >>conftest.$ac_ext <<_ACEOF
16603/* end confdefs.h. */
16604$ac_includes_default
16605typedef u_int64_t ac__type_new_;
16606int
16607main ()
16608{
16609if ((ac__type_new_ *) 0)
16610 return 0;
16611if (sizeof (ac__type_new_))
16612 return 0;
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617rm -f conftest.$ac_objext
16618if { (ac_try="$ac_compile"
16619case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_type_u_int64_t=yes
16652else
16653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_cv_type_u_int64_t=no
16657fi
16658
16659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660fi
16661{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16662echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16663if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016664
16665cat >>confdefs.h <<_ACEOF
16666#define HAVE_U_INT64_T 1
16667_ACEOF
16668
16669
Misha Brukmanceca9042004-09-02 23:02:30 +000016670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016671 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16672echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16673 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016674fi
16675
John Criswell679ff312004-09-02 18:44:44 +000016676fi
16677
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016678
16679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016680
16681
16682
16683
16684
16685
16686
Reid Spencerdf3be822006-01-23 08:15:53 +000016687for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016688do
16689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16692if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694else
16695 cat >conftest.$ac_ext <<_ACEOF
16696/* confdefs.h. */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h. */
16701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703#define $ac_func innocuous_$ac_func
16704
16705/* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16709
16710#ifdef __STDC__
16711# include <limits.h>
16712#else
16713# include <assert.h>
16714#endif
16715
16716#undef $ac_func
16717
16718/* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16721#ifdef __cplusplus
16722extern "C"
16723#endif
16724char $ac_func ();
16725/* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728#if defined __stub_$ac_func || defined __stub___$ac_func
16729choke me
16730#endif
16731
16732int
16733main ()
16734{
16735return $ac_func ();
16736 ;
16737 return 0;
16738}
16739_ACEOF
16740rm -f conftest.$ac_objext conftest$ac_exeext
16741if { (ac_try="$ac_link"
16742case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_link") 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest$ac_exeext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 eval "$as_ac_var=yes"
16775else
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 eval "$as_ac_var=no"
16780fi
16781
16782rm -f core conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16784fi
16785ac_res=`eval echo '${'$as_ac_var'}'`
16786 { echo "$as_me:$LINENO: result: $ac_res" >&5
16787echo "${ECHO_T}$ac_res" >&6; }
16788if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016789 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016791_ACEOF
16792
16793fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016794done
John Criswell7a73b802003-06-30 21:59:07 +000016795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016796
16797
16798
16799
Reid Spencer96cf5872007-07-13 10:05:30 +000016800for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016801do
16802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16803{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807else
16808 cat >conftest.$ac_ext <<_ACEOF
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
16814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16816#define $ac_func innocuous_$ac_func
16817
16818/* System header to define __stub macros and hopefully few prototypes,
16819 which can conflict with char $ac_func (); below.
16820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16821 <limits.h> exists even on freestanding compilers. */
16822
16823#ifdef __STDC__
16824# include <limits.h>
16825#else
16826# include <assert.h>
16827#endif
16828
16829#undef $ac_func
16830
16831/* Override any GCC internal prototype to avoid an error.
16832 Use char because int might match the return type of a GCC
16833 builtin and then its argument prototype would still apply. */
16834#ifdef __cplusplus
16835extern "C"
16836#endif
16837char $ac_func ();
16838/* The GNU C library defines this for functions which it implements
16839 to always fail with ENOSYS. Some functions are actually named
16840 something starting with __ and the normal name is an alias. */
16841#if defined __stub_$ac_func || defined __stub___$ac_func
16842choke me
16843#endif
16844
16845int
16846main ()
16847{
16848return $ac_func ();
16849 ;
16850 return 0;
16851}
16852_ACEOF
16853rm -f conftest.$ac_objext conftest$ac_exeext
16854if { (ac_try="$ac_link"
16855case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858esac
16859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_link") 2>conftest.er1
16861 ac_status=$?
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16868 { (case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16871esac
16872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_try") 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881esac
16882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_try") 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 eval "$as_ac_var=yes"
16888else
16889 echo "$as_me: failed program was:" >&5
16890sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 eval "$as_ac_var=no"
16893fi
16894
16895rm -f core conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16897fi
16898ac_res=`eval echo '${'$as_ac_var'}'`
16899 { echo "$as_me:$LINENO: result: $ac_res" >&5
16900echo "${ECHO_T}$ac_res" >&6; }
16901if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016902 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016904_ACEOF
16905
16906fi
16907done
16908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016909
16910
16911
16912
16913
Reid Spencerb90645c2007-02-16 19:17:20 +000016914for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016915do
16916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921else
16922 cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
16928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930#define $ac_func innocuous_$ac_func
16931
16932/* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char $ac_func (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16936
16937#ifdef __STDC__
16938# include <limits.h>
16939#else
16940# include <assert.h>
16941#endif
16942
16943#undef $ac_func
16944
16945/* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16948#ifdef __cplusplus
16949extern "C"
16950#endif
16951char $ac_func ();
16952/* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955#if defined __stub_$ac_func || defined __stub___$ac_func
16956choke me
16957#endif
16958
16959int
16960main ()
16961{
16962return $ac_func ();
16963 ;
16964 return 0;
16965}
16966_ACEOF
16967rm -f conftest.$ac_objext conftest$ac_exeext
16968if { (ac_try="$ac_link"
16969case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972esac
16973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_link") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest$ac_exeext'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16995esac
16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 eval "$as_ac_var=yes"
17002else
17003 echo "$as_me: failed program was:" >&5
17004sed 's/^/| /' conftest.$ac_ext >&5
17005
17006 eval "$as_ac_var=no"
17007fi
17008
17009rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17011fi
17012ac_res=`eval echo '${'$as_ac_var'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014echo "${ECHO_T}$ac_res" >&6; }
17015if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017016 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017018_ACEOF
17019
17020fi
17021done
17022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017023
17024
17025
Reid Spencerb90645c2007-02-16 19:17:20 +000017026for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017027do
17028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17029{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17031if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17042#define $ac_func innocuous_$ac_func
17043
17044/* System header to define __stub macros and hopefully few prototypes,
17045 which can conflict with char $ac_func (); below.
17046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047 <limits.h> exists even on freestanding compilers. */
17048
17049#ifdef __STDC__
17050# include <limits.h>
17051#else
17052# include <assert.h>
17053#endif
17054
17055#undef $ac_func
17056
17057/* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063char $ac_func ();
17064/* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
17067#if defined __stub_$ac_func || defined __stub___$ac_func
17068choke me
17069#endif
17070
17071int
17072main ()
17073{
17074return $ac_func ();
17075 ;
17076 return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext conftest$ac_exeext
17080if { (ac_try="$ac_link"
17081case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097esac
17098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 eval "$as_ac_var=yes"
17114else
17115 echo "$as_me: failed program was:" >&5
17116sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 eval "$as_ac_var=no"
17119fi
17120
17121rm -f core conftest.err conftest.$ac_objext \
17122 conftest$ac_exeext conftest.$ac_ext
17123fi
17124ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126echo "${ECHO_T}$ac_res" >&6; }
17127if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017128 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017130_ACEOF
17131
17132fi
17133done
17134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017135
17136
17137
17138
17139
Eric Christophere4291822010-04-16 05:14:21 +000017140
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017141
17142for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017143do
17144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17149else
17150 cat >conftest.$ac_ext <<_ACEOF
17151/* confdefs.h. */
17152_ACEOF
17153cat confdefs.h >>conftest.$ac_ext
17154cat >>conftest.$ac_ext <<_ACEOF
17155/* end confdefs.h. */
17156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158#define $ac_func innocuous_$ac_func
17159
17160/* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char $ac_func (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17164
17165#ifdef __STDC__
17166# include <limits.h>
17167#else
17168# include <assert.h>
17169#endif
17170
17171#undef $ac_func
17172
17173/* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17176#ifdef __cplusplus
17177extern "C"
17178#endif
17179char $ac_func ();
17180/* The GNU C library defines this for functions which it implements
17181 to always fail with ENOSYS. Some functions are actually named
17182 something starting with __ and the normal name is an alias. */
17183#if defined __stub_$ac_func || defined __stub___$ac_func
17184choke me
17185#endif
17186
17187int
17188main ()
17189{
17190return $ac_func ();
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195rm -f conftest.$ac_objext conftest$ac_exeext
17196if { (ac_try="$ac_link"
17197case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200esac
17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
17220 { (case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223esac
17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17230else
17231 echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234 eval "$as_ac_var=no"
17235fi
17236
17237rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17239fi
17240ac_res=`eval echo '${'$as_ac_var'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242echo "${ECHO_T}$ac_res" >&6; }
17243if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017246_ACEOF
17247
17248fi
17249done
Reid Spencerdf3be822006-01-23 08:15:53 +000017250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017251
17252
17253
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017254for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017255do
17256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261else
17262 cat >conftest.$ac_ext <<_ACEOF
17263/* confdefs.h. */
17264_ACEOF
17265cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h. */
17268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17270#define $ac_func innocuous_$ac_func
17271
17272/* System header to define __stub macros and hopefully few prototypes,
17273 which can conflict with char $ac_func (); below.
17274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275 <limits.h> exists even on freestanding compilers. */
17276
17277#ifdef __STDC__
17278# include <limits.h>
17279#else
17280# include <assert.h>
17281#endif
17282
17283#undef $ac_func
17284
17285/* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17288#ifdef __cplusplus
17289extern "C"
17290#endif
17291char $ac_func ();
17292/* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295#if defined __stub_$ac_func || defined __stub___$ac_func
17296choke me
17297#endif
17298
17299int
17300main ()
17301{
17302return $ac_func ();
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext conftest$ac_exeext
17308if { (ac_try="$ac_link"
17309case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17312esac
17313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_link") 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325esac
17326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_try") 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17335esac
17336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 eval "$as_ac_var=yes"
17342else
17343 echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 eval "$as_ac_var=no"
17347fi
17348
17349rm -f core conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17351fi
17352ac_res=`eval echo '${'$as_ac_var'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354echo "${ECHO_T}$ac_res" >&6; }
17355if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017356 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017358_ACEOF
17359
17360fi
17361done
17362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017363
17364
17365
17366
Chris Lattner511f11d2005-11-14 07:25:50 +000017367for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017368do
17369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374else
17375 cat >conftest.$ac_ext <<_ACEOF
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
17380/* end confdefs.h. */
17381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383#define $ac_func innocuous_$ac_func
17384
17385/* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17389
17390#ifdef __STDC__
17391# include <limits.h>
17392#else
17393# include <assert.h>
17394#endif
17395
17396#undef $ac_func
17397
17398/* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404char $ac_func ();
17405/* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408#if defined __stub_$ac_func || defined __stub___$ac_func
17409choke me
17410#endif
17411
17412int
17413main ()
17414{
17415return $ac_func ();
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext conftest$ac_exeext
17421if { (ac_try="$ac_link"
17422case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438esac
17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448esac
17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 eval "$as_ac_var=yes"
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 eval "$as_ac_var=no"
17460fi
17461
17462rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464fi
17465ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467echo "${ECHO_T}$ac_res" >&6; }
17468if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017469 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017471_ACEOF
17472
17473fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017474done
John Criswell7a73b802003-06-30 21:59:07 +000017475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017476
17477
17478
17479
Daniel Dunbar3e462932011-02-03 02:40:02 +000017480
17481for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017482do
17483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
17495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17497#define $ac_func innocuous_$ac_func
17498
17499/* System header to define __stub macros and hopefully few prototypes,
17500 which can conflict with char $ac_func (); below.
17501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502 <limits.h> exists even on freestanding compilers. */
17503
17504#ifdef __STDC__
17505# include <limits.h>
17506#else
17507# include <assert.h>
17508#endif
17509
17510#undef $ac_func
17511
17512/* Override any GCC internal prototype to avoid an error.
17513 Use char because int might match the return type of a GCC
17514 builtin and then its argument prototype would still apply. */
17515#ifdef __cplusplus
17516extern "C"
17517#endif
17518char $ac_func ();
17519/* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522#if defined __stub_$ac_func || defined __stub___$ac_func
17523choke me
17524#endif
17525
17526int
17527main ()
17528{
17529return $ac_func ();
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext conftest$ac_exeext
17535if { (ac_try="$ac_link"
17536case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 eval "$as_ac_var=no"
17574fi
17575
17576rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578fi
17579ac_res=`eval echo '${'$as_ac_var'}'`
17580 { echo "$as_me:$LINENO: result: $ac_res" >&5
17581echo "${ECHO_T}$ac_res" >&6; }
17582if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017583 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017585_ACEOF
17586
17587fi
17588done
17589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017590{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17591echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17592if test "${llvm_cv_c_printf_a+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017594else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017595 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017596ac_cpp='$CPP $CPPFLAGS'
17597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017602 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017604 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606 /* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017611
John Criswella0137d32003-10-13 16:22:01 +000017612#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017613#include <stdlib.h>
17614
John Criswella0137d32003-10-13 16:22:01 +000017615int
17616main ()
17617{
17618
Reid Spencer2706f8c2004-09-19 23:53:36 +000017619volatile double A, B;
17620char Buffer[100];
17621A = 1;
17622A /= 10.0;
17623sprintf(Buffer, "%a", A);
17624B = atof(Buffer);
17625if (A != B)
17626 return (1);
17627if (A != 0x1.999999999999ap-4)
17628 return (1);
17629return (0);
John Criswella0137d32003-10-13 16:22:01 +000017630 ;
17631 return 0;
17632}
17633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017634rm -f conftest$ac_exeext
17635if { (ac_try="$ac_link"
17636case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_link") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017654 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017656 echo "$as_me: program exited with status $ac_status" >&5
17657echo "$as_me: failed program was:" >&5
17658sed 's/^/| /' conftest.$ac_ext >&5
17659
17660( exit $ac_status )
17661llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017663rm -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 +000017664fi
Reid Spencera773bd52006-08-04 18:18:08 +000017665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666
Reid Spencer2706f8c2004-09-19 23:53:36 +000017667 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017668ac_cpp='$CPP $CPPFLAGS'
17669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017673fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017674{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17675echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017676 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017678cat >>confdefs.h <<\_ACEOF
17679#define HAVE_PRINTF_A 1
17680_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017681
Reid Spencer2706f8c2004-09-19 23:53:36 +000017682 fi
John Criswella0137d32003-10-13 16:22:01 +000017683
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017685{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17686echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17687if test "${ac_cv_func_rand48+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017689else
Reid Spencera773bd52006-08-04 18:18:08 +000017690 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691ac_cpp='$CXXCPP $CPPFLAGS'
17692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017696 cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017701/* end confdefs.h. */
17702#include <stdlib.h>
17703int
17704main ()
17705{
17706srand48(0);lrand48();drand48();
17707 ;
17708 return 0;
17709}
17710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017711rm -f conftest.$ac_objext
17712if { (ac_try="$ac_compile"
17713case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739esac
17740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017745 ac_cv_func_rand48=yes
17746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017747 echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017752
Reid Spencera773bd52006-08-04 18:18:08 +000017753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017754 ac_ext=c
17755ac_cpp='$CPP $CPPFLAGS'
17756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758ac_compiler_gnu=$ac_cv_c_compiler_gnu
17759
17760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017761{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17762echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017763
17764if test "$ac_cv_func_rand48" = "yes" ; then
17765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017766cat >>confdefs.h <<\_ACEOF
17767#define HAVE_RAND48 1
17768_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017769
17770fi
John Criswell0021c312004-02-13 21:57:29 +000017771
17772
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017773{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17774echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17775if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777else
17778 cat >conftest.$ac_ext <<_ACEOF
17779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
17784$ac_includes_default
17785int
17786main ()
17787{
17788#ifndef strerror_s
17789 char *p = (char *) strerror_s;
17790 return !p;
17791#endif
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext
17798if { (ac_try="$ac_compile"
17799case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802esac
17803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_compile") 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_have_decl_strerror_s=yes
17832else
17833 echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 ac_cv_have_decl_strerror_s=no
17837fi
17838
17839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840fi
17841{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17842echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17843if test $ac_cv_have_decl_strerror_s = yes; then
17844
17845cat >>confdefs.h <<_ACEOF
17846#define HAVE_DECL_STRERROR_S 1
17847_ACEOF
17848
17849
17850else
17851 cat >>confdefs.h <<_ACEOF
17852#define HAVE_DECL_STRERROR_S 0
17853_ACEOF
17854
17855
17856fi
17857
17858
17859
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017860if test "$llvm_cv_os_type" = "MingW" ; then
17861 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17862echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17863if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865else
17866 ac_check_lib_save_LIBS=$LIBS
17867LIBS="-lgcc $LIBS"
17868cat >conftest.$ac_ext <<_ACEOF
17869/* confdefs.h. */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h. */
17874
17875/* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17878#ifdef __cplusplus
17879extern "C"
17880#endif
17881char _alloca ();
17882int
17883main ()
17884{
17885return _alloca ();
17886 ;
17887 return 0;
17888}
17889_ACEOF
17890rm -f conftest.$ac_objext conftest$ac_exeext
17891if { (ac_try="$ac_link"
17892case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895esac
17896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908esac
17909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_gcc__alloca=yes
17925else
17926 echo "$as_me: failed program was:" >&5
17927sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_cv_lib_gcc__alloca=no
17930fi
17931
17932rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17934LIBS=$ac_check_lib_save_LIBS
17935fi
17936{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17937echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17938if test $ac_cv_lib_gcc__alloca = yes; then
17939
17940cat >>confdefs.h <<\_ACEOF
17941#define HAVE__ALLOCA 1
17942_ACEOF
17943
17944fi
17945
17946 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17947echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17948if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951 ac_check_lib_save_LIBS=$LIBS
17952LIBS="-lgcc $LIBS"
17953cat >conftest.$ac_ext <<_ACEOF
17954/* confdefs.h. */
17955_ACEOF
17956cat confdefs.h >>conftest.$ac_ext
17957cat >>conftest.$ac_ext <<_ACEOF
17958/* end confdefs.h. */
17959
17960/* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17963#ifdef __cplusplus
17964extern "C"
17965#endif
17966char __alloca ();
17967int
17968main ()
17969{
17970return __alloca ();
17971 ;
17972 return 0;
17973}
17974_ACEOF
17975rm -f conftest.$ac_objext conftest$ac_exeext
17976if { (ac_try="$ac_link"
17977case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980esac
17981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_link") 2>conftest.er1
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990 { (case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993esac
17994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_try") 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003esac
18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_lib_gcc___alloca=yes
18010else
18011 echo "$as_me: failed program was:" >&5
18012sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 ac_cv_lib_gcc___alloca=no
18015fi
18016
18017rm -f core conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019LIBS=$ac_check_lib_save_LIBS
18020fi
18021{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18022echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18023if test $ac_cv_lib_gcc___alloca = yes; then
18024
18025cat >>confdefs.h <<\_ACEOF
18026#define HAVE___ALLOCA 1
18027_ACEOF
18028
18029fi
18030
18031 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18032echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18033if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035else
18036 ac_check_lib_save_LIBS=$LIBS
18037LIBS="-lgcc $LIBS"
18038cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044
18045/* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18048#ifdef __cplusplus
18049extern "C"
18050#endif
18051char __chkstk ();
18052int
18053main ()
18054{
18055return __chkstk ();
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext conftest$ac_exeext
18061if { (ac_try="$ac_link"
18062case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078esac
18079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088esac
18089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_gcc___chkstk=yes
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 ac_cv_lib_gcc___chkstk=no
18100fi
18101
18102rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104LIBS=$ac_check_lib_save_LIBS
18105fi
18106{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18107echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18108if test $ac_cv_lib_gcc___chkstk = yes; then
18109
18110cat >>confdefs.h <<\_ACEOF
18111#define HAVE___CHKSTK 1
18112_ACEOF
18113
18114fi
18115
18116 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18117echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18118if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18120else
18121 ac_check_lib_save_LIBS=$LIBS
18122LIBS="-lgcc $LIBS"
18123cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
18129
18130/* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18133#ifdef __cplusplus
18134extern "C"
18135#endif
18136char ___chkstk ();
18137int
18138main ()
18139{
18140return ___chkstk ();
18141 ;
18142 return 0;
18143}
18144_ACEOF
18145rm -f conftest.$ac_objext conftest$ac_exeext
18146if { (ac_try="$ac_link"
18147case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_link") 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160 { (case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_try") 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest$ac_exeext'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173esac
18174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_gcc____chkstk=yes
18180else
18181 echo "$as_me: failed program was:" >&5
18182sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ac_cv_lib_gcc____chkstk=no
18185fi
18186
18187rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189LIBS=$ac_check_lib_save_LIBS
18190fi
18191{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18192echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18193if test $ac_cv_lib_gcc____chkstk = yes; then
18194
18195cat >>confdefs.h <<\_ACEOF
18196#define HAVE____CHKSTK 1
18197_ACEOF
18198
18199fi
18200
18201
18202 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18203echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18204if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18206else
18207 ac_check_lib_save_LIBS=$LIBS
18208LIBS="-lgcc $LIBS"
18209cat >conftest.$ac_ext <<_ACEOF
18210/* confdefs.h. */
18211_ACEOF
18212cat confdefs.h >>conftest.$ac_ext
18213cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */
18215
18216/* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219#ifdef __cplusplus
18220extern "C"
18221#endif
18222char __ashldi3 ();
18223int
18224main ()
18225{
18226return __ashldi3 ();
18227 ;
18228 return 0;
18229}
18230_ACEOF
18231rm -f conftest.$ac_objext conftest$ac_exeext
18232if { (ac_try="$ac_link"
18233case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236esac
18237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259esac
18260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_try") 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 ac_cv_lib_gcc___ashldi3=yes
18266else
18267 echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 ac_cv_lib_gcc___ashldi3=no
18271fi
18272
18273rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275LIBS=$ac_check_lib_save_LIBS
18276fi
18277{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18278echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18279if test $ac_cv_lib_gcc___ashldi3 = yes; then
18280
18281cat >>confdefs.h <<\_ACEOF
18282#define HAVE___ASHLDI3 1
18283_ACEOF
18284
18285fi
18286
18287 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18288echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18289if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291else
18292 ac_check_lib_save_LIBS=$LIBS
18293LIBS="-lgcc $LIBS"
18294cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h. */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h. */
18300
18301/* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18304#ifdef __cplusplus
18305extern "C"
18306#endif
18307char __ashrdi3 ();
18308int
18309main ()
18310{
18311return __ashrdi3 ();
18312 ;
18313 return 0;
18314}
18315_ACEOF
18316rm -f conftest.$ac_objext conftest$ac_exeext
18317if { (ac_try="$ac_link"
18318case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321esac
18322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334esac
18335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest$ac_exeext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344esac
18345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_lib_gcc___ashrdi3=yes
18351else
18352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ac_cv_lib_gcc___ashrdi3=no
18356fi
18357
18358rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360LIBS=$ac_check_lib_save_LIBS
18361fi
18362{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18363echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18364if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18365
18366cat >>confdefs.h <<\_ACEOF
18367#define HAVE___ASHRDI3 1
18368_ACEOF
18369
18370fi
18371
18372 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18373echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18374if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376else
18377 ac_check_lib_save_LIBS=$LIBS
18378LIBS="-lgcc $LIBS"
18379cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385
18386/* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18389#ifdef __cplusplus
18390extern "C"
18391#endif
18392char __divdi3 ();
18393int
18394main ()
18395{
18396return __divdi3 ();
18397 ;
18398 return 0;
18399}
18400_ACEOF
18401rm -f conftest.$ac_objext conftest$ac_exeext
18402if { (ac_try="$ac_link"
18403case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406esac
18407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_link") 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419esac
18420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429esac
18430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_lib_gcc___divdi3=yes
18436else
18437 echo "$as_me: failed program was:" >&5
18438sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_cv_lib_gcc___divdi3=no
18441fi
18442
18443rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18445LIBS=$ac_check_lib_save_LIBS
18446fi
18447{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18448echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18449if test $ac_cv_lib_gcc___divdi3 = yes; then
18450
18451cat >>confdefs.h <<\_ACEOF
18452#define HAVE___DIVDI3 1
18453_ACEOF
18454
18455fi
18456
18457 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18458echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18459if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461else
18462 ac_check_lib_save_LIBS=$LIBS
18463LIBS="-lgcc $LIBS"
18464cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h. */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
18469/* end confdefs.h. */
18470
18471/* Override any GCC internal prototype to avoid an error.
18472 Use char because int might match the return type of a GCC
18473 builtin and then its argument prototype would still apply. */
18474#ifdef __cplusplus
18475extern "C"
18476#endif
18477char __fixdfdi ();
18478int
18479main ()
18480{
18481return __fixdfdi ();
18482 ;
18483 return 0;
18484}
18485_ACEOF
18486rm -f conftest.$ac_objext conftest$ac_exeext
18487if { (ac_try="$ac_link"
18488case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18491esac
18492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_link") 2>conftest.er1
18494 ac_status=$?
18495 grep -v '^ *+' conftest.er1 >conftest.err
18496 rm -f conftest.er1
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18501 { (case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18504esac
18505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_try") 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_lib_gcc___fixdfdi=yes
18521else
18522 echo "$as_me: failed program was:" >&5
18523sed 's/^/| /' conftest.$ac_ext >&5
18524
18525 ac_cv_lib_gcc___fixdfdi=no
18526fi
18527
18528rm -f core conftest.err conftest.$ac_objext \
18529 conftest$ac_exeext conftest.$ac_ext
18530LIBS=$ac_check_lib_save_LIBS
18531fi
18532{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18533echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18534if test $ac_cv_lib_gcc___fixdfdi = yes; then
18535
18536cat >>confdefs.h <<\_ACEOF
18537#define HAVE___FIXDFDI 1
18538_ACEOF
18539
18540fi
18541
18542 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18543echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18544if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546else
18547 ac_check_lib_save_LIBS=$LIBS
18548LIBS="-lgcc $LIBS"
18549cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
18555
18556/* Override any GCC internal prototype to avoid an error.
18557 Use char because int might match the return type of a GCC
18558 builtin and then its argument prototype would still apply. */
18559#ifdef __cplusplus
18560extern "C"
18561#endif
18562char __fixsfdi ();
18563int
18564main ()
18565{
18566return __fixsfdi ();
18567 ;
18568 return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext conftest$ac_exeext
18572if { (ac_try="$ac_link"
18573case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589esac
18590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599esac
18600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_lib_gcc___fixsfdi=yes
18606else
18607 echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 ac_cv_lib_gcc___fixsfdi=no
18611fi
18612
18613rm -f core conftest.err conftest.$ac_objext \
18614 conftest$ac_exeext conftest.$ac_ext
18615LIBS=$ac_check_lib_save_LIBS
18616fi
18617{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18618echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18619if test $ac_cv_lib_gcc___fixsfdi = yes; then
18620
18621cat >>confdefs.h <<\_ACEOF
18622#define HAVE___FIXSFDI 1
18623_ACEOF
18624
18625fi
18626
18627 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18628echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18629if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631else
18632 ac_check_lib_save_LIBS=$LIBS
18633LIBS="-lgcc $LIBS"
18634cat >conftest.$ac_ext <<_ACEOF
18635/* confdefs.h. */
18636_ACEOF
18637cat confdefs.h >>conftest.$ac_ext
18638cat >>conftest.$ac_ext <<_ACEOF
18639/* end confdefs.h. */
18640
18641/* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18644#ifdef __cplusplus
18645extern "C"
18646#endif
18647char __floatdidf ();
18648int
18649main ()
18650{
18651return __floatdidf ();
18652 ;
18653 return 0;
18654}
18655_ACEOF
18656rm -f conftest.$ac_objext conftest$ac_exeext
18657if { (ac_try="$ac_link"
18658case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661esac
18662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_link") 2>conftest.er1
18664 ac_status=$?
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671 { (case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674esac
18675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_try") 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; } &&
18680 { ac_try='test -s conftest$ac_exeext'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684esac
18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_lib_gcc___floatdidf=yes
18691else
18692 echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 ac_cv_lib_gcc___floatdidf=no
18696fi
18697
18698rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700LIBS=$ac_check_lib_save_LIBS
18701fi
18702{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18703echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18704if test $ac_cv_lib_gcc___floatdidf = yes; then
18705
18706cat >>confdefs.h <<\_ACEOF
18707#define HAVE___FLOATDIDF 1
18708_ACEOF
18709
18710fi
18711
18712 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18713echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18714if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 ac_check_lib_save_LIBS=$LIBS
18718LIBS="-lgcc $LIBS"
18719cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725
18726/* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18729#ifdef __cplusplus
18730extern "C"
18731#endif
18732char __lshrdi3 ();
18733int
18734main ()
18735{
18736return __lshrdi3 ();
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext conftest$ac_exeext
18742if { (ac_try="$ac_link"
18743case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746esac
18747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759esac
18760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769esac
18770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 ac_cv_lib_gcc___lshrdi3=yes
18776else
18777 echo "$as_me: failed program was:" >&5
18778sed 's/^/| /' conftest.$ac_ext >&5
18779
18780 ac_cv_lib_gcc___lshrdi3=no
18781fi
18782
18783rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785LIBS=$ac_check_lib_save_LIBS
18786fi
18787{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18788echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18789if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18790
18791cat >>confdefs.h <<\_ACEOF
18792#define HAVE___LSHRDI3 1
18793_ACEOF
18794
18795fi
18796
18797 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18798echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18799if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 ac_check_lib_save_LIBS=$LIBS
18803LIBS="-lgcc $LIBS"
18804cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810
18811/* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18814#ifdef __cplusplus
18815extern "C"
18816#endif
18817char __moddi3 ();
18818int
18819main ()
18820{
18821return __moddi3 ();
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
18827if { (ac_try="$ac_link"
18828case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_cv_lib_gcc___moddi3=yes
18861else
18862 echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 ac_cv_lib_gcc___moddi3=no
18866fi
18867
18868rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870LIBS=$ac_check_lib_save_LIBS
18871fi
18872{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18873echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18874if test $ac_cv_lib_gcc___moddi3 = yes; then
18875
18876cat >>confdefs.h <<\_ACEOF
18877#define HAVE___MODDI3 1
18878_ACEOF
18879
18880fi
18881
18882 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18883echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18884if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887 ac_check_lib_save_LIBS=$LIBS
18888LIBS="-lgcc $LIBS"
18889cat >conftest.$ac_ext <<_ACEOF
18890/* confdefs.h. */
18891_ACEOF
18892cat confdefs.h >>conftest.$ac_ext
18893cat >>conftest.$ac_ext <<_ACEOF
18894/* end confdefs.h. */
18895
18896/* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18899#ifdef __cplusplus
18900extern "C"
18901#endif
18902char __udivdi3 ();
18903int
18904main ()
18905{
18906return __udivdi3 ();
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext conftest$ac_exeext
18912if { (ac_try="$ac_link"
18913case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_gcc___udivdi3=yes
18946else
18947 echo "$as_me: failed program was:" >&5
18948sed 's/^/| /' conftest.$ac_ext >&5
18949
18950 ac_cv_lib_gcc___udivdi3=no
18951fi
18952
18953rm -f core conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955LIBS=$ac_check_lib_save_LIBS
18956fi
18957{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18958echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18959if test $ac_cv_lib_gcc___udivdi3 = yes; then
18960
18961cat >>confdefs.h <<\_ACEOF
18962#define HAVE___UDIVDI3 1
18963_ACEOF
18964
18965fi
18966
18967 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18968echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18969if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972 ac_check_lib_save_LIBS=$LIBS
18973LIBS="-lgcc $LIBS"
18974cat >conftest.$ac_ext <<_ACEOF
18975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h. */
18980
18981/* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18984#ifdef __cplusplus
18985extern "C"
18986#endif
18987char __umoddi3 ();
18988int
18989main ()
18990{
18991return __umoddi3 ();
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext conftest$ac_exeext
18997if { (ac_try="$ac_link"
18998case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014esac
19015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest$ac_exeext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024esac
19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_lib_gcc___umoddi3=yes
19031else
19032 echo "$as_me: failed program was:" >&5
19033sed 's/^/| /' conftest.$ac_ext >&5
19034
19035 ac_cv_lib_gcc___umoddi3=no
19036fi
19037
19038rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040LIBS=$ac_check_lib_save_LIBS
19041fi
19042{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19043echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19044if test $ac_cv_lib_gcc___umoddi3 = yes; then
19045
19046cat >>confdefs.h <<\_ACEOF
19047#define HAVE___UMODDI3 1
19048_ACEOF
19049
19050fi
19051
19052
19053 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19054echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19055if test "${ac_cv_lib_gcc___main+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057else
19058 ac_check_lib_save_LIBS=$LIBS
19059LIBS="-lgcc $LIBS"
19060cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066
19067/* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070#ifdef __cplusplus
19071extern "C"
19072#endif
19073char __main ();
19074int
19075main ()
19076{
19077return __main ();
19078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext conftest$ac_exeext
19083if { (ac_try="$ac_link"
19084case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_gcc___main=yes
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_lib_gcc___main=no
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126LIBS=$ac_check_lib_save_LIBS
19127fi
19128{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19129echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19130if test $ac_cv_lib_gcc___main = yes; then
19131
19132cat >>confdefs.h <<\_ACEOF
19133#define HAVE___MAIN 1
19134_ACEOF
19135
19136fi
19137
19138 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19139echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19140if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142else
19143 ac_check_lib_save_LIBS=$LIBS
19144LIBS="-lgcc $LIBS"
19145cat >conftest.$ac_ext <<_ACEOF
19146/* confdefs.h. */
19147_ACEOF
19148cat confdefs.h >>conftest.$ac_ext
19149cat >>conftest.$ac_ext <<_ACEOF
19150/* end confdefs.h. */
19151
19152/* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19155#ifdef __cplusplus
19156extern "C"
19157#endif
19158char __cmpdi2 ();
19159int
19160main ()
19161{
19162return __cmpdi2 ();
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext conftest$ac_exeext
19168if { (ac_try="$ac_link"
19169case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_link") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_lib_gcc___cmpdi2=yes
19202else
19203 echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206 ac_cv_lib_gcc___cmpdi2=no
19207fi
19208
19209rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211LIBS=$ac_check_lib_save_LIBS
19212fi
19213{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19214echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19215if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19216
19217cat >>confdefs.h <<\_ACEOF
19218#define HAVE___CMPDI2 1
19219_ACEOF
19220
19221fi
19222
19223fi
19224
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019225if test "$llvm_cv_os_type" = "MingW" ; then
19226 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19227echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19228 cat >conftest.$ac_ext <<_ACEOF
19229#include <windows.h>
19230#include <imagehlp.h>
19231extern void foo(PENUMLOADED_MODULES_CALLBACK);
19232extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19233_ACEOF
19234rm -f conftest.$ac_objext
19235if { (ac_try="$ac_compile"
19236case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19252esac
19253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_try") 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262esac
19263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268
19269 { echo "$as_me:$LINENO: result: yes" >&5
19270echo "${ECHO_T}yes" >&6; }
19271 llvm_cv_win32_elmcb_pcstr="PCSTR"
19272
19273else
19274 echo "$as_me: failed program was:" >&5
19275sed 's/^/| /' conftest.$ac_ext >&5
19276
19277
19278 { echo "$as_me:$LINENO: result: no" >&5
19279echo "${ECHO_T}no" >&6; }
19280 llvm_cv_win32_elmcb_pcstr="PSTR"
19281
19282fi
19283
19284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285
19286cat >>confdefs.h <<_ACEOF
19287#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19288_ACEOF
19289
19290fi
19291
Torok Edwin871384f2010-01-26 08:50:50 +000019292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019293{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19294echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19295if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019297else
Reid Spencera773bd52006-08-04 18:18:08 +000019298 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019299ac_cpp='$CXXCPP $CPPFLAGS'
19300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019304 cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019309/* end confdefs.h. */
19310#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019311int
19312main ()
19313{
19314float f; isnan(f);
19315 ;
19316 return 0;
19317}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019318_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019319rm -f conftest.$ac_objext
19320if { (ac_try="$ac_compile"
19321case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324esac
19325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337esac
19338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019353 ac_cv_func_isnan_in_math_h=yes
19354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019355 echo "$as_me: failed program was:" >&5
19356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019360
Reid Spencera773bd52006-08-04 18:18:08 +000019361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019362 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019363ac_cpp='$CPP $CPPFLAGS'
19364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366ac_compiler_gnu=$ac_cv_c_compiler_gnu
19367
19368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019369{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19370echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019371
19372
19373if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019375cat >>confdefs.h <<\_ACEOF
19376#define HAVE_ISNAN_IN_MATH_H 1
19377_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019378
Reid Spencerabec8f92004-10-27 23:03:44 +000019379fi
19380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019381{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19382echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19383if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019385else
Reid Spencera773bd52006-08-04 18:18:08 +000019386 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019387ac_cpp='$CXXCPP $CPPFLAGS'
19388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392 cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019397/* end confdefs.h. */
19398#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019399int
19400main ()
19401{
19402float f; isnan(f);
19403 ;
19404 return 0;
19405}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019407rm -f conftest.$ac_objext
19408if { (ac_try="$ac_compile"
19409case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019441 ac_cv_func_isnan_in_cmath=yes
19442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019443 echo "$as_me: failed program was:" >&5
19444sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448
Reid Spencera773bd52006-08-04 18:18:08 +000019449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019450 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019451ac_cpp='$CPP $CPPFLAGS'
19452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455
19456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19458echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019459
19460if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019462cat >>confdefs.h <<\_ACEOF
19463#define HAVE_ISNAN_IN_CMATH 1
19464_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019465
Reid Spencerabec8f92004-10-27 23:03:44 +000019466fi
19467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19469echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19470if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019472else
Reid Spencera773bd52006-08-04 18:18:08 +000019473 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019474ac_cpp='$CXXCPP $CPPFLAGS'
19475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019479 cat >conftest.$ac_ext <<_ACEOF
19480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019484/* end confdefs.h. */
19485#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019486int
19487main ()
19488{
19489float f; std::isnan(f);
19490 ;
19491 return 0;
19492}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019493_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019494rm -f conftest.$ac_objext
19495if { (ac_try="$ac_compile"
19496case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019528 ac_cv_func_std_isnan_in_cmath=yes
19529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019535
Reid Spencera773bd52006-08-04 18:18:08 +000019536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019537 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019538ac_cpp='$CPP $CPPFLAGS'
19539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541ac_compiler_gnu=$ac_cv_c_compiler_gnu
19542
19543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019544{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19545echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019546
19547if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019549cat >>confdefs.h <<\_ACEOF
19550#define HAVE_STD_ISNAN_IN_CMATH 1
19551_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019552
Reid Spencerabec8f92004-10-27 23:03:44 +000019553fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019554
19555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19557echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19558if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019560else
Reid Spencera773bd52006-08-04 18:18:08 +000019561 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019562ac_cpp='$CXXCPP $CPPFLAGS'
19563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567 cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019572/* end confdefs.h. */
19573#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019574int
19575main ()
19576{
19577float f; isinf(f);
19578 ;
19579 return 0;
19580}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019581_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582rm -f conftest.$ac_objext
19583if { (ac_try="$ac_compile"
19584case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600esac
19601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610esac
19611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019616 ac_cv_func_isinf_in_math_h=yes
19617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623
Reid Spencera773bd52006-08-04 18:18:08 +000019624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019625 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019626ac_cpp='$CPP $CPPFLAGS'
19627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19633echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019634
19635if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637cat >>confdefs.h <<\_ACEOF
19638#define HAVE_ISINF_IN_MATH_H 1
19639_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019640
Reid Spencerabec8f92004-10-27 23:03:44 +000019641fi
19642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19644echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19645if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019647else
Reid Spencera773bd52006-08-04 18:18:08 +000019648 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019649ac_cpp='$CXXCPP $CPPFLAGS'
19650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019654 cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019659/* end confdefs.h. */
19660#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019661int
19662main ()
19663{
19664float f; isinf(f);
19665 ;
19666 return 0;
19667}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019668_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669rm -f conftest.$ac_objext
19670if { (ac_try="$ac_compile"
19671case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674esac
19675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_compile") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest.$ac_objext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019703 ac_cv_func_isinf_in_cmath=yes
19704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019705 echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710
Reid Spencera773bd52006-08-04 18:18:08 +000019711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019712 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019713ac_cpp='$CPP $CPPFLAGS'
19714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19720echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019721
19722if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019724cat >>confdefs.h <<\_ACEOF
19725#define HAVE_ISINF_IN_CMATH 1
19726_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019727
Reid Spencerabec8f92004-10-27 23:03:44 +000019728fi
19729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19731echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19732if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019734else
Reid Spencera773bd52006-08-04 18:18:08 +000019735 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019736ac_cpp='$CXXCPP $CPPFLAGS'
19737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019741 cat >conftest.$ac_ext <<_ACEOF
19742/* confdefs.h. */
19743_ACEOF
19744cat confdefs.h >>conftest.$ac_ext
19745cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019746/* end confdefs.h. */
19747#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019748int
19749main ()
19750{
19751float f; std::isinf(f)}
19752 ;
19753 return 0;
19754}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756rm -f conftest.$ac_objext
19757if { (ac_try="$ac_compile"
19758case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761esac
19762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019790 ac_cv_func_std_isinf_in_cmath=yes
19791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019797
Reid Spencera773bd52006-08-04 18:18:08 +000019798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019799 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019800ac_cpp='$CPP $CPPFLAGS'
19801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804
19805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19807echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019808
19809if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019811cat >>confdefs.h <<\_ACEOF
19812#define HAVE_STD_ISINF_IN_CMATH 1
19813_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019814
Reid Spencerabec8f92004-10-27 23:03:44 +000019815fi
19816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19818echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19819if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019821else
Reid Spencera773bd52006-08-04 18:18:08 +000019822 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019823ac_cpp='$CXXCPP $CPPFLAGS'
19824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019828 cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019833/* end confdefs.h. */
19834#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019835int
19836main ()
19837{
19838float f; finite(f);
19839 ;
19840 return 0;
19841}
Brian Gaeked59a6472004-07-21 03:33:58 +000019842_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843rm -f conftest.$ac_objext
19844if { (ac_try="$ac_compile"
19845case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_compile") 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest.$ac_objext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871esac
19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019877 ac_cv_func_finite_in_ieeefp_h=yes
19878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879 echo "$as_me: failed program was:" >&5
19880sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884
Reid Spencera773bd52006-08-04 18:18:08 +000019885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019886 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019887ac_cpp='$CPP $CPPFLAGS'
19888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019893{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19894echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019895
Brian Gaeke6802b552004-10-28 05:06:45 +000019896if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019898cat >>confdefs.h <<\_ACEOF
19899#define HAVE_FINITE_IN_IEEEFP_H 1
19900_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019901
Reid Spencerabec8f92004-10-27 23:03:44 +000019902fi
19903
19904
19905
Reid Spencer30fe5262007-01-20 07:48:49 +000019906if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019907
19908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019909for ac_header in stdlib.h unistd.h
19910do
19911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917fi
19918ac_res=`eval echo '${'$as_ac_Header'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920echo "${ECHO_T}$ac_res" >&6; }
19921else
19922 # Is the header compilable?
19923{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925cat >conftest.$ac_ext <<_ACEOF
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
19931$ac_includes_default
19932#include <$ac_header>
19933_ACEOF
19934rm -f conftest.$ac_objext
19935if { (ac_try="$ac_compile"
19936case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939esac
19940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_compile") 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
19948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952esac
19953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest.$ac_objext'
19959 { (case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962esac
19963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_try") 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_header_compiler=yes
19969else
19970 echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019973 ac_header_compiler=no
19974fi
19975
19976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978echo "${ECHO_T}$ac_header_compiler" >&6; }
19979
19980# Is the header present?
19981{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19983cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989#include <$ac_header>
19990_ACEOF
19991if { (ac_try="$ac_cpp conftest.$ac_ext"
19992case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } >/dev/null; then
20004 if test -s conftest.err; then
20005 ac_cpp_err=$ac_c_preproc_warn_flag
20006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20007 else
20008 ac_cpp_err=
20009 fi
20010else
20011 ac_cpp_err=yes
20012fi
20013if test -z "$ac_cpp_err"; then
20014 ac_header_preproc=yes
20015else
20016 echo "$as_me: failed program was:" >&5
20017sed 's/^/| /' conftest.$ac_ext >&5
20018
20019 ac_header_preproc=no
20020fi
20021
20022rm -f conftest.err conftest.$ac_ext
20023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024echo "${ECHO_T}$ac_header_preproc" >&6; }
20025
20026# So? What about this header?
20027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20028 yes:no: )
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033 ac_header_preproc=yes
20034 ;;
20035 no:yes:* )
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20048 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020049## ------------------------------------ ##
20050## Report this to http://llvm.org/bugs/ ##
20051## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020052_ASBOX
20053 ) | sed "s/^/$as_me: WARNING: /" >&2
20054 ;;
20055esac
20056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060else
20061 eval "$as_ac_Header=\$ac_header_preproc"
20062fi
20063ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result: $ac_res" >&5
20065echo "${ECHO_T}$ac_res" >&6; }
20066
20067fi
20068if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020069 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020071_ACEOF
20072
20073fi
20074
20075done
20076
20077
20078for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079do
20080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085else
20086 cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20094#define $ac_func innocuous_$ac_func
20095
20096/* System header to define __stub macros and hopefully few prototypes,
20097 which can conflict with char $ac_func (); below.
20098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099 <limits.h> exists even on freestanding compilers. */
20100
20101#ifdef __STDC__
20102# include <limits.h>
20103#else
20104# include <assert.h>
20105#endif
20106
20107#undef $ac_func
20108
20109/* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20112#ifdef __cplusplus
20113extern "C"
20114#endif
20115char $ac_func ();
20116/* The GNU C library defines this for functions which it implements
20117 to always fail with ENOSYS. Some functions are actually named
20118 something starting with __ and the normal name is an alias. */
20119#if defined __stub_$ac_func || defined __stub___$ac_func
20120choke me
20121#endif
20122
20123int
20124main ()
20125{
20126return $ac_func ();
20127 ;
20128 return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext conftest$ac_exeext
20132if { (ac_try="$ac_link"
20133case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20136esac
20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 eval "$as_ac_var=yes"
20166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170 eval "$as_ac_var=no"
20171fi
20172
20173rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20175fi
20176ac_res=`eval echo '${'$as_ac_var'}'`
20177 { echo "$as_me:$LINENO: result: $ac_res" >&5
20178echo "${ECHO_T}$ac_res" >&6; }
20179if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020180 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020182_ACEOF
20183
20184fi
20185done
20186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020187{ echo "$as_me:$LINENO: checking for working mmap" >&5
20188echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20189if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020192 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020193 ac_cv_func_mmap_fixed_mapped=no
20194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195 cat >conftest.$ac_ext <<_ACEOF
20196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020201$ac_includes_default
20202/* malloc might have been renamed as rpl_malloc. */
20203#undef malloc
20204
20205/* Thanks to Mike Haertel and Jim Avera for this test.
20206 Here is a matrix of mmap possibilities:
20207 mmap private not fixed
20208 mmap private fixed at somewhere currently unmapped
20209 mmap private fixed at somewhere already mapped
20210 mmap shared not fixed
20211 mmap shared fixed at somewhere currently unmapped
20212 mmap shared fixed at somewhere already mapped
20213 For private mappings, we should verify that changes cannot be read()
20214 back from the file, nor mmap's back from the file at a different
20215 address. (There have been systems where private was not correctly
20216 implemented like the infamous i386 svr4.0, and systems where the
20217 VM page cache was not coherent with the file system buffer cache
20218 like early versions of FreeBSD and possibly contemporary NetBSD.)
20219 For shared mappings, we should conversely verify that changes get
20220 propagated back to all the places they're supposed to be.
20221
20222 Grep wants private fixed already mapped.
20223 The main things grep needs to know about mmap are:
20224 * does it exist and is it safe to write into the mmap'd area
20225 * how to use it (BSD variants) */
20226
20227#include <fcntl.h>
20228#include <sys/mman.h>
20229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020230#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020231char *malloc ();
20232#endif
20233
20234/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020235#if !HAVE_GETPAGESIZE
20236/* Assume that all systems that can run configure have sys/param.h. */
20237# if !HAVE_SYS_PARAM_H
20238# define HAVE_SYS_PARAM_H 1
20239# endif
20240
John Criswell7a73b802003-06-30 21:59:07 +000020241# ifdef _SC_PAGESIZE
20242# define getpagesize() sysconf(_SC_PAGESIZE)
20243# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020244# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020245# include <sys/param.h>
20246# ifdef EXEC_PAGESIZE
20247# define getpagesize() EXEC_PAGESIZE
20248# else /* no EXEC_PAGESIZE */
20249# ifdef NBPG
20250# define getpagesize() NBPG * CLSIZE
20251# ifndef CLSIZE
20252# define CLSIZE 1
20253# endif /* no CLSIZE */
20254# else /* no NBPG */
20255# ifdef NBPC
20256# define getpagesize() NBPC
20257# else /* no NBPC */
20258# ifdef PAGESIZE
20259# define getpagesize() PAGESIZE
20260# endif /* PAGESIZE */
20261# endif /* no NBPC */
20262# endif /* no NBPG */
20263# endif /* no EXEC_PAGESIZE */
20264# else /* no HAVE_SYS_PARAM_H */
20265# define getpagesize() 8192 /* punt totally */
20266# endif /* no HAVE_SYS_PARAM_H */
20267# endif /* no _SC_PAGESIZE */
20268
20269#endif /* no HAVE_GETPAGESIZE */
20270
20271int
20272main ()
20273{
20274 char *data, *data2, *data3;
20275 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020276 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020277
20278 pagesize = getpagesize ();
20279
20280 /* First, make a file with some known garbage in it. */
20281 data = (char *) malloc (pagesize);
20282 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020283 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020284 for (i = 0; i < pagesize; ++i)
20285 *(data + i) = rand ();
20286 umask (0);
20287 fd = creat ("conftest.mmap", 0600);
20288 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020290 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020292 close (fd);
20293
20294 /* Next, try to mmap the file at a fixed address which already has
20295 something else allocated at it. If we can, also make sure that
20296 we see the same garbage. */
20297 fd = open ("conftest.mmap", O_RDWR);
20298 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299 return 1;
20300 data2 = (char *) malloc (2 * pagesize);
20301 if (!data2)
20302 return 1;
20303 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020307 for (i = 0; i < pagesize; ++i)
20308 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020310
20311 /* Finally, make sure that changes to the mapped area do not
20312 percolate back to the file as seen by read(). (This is a bug on
20313 some variants of i386 svr4.0.) */
20314 for (i = 0; i < pagesize; ++i)
20315 *(data2 + i) = *(data2 + i) + 1;
20316 data3 = (char *) malloc (pagesize);
20317 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020319 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020321 for (i = 0; i < pagesize; ++i)
20322 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020324 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020325 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020326}
20327_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328rm -f conftest$ac_exeext
20329if { (ac_try="$ac_link"
20330case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_link") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020348 ac_cv_func_mmap_fixed_mapped=yes
20349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350 echo "$as_me: program exited with status $ac_status" >&5
20351echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354( exit $ac_status )
20355ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357rm -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 +000020358fi
Reid Spencera773bd52006-08-04 18:18:08 +000020359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360
John Criswell7a73b802003-06-30 21:59:07 +000020361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20363echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020364if test $ac_cv_func_mmap_fixed_mapped = yes; then
20365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020366cat >>confdefs.h <<\_ACEOF
20367#define HAVE_MMAP 1
20368_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020369
20370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20374echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20375if test "${ac_cv_func_mmap_file+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020377else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020378 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020379ac_cpp='$CPP $CPPFLAGS'
20380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382ac_compiler_gnu=$ac_cv_c_compiler_gnu
20383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020385 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020389 /* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020394
John Criswell7a73b802003-06-30 21:59:07 +000020395#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020396#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020397#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020398
20399int
20400main ()
20401{
John Criswell7a73b802003-06-30 21:59:07 +000020402
20403 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020404 fd = creat ("foo",0777);
20405 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20406 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020407 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020408 ;
20409 return 0;
20410}
John Criswell7a73b802003-06-30 21:59:07 +000020411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412rm -f conftest$ac_exeext
20413if { (ac_try="$ac_link"
20414case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423 { (case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20426esac
20427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_try") 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020432 ac_cv_func_mmap_file=yes
20433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434 echo "$as_me: program exited with status $ac_status" >&5
20435echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438( exit $ac_status )
20439ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441rm -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 +000020442fi
Reid Spencera773bd52006-08-04 18:18:08 +000020443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444
John Criswell7a73b802003-06-30 21:59:07 +000020445 ac_ext=c
20446ac_cpp='$CPP $CPPFLAGS'
20447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450
20451
20452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20454echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020455if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457cat >>confdefs.h <<\_ACEOF
20458#define HAVE_MMAP_FILE
20459_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020460
20461 MMAP_FILE=yes
20462
20463fi
20464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020465 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20466echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20467if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020469else
Reid Spencer582a23c2004-12-29 07:07:57 +000020470 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020471 ac_cv_need_dev_zero_for_mmap=yes
20472 else
20473 ac_cv_need_dev_zero_for_mmap=no
20474 fi
20475
20476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20478echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020479if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481cat >>confdefs.h <<\_ACEOF
20482#define NEED_DEV_ZERO_FOR_MMAP 1
20483_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020484
20485fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020486
Reid Spencer30fe5262007-01-20 07:48:49 +000020487 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20488 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20490echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020491 fi
20492 if test "$ac_cv_func_mmap_file" = "no"
20493 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20495echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020496 fi
John Criswellb13092b2003-07-22 21:00:24 +000020497fi
John Criswell7a73b802003-06-30 21:59:07 +000020498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020499{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20500echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020501ac_ext=cpp
20502ac_cpp='$CXXCPP $CPPFLAGS'
20503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507cat >conftest.$ac_ext <<_ACEOF
20508/* confdefs.h. */
20509_ACEOF
20510cat confdefs.h >>conftest.$ac_ext
20511cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020512/* end confdefs.h. */
20513int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020514 volatile unsigned long val = 1;
20515 __sync_synchronize();
20516 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020517 __sync_add_and_fetch(&val, 1);
20518 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020519 return 0;
20520 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020521
20522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020523rm -f conftest.$ac_objext conftest$ac_exeext
20524if { (ac_try="$ac_link"
20525case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20528esac
20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_link") 2>conftest.er1
20531 ac_status=$?
20532 grep -v '^ *+' conftest.er1 >conftest.err
20533 rm -f conftest.er1
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20541esac
20542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; } &&
20547 { ac_try='test -s conftest$ac_exeext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020557 ac_ext=c
20558ac_cpp='$CPP $CPPFLAGS'
20559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563 { echo "$as_me:$LINENO: result: yes" >&5
20564echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020567#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020569
Owen Andersond4b272b2009-05-18 23:58:51 +000020570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 { echo "$as_me:$LINENO: result: no" >&5
20575echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020578#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579_ACEOF
20580
20581 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20582echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584
Owen Andersond4b272b2009-05-18 23:58:51 +000020585rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020587
John Criswell7a73b802003-06-30 21:59:07 +000020588
Nick Lewycky4372e692009-09-29 06:18:23 +000020589if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020590 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20591echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20592if test "${llvm_cv_linux_mixed+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020594else
20595 ac_ext=c
20596ac_cpp='$CPP $CPPFLAGS'
20597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20599ac_compiler_gnu=$ac_cv_c_compiler_gnu
20600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601 cat >conftest.$ac_ext <<_ACEOF
20602/* confdefs.h. */
20603_ACEOF
20604cat confdefs.h >>conftest.$ac_ext
20605cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020606/* end confdefs.h. */
20607#ifndef __x86_64__
20608 error: Not x86-64 even if uname says so!
20609 #endif
20610
20611int
20612main ()
20613{
20614
20615 ;
20616 return 0;
20617}
20618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020619rm -f conftest.$ac_objext
20620if { (ac_try="$ac_compile"
20621case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624esac
20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020653 llvm_cv_linux_mixed=no
20654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660
Nick Lewycky4372e692009-09-29 06:18:23 +000020661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 ac_ext=c
20663ac_cpp='$CPP $CPPFLAGS'
20664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20671echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020672
20673 if test "$llvm_cv_linux_mixed" = "yes"; then
20674 llvm_cv_target_arch="x86"
20675 ARCH="x86"
20676 fi
20677fi
20678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679
Reid Spencer9372f152007-07-30 20:13:24 +000020680for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681do
20682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687else
20688 cat >conftest.$ac_ext <<_ACEOF
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20696#define $ac_func innocuous_$ac_func
20697
20698/* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char $ac_func (); below.
20700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701 <limits.h> exists even on freestanding compilers. */
20702
20703#ifdef __STDC__
20704# include <limits.h>
20705#else
20706# include <assert.h>
20707#endif
20708
20709#undef $ac_func
20710
20711/* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20714#ifdef __cplusplus
20715extern "C"
20716#endif
20717char $ac_func ();
20718/* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721#if defined __stub_$ac_func || defined __stub___$ac_func
20722choke me
20723#endif
20724
20725int
20726main ()
20727{
20728return $ac_func ();
20729 ;
20730 return 0;
20731}
20732_ACEOF
20733rm -f conftest.$ac_objext conftest$ac_exeext
20734if { (ac_try="$ac_link"
20735case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738esac
20739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_link") 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751esac
20752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest$ac_exeext'
20758 { (case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761esac
20762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_try") 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 eval "$as_ac_var=yes"
20768else
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 eval "$as_ac_var=no"
20773fi
20774
20775rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777fi
20778ac_res=`eval echo '${'$as_ac_var'}'`
20779 { echo "$as_me:$LINENO: result: $ac_res" >&5
20780echo "${ECHO_T}$ac_res" >&6; }
20781if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020782 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020784_ACEOF
20785
20786fi
20787done
20788
20789
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020790SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020791
20792
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020793SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20794
20795
Jeff Cohen28783c32007-01-12 18:22:38 +000020796if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020797 prefix="/usr/local"
20798fi
Reid Spencere9de0912004-08-20 09:03:57 +000020799eval LLVM_PREFIX="${prefix}";
20800eval LLVM_BINDIR="${prefix}/bin";
20801eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020802eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020803eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020804eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020805eval LLVM_INCLUDEDIR="${prefix}/include";
20806eval LLVM_INFODIR="${prefix}/info";
20807eval LLVM_MANDIR="${prefix}/man";
20808LLVM_CONFIGTIME=`date`
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020820
Reid Spencere9de0912004-08-20 09:03:57 +000020821cat >>confdefs.h <<_ACEOF
20822#define LLVM_PREFIX "$LLVM_PREFIX"
20823_ACEOF
20824
20825
20826cat >>confdefs.h <<_ACEOF
20827#define LLVM_BINDIR "$LLVM_BINDIR"
20828_ACEOF
20829
20830
20831cat >>confdefs.h <<_ACEOF
20832#define LLVM_LIBDIR "$LLVM_LIBDIR"
20833_ACEOF
20834
20835
20836cat >>confdefs.h <<_ACEOF
20837#define LLVM_DATADIR "$LLVM_DATADIR"
20838_ACEOF
20839
20840
20841cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020842#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020843_ACEOF
20844
20845
20846cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020847#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020848_ACEOF
20849
20850
20851cat >>confdefs.h <<_ACEOF
20852#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20853_ACEOF
20854
20855
20856cat >>confdefs.h <<_ACEOF
20857#define LLVM_INFODIR "$LLVM_INFODIR"
20858_ACEOF
20859
20860
20861cat >>confdefs.h <<_ACEOF
20862#define LLVM_MANDIR "$LLVM_MANDIR"
20863_ACEOF
20864
20865
20866cat >>confdefs.h <<_ACEOF
20867#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20868_ACEOF
20869
20870
Eric Christopher790e11c2007-12-01 00:34:39 +000020871cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020872#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020873_ACEOF
20874
20875
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020876if test "$BINDINGS_TO_BUILD" = auto ; then
20877 BINDINGS_TO_BUILD=""
20878 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20879 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20880 fi
20881fi
20882BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20883
20884
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020885ALL_BINDINGS=ocaml
20886
20887
Gordon Henriksenf0915682007-10-02 16:42:22 +000020888binding_prereqs_failed=0
20889for a_binding in $BINDINGS_TO_BUILD ; do
20890 case "$a_binding" in
20891 ocaml)
20892 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020893 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20894echo "$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 +000020895 binding_prereqs_failed=1
20896 fi
20897 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20899echo "$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 +000020900 binding_prereqs_failed=1
20901 fi
20902 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20904echo "$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 +000020905 fi
20906 if test "x$with_ocaml_libdir" != xauto ; then
20907 OCAML_LIBDIR=$with_ocaml_libdir
20908
20909 else
20910 ocaml_stdlib="`"$OCAMLC" -where`"
20911 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20912 then
20913 # ocaml stdlib is beneath our prefix; use stdlib
20914 OCAML_LIBDIR=$ocaml_stdlib
20915
20916 else
20917 # ocaml stdlib is outside our prefix; use libdir/ocaml
20918 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20919
20920 fi
20921 fi
20922 ;;
20923 esac
20924done
20925if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020926 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20927echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20928 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020929fi
20930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020931{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20932echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20933if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020935else
20936 ac_ext=cpp
20937ac_cpp='$CXXCPP $CPPFLAGS'
20938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000020943 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944 cat >conftest.$ac_ext <<_ACEOF
20945/* confdefs.h. */
20946_ACEOF
20947cat confdefs.h >>conftest.$ac_ext
20948cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020949/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020950template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020951int
20952main ()
20953{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000020954X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020955 ;
20956 return 0;
20957}
20958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020959rm -f conftest.$ac_objext
20960if { (ac_try="$ac_compile"
20961case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964esac
20965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987esac
20988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_try") 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020993 llvm_cv_cxx_visibility_inlines_hidden=yes
20994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
20998 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 CXXFLAGS="$oldcxxflags"
21003 ac_ext=c
21004ac_cpp='$CPP $CPPFLAGS'
21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21012echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021013if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21014 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21015
21016else
21017 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21018
21019fi
21020
Gordon Henriksenf0915682007-10-02 16:42:22 +000021021
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021022if test "$llvm_cv_link_use_r" = "yes" ; then
21023 RPATH="-Wl,-R"
21024else
21025 RPATH="-Wl,-rpath"
21026fi
21027
21028
21029if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21030 RDYNAMIC="-Wl,-export-dynamic"
21031else
21032 RDYNAMIC=""
21033fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021034
21035
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021036
Eric Christophera1cba682010-08-08 02:44:25 +000021037ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021038
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021039
21040
21041
21042
21043
Douglas Gregor1555a232009-06-16 20:12:29 +000021044ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21045
21046ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21047
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021048ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21049
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021050ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21051
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021052ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021053
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021054
Reid Spencera773bd52006-08-04 18:18:08 +000021055ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021056
Eric Christopher360fa9a2011-10-26 00:42:12 +000021057
Reid Spencerea949cf2006-08-16 00:45:38 +000021058ac_config_files="$ac_config_files llvm.spec"
21059
21060
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021061ac_config_files="$ac_config_files docs/doxygen.cfg"
21062
Eric Christopher63c09512012-02-02 00:16:55 +000021063
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021064if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021065 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021066fi
Eric Christopher63c09512012-02-02 00:16:55 +000021067if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021068 configh="include/clang/Config/config.h"
21069 doxy="docs/doxygen.cfg"
21070 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021071
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021072 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021073
21074fi
21075
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021076ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021077
Eric Christopher360fa9a2011-10-26 00:42:12 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021080
Reid Spencera773bd52006-08-04 18:18:08 +000021081ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021082
21083
Reid Spencera773bd52006-08-04 18:18:08 +000021084ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021085
21086
Reid Spencera773bd52006-08-04 18:18:08 +000021087ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021088
21089
Reid Spencera773bd52006-08-04 18:18:08 +000021090ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021091
21092
Reid Spencer8b2e1412006-11-17 03:32:33 +000021093ac_config_commands="$ac_config_commands runtime/Makefile"
21094
21095
Reid Spencera773bd52006-08-04 18:18:08 +000021096ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021097
21098
Reid Spencera773bd52006-08-04 18:18:08 +000021099ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021100
21101
Bill Wendlingf24eb392009-01-04 23:12:30 +000021102ac_config_commands="$ac_config_commands unittests/Makefile"
21103
21104
Reid Spencera773bd52006-08-04 18:18:08 +000021105ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021106
21107
Reid Spencera773bd52006-08-04 18:18:08 +000021108ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021109
21110
Reid Spencera773bd52006-08-04 18:18:08 +000021111ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021112
21113
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021114ac_config_commands="$ac_config_commands bindings/Makefile"
21115
21116
21117ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21118
21119
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021120
John Criswell7a73b802003-06-30 21:59:07 +000021121cat >confcache <<\_ACEOF
21122# This file is a shell script that caches the results of configure
21123# tests run on this system so they can be shared between configure
21124# scripts and configure runs, see configure's option --config-cache.
21125# It is not useful on other systems. If it contains results you don't
21126# want to keep, you may remove or edit it.
21127#
21128# config.status only pays attention to the cache file if you give it
21129# the --recheck option to rerun configure.
21130#
John Criswell0c38eaf2003-09-10 15:17:25 +000021131# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021132# loading this file, other *unset* `ac_cv_foo' will be assigned the
21133# following values.
21134
21135_ACEOF
21136
21137# The following way of writing the cache mishandles newlines in values,
21138# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021139# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021140# Ultrix sh set writes to stderr and can't be redirected directly,
21141# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021142(
21143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21144 eval ac_val=\$$ac_var
21145 case $ac_val in #(
21146 *${as_nl}*)
21147 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21149echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021150 esac
21151 case $ac_var in #(
21152 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021153 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021154 esac ;;
21155 esac
21156 done
21157
John Criswell7a73b802003-06-30 21:59:07 +000021158 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21160 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 # `set' does not quote correctly, so add quotes (double-quote
21162 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021163 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 "s/'/'\\\\''/g;
21165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021166 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021167 *)
21168 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021171 esac |
21172 sort
21173) |
John Criswell7a73b802003-06-30 21:59:07 +000021174 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021175 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021176 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021177 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21179 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21181 :end' >>confcache
21182if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21183 if test -w "$cache_file"; then
21184 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21186echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021187 cat confcache >$cache_file
21188 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21190echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021191 fi
21192fi
21193rm -f confcache
21194
21195test "x$prefix" = xNONE && prefix=$ac_default_prefix
21196# Let make expand exec_prefix.
21197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21198
John Criswell7a73b802003-06-30 21:59:07 +000021199DEFS=-DHAVE_CONFIG_H
21200
John Criswell0c38eaf2003-09-10 15:17:25 +000021201ac_libobjs=
21202ac_ltlibobjs=
21203for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021206 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21208 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21210 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021211done
21212LIBOBJS=$ac_libobjs
21213
21214LTLIBOBJS=$ac_ltlibobjs
21215
21216
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021217if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21219Usually this means the macro was only invoked conditionally." >&5
21220echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21221Usually this means the macro was only invoked conditionally." >&2;}
21222 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021223fi
21224if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226Usually this means the macro was only invoked conditionally." >&5
21227echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21228Usually this means the macro was only invoked conditionally." >&2;}
21229 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021230fi
John Criswell7a73b802003-06-30 21:59:07 +000021231
21232: ${CONFIG_STATUS=./config.status}
21233ac_clean_files_save=$ac_clean_files
21234ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21236echo "$as_me: creating $CONFIG_STATUS" >&6;}
21237cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021238#! $SHELL
21239# Generated by $as_me.
21240# Run this file to recreate the current configuration.
21241# Compiler output produced by configure, useful for debugging
21242# configure, is in config.log if it exists.
21243
21244debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021245ac_cs_recheck=false
21246ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021247SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021248_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250cat >>$CONFIG_STATUS <<\_ACEOF
21251## --------------------- ##
21252## M4sh Initialization. ##
21253## --------------------- ##
21254
21255# Be Bourne compatible
21256if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021257 emulate sh
21258 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021260 # is contrary to our usage. Disable this feature.
21261 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021262 setopt NO_GLOB_SUBST
21263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266BIN_SH=xpg4; export BIN_SH # for Tru64
21267DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021268
John Criswell7a73b802003-06-30 21:59:07 +000021269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021270# PATH needs CR
21271# Avoid depending upon Character Ranges.
21272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275as_cr_digits='0123456789'
21276as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021277
21278# The user is always right.
21279if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280 echo "#! /bin/sh" >conf$$.sh
21281 echo "exit 0" >>conf$$.sh
21282 chmod +x conf$$.sh
21283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21284 PATH_SEPARATOR=';'
21285 else
21286 PATH_SEPARATOR=:
21287 fi
21288 rm -f conf$$.sh
21289fi
21290
21291# Support unset when possible.
21292if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21293 as_unset=unset
21294else
21295 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021296fi
John Criswell7a73b802003-06-30 21:59:07 +000021297
Reid Spencera773bd52006-08-04 18:18:08 +000021298
21299# IFS
21300# We need space, tab and new line, in precisely that order. Quoting is
21301# there to prevent editors from complaining about space-tab.
21302# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21303# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304as_nl='
21305'
Reid Spencera773bd52006-08-04 18:18:08 +000021306IFS=" "" $as_nl"
21307
21308# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021310 *[\\/]* ) as_myself=$0 ;;
21311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021312for as_dir in $PATH
21313do
21314 IFS=$as_save_IFS
21315 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21317done
Reid Spencera773bd52006-08-04 18:18:08 +000021318IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021319
Reid Spencera773bd52006-08-04 18:18:08 +000021320 ;;
21321esac
21322# We did not find ourselves, most probably we were run as `sh COMMAND'
21323# in which case we are not to be found in the path.
21324if test "x$as_myself" = x; then
21325 as_myself=$0
21326fi
21327if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021330fi
21331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332# Work around bugs in pre-3.0 UWIN ksh.
21333for as_var in ENV MAIL MAILPATH
21334do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021335done
21336PS1='$ '
21337PS2='> '
21338PS4='+ '
21339
21340# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341for as_var in \
21342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21344 LC_TELEPHONE LC_TIME
21345do
21346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21347 eval $as_var=C; export $as_var
21348 else
21349 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021350 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021351done
Torok Edwin871384f2010-01-26 08:50:50 +000021352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021353# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021354if expr a : '\(a\)' >/dev/null 2>&1 &&
21355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21356 as_expr=expr
21357else
21358 as_expr=false
21359fi
21360
21361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21362 as_basename=basename
21363else
21364 as_basename=false
21365fi
21366
21367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021369as_me=`$as_basename -- "$0" ||
21370$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21371 X"$0" : 'X\(//\)$' \| \
21372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021374 sed '/^.*\/\([^/][^/]*\)\/*$/{
21375 s//\1/
21376 q
21377 }
21378 /^X\/\(\/\/\)$/{
21379 s//\1/
21380 q
21381 }
21382 /^X\/\(\/\).*/{
21383 s//\1/
21384 q
21385 }
21386 s/.*/./; q'`
21387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388# CDPATH.
21389$as_unset CDPATH
21390
21391
21392
21393 as_lineno_1=$LINENO
21394 as_lineno_2=$LINENO
21395 test "x$as_lineno_1" != "x$as_lineno_2" &&
21396 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21397
21398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21399 # uniformly replaced by the line number. The first 'sed' inserts a
21400 # line-number line after each line using $LINENO; the second 'sed'
21401 # does the real work. The second script uses 'N' to pair each
21402 # line-number line with the line containing $LINENO, and appends
21403 # trailing '-' during substitution so that $LINENO is not a special
21404 # case at line end.
21405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21406 # scripts with optimization help from Paolo Bonzini. Blame Lee
21407 # E. McMahon (1931-1989) for sed's syntax. :-)
21408 sed -n '
21409 p
21410 /[$]LINENO/=
21411 ' <$as_myself |
21412 sed '
21413 s/[$]LINENO.*/&-/
21414 t lineno
21415 b
21416 :lineno
21417 N
21418 :loop
21419 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21420 t loop
21421 s/-\n.*//
21422 ' >$as_me.lineno &&
21423 chmod +x "$as_me.lineno" ||
21424 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21425 { (exit 1); exit 1; }; }
21426
21427 # Don't try to exec as it changes $[0], causing all sort of problems
21428 # (the dirname of $[0] is not the place where we might find the
21429 # original and so on. Autoconf is especially sensitive to this).
21430 . "./$as_me.lineno"
21431 # Exit status is that of the last command.
21432 exit
21433}
21434
21435
21436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21437 as_dirname=dirname
21438else
21439 as_dirname=false
21440fi
Reid Spencera773bd52006-08-04 18:18:08 +000021441
21442ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021444-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021447 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021448 esac;;
21449*)
21450 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021451esac
21452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021453if expr a : '\(a\)' >/dev/null 2>&1 &&
21454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21455 as_expr=expr
21456else
21457 as_expr=false
21458fi
21459
John Criswell7a73b802003-06-30 21:59:07 +000021460rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021461if test -d conf$$.dir; then
21462 rm -f conf$$.dir/conf$$.file
21463else
21464 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467echo >conf$$.file
21468if ln -s conf$$.file conf$$ 2>/dev/null; then
21469 as_ln_s='ln -s'
21470 # ... but there are two gotchas:
21471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21473 # In both cases, we have to default to `cp -p'.
21474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021475 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476elif ln conf$$.file conf$$ 2>/dev/null; then
21477 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021478else
21479 as_ln_s='cp -p'
21480fi
Reid Spencera773bd52006-08-04 18:18:08 +000021481rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21482rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021483
John Criswell0c38eaf2003-09-10 15:17:25 +000021484if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021486else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021487 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021488 as_mkdir_p=false
21489fi
21490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21492# systems may use methods other than mode bits to determine executability.
21493cat >conf$$.file <<_ASEOF
21494#! /bin/sh
21495exit 0
21496_ASEOF
21497chmod +x conf$$.file
21498if test -x conf$$.file >/dev/null 2>&1; then
21499 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021504
21505# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021507
21508# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021510
21511
John Criswell7a73b802003-06-30 21:59:07 +000021512exec 6>&1
21513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021515# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021516# values after options handling.
21517ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021518This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021520
21521 CONFIG_FILES = $CONFIG_FILES
21522 CONFIG_HEADERS = $CONFIG_HEADERS
21523 CONFIG_LINKS = $CONFIG_LINKS
21524 CONFIG_COMMANDS = $CONFIG_COMMANDS
21525 $ $0 $@
21526
Reid Spencera773bd52006-08-04 18:18:08 +000021527on `(hostname || uname -n) 2>/dev/null | sed 1q`
21528"
21529
John Criswell7a73b802003-06-30 21:59:07 +000021530_ACEOF
21531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021532cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021533# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021534config_files="$ac_config_files"
21535config_headers="$ac_config_headers"
21536config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021537
Reid Spencera773bd52006-08-04 18:18:08 +000021538_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021541ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542\`$as_me' instantiates files from templates according to the
21543current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021546
21547 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548 -V, --version print version number, then exit
21549 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021550 -d, --debug don't remove temporary files
21551 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 --file=FILE[:TEMPLATE]
21553 instantiate the configuration file FILE
21554 --header=FILE[:TEMPLATE]
21555 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021556
21557Configuration files:
21558$config_files
21559
21560Configuration headers:
21561$config_headers
21562
John Criswellc764fbc2003-09-06 15:17:13 +000021563Configuration commands:
21564$config_commands
21565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021566Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021567
Reid Spencera773bd52006-08-04 18:18:08 +000021568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021570ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021571LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572configured by $0, generated by GNU Autoconf 2.60,
21573 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021576This config.status script is free software; the Free Software Foundation
21577gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021578
21579ac_pwd='$ac_pwd'
21580srcdir='$srcdir'
21581INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021582_ACEOF
21583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021584cat >>$CONFIG_STATUS <<\_ACEOF
21585# If no file are specified by the user, then we need to provide default
21586# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021587ac_need_defaults=:
21588while test $# != 0
21589do
21590 case $1 in
21591 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021594 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021596 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021597 ac_option=$1
21598 ac_optarg=$2
21599 ac_shift=shift
21600 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021601 esac
21602
John Criswell0c38eaf2003-09-10 15:17:25 +000021603 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021604 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21606 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021609 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021610 debug=: ;;
21611 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021612 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021614 ac_need_defaults=false;;
21615 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021616 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021618 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021619 --he | --h)
21620 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621 { echo "$as_me: error: ambiguous option: $1
21622Try \`$0 --help' for more information." >&2
21623 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021624 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21628 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021629
21630 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631 -*) { echo "$as_me: error: unrecognized option: $1
21632Try \`$0 --help' for more information." >&2
21633 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021635 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021636 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021637
21638 esac
21639 shift
21640done
21641
John Criswell0c38eaf2003-09-10 15:17:25 +000021642ac_configure_extra_args=
21643
21644if $ac_cs_silent; then
21645 exec 6>/dev/null
21646 ac_configure_extra_args="$ac_configure_extra_args --silent"
21647fi
21648
21649_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021651if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21653 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021654 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021656fi
21657
John Criswell7a73b802003-06-30 21:59:07 +000021658_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021660exec 5>>config.log
21661{
21662 echo
21663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21664## Running $as_me. ##
21665_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021667} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021668
Reid Spencera773bd52006-08-04 18:18:08 +000021669_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021671#
Reid Spencera773bd52006-08-04 18:18:08 +000021672# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021673#
Reid Spencerc0682832005-02-24 19:05:19 +000021674llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021675
21676_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021679
21680# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021681for ac_config_target in $ac_config_targets
21682do
Reid Spencera773bd52006-08-04 18:18:08 +000021683 case $ac_config_target in
21684 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021685 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021686 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21687 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021688 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021689 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021690 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021691 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021692 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021693 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021694 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21695 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021696 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021697 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021702 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021703 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021705 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021706 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021709 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021715 esac
21716done
21717
Reid Spencera773bd52006-08-04 18:18:08 +000021718
John Criswell7a73b802003-06-30 21:59:07 +000021719# If the user did not use the arguments to specify the items to instantiate,
21720# then the envvar interface is used. Set only those that are not.
21721# We use the long form for the default assignment because of an extremely
21722# bizarre bug on SunOS 4.1.3.
21723if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021727fi
21728
John Criswell0c38eaf2003-09-10 15:17:25 +000021729# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021730# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021731# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021732# Hook for its removal unless debugging.
21733# Note that there is a small window in which the directory will not be cleaned:
21734# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021735$debug ||
21736{
Reid Spencera773bd52006-08-04 18:18:08 +000021737 tmp=
21738 trap 'exit_status=$?
21739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21740' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021742}
John Criswell7a73b802003-06-30 21:59:07 +000021743# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021744
John Criswell7a73b802003-06-30 21:59:07 +000021745{
Reid Spencera773bd52006-08-04 18:18:08 +000021746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021747 test -n "$tmp" && test -d "$tmp"
21748} ||
21749{
Reid Spencera773bd52006-08-04 18:18:08 +000021750 tmp=./conf$$-$RANDOM
21751 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752} ||
21753{
21754 echo "$me: cannot create a temporary directory in ." >&2
21755 { (exit 1); exit 1; }
21756}
John Criswell7a73b802003-06-30 21:59:07 +000021757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758#
21759# Set up the sed scripts for CONFIG_FILES section.
21760#
21761
21762# No need to generate the scripts if there are no CONFIG_FILES.
21763# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021764if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021765
21766_ACEOF
21767
Reid Spencera773bd52006-08-04 18:18:08 +000021768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769
Reid Spencera773bd52006-08-04 18:18:08 +000021770ac_delim='%!_!# '
21771for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 cat >conf$$subs.sed <<_ACEOF
21773SHELL!$SHELL$ac_delim
21774PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780exec_prefix!$exec_prefix$ac_delim
21781prefix!$prefix$ac_delim
21782program_transform_name!$program_transform_name$ac_delim
21783bindir!$bindir$ac_delim
21784sbindir!$sbindir$ac_delim
21785libexecdir!$libexecdir$ac_delim
21786datarootdir!$datarootdir$ac_delim
21787datadir!$datadir$ac_delim
21788sysconfdir!$sysconfdir$ac_delim
21789sharedstatedir!$sharedstatedir$ac_delim
21790localstatedir!$localstatedir$ac_delim
21791includedir!$includedir$ac_delim
21792oldincludedir!$oldincludedir$ac_delim
21793docdir!$docdir$ac_delim
21794infodir!$infodir$ac_delim
21795htmldir!$htmldir$ac_delim
21796dvidir!$dvidir$ac_delim
21797pdfdir!$pdfdir$ac_delim
21798psdir!$psdir$ac_delim
21799libdir!$libdir$ac_delim
21800localedir!$localedir$ac_delim
21801mandir!$mandir$ac_delim
21802DEFS!$DEFS$ac_delim
21803ECHO_C!$ECHO_C$ac_delim
21804ECHO_N!$ECHO_N$ac_delim
21805ECHO_T!$ECHO_T$ac_delim
21806LIBS!$LIBS$ac_delim
21807build_alias!$build_alias$ac_delim
21808host_alias!$host_alias$ac_delim
21809target_alias!$target_alias$ac_delim
21810LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021811CC!$CC$ac_delim
21812CFLAGS!$CFLAGS$ac_delim
21813LDFLAGS!$LDFLAGS$ac_delim
21814CPPFLAGS!$CPPFLAGS$ac_delim
21815ac_ct_CC!$ac_ct_CC$ac_delim
21816EXEEXT!$EXEEXT$ac_delim
21817OBJEXT!$OBJEXT$ac_delim
21818CXX!$CXX$ac_delim
21819CXXFLAGS!$CXXFLAGS$ac_delim
21820ac_ct_CXX!$ac_ct_CXX$ac_delim
21821CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021823ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825build!$build$ac_delim
21826build_cpu!$build_cpu$ac_delim
21827build_vendor!$build_vendor$ac_delim
21828build_os!$build_os$ac_delim
21829host!$host$ac_delim
21830host_cpu!$host_cpu$ac_delim
21831host_vendor!$host_vendor$ac_delim
21832host_os!$host_os$ac_delim
21833target!$target$ac_delim
21834target_cpu!$target_cpu$ac_delim
21835target_vendor!$target_vendor$ac_delim
21836target_os!$target_os$ac_delim
21837OS!$OS$ac_delim
21838HOST_OS!$HOST_OS$ac_delim
21839TARGET_OS!$TARGET_OS$ac_delim
21840LINKALL!$LINKALL$ac_delim
21841NOLINKALL!$NOLINKALL$ac_delim
21842LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844ARCH!$ARCH$ac_delim
21845ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846GREP!$GREP$ac_delim
21847EGREP!$EGREP$ac_delim
21848LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849BUILD_CC!$BUILD_CC$ac_delim
21850BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851BUILD_CXX!$BUILD_CXX$ac_delim
21852CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021853ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21855ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21856DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21857ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21858EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21859DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21860DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21861JIT!$JIT$ac_delim
21862TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021863ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021865LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021866ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021868ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021869ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021873 break
21874 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021878 else
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021880 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021881done
21882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21887fi
21888
21889cat >>$CONFIG_STATUS <<_ACEOF
21890cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893sed '
21894s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895s/^/s,@/; s/!/@,|#_!!_#|/
21896:n
21897t n
21898s/'"$ac_delim"'$/,g/; t
21899s/$/\\/; p
21900N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901' >>$CONFIG_STATUS <conf$$subs.sed
21902rm -f conf$$subs.sed
21903cat >>$CONFIG_STATUS <<_ACEOF
21904CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906
21907
21908ac_delim='%!_!# '
21909for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021911ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021912TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21913LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21914LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021915LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021916LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021917ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021918OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021919EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021920EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021921CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021922BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021923INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924NM!$NM$ac_delim
21925ifGNUmake!$ifGNUmake$ac_delim
21926LN_S!$LN_S$ac_delim
21927CMP!$CMP$ac_delim
21928CP!$CP$ac_delim
21929DATE!$DATE$ac_delim
21930FIND!$FIND$ac_delim
21931MKDIR!$MKDIR$ac_delim
21932MV!$MV$ac_delim
21933RANLIB!$RANLIB$ac_delim
21934AR!$AR$ac_delim
21935RM!$RM$ac_delim
21936SED!$SED$ac_delim
21937TAR!$TAR$ac_delim
21938BINPWD!$BINPWD$ac_delim
21939GRAPHVIZ!$GRAPHVIZ$ac_delim
21940DOT!$DOT$ac_delim
21941FDP!$FDP$ac_delim
21942NEATO!$NEATO$ac_delim
21943TWOPI!$TWOPI$ac_delim
21944CIRCO!$CIRCO$ac_delim
21945GV!$GV$ac_delim
21946DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021947XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948PERL!$PERL$ac_delim
21949HAVE_PERL!$HAVE_PERL$ac_delim
21950INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21951INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21952INSTALL_DATA!$INSTALL_DATA$ac_delim
21953BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021954CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955DOXYGEN!$DOXYGEN$ac_delim
21956GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021957GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958POD2HTML!$POD2HTML$ac_delim
21959POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021960PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961RUNTEST!$RUNTEST$ac_delim
21962TCLSH!$TCLSH$ac_delim
21963ZIP!$ZIP$ac_delim
21964OCAMLC!$OCAMLC$ac_delim
21965OCAMLOPT!$OCAMLOPT$ac_delim
21966OCAMLDEP!$OCAMLDEP$ac_delim
21967OCAMLDOC!$OCAMLDOC$ac_delim
21968GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021969HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21971INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21972CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21973CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21974LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21976NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21977USE_UDIS86!$USE_UDIS86$ac_delim
21978USE_OPROFILE!$USE_OPROFILE$ac_delim
21979HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21980HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21981MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021983SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21985LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21986LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21987LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21988LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21989LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21990LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21991LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21992LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21993LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21994BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21995ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021996OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21997ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21998RPATH!$RPATH$ac_delim
21999RDYNAMIC!$RDYNAMIC$ac_delim
22000LIBOBJS!$LIBOBJS$ac_delim
22001LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022002_ACEOF
22003
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005 break
22006 elif $ac_last_try; then
22007 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22008echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22009 { (exit 1); exit 1; }; }
22010 else
22011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22012 fi
22013done
22014
22015ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22016if test -n "$ac_eof"; then
22017 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22018 ac_eof=`expr $ac_eof + 1`
22019fi
22020
22021cat >>$CONFIG_STATUS <<_ACEOF
22022cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22024_ACEOF
22025sed '
22026s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22027s/^/s,@/; s/!/@,|#_!!_#|/
22028:n
22029t n
22030s/'"$ac_delim"'$/,g/; t
22031s/$/\\/; p
22032N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22033' >>$CONFIG_STATUS <conf$$subs.sed
22034rm -f conf$$subs.sed
22035cat >>$CONFIG_STATUS <<_ACEOF
22036:end
22037s/|#_!!_#|//g
22038CEOF$ac_eof
22039_ACEOF
22040
22041
Reid Spencera773bd52006-08-04 18:18:08 +000022042# VPATH may cause trouble with some makes, so we remove $(srcdir),
22043# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22044# trailing colons and then remove the whole line if VPATH becomes empty
22045# (actually we leave an empty line to preserve line numbers).
22046if test "x$srcdir" = x.; then
22047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22048s/:*\$(srcdir):*/:/
22049s/:*\${srcdir}:*/:/
22050s/:*@srcdir@:*/:/
22051s/^\([^=]*=[ ]*\):*/\1/
22052s/:*$//
22053s/^[^=]*=[ ]*$//
22054}'
22055fi
22056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022058fi # test -n "$CONFIG_FILES"
22059
Reid Spencera773bd52006-08-04 18:18:08 +000022060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022062do
22063 case $ac_tag in
22064 :[FHLC]) ac_mode=$ac_tag; continue;;
22065 esac
22066 case $ac_mode$ac_tag in
22067 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22069echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22070 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022071 :[FH]-) ac_tag=-:-;;
22072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22073 esac
22074 ac_save_IFS=$IFS
22075 IFS=:
22076 set x $ac_tag
22077 IFS=$ac_save_IFS
22078 shift
22079 ac_file=$1
22080 shift
22081
22082 case $ac_mode in
22083 :L) ac_source=$1;;
22084 :[FH])
22085 ac_file_inputs=
22086 for ac_f
22087 do
22088 case $ac_f in
22089 -) ac_f="$tmp/stdin";;
22090 *) # Look for the file first in the build tree, then in the source tree
22091 # (if the path is not absolute). The absolute path cannot be DOS-style,
22092 # because $ac_f cannot contain `:'.
22093 test -f "$ac_f" ||
22094 case $ac_f in
22095 [\\/$]*) false;;
22096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22097 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22099echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22100 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022101 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022103 done
22104
22105 # Let's still pretend it is `configure' which instantiates (i.e., don't
22106 # use $as_me), people would be surprised to read:
22107 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022108 configure_input="Generated from "`IFS=:
22109 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022110 if test x"$ac_file" != x-; then
22111 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 { echo "$as_me:$LINENO: creating $ac_file" >&5
22113echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022114 fi
22115
22116 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022118 esac
22119 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022120 esac
22121
Reid Spencera773bd52006-08-04 18:18:08 +000022122 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022124 X"$ac_file" : 'X\(//\)[^/]' \| \
22125 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022127echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22129 s//\1/
22130 q
22131 }
22132 /^X\(\/\/\)[^/].*/{
22133 s//\1/
22134 q
22135 }
22136 /^X\(\/\/\)$/{
22137 s//\1/
22138 q
22139 }
22140 /^X\(\/\).*/{
22141 s//\1/
22142 q
22143 }
22144 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145 { as_dir="$ac_dir"
22146 case $as_dir in #(
22147 -*) as_dir=./$as_dir;;
22148 esac
22149 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22150 as_dirs=
22151 while :; do
22152 case $as_dir in #(
22153 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22154 *) as_qdir=$as_dir;;
22155 esac
22156 as_dirs="'$as_qdir' $as_dirs"
22157 as_dir=`$as_dirname -- "$as_dir" ||
22158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159 X"$as_dir" : 'X\(//\)[^/]' \| \
22160 X"$as_dir" : 'X\(//\)$' \| \
22161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22162echo X"$as_dir" |
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164 s//\1/
22165 q
22166 }
22167 /^X\(\/\/\)[^/].*/{
22168 s//\1/
22169 q
22170 }
22171 /^X\(\/\/\)$/{
22172 s//\1/
22173 q
22174 }
22175 /^X\(\/\).*/{
22176 s//\1/
22177 q
22178 }
22179 s/.*/./; q'`
22180 test -d "$as_dir" && break
22181 done
22182 test -z "$as_dirs" || eval "mkdir $as_dirs"
22183 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22184echo "$as_me: error: cannot create directory $as_dir" >&2;}
22185 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022186 ac_builddir=.
22187
Reid Spencera773bd52006-08-04 18:18:08 +000022188case "$ac_dir" in
22189.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22190*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022192 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022193 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022194 case $ac_top_builddir_sub in
22195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197 esac ;;
22198esac
22199ac_abs_top_builddir=$ac_pwd
22200ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201# for backward compatibility:
22202ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022203
22204case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022205 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022206 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022207 ac_top_srcdir=$ac_top_builddir_sub
22208 ac_abs_top_srcdir=$ac_pwd ;;
22209 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022210 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022211 ac_top_srcdir=$srcdir
22212 ac_abs_top_srcdir=$srcdir ;;
22213 *) # Relative name.
22214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215 ac_top_srcdir=$ac_top_build_prefix$srcdir
22216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022217esac
Reid Spencera773bd52006-08-04 18:18:08 +000022218ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022219
John Criswell7a73b802003-06-30 21:59:07 +000022220
Reid Spencera773bd52006-08-04 18:18:08 +000022221 case $ac_mode in
22222 :F)
22223 #
22224 # CONFIG_FILE
22225 #
John Criswell7a73b802003-06-30 21:59:07 +000022226
22227 case $INSTALL in
22228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022230 esac
John Criswell7a73b802003-06-30 21:59:07 +000022231_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022233cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022234# If the template does not know about datarootdir, expand it.
22235# FIXME: This hack should be removed a few years after 2.60.
22236ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237
22238case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022239 p
22240 q
22241}
22242/@datadir@/p
22243/@docdir@/p
22244/@infodir@/p
22245/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246/@mandir@/p
22247' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022248*datarootdir*) ac_datarootdir_seen=yes;;
22249*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022252_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022253cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022254 ac_datarootdir_hack='
22255 s&@datadir@&$datadir&g
22256 s&@docdir@&$docdir&g
22257 s&@infodir@&$infodir&g
22258 s&@localedir@&$localedir&g
22259 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261esac
22262_ACEOF
22263
22264# Neutralize VPATH when `$srcdir' = `.'.
22265# Shell code in configure.ac might set extrasub.
22266# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022267cat >>$CONFIG_STATUS <<_ACEOF
22268 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022269$extrasub
22270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022272:t
22273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022275s&@top_builddir@&$ac_top_builddir_sub&;t t
22276s&@srcdir@&$ac_srcdir&;t t
22277s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278s&@top_srcdir@&$ac_top_srcdir&;t t
22279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280s&@builddir@&$ac_builddir&;t t
22281s&@abs_builddir@&$ac_abs_builddir&;t t
22282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283s&@INSTALL@&$ac_INSTALL&;t t
22284$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022285" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022286
Reid Spencera773bd52006-08-04 18:18:08 +000022287test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022291which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022292echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022293which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022294
Reid Spencera773bd52006-08-04 18:18:08 +000022295 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022296 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297 -) cat "$tmp/out"; rm -f "$tmp/out";;
22298 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22299 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022300 ;;
22301 :H)
22302 #
22303 # CONFIG_HEADER
22304 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305_ACEOF
22306
22307# Transform confdefs.h into a sed script `conftest.defines', that
22308# substitutes the proper values into config.h.in to produce config.h.
22309rm -f conftest.defines conftest.tail
22310# First, append a space to every undef/define line, to ease matching.
22311echo 's/$/ /' >conftest.defines
22312# Then, protect against being on the right side of a sed subst, or in
22313# an unquoted here document, in config.status. If some macros were
22314# called several times there might be several #defines for the same
22315# symbol, which is useless. But do not sort them, since the last
22316# AC_DEFINE must be honored.
22317ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22319# NAME is the cpp macro being defined, VALUE is the value it is being given.
22320# PARAMS is the parameter list in the macro definition--in most cases, it's
22321# just an empty string.
22322ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22323ac_dB='\\)[ (].*,\\1define\\2'
22324ac_dC=' '
22325ac_dD=' ,'
22326
22327uniq confdefs.h |
22328 sed -n '
22329 t rset
22330 :rset
22331 s/^[ ]*#[ ]*define[ ][ ]*//
22332 t ok
22333 d
22334 :ok
22335 s/[\\&,]/\\&/g
22336 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22337 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22338 ' >>conftest.defines
22339
22340# Remove the space that was appended to ease matching.
22341# Then replace #undef with comments. This is necessary, for
22342# example, in the case of _POSIX_SOURCE, which is predefined and required
22343# on some systems where configure will not decide to define it.
22344# (The regexp can be short, since the line contains either #define or #undef.)
22345echo 's/ $//
22346s,^[ #]*u.*,/* & */,' >>conftest.defines
22347
22348# Break up conftest.defines:
22349ac_max_sed_lines=50
22350
22351# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22352# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22353# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22354# et cetera.
22355ac_in='$ac_file_inputs'
22356ac_out='"$tmp/out1"'
22357ac_nxt='"$tmp/out2"'
22358
22359while :
22360do
22361 # Write a here document:
22362 cat >>$CONFIG_STATUS <<_ACEOF
22363 # First, check the format of the line:
22364 cat >"\$tmp/defines.sed" <<\\CEOF
22365/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22366/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22367b
22368:def
22369_ACEOF
22370 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22371 echo 'CEOF
22372 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22373 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22374 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22375 grep . conftest.tail >/dev/null || break
22376 rm -f conftest.defines
22377 mv conftest.tail conftest.defines
22378done
22379rm -f conftest.defines conftest.tail
22380
22381echo "ac_result=$ac_in" >>$CONFIG_STATUS
22382cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022383 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022384 echo "/* $configure_input */" >"$tmp/config.h"
22385 cat "$ac_result" >>"$tmp/config.h"
22386 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22387 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22388echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022389 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 rm -f $ac_file
22391 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022392 fi
22393 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394 echo "/* $configure_input */"
22395 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022396 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022397 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022398 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022400 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22401echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022402 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022403 esac
John Criswell7a73b802003-06-30 21:59:07 +000022404
Reid Spencera773bd52006-08-04 18:18:08 +000022405
22406 case $ac_file$ac_mode in
22407 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022409 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022411 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022413 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022415 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022417 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022419 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022421 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022423 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022425 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022427 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022429 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022431 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022432 ${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 +000022433
22434 esac
22435done # for ac_tag
22436
John Criswell7a73b802003-06-30 21:59:07 +000022437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022438{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022440chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022441ac_clean_files=$ac_clean_files_save
22442
22443
22444# configure is writing to config.log, and then calls config.status.
22445# config.status does its own redirection, appending to config.log.
22446# Unfortunately, on DOS this fails, as config.log is still kept open
22447# by configure, so config.status won't be able to write to it; its
22448# output is simply discarded. So we exec the FD to /dev/null,
22449# effectively closing config.log, so it can be properly (re)opened and
22450# appended to by config.status. When coming back to configure, we
22451# need to make the FD available again.
22452if test "$no_create" != yes; then
22453 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022454 ac_config_status_args=
22455 test "$silent" = yes &&
22456 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022457 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022459 exec 5>>config.log
22460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22461 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022462 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022463fi
22464
John Criswell12399a12003-09-30 15:55:44 +000022465#
22466# CONFIG_SUBDIRS section.
22467#
22468if test "$no_recursion" != yes; then
22469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022470 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022471 ac_sub_configure_args=
22472 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022473 eval "set x $ac_configure_args"
22474 shift
22475 for ac_arg
22476 do
John Criswell12399a12003-09-30 15:55:44 +000022477 if test -n "$ac_prev"; then
22478 ac_prev=
22479 continue
22480 fi
22481 case $ac_arg in
22482 -cache-file | --cache-file | --cache-fil | --cache-fi \
22483 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22484 ac_prev=cache_file ;;
22485 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22486 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22487 | --c=*)
22488 ;;
22489 --config-cache | -C)
22490 ;;
22491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22492 ac_prev=srcdir ;;
22493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22494 ;;
22495 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22496 ac_prev=prefix ;;
22497 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22498 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022499 *)
22500 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022502 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022504 esac
22505 done
22506
22507 # Always prepend --prefix to ensure using the same prefix
22508 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022509 ac_arg="--prefix=$prefix"
22510 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022512 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022513 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022514
22515 ac_popdir=`pwd`
22516 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22517
22518 # Do not complain, so a configure script can configure whichever
22519 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022520 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022521
Reid Spencera773bd52006-08-04 18:18:08 +000022522 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523 echo "$as_me:$LINENO: $ac_msg" >&5
22524 echo "$ac_msg" >&6
22525 { as_dir="$ac_dir"
22526 case $as_dir in #(
22527 -*) as_dir=./$as_dir;;
22528 esac
22529 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22530 as_dirs=
22531 while :; do
22532 case $as_dir in #(
22533 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22534 *) as_qdir=$as_dir;;
22535 esac
22536 as_dirs="'$as_qdir' $as_dirs"
22537 as_dir=`$as_dirname -- "$as_dir" ||
22538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$as_dir" : 'X\(//\)[^/]' \| \
22540 X"$as_dir" : 'X\(//\)$' \| \
22541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22542echo X"$as_dir" |
22543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22544 s//\1/
22545 q
22546 }
22547 /^X\(\/\/\)[^/].*/{
22548 s//\1/
22549 q
22550 }
22551 /^X\(\/\/\)$/{
22552 s//\1/
22553 q
22554 }
22555 /^X\(\/\).*/{
22556 s//\1/
22557 q
22558 }
22559 s/.*/./; q'`
22560 test -d "$as_dir" && break
22561 done
22562 test -z "$as_dirs" || eval "mkdir $as_dirs"
22563 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22564echo "$as_me: error: cannot create directory $as_dir" >&2;}
22565 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022566 ac_builddir=.
22567
Reid Spencera773bd52006-08-04 18:18:08 +000022568case "$ac_dir" in
22569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22570*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022572 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022574 case $ac_top_builddir_sub in
22575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22577 esac ;;
22578esac
22579ac_abs_top_builddir=$ac_pwd
22580ac_abs_builddir=$ac_pwd$ac_dir_suffix
22581# for backward compatibility:
22582ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022583
22584case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022585 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022586 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022587 ac_top_srcdir=$ac_top_builddir_sub
22588 ac_abs_top_srcdir=$ac_pwd ;;
22589 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022590 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022591 ac_top_srcdir=$srcdir
22592 ac_abs_top_srcdir=$srcdir ;;
22593 *) # Relative name.
22594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22595 ac_top_srcdir=$ac_top_build_prefix$srcdir
22596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022597esac
Reid Spencera773bd52006-08-04 18:18:08 +000022598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022599
22600
Reid Spencera773bd52006-08-04 18:18:08 +000022601 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022602
22603 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022604 if test -f "$ac_srcdir/configure.gnu"; then
22605 ac_sub_configure=$ac_srcdir/configure.gnu
22606 elif test -f "$ac_srcdir/configure"; then
22607 ac_sub_configure=$ac_srcdir/configure
22608 elif test -f "$ac_srcdir/configure.in"; then
22609 # This should be Cygnus configure.
22610 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022611 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022612 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22613echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022614 ac_sub_configure=
22615 fi
22616
22617 # The recursion is here.
22618 if test -n "$ac_sub_configure"; then
22619 # Make the cache file name correct relative to the subdirectory.
22620 case $cache_file in
22621 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022622 *) # Relative name.
22623 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022624 esac
22625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022626 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22627echo "$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 +000022628 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022629 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22630 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022631 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22632echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22633 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022634 fi
22635
Reid Spencera773bd52006-08-04 18:18:08 +000022636 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022637 done
22638fi
22639